From aa669fef9079dbac856be83d56cabd826e3c47c0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 2 Sep 2025 19:33:52 +0000 Subject: [PATCH 01/24] feat(api)!: define shared model ConversionRateConfig `ConversionRateConfig` is defined in lots of places in the SDK. This commit extracts it to a shared model to reduce code duplication. Its new location is `orb-java-core/src/main/kotlin/com/withorb/api/models/ConversionRateConfig.kt` --- .stats.yml | 2 +- lib/orb/models/new_floating_bps_price.rb | 20 +- lib/orb/models/new_floating_bulk_bps_price.rb | 18 +- lib/orb/models/new_floating_bulk_price.rb | 18 +- .../new_floating_bulk_with_proration_price.rb | 18 +- ..._floating_cumulative_grouped_bulk_price.rb | 18 +- .../new_floating_grouped_allocation_price.rb | 18 +- ...w_floating_grouped_tiered_package_price.rb | 18 +- .../new_floating_grouped_tiered_price.rb | 18 +- ...ting_grouped_with_metered_minimum_price.rb | 18 +- ...ing_grouped_with_prorated_minimum_price.rb | 18 +- lib/orb/models/new_floating_matrix_price.rb | 18 +- ...w_floating_matrix_with_allocation_price.rb | 18 +- ...floating_matrix_with_display_name_price.rb | 18 +- ...floating_max_group_tiered_package_price.rb | 18 +- lib/orb/models/new_floating_package_price.rb | 18 +- ..._floating_package_with_allocation_price.rb | 18 +- ...alable_matrix_with_tiered_pricing_price.rb | 20 +- ...scalable_matrix_with_unit_pricing_price.rb | 20 +- ...w_floating_threshold_total_amount_price.rb | 18 +- .../models/new_floating_tiered_bps_price.rb | 18 +- .../new_floating_tiered_package_price.rb | 18 +- ...ating_tiered_package_with_minimum_price.rb | 18 +- lib/orb/models/new_floating_tiered_price.rb | 18 +- .../new_floating_tiered_with_minimum_price.rb | 18 +- ...ew_floating_tiered_with_proration_price.rb | 18 +- lib/orb/models/new_floating_unit_price.rb | 18 +- .../new_floating_unit_with_percent_price.rb | 18 +- .../new_floating_unit_with_proration_price.rb | 18 +- lib/orb/models/new_plan_bps_price.rb | 20 +- lib/orb/models/new_plan_bulk_bps_price.rb | 20 +- lib/orb/models/new_plan_bulk_price.rb | 20 +- .../new_plan_bulk_with_proration_price.rb | 18 +- .../new_plan_cumulative_grouped_bulk_price.rb | 18 +- .../new_plan_grouped_allocation_price.rb | 18 +- .../new_plan_grouped_tiered_package_price.rb | 18 +- .../models/new_plan_grouped_tiered_price.rb | 18 +- ...plan_grouped_with_metered_minimum_price.rb | 18 +- ...lan_grouped_with_prorated_minimum_price.rb | 18 +- lib/orb/models/new_plan_matrix_price.rb | 20 +- .../new_plan_matrix_with_allocation_price.rb | 18 +- ...new_plan_matrix_with_display_name_price.rb | 18 +- ...new_plan_max_group_tiered_package_price.rb | 18 +- lib/orb/models/new_plan_package_price.rb | 20 +- .../new_plan_package_with_allocation_price.rb | 18 +- ...alable_matrix_with_tiered_pricing_price.rb | 18 +- ...scalable_matrix_with_unit_pricing_price.rb | 18 +- .../new_plan_threshold_total_amount_price.rb | 18 +- .../new_plan_tier_with_proration_price.rb | 18 +- lib/orb/models/new_plan_tiered_bps_price.rb | 18 +- .../models/new_plan_tiered_package_price.rb | 18 +- ..._plan_tiered_package_with_minimum_price.rb | 18 +- lib/orb/models/new_plan_tiered_price.rb | 20 +- .../new_plan_tiered_with_minimum_price.rb | 18 +- lib/orb/models/new_plan_unit_price.rb | 20 +- .../new_plan_unit_with_percent_price.rb | 18 +- .../new_plan_unit_with_proration_price.rb | 18 +- lib/orb/models/new_subscription_bps_price.rb | 18 +- .../models/new_subscription_bulk_bps_price.rb | 18 +- lib/orb/models/new_subscription_bulk_price.rb | 18 +- ..._subscription_bulk_with_proration_price.rb | 18 +- ...scription_cumulative_grouped_bulk_price.rb | 18 +- ...w_subscription_grouped_allocation_price.rb | 18 +- ...bscription_grouped_tiered_package_price.rb | 18 +- .../new_subscription_grouped_tiered_price.rb | 18 +- ...tion_grouped_with_metered_minimum_price.rb | 20 +- ...ion_grouped_with_prorated_minimum_price.rb | 20 +- .../models/new_subscription_matrix_price.rb | 18 +- ...bscription_matrix_with_allocation_price.rb | 18 +- ...cription_matrix_with_display_name_price.rb | 18 +- ...cription_max_group_tiered_package_price.rb | 18 +- .../models/new_subscription_package_price.rb | 18 +- ...scription_package_with_allocation_price.rb | 18 +- ...alable_matrix_with_tiered_pricing_price.rb | 20 +- ...scalable_matrix_with_unit_pricing_price.rb | 20 +- ...bscription_threshold_total_amount_price.rb | 18 +- ..._subscription_tier_with_proration_price.rb | 18 +- .../new_subscription_tiered_bps_price.rb | 18 +- .../new_subscription_tiered_package_price.rb | 18 +- ...ption_tiered_package_with_minimum_price.rb | 18 +- .../models/new_subscription_tiered_price.rb | 18 +- ..._subscription_tiered_with_minimum_price.rb | 18 +- lib/orb/models/new_subscription_unit_price.rb | 18 +- ...ew_subscription_unit_with_percent_price.rb | 18 +- ..._subscription_unit_with_proration_price.rb | 18 +- lib/orb/models/price.rb | 482 +---------- lib/orb/models/price_create_params.rb | 14 - rbi/orb/models/new_floating_bps_price.rbi | 21 - .../models/new_floating_bulk_bps_price.rbi | 23 - rbi/orb/models/new_floating_bulk_price.rbi | 21 - ...new_floating_bulk_with_proration_price.rbi | 23 - ...floating_cumulative_grouped_bulk_price.rbi | 23 - .../new_floating_grouped_allocation_price.rbi | 23 - ..._floating_grouped_tiered_package_price.rbi | 23 - .../new_floating_grouped_tiered_price.rbi | 23 - ...ing_grouped_with_metered_minimum_price.rbi | 23 - ...ng_grouped_with_prorated_minimum_price.rbi | 23 - rbi/orb/models/new_floating_matrix_price.rbi | 23 - ..._floating_matrix_with_allocation_price.rbi | 23 - ...loating_matrix_with_display_name_price.rbi | 23 - ...loating_max_group_tiered_package_price.rbi | 23 - rbi/orb/models/new_floating_package_price.rbi | 23 - ...floating_package_with_allocation_price.rbi | 23 - ...lable_matrix_with_tiered_pricing_price.rbi | 23 - ...calable_matrix_with_unit_pricing_price.rbi | 23 - ..._floating_threshold_total_amount_price.rbi | 23 - .../models/new_floating_tiered_bps_price.rbi | 23 - .../new_floating_tiered_package_price.rbi | 23 - ...ting_tiered_package_with_minimum_price.rbi | 23 - rbi/orb/models/new_floating_tiered_price.rbi | 23 - ...new_floating_tiered_with_minimum_price.rbi | 23 - ...w_floating_tiered_with_proration_price.rbi | 23 - rbi/orb/models/new_floating_unit_price.rbi | 21 - .../new_floating_unit_with_percent_price.rbi | 23 - ...new_floating_unit_with_proration_price.rbi | 23 - rbi/orb/models/new_plan_bps_price.rbi | 21 - rbi/orb/models/new_plan_bulk_bps_price.rbi | 21 - rbi/orb/models/new_plan_bulk_price.rbi | 21 - .../new_plan_bulk_with_proration_price.rbi | 23 - ...new_plan_cumulative_grouped_bulk_price.rbi | 23 - .../new_plan_grouped_allocation_price.rbi | 23 - .../new_plan_grouped_tiered_package_price.rbi | 23 - .../models/new_plan_grouped_tiered_price.rbi | 23 - ...lan_grouped_with_metered_minimum_price.rbi | 23 - ...an_grouped_with_prorated_minimum_price.rbi | 23 - rbi/orb/models/new_plan_matrix_price.rbi | 21 - .../new_plan_matrix_with_allocation_price.rbi | 23 - ...ew_plan_matrix_with_display_name_price.rbi | 23 - ...ew_plan_max_group_tiered_package_price.rbi | 23 - rbi/orb/models/new_plan_package_price.rbi | 21 - ...new_plan_package_with_allocation_price.rbi | 23 - ...lable_matrix_with_tiered_pricing_price.rbi | 23 - ...calable_matrix_with_unit_pricing_price.rbi | 23 - .../new_plan_threshold_total_amount_price.rbi | 23 - .../new_plan_tier_with_proration_price.rbi | 23 - rbi/orb/models/new_plan_tiered_bps_price.rbi | 21 - .../models/new_plan_tiered_package_price.rbi | 23 - ...plan_tiered_package_with_minimum_price.rbi | 23 - rbi/orb/models/new_plan_tiered_price.rbi | 21 - .../new_plan_tiered_with_minimum_price.rbi | 23 - rbi/orb/models/new_plan_unit_price.rbi | 21 - .../new_plan_unit_with_percent_price.rbi | 23 - .../new_plan_unit_with_proration_price.rbi | 23 - rbi/orb/models/new_subscription_bps_price.rbi | 23 - .../new_subscription_bulk_bps_price.rbi | 23 - .../models/new_subscription_bulk_price.rbi | 23 - ...subscription_bulk_with_proration_price.rbi | 23 - ...cription_cumulative_grouped_bulk_price.rbi | 23 - ..._subscription_grouped_allocation_price.rbi | 23 - ...scription_grouped_tiered_package_price.rbi | 23 - .../new_subscription_grouped_tiered_price.rbi | 23 - ...ion_grouped_with_metered_minimum_price.rbi | 23 - ...on_grouped_with_prorated_minimum_price.rbi | 23 - .../models/new_subscription_matrix_price.rbi | 23 - ...scription_matrix_with_allocation_price.rbi | 23 - ...ription_matrix_with_display_name_price.rbi | 23 - ...ription_max_group_tiered_package_price.rbi | 23 - .../models/new_subscription_package_price.rbi | 23 - ...cription_package_with_allocation_price.rbi | 23 - ...lable_matrix_with_tiered_pricing_price.rbi | 23 - ...calable_matrix_with_unit_pricing_price.rbi | 23 - ...scription_threshold_total_amount_price.rbi | 23 - ...subscription_tier_with_proration_price.rbi | 23 - .../new_subscription_tiered_bps_price.rbi | 23 - .../new_subscription_tiered_package_price.rbi | 23 - ...tion_tiered_package_with_minimum_price.rbi | 23 - .../models/new_subscription_tiered_price.rbi | 23 - ...subscription_tiered_with_minimum_price.rbi | 23 - .../models/new_subscription_unit_price.rbi | 23 - ...w_subscription_unit_with_percent_price.rbi | 23 - ...subscription_unit_with_proration_price.rbi | 23 - rbi/orb/models/price.rbi | 776 +++--------------- rbi/orb/models/price_create_params.rbi | 21 - sig/orb/models/new_floating_bps_price.rbs | 17 +- .../models/new_floating_bulk_bps_price.rbs | 17 +- sig/orb/models/new_floating_bulk_price.rbs | 17 +- ...new_floating_bulk_with_proration_price.rbs | 17 +- ...floating_cumulative_grouped_bulk_price.rbs | 17 +- .../new_floating_grouped_allocation_price.rbs | 17 +- ..._floating_grouped_tiered_package_price.rbs | 17 +- .../new_floating_grouped_tiered_price.rbs | 17 +- ...ing_grouped_with_metered_minimum_price.rbs | 17 +- ...ng_grouped_with_prorated_minimum_price.rbs | 17 +- sig/orb/models/new_floating_matrix_price.rbs | 17 +- ..._floating_matrix_with_allocation_price.rbs | 17 +- ...loating_matrix_with_display_name_price.rbs | 17 +- ...loating_max_group_tiered_package_price.rbs | 17 +- sig/orb/models/new_floating_package_price.rbs | 17 +- ...floating_package_with_allocation_price.rbs | 17 +- ...lable_matrix_with_tiered_pricing_price.rbs | 17 +- ...calable_matrix_with_unit_pricing_price.rbs | 17 +- ..._floating_threshold_total_amount_price.rbs | 17 +- .../models/new_floating_tiered_bps_price.rbs | 17 +- .../new_floating_tiered_package_price.rbs | 17 +- ...ting_tiered_package_with_minimum_price.rbs | 17 +- sig/orb/models/new_floating_tiered_price.rbs | 17 +- ...new_floating_tiered_with_minimum_price.rbs | 17 +- ...w_floating_tiered_with_proration_price.rbs | 17 +- sig/orb/models/new_floating_unit_price.rbs | 17 +- .../new_floating_unit_with_percent_price.rbs | 17 +- ...new_floating_unit_with_proration_price.rbs | 17 +- sig/orb/models/new_plan_bps_price.rbs | 17 +- sig/orb/models/new_plan_bulk_bps_price.rbs | 17 +- sig/orb/models/new_plan_bulk_price.rbs | 17 +- .../new_plan_bulk_with_proration_price.rbs | 17 +- ...new_plan_cumulative_grouped_bulk_price.rbs | 17 +- .../new_plan_grouped_allocation_price.rbs | 17 +- .../new_plan_grouped_tiered_package_price.rbs | 17 +- .../models/new_plan_grouped_tiered_price.rbs | 17 +- ...lan_grouped_with_metered_minimum_price.rbs | 17 +- ...an_grouped_with_prorated_minimum_price.rbs | 17 +- sig/orb/models/new_plan_matrix_price.rbs | 17 +- .../new_plan_matrix_with_allocation_price.rbs | 17 +- ...ew_plan_matrix_with_display_name_price.rbs | 17 +- ...ew_plan_max_group_tiered_package_price.rbs | 17 +- sig/orb/models/new_plan_package_price.rbs | 17 +- ...new_plan_package_with_allocation_price.rbs | 17 +- ...lable_matrix_with_tiered_pricing_price.rbs | 17 +- ...calable_matrix_with_unit_pricing_price.rbs | 17 +- .../new_plan_threshold_total_amount_price.rbs | 17 +- .../new_plan_tier_with_proration_price.rbs | 17 +- sig/orb/models/new_plan_tiered_bps_price.rbs | 17 +- .../models/new_plan_tiered_package_price.rbs | 17 +- ...plan_tiered_package_with_minimum_price.rbs | 17 +- sig/orb/models/new_plan_tiered_price.rbs | 17 +- .../new_plan_tiered_with_minimum_price.rbs | 17 +- sig/orb/models/new_plan_unit_price.rbs | 17 +- .../new_plan_unit_with_percent_price.rbs | 17 +- .../new_plan_unit_with_proration_price.rbs | 17 +- sig/orb/models/new_subscription_bps_price.rbs | 17 +- .../new_subscription_bulk_bps_price.rbs | 17 +- .../models/new_subscription_bulk_price.rbs | 17 +- ...subscription_bulk_with_proration_price.rbs | 17 +- ...cription_cumulative_grouped_bulk_price.rbs | 17 +- ..._subscription_grouped_allocation_price.rbs | 17 +- ...scription_grouped_tiered_package_price.rbs | 17 +- .../new_subscription_grouped_tiered_price.rbs | 17 +- ...ion_grouped_with_metered_minimum_price.rbs | 17 +- ...on_grouped_with_prorated_minimum_price.rbs | 17 +- .../models/new_subscription_matrix_price.rbs | 17 +- ...scription_matrix_with_allocation_price.rbs | 17 +- ...ription_matrix_with_display_name_price.rbs | 17 +- ...ription_max_group_tiered_package_price.rbs | 17 +- .../models/new_subscription_package_price.rbs | 17 +- ...cription_package_with_allocation_price.rbs | 17 +- ...lable_matrix_with_tiered_pricing_price.rbs | 17 +- ...calable_matrix_with_unit_pricing_price.rbs | 17 +- ...scription_threshold_total_amount_price.rbs | 17 +- ...subscription_tier_with_proration_price.rbs | 17 +- .../new_subscription_tiered_bps_price.rbs | 17 +- .../new_subscription_tiered_package_price.rbs | 17 +- ...tion_tiered_package_with_minimum_price.rbs | 17 +- .../models/new_subscription_tiered_price.rbs | 17 +- ...subscription_tiered_with_minimum_price.rbs | 17 +- .../models/new_subscription_unit_price.rbs | 17 +- ...w_subscription_unit_with_percent_price.rbs | 17 +- ...subscription_unit_with_proration_price.rbs | 17 +- sig/orb/models/price.rbs | 493 +++-------- sig/orb/models/price_create_params.rbs | 9 - .../prices/external_price_id_test.rb | 116 +-- test/orb/resources/prices_test.rb | 232 +++--- 261 files changed, 870 insertions(+), 6153 deletions(-) diff --git a/.stats.yml b/.stats.yml index 69ee938b..3fc0331e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 118 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-4f31d46f5ba187fc4d702c9f9f1573dacb891edbd086f935707578d7c4f5fed8.yml openapi_spec_hash: 25b1019f20a47b8af665aae5f8fd0025 -config_hash: d8a0d696f3250ab096fac87b6b0eab53 +config_hash: be9350529b910ec14bff0a30cd74a185 diff --git a/lib/orb/models/new_floating_bps_price.rb b/lib/orb/models/new_floating_bps_price.rb index d6d2f218..103d506e 100644 --- a/lib/orb/models/new_floating_bps_price.rb +++ b/lib/orb/models/new_floating_bps_price.rb @@ -69,9 +69,7 @@ class NewFloatingBPSPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { - Orb::NewFloatingBPSPrice::ConversionRateConfig - }, + union: -> { Orb::NewFloatingBPSPrice::UnnamedTypeWithobjectParent0 }, nil?: true # @!attribute dimensional_price_configuration @@ -178,22 +176,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewFloatingBPSPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_floating_bulk_bps_price.rb b/lib/orb/models/new_floating_bulk_bps_price.rb index 32c9b545..de77e562 100644 --- a/lib/orb/models/new_floating_bulk_bps_price.rb +++ b/lib/orb/models/new_floating_bulk_bps_price.rb @@ -69,7 +69,7 @@ class NewFloatingBulkBPSPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingBulkBPSPrice::ConversionRateConfig }, + union: -> { Orb::NewFloatingBulkBPSPrice::UnnamedTypeWithobjectParent1 }, nil?: true # @!attribute dimensional_price_configuration @@ -176,22 +176,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewFloatingBulkBPSPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_floating_bulk_price.rb b/lib/orb/models/new_floating_bulk_price.rb index e0ee7cc3..eeaf9423 100644 --- a/lib/orb/models/new_floating_bulk_price.rb +++ b/lib/orb/models/new_floating_bulk_price.rb @@ -69,7 +69,7 @@ class NewFloatingBulkPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingBulkPrice::ConversionRateConfig }, + union: -> { Orb::NewFloatingBulkPrice::UnnamedTypeWithobjectParent2 }, nil?: true # @!attribute dimensional_price_configuration @@ -176,22 +176,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewFloatingBulkPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_floating_bulk_with_proration_price.rb b/lib/orb/models/new_floating_bulk_with_proration_price.rb index 0fc69839..b31f82b7 100644 --- a/lib/orb/models/new_floating_bulk_with_proration_price.rb +++ b/lib/orb/models/new_floating_bulk_with_proration_price.rb @@ -69,7 +69,7 @@ class NewFloatingBulkWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingBulkWithProrationPrice::ConversionRateConfig }, + union: -> { Orb::NewFloatingBulkWithProrationPrice::UnnamedTypeWithobjectParent3 }, nil?: true # @!attribute dimensional_price_configuration @@ -176,22 +176,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewFloatingBulkWithProrationPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_floating_cumulative_grouped_bulk_price.rb b/lib/orb/models/new_floating_cumulative_grouped_bulk_price.rb index 39ab3d96..b9b9376c 100644 --- a/lib/orb/models/new_floating_cumulative_grouped_bulk_price.rb +++ b/lib/orb/models/new_floating_cumulative_grouped_bulk_price.rb @@ -69,7 +69,7 @@ class NewFloatingCumulativeGroupedBulkPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingCumulativeGroupedBulkPrice::ConversionRateConfig }, + union: -> { Orb::NewFloatingCumulativeGroupedBulkPrice::UnnamedTypeWithobjectParent4 }, nil?: true # @!attribute dimensional_price_configuration @@ -176,22 +176,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewFloatingCumulativeGroupedBulkPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_floating_grouped_allocation_price.rb b/lib/orb/models/new_floating_grouped_allocation_price.rb index a528b811..5220d9f4 100644 --- a/lib/orb/models/new_floating_grouped_allocation_price.rb +++ b/lib/orb/models/new_floating_grouped_allocation_price.rb @@ -69,7 +69,7 @@ class NewFloatingGroupedAllocationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingGroupedAllocationPrice::ConversionRateConfig }, + union: -> { Orb::NewFloatingGroupedAllocationPrice::UnnamedTypeWithobjectParent5 }, nil?: true # @!attribute dimensional_price_configuration @@ -176,22 +176,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewFloatingGroupedAllocationPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_floating_grouped_tiered_package_price.rb b/lib/orb/models/new_floating_grouped_tiered_package_price.rb index 68e1bbd5..98b1c957 100644 --- a/lib/orb/models/new_floating_grouped_tiered_package_price.rb +++ b/lib/orb/models/new_floating_grouped_tiered_package_price.rb @@ -69,7 +69,7 @@ class NewFloatingGroupedTieredPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingGroupedTieredPackagePrice::ConversionRateConfig }, + union: -> { Orb::NewFloatingGroupedTieredPackagePrice::UnnamedTypeWithobjectParent6 }, nil?: true # @!attribute dimensional_price_configuration @@ -176,22 +176,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewFloatingGroupedTieredPackagePrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_floating_grouped_tiered_price.rb b/lib/orb/models/new_floating_grouped_tiered_price.rb index 5b06bfac..f6d4555d 100644 --- a/lib/orb/models/new_floating_grouped_tiered_price.rb +++ b/lib/orb/models/new_floating_grouped_tiered_price.rb @@ -69,7 +69,7 @@ class NewFloatingGroupedTieredPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingGroupedTieredPrice::ConversionRateConfig }, + union: -> { Orb::NewFloatingGroupedTieredPrice::UnnamedTypeWithobjectParent7 }, nil?: true # @!attribute dimensional_price_configuration @@ -176,22 +176,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewFloatingGroupedTieredPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb b/lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb index 7d3fcce7..acb3fea7 100644 --- a/lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb +++ b/lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb @@ -69,7 +69,7 @@ class NewFloatingGroupedWithMeteredMinimumPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingGroupedWithMeteredMinimumPrice::ConversionRateConfig }, + union: -> { Orb::NewFloatingGroupedWithMeteredMinimumPrice::UnnamedTypeWithobjectParent8 }, nil?: true # @!attribute dimensional_price_configuration @@ -176,22 +176,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_floating_grouped_with_prorated_minimum_price.rb b/lib/orb/models/new_floating_grouped_with_prorated_minimum_price.rb index 3861c7ba..35a56b94 100644 --- a/lib/orb/models/new_floating_grouped_with_prorated_minimum_price.rb +++ b/lib/orb/models/new_floating_grouped_with_prorated_minimum_price.rb @@ -69,7 +69,7 @@ class NewFloatingGroupedWithProratedMinimumPrice < Orb::Internal::Type::BaseMode # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingGroupedWithProratedMinimumPrice::ConversionRateConfig }, + union: -> { Orb::NewFloatingGroupedWithProratedMinimumPrice::UnnamedTypeWithobjectParent9 }, nil?: true # @!attribute dimensional_price_configuration @@ -176,22 +176,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewFloatingGroupedWithProratedMinimumPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_floating_matrix_price.rb b/lib/orb/models/new_floating_matrix_price.rb index 779579e1..eef5ea17 100644 --- a/lib/orb/models/new_floating_matrix_price.rb +++ b/lib/orb/models/new_floating_matrix_price.rb @@ -69,7 +69,7 @@ class NewFloatingMatrixPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingMatrixPrice::ConversionRateConfig }, + union: -> { Orb::NewFloatingMatrixPrice::UnnamedTypeWithobjectParent10 }, nil?: true # @!attribute dimensional_price_configuration @@ -176,22 +176,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewFloatingMatrixPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_floating_matrix_with_allocation_price.rb b/lib/orb/models/new_floating_matrix_with_allocation_price.rb index a90b47ba..5febce9d 100644 --- a/lib/orb/models/new_floating_matrix_with_allocation_price.rb +++ b/lib/orb/models/new_floating_matrix_with_allocation_price.rb @@ -69,7 +69,7 @@ class NewFloatingMatrixWithAllocationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingMatrixWithAllocationPrice::ConversionRateConfig }, + union: -> { Orb::NewFloatingMatrixWithAllocationPrice::UnnamedTypeWithobjectParent11 }, nil?: true # @!attribute dimensional_price_configuration @@ -176,22 +176,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewFloatingMatrixWithAllocationPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_floating_matrix_with_display_name_price.rb b/lib/orb/models/new_floating_matrix_with_display_name_price.rb index 6ec8f850..efe4a766 100644 --- a/lib/orb/models/new_floating_matrix_with_display_name_price.rb +++ b/lib/orb/models/new_floating_matrix_with_display_name_price.rb @@ -69,7 +69,7 @@ class NewFloatingMatrixWithDisplayNamePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingMatrixWithDisplayNamePrice::ConversionRateConfig }, + union: -> { Orb::NewFloatingMatrixWithDisplayNamePrice::UnnamedTypeWithobjectParent12 }, nil?: true # @!attribute dimensional_price_configuration @@ -176,22 +176,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewFloatingMatrixWithDisplayNamePrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_floating_max_group_tiered_package_price.rb b/lib/orb/models/new_floating_max_group_tiered_package_price.rb index 197880fe..67921568 100644 --- a/lib/orb/models/new_floating_max_group_tiered_package_price.rb +++ b/lib/orb/models/new_floating_max_group_tiered_package_price.rb @@ -69,7 +69,7 @@ class NewFloatingMaxGroupTieredPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingMaxGroupTieredPackagePrice::ConversionRateConfig }, + union: -> { Orb::NewFloatingMaxGroupTieredPackagePrice::UnnamedTypeWithobjectParent13 }, nil?: true # @!attribute dimensional_price_configuration @@ -176,22 +176,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewFloatingMaxGroupTieredPackagePrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_floating_package_price.rb b/lib/orb/models/new_floating_package_price.rb index c4271710..1d0b7922 100644 --- a/lib/orb/models/new_floating_package_price.rb +++ b/lib/orb/models/new_floating_package_price.rb @@ -69,7 +69,7 @@ class NewFloatingPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingPackagePrice::ConversionRateConfig }, + union: -> { Orb::NewFloatingPackagePrice::UnnamedTypeWithobjectParent14 }, nil?: true # @!attribute dimensional_price_configuration @@ -176,22 +176,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewFloatingPackagePrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_floating_package_with_allocation_price.rb b/lib/orb/models/new_floating_package_with_allocation_price.rb index 10a5c127..819e17c7 100644 --- a/lib/orb/models/new_floating_package_with_allocation_price.rb +++ b/lib/orb/models/new_floating_package_with_allocation_price.rb @@ -69,7 +69,7 @@ class NewFloatingPackageWithAllocationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingPackageWithAllocationPrice::ConversionRateConfig }, + union: -> { Orb::NewFloatingPackageWithAllocationPrice::UnnamedTypeWithobjectParent15 }, nil?: true # @!attribute dimensional_price_configuration @@ -176,22 +176,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewFloatingPackageWithAllocationPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rb b/lib/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rb index 8f741d3d..c9c70651 100644 --- a/lib/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rb +++ b/lib/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rb @@ -70,7 +70,9 @@ class NewFloatingScalableMatrixWithTieredPricingPrice < Orb::Internal::Type::Bas # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ConversionRateConfig }, + union: -> { + Orb::NewFloatingScalableMatrixWithTieredPricingPrice::UnnamedTypeWithobjectParent16 + }, nil?: true # @!attribute dimensional_price_configuration @@ -177,22 +179,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb b/lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb index b6c58901..1af47072 100644 --- a/lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb +++ b/lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb @@ -70,7 +70,9 @@ class NewFloatingScalableMatrixWithUnitPricingPrice < Orb::Internal::Type::BaseM # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingScalableMatrixWithUnitPricingPrice::ConversionRateConfig }, + union: -> { + Orb::NewFloatingScalableMatrixWithUnitPricingPrice::UnnamedTypeWithobjectParent17 + }, nil?: true # @!attribute dimensional_price_configuration @@ -177,22 +179,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_floating_threshold_total_amount_price.rb b/lib/orb/models/new_floating_threshold_total_amount_price.rb index 8d795da3..f8ca6bb4 100644 --- a/lib/orb/models/new_floating_threshold_total_amount_price.rb +++ b/lib/orb/models/new_floating_threshold_total_amount_price.rb @@ -69,7 +69,7 @@ class NewFloatingThresholdTotalAmountPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingThresholdTotalAmountPrice::ConversionRateConfig }, + union: -> { Orb::NewFloatingThresholdTotalAmountPrice::UnnamedTypeWithobjectParent18 }, nil?: true # @!attribute dimensional_price_configuration @@ -176,22 +176,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewFloatingThresholdTotalAmountPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_floating_tiered_bps_price.rb b/lib/orb/models/new_floating_tiered_bps_price.rb index 7957bb91..bd6d7cf2 100644 --- a/lib/orb/models/new_floating_tiered_bps_price.rb +++ b/lib/orb/models/new_floating_tiered_bps_price.rb @@ -69,7 +69,7 @@ class NewFloatingTieredBPSPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingTieredBPSPrice::ConversionRateConfig }, + union: -> { Orb::NewFloatingTieredBPSPrice::UnnamedTypeWithobjectParent19 }, nil?: true # @!attribute dimensional_price_configuration @@ -176,22 +176,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewFloatingTieredBPSPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_floating_tiered_package_price.rb b/lib/orb/models/new_floating_tiered_package_price.rb index 4cbd1bae..fd3f5460 100644 --- a/lib/orb/models/new_floating_tiered_package_price.rb +++ b/lib/orb/models/new_floating_tiered_package_price.rb @@ -69,7 +69,7 @@ class NewFloatingTieredPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingTieredPackagePrice::ConversionRateConfig }, + union: -> { Orb::NewFloatingTieredPackagePrice::UnnamedTypeWithobjectParent20 }, nil?: true # @!attribute dimensional_price_configuration @@ -176,22 +176,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewFloatingTieredPackagePrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_floating_tiered_package_with_minimum_price.rb b/lib/orb/models/new_floating_tiered_package_with_minimum_price.rb index 46672ff0..294b9370 100644 --- a/lib/orb/models/new_floating_tiered_package_with_minimum_price.rb +++ b/lib/orb/models/new_floating_tiered_package_with_minimum_price.rb @@ -69,7 +69,7 @@ class NewFloatingTieredPackageWithMinimumPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingTieredPackageWithMinimumPrice::ConversionRateConfig }, + union: -> { Orb::NewFloatingTieredPackageWithMinimumPrice::UnnamedTypeWithobjectParent21 }, nil?: true # @!attribute dimensional_price_configuration @@ -176,22 +176,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewFloatingTieredPackageWithMinimumPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_floating_tiered_price.rb b/lib/orb/models/new_floating_tiered_price.rb index 98b1fb44..644fc96c 100644 --- a/lib/orb/models/new_floating_tiered_price.rb +++ b/lib/orb/models/new_floating_tiered_price.rb @@ -69,7 +69,7 @@ class NewFloatingTieredPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingTieredPrice::ConversionRateConfig }, + union: -> { Orb::NewFloatingTieredPrice::UnnamedTypeWithobjectParent22 }, nil?: true # @!attribute dimensional_price_configuration @@ -176,22 +176,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewFloatingTieredPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_floating_tiered_with_minimum_price.rb b/lib/orb/models/new_floating_tiered_with_minimum_price.rb index f526b229..2d355fc3 100644 --- a/lib/orb/models/new_floating_tiered_with_minimum_price.rb +++ b/lib/orb/models/new_floating_tiered_with_minimum_price.rb @@ -69,7 +69,7 @@ class NewFloatingTieredWithMinimumPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingTieredWithMinimumPrice::ConversionRateConfig }, + union: -> { Orb::NewFloatingTieredWithMinimumPrice::UnnamedTypeWithobjectParent23 }, nil?: true # @!attribute dimensional_price_configuration @@ -176,22 +176,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewFloatingTieredWithMinimumPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_floating_tiered_with_proration_price.rb b/lib/orb/models/new_floating_tiered_with_proration_price.rb index 84247fcf..577dba38 100644 --- a/lib/orb/models/new_floating_tiered_with_proration_price.rb +++ b/lib/orb/models/new_floating_tiered_with_proration_price.rb @@ -69,7 +69,7 @@ class NewFloatingTieredWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingTieredWithProrationPrice::ConversionRateConfig }, + union: -> { Orb::NewFloatingTieredWithProrationPrice::UnnamedTypeWithobjectParent24 }, nil?: true # @!attribute dimensional_price_configuration @@ -176,22 +176,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewFloatingTieredWithProrationPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_floating_unit_price.rb b/lib/orb/models/new_floating_unit_price.rb index 72c264f7..9f4a8ccc 100644 --- a/lib/orb/models/new_floating_unit_price.rb +++ b/lib/orb/models/new_floating_unit_price.rb @@ -69,7 +69,7 @@ class NewFloatingUnitPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingUnitPrice::ConversionRateConfig }, + union: -> { Orb::NewFloatingUnitPrice::UnnamedTypeWithobjectParent25 }, nil?: true # @!attribute dimensional_price_configuration @@ -176,22 +176,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewFloatingUnitPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_floating_unit_with_percent_price.rb b/lib/orb/models/new_floating_unit_with_percent_price.rb index 3cd6e92a..595f768a 100644 --- a/lib/orb/models/new_floating_unit_with_percent_price.rb +++ b/lib/orb/models/new_floating_unit_with_percent_price.rb @@ -69,7 +69,7 @@ class NewFloatingUnitWithPercentPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingUnitWithPercentPrice::ConversionRateConfig }, + union: -> { Orb::NewFloatingUnitWithPercentPrice::UnnamedTypeWithobjectParent26 }, nil?: true # @!attribute dimensional_price_configuration @@ -176,22 +176,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewFloatingUnitWithPercentPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_floating_unit_with_proration_price.rb b/lib/orb/models/new_floating_unit_with_proration_price.rb index 3e65a990..3424836b 100644 --- a/lib/orb/models/new_floating_unit_with_proration_price.rb +++ b/lib/orb/models/new_floating_unit_with_proration_price.rb @@ -69,7 +69,7 @@ class NewFloatingUnitWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingUnitWithProrationPrice::ConversionRateConfig }, + union: -> { Orb::NewFloatingUnitWithProrationPrice::UnnamedTypeWithobjectParent27 }, nil?: true # @!attribute dimensional_price_configuration @@ -176,22 +176,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewFloatingUnitWithProrationPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_plan_bps_price.rb b/lib/orb/models/new_plan_bps_price.rb index b1935a89..1f0a1081 100644 --- a/lib/orb/models/new_plan_bps_price.rb +++ b/lib/orb/models/new_plan_bps_price.rb @@ -62,7 +62,9 @@ class NewPlanBPSPrice < Orb::Internal::Type::BaseModel # The configuration for the rate of the price currency to the invoicing currency. # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - optional :conversion_rate_config, union: -> { Orb::NewPlanBPSPrice::ConversionRateConfig }, nil?: true + optional :conversion_rate_config, + union: -> { Orb::NewPlanBPSPrice::UnnamedTypeWithobjectParent28 }, + nil?: true # @!attribute currency # An ISO 4217 currency string, or custom pricing unit identifier, in which this @@ -184,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewPlanBPSPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_plan_bulk_bps_price.rb b/lib/orb/models/new_plan_bulk_bps_price.rb index 9fbc9094..8be7bbb9 100644 --- a/lib/orb/models/new_plan_bulk_bps_price.rb +++ b/lib/orb/models/new_plan_bulk_bps_price.rb @@ -63,9 +63,7 @@ class NewPlanBulkBPSPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { - Orb::NewPlanBulkBPSPrice::ConversionRateConfig - }, + union: -> { Orb::NewPlanBulkBPSPrice::UnnamedTypeWithobjectParent29 }, nil?: true # @!attribute currency @@ -188,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewPlanBulkBPSPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_plan_bulk_price.rb b/lib/orb/models/new_plan_bulk_price.rb index 925107b3..f4d51243 100644 --- a/lib/orb/models/new_plan_bulk_price.rb +++ b/lib/orb/models/new_plan_bulk_price.rb @@ -62,7 +62,9 @@ class NewPlanBulkPrice < Orb::Internal::Type::BaseModel # The configuration for the rate of the price currency to the invoicing currency. # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - optional :conversion_rate_config, union: -> { Orb::NewPlanBulkPrice::ConversionRateConfig }, nil?: true + optional :conversion_rate_config, + union: -> { Orb::NewPlanBulkPrice::UnnamedTypeWithobjectParent30 }, + nil?: true # @!attribute currency # An ISO 4217 currency string, or custom pricing unit identifier, in which this @@ -184,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewPlanBulkPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_plan_bulk_with_proration_price.rb b/lib/orb/models/new_plan_bulk_with_proration_price.rb index ab1f203b..46115f53 100644 --- a/lib/orb/models/new_plan_bulk_with_proration_price.rb +++ b/lib/orb/models/new_plan_bulk_with_proration_price.rb @@ -63,7 +63,7 @@ class NewPlanBulkWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanBulkWithProrationPrice::ConversionRateConfig }, + union: -> { Orb::NewPlanBulkWithProrationPrice::UnnamedTypeWithobjectParent31 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewPlanBulkWithProrationPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb b/lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb index 96d9b8ec..8ecd30b6 100644 --- a/lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb +++ b/lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb @@ -63,7 +63,7 @@ class NewPlanCumulativeGroupedBulkPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanCumulativeGroupedBulkPrice::ConversionRateConfig }, + union: -> { Orb::NewPlanCumulativeGroupedBulkPrice::UnnamedTypeWithobjectParent32 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewPlanCumulativeGroupedBulkPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_plan_grouped_allocation_price.rb b/lib/orb/models/new_plan_grouped_allocation_price.rb index 1053c5bc..c3b17c0c 100644 --- a/lib/orb/models/new_plan_grouped_allocation_price.rb +++ b/lib/orb/models/new_plan_grouped_allocation_price.rb @@ -63,7 +63,7 @@ class NewPlanGroupedAllocationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanGroupedAllocationPrice::ConversionRateConfig }, + union: -> { Orb::NewPlanGroupedAllocationPrice::UnnamedTypeWithobjectParent33 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewPlanGroupedAllocationPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_plan_grouped_tiered_package_price.rb b/lib/orb/models/new_plan_grouped_tiered_package_price.rb index a781f244..b2b601b4 100644 --- a/lib/orb/models/new_plan_grouped_tiered_package_price.rb +++ b/lib/orb/models/new_plan_grouped_tiered_package_price.rb @@ -63,7 +63,7 @@ class NewPlanGroupedTieredPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanGroupedTieredPackagePrice::ConversionRateConfig }, + union: -> { Orb::NewPlanGroupedTieredPackagePrice::UnnamedTypeWithobjectParent34 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewPlanGroupedTieredPackagePrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_plan_grouped_tiered_price.rb b/lib/orb/models/new_plan_grouped_tiered_price.rb index 1675babc..615b8998 100644 --- a/lib/orb/models/new_plan_grouped_tiered_price.rb +++ b/lib/orb/models/new_plan_grouped_tiered_price.rb @@ -63,7 +63,7 @@ class NewPlanGroupedTieredPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanGroupedTieredPrice::ConversionRateConfig }, + union: -> { Orb::NewPlanGroupedTieredPrice::UnnamedTypeWithobjectParent35 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewPlanGroupedTieredPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_plan_grouped_with_metered_minimum_price.rb b/lib/orb/models/new_plan_grouped_with_metered_minimum_price.rb index 6849e04b..8d7b0d55 100644 --- a/lib/orb/models/new_plan_grouped_with_metered_minimum_price.rb +++ b/lib/orb/models/new_plan_grouped_with_metered_minimum_price.rb @@ -63,7 +63,7 @@ class NewPlanGroupedWithMeteredMinimumPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanGroupedWithMeteredMinimumPrice::ConversionRateConfig }, + union: -> { Orb::NewPlanGroupedWithMeteredMinimumPrice::UnnamedTypeWithobjectParent36 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewPlanGroupedWithMeteredMinimumPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_plan_grouped_with_prorated_minimum_price.rb b/lib/orb/models/new_plan_grouped_with_prorated_minimum_price.rb index e78643a4..b7bc6185 100644 --- a/lib/orb/models/new_plan_grouped_with_prorated_minimum_price.rb +++ b/lib/orb/models/new_plan_grouped_with_prorated_minimum_price.rb @@ -63,7 +63,7 @@ class NewPlanGroupedWithProratedMinimumPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanGroupedWithProratedMinimumPrice::ConversionRateConfig }, + union: -> { Orb::NewPlanGroupedWithProratedMinimumPrice::UnnamedTypeWithobjectParent37 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewPlanGroupedWithProratedMinimumPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_plan_matrix_price.rb b/lib/orb/models/new_plan_matrix_price.rb index 5ff55704..a0cb3138 100644 --- a/lib/orb/models/new_plan_matrix_price.rb +++ b/lib/orb/models/new_plan_matrix_price.rb @@ -63,9 +63,7 @@ class NewPlanMatrixPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { - Orb::NewPlanMatrixPrice::ConversionRateConfig - }, + union: -> { Orb::NewPlanMatrixPrice::UnnamedTypeWithobjectParent38 }, nil?: true # @!attribute currency @@ -188,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewPlanMatrixPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_plan_matrix_with_allocation_price.rb b/lib/orb/models/new_plan_matrix_with_allocation_price.rb index 88b6c652..720fcdb8 100644 --- a/lib/orb/models/new_plan_matrix_with_allocation_price.rb +++ b/lib/orb/models/new_plan_matrix_with_allocation_price.rb @@ -63,7 +63,7 @@ class NewPlanMatrixWithAllocationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanMatrixWithAllocationPrice::ConversionRateConfig }, + union: -> { Orb::NewPlanMatrixWithAllocationPrice::UnnamedTypeWithobjectParent39 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewPlanMatrixWithAllocationPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_plan_matrix_with_display_name_price.rb b/lib/orb/models/new_plan_matrix_with_display_name_price.rb index d6a383fe..56d3d3cc 100644 --- a/lib/orb/models/new_plan_matrix_with_display_name_price.rb +++ b/lib/orb/models/new_plan_matrix_with_display_name_price.rb @@ -63,7 +63,7 @@ class NewPlanMatrixWithDisplayNamePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanMatrixWithDisplayNamePrice::ConversionRateConfig }, + union: -> { Orb::NewPlanMatrixWithDisplayNamePrice::UnnamedTypeWithobjectParent40 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewPlanMatrixWithDisplayNamePrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_plan_max_group_tiered_package_price.rb b/lib/orb/models/new_plan_max_group_tiered_package_price.rb index 946f9a6b..095f2e64 100644 --- a/lib/orb/models/new_plan_max_group_tiered_package_price.rb +++ b/lib/orb/models/new_plan_max_group_tiered_package_price.rb @@ -63,7 +63,7 @@ class NewPlanMaxGroupTieredPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanMaxGroupTieredPackagePrice::ConversionRateConfig }, + union: -> { Orb::NewPlanMaxGroupTieredPackagePrice::UnnamedTypeWithobjectParent41 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewPlanMaxGroupTieredPackagePrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_plan_package_price.rb b/lib/orb/models/new_plan_package_price.rb index 24904fae..900b5c40 100644 --- a/lib/orb/models/new_plan_package_price.rb +++ b/lib/orb/models/new_plan_package_price.rb @@ -63,9 +63,7 @@ class NewPlanPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { - Orb::NewPlanPackagePrice::ConversionRateConfig - }, + union: -> { Orb::NewPlanPackagePrice::UnnamedTypeWithobjectParent42 }, nil?: true # @!attribute currency @@ -188,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewPlanPackagePrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_plan_package_with_allocation_price.rb b/lib/orb/models/new_plan_package_with_allocation_price.rb index 316d986d..1288576d 100644 --- a/lib/orb/models/new_plan_package_with_allocation_price.rb +++ b/lib/orb/models/new_plan_package_with_allocation_price.rb @@ -63,7 +63,7 @@ class NewPlanPackageWithAllocationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanPackageWithAllocationPrice::ConversionRateConfig }, + union: -> { Orb::NewPlanPackageWithAllocationPrice::UnnamedTypeWithobjectParent43 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewPlanPackageWithAllocationPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rb b/lib/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rb index 164170a4..d2a898b5 100644 --- a/lib/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rb +++ b/lib/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rb @@ -64,7 +64,7 @@ class NewPlanScalableMatrixWithTieredPricingPrice < Orb::Internal::Type::BaseMod # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanScalableMatrixWithTieredPricingPrice::ConversionRateConfig }, + union: -> { Orb::NewPlanScalableMatrixWithTieredPricingPrice::UnnamedTypeWithobjectParent44 }, nil?: true # @!attribute currency @@ -187,22 +187,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb b/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb index fe968a6e..7ceaab88 100644 --- a/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb +++ b/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb @@ -64,7 +64,7 @@ class NewPlanScalableMatrixWithUnitPricingPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanScalableMatrixWithUnitPricingPrice::ConversionRateConfig }, + union: -> { Orb::NewPlanScalableMatrixWithUnitPricingPrice::UnnamedTypeWithobjectParent45 }, nil?: true # @!attribute currency @@ -187,22 +187,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_plan_threshold_total_amount_price.rb b/lib/orb/models/new_plan_threshold_total_amount_price.rb index eb936e62..bf7d94d4 100644 --- a/lib/orb/models/new_plan_threshold_total_amount_price.rb +++ b/lib/orb/models/new_plan_threshold_total_amount_price.rb @@ -63,7 +63,7 @@ class NewPlanThresholdTotalAmountPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanThresholdTotalAmountPrice::ConversionRateConfig }, + union: -> { Orb::NewPlanThresholdTotalAmountPrice::UnnamedTypeWithobjectParent46 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewPlanThresholdTotalAmountPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_plan_tier_with_proration_price.rb b/lib/orb/models/new_plan_tier_with_proration_price.rb index fd4866f1..e90d2fa6 100644 --- a/lib/orb/models/new_plan_tier_with_proration_price.rb +++ b/lib/orb/models/new_plan_tier_with_proration_price.rb @@ -63,7 +63,7 @@ class NewPlanTierWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanTierWithProrationPrice::ConversionRateConfig }, + union: -> { Orb::NewPlanTierWithProrationPrice::UnnamedTypeWithobjectParent52 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewPlanTierWithProrationPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_plan_tiered_bps_price.rb b/lib/orb/models/new_plan_tiered_bps_price.rb index cd0db7fb..404353a5 100644 --- a/lib/orb/models/new_plan_tiered_bps_price.rb +++ b/lib/orb/models/new_plan_tiered_bps_price.rb @@ -63,7 +63,7 @@ class NewPlanTieredBPSPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanTieredBPSPrice::ConversionRateConfig }, + union: -> { Orb::NewPlanTieredBPSPrice::UnnamedTypeWithobjectParent47 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewPlanTieredBPSPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_plan_tiered_package_price.rb b/lib/orb/models/new_plan_tiered_package_price.rb index 1cdc901d..1ee4c137 100644 --- a/lib/orb/models/new_plan_tiered_package_price.rb +++ b/lib/orb/models/new_plan_tiered_package_price.rb @@ -63,7 +63,7 @@ class NewPlanTieredPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanTieredPackagePrice::ConversionRateConfig }, + union: -> { Orb::NewPlanTieredPackagePrice::UnnamedTypeWithobjectParent48 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewPlanTieredPackagePrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_plan_tiered_package_with_minimum_price.rb b/lib/orb/models/new_plan_tiered_package_with_minimum_price.rb index 0be54963..ca92b81e 100644 --- a/lib/orb/models/new_plan_tiered_package_with_minimum_price.rb +++ b/lib/orb/models/new_plan_tiered_package_with_minimum_price.rb @@ -63,7 +63,7 @@ class NewPlanTieredPackageWithMinimumPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanTieredPackageWithMinimumPrice::ConversionRateConfig }, + union: -> { Orb::NewPlanTieredPackageWithMinimumPrice::UnnamedTypeWithobjectParent49 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewPlanTieredPackageWithMinimumPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_plan_tiered_price.rb b/lib/orb/models/new_plan_tiered_price.rb index 713d3111..09dd78cd 100644 --- a/lib/orb/models/new_plan_tiered_price.rb +++ b/lib/orb/models/new_plan_tiered_price.rb @@ -63,9 +63,7 @@ class NewPlanTieredPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { - Orb::NewPlanTieredPrice::ConversionRateConfig - }, + union: -> { Orb::NewPlanTieredPrice::UnnamedTypeWithobjectParent50 }, nil?: true # @!attribute currency @@ -188,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewPlanTieredPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_plan_tiered_with_minimum_price.rb b/lib/orb/models/new_plan_tiered_with_minimum_price.rb index c6f9fab4..d972523e 100644 --- a/lib/orb/models/new_plan_tiered_with_minimum_price.rb +++ b/lib/orb/models/new_plan_tiered_with_minimum_price.rb @@ -63,7 +63,7 @@ class NewPlanTieredWithMinimumPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanTieredWithMinimumPrice::ConversionRateConfig }, + union: -> { Orb::NewPlanTieredWithMinimumPrice::UnnamedTypeWithobjectParent51 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewPlanTieredWithMinimumPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_plan_unit_price.rb b/lib/orb/models/new_plan_unit_price.rb index 0ed0df4a..40bfd8fe 100644 --- a/lib/orb/models/new_plan_unit_price.rb +++ b/lib/orb/models/new_plan_unit_price.rb @@ -62,7 +62,9 @@ class NewPlanUnitPrice < Orb::Internal::Type::BaseModel # The configuration for the rate of the price currency to the invoicing currency. # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - optional :conversion_rate_config, union: -> { Orb::NewPlanUnitPrice::ConversionRateConfig }, nil?: true + optional :conversion_rate_config, + union: -> { Orb::NewPlanUnitPrice::UnnamedTypeWithobjectParent53 }, + nil?: true # @!attribute currency # An ISO 4217 currency string, or custom pricing unit identifier, in which this @@ -184,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewPlanUnitPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_plan_unit_with_percent_price.rb b/lib/orb/models/new_plan_unit_with_percent_price.rb index bf4b314d..dffeec35 100644 --- a/lib/orb/models/new_plan_unit_with_percent_price.rb +++ b/lib/orb/models/new_plan_unit_with_percent_price.rb @@ -63,7 +63,7 @@ class NewPlanUnitWithPercentPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanUnitWithPercentPrice::ConversionRateConfig }, + union: -> { Orb::NewPlanUnitWithPercentPrice::UnnamedTypeWithobjectParent54 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewPlanUnitWithPercentPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_plan_unit_with_proration_price.rb b/lib/orb/models/new_plan_unit_with_proration_price.rb index cbb3a25d..29ca2fe1 100644 --- a/lib/orb/models/new_plan_unit_with_proration_price.rb +++ b/lib/orb/models/new_plan_unit_with_proration_price.rb @@ -63,7 +63,7 @@ class NewPlanUnitWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanUnitWithProrationPrice::ConversionRateConfig }, + union: -> { Orb::NewPlanUnitWithProrationPrice::UnnamedTypeWithobjectParent55 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewPlanUnitWithProrationPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_subscription_bps_price.rb b/lib/orb/models/new_subscription_bps_price.rb index 5cbf734d..62bed4ee 100644 --- a/lib/orb/models/new_subscription_bps_price.rb +++ b/lib/orb/models/new_subscription_bps_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionBPSPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionBPSPrice::ConversionRateConfig }, + union: -> { Orb::NewSubscriptionBPSPrice::UnnamedTypeWithobjectParent56 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewSubscriptionBPSPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_subscription_bulk_bps_price.rb b/lib/orb/models/new_subscription_bulk_bps_price.rb index c9824344..e846bfe7 100644 --- a/lib/orb/models/new_subscription_bulk_bps_price.rb +++ b/lib/orb/models/new_subscription_bulk_bps_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionBulkBPSPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionBulkBPSPrice::ConversionRateConfig }, + union: -> { Orb::NewSubscriptionBulkBPSPrice::UnnamedTypeWithobjectParent57 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewSubscriptionBulkBPSPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_subscription_bulk_price.rb b/lib/orb/models/new_subscription_bulk_price.rb index 27d423d9..e7720e89 100644 --- a/lib/orb/models/new_subscription_bulk_price.rb +++ b/lib/orb/models/new_subscription_bulk_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionBulkPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionBulkPrice::ConversionRateConfig }, + union: -> { Orb::NewSubscriptionBulkPrice::UnnamedTypeWithobjectParent58 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewSubscriptionBulkPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_subscription_bulk_with_proration_price.rb b/lib/orb/models/new_subscription_bulk_with_proration_price.rb index fe37e1ed..00681a84 100644 --- a/lib/orb/models/new_subscription_bulk_with_proration_price.rb +++ b/lib/orb/models/new_subscription_bulk_with_proration_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionBulkWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionBulkWithProrationPrice::ConversionRateConfig }, + union: -> { Orb::NewSubscriptionBulkWithProrationPrice::UnnamedTypeWithobjectParent59 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewSubscriptionBulkWithProrationPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_subscription_cumulative_grouped_bulk_price.rb b/lib/orb/models/new_subscription_cumulative_grouped_bulk_price.rb index 3b40ad6f..817d7710 100644 --- a/lib/orb/models/new_subscription_cumulative_grouped_bulk_price.rb +++ b/lib/orb/models/new_subscription_cumulative_grouped_bulk_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionCumulativeGroupedBulkPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionCumulativeGroupedBulkPrice::ConversionRateConfig }, + union: -> { Orb::NewSubscriptionCumulativeGroupedBulkPrice::UnnamedTypeWithobjectParent60 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_subscription_grouped_allocation_price.rb b/lib/orb/models/new_subscription_grouped_allocation_price.rb index acbfdbe2..cf363a0f 100644 --- a/lib/orb/models/new_subscription_grouped_allocation_price.rb +++ b/lib/orb/models/new_subscription_grouped_allocation_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionGroupedAllocationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionGroupedAllocationPrice::ConversionRateConfig }, + union: -> { Orb::NewSubscriptionGroupedAllocationPrice::UnnamedTypeWithobjectParent61 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewSubscriptionGroupedAllocationPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_subscription_grouped_tiered_package_price.rb b/lib/orb/models/new_subscription_grouped_tiered_package_price.rb index e30c4205..269ab8d4 100644 --- a/lib/orb/models/new_subscription_grouped_tiered_package_price.rb +++ b/lib/orb/models/new_subscription_grouped_tiered_package_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionGroupedTieredPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionGroupedTieredPackagePrice::ConversionRateConfig }, + union: -> { Orb::NewSubscriptionGroupedTieredPackagePrice::UnnamedTypeWithobjectParent62 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewSubscriptionGroupedTieredPackagePrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_subscription_grouped_tiered_price.rb b/lib/orb/models/new_subscription_grouped_tiered_price.rb index 4339e5bf..07965b88 100644 --- a/lib/orb/models/new_subscription_grouped_tiered_price.rb +++ b/lib/orb/models/new_subscription_grouped_tiered_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionGroupedTieredPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionGroupedTieredPrice::ConversionRateConfig }, + union: -> { Orb::NewSubscriptionGroupedTieredPrice::UnnamedTypeWithobjectParent63 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewSubscriptionGroupedTieredPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_subscription_grouped_with_metered_minimum_price.rb b/lib/orb/models/new_subscription_grouped_with_metered_minimum_price.rb index ac731464..4505390b 100644 --- a/lib/orb/models/new_subscription_grouped_with_metered_minimum_price.rb +++ b/lib/orb/models/new_subscription_grouped_with_metered_minimum_price.rb @@ -63,7 +63,9 @@ class NewSubscriptionGroupedWithMeteredMinimumPrice < Orb::Internal::Type::BaseM # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::ConversionRateConfig }, + union: -> { + Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::UnnamedTypeWithobjectParent64 + }, nil?: true # @!attribute currency @@ -186,22 +188,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_subscription_grouped_with_prorated_minimum_price.rb b/lib/orb/models/new_subscription_grouped_with_prorated_minimum_price.rb index ab3ea7c1..a3bce400 100644 --- a/lib/orb/models/new_subscription_grouped_with_prorated_minimum_price.rb +++ b/lib/orb/models/new_subscription_grouped_with_prorated_minimum_price.rb @@ -63,7 +63,9 @@ class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::Internal::Type::Base # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionGroupedWithProratedMinimumPrice::ConversionRateConfig }, + union: -> { + Orb::NewSubscriptionGroupedWithProratedMinimumPrice::UnnamedTypeWithobjectParent65 + }, nil?: true # @!attribute currency @@ -186,22 +188,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_subscription_matrix_price.rb b/lib/orb/models/new_subscription_matrix_price.rb index ce963e9d..36c0903a 100644 --- a/lib/orb/models/new_subscription_matrix_price.rb +++ b/lib/orb/models/new_subscription_matrix_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionMatrixPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionMatrixPrice::ConversionRateConfig }, + union: -> { Orb::NewSubscriptionMatrixPrice::UnnamedTypeWithobjectParent66 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewSubscriptionMatrixPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_subscription_matrix_with_allocation_price.rb b/lib/orb/models/new_subscription_matrix_with_allocation_price.rb index 89cc310a..90b6148b 100644 --- a/lib/orb/models/new_subscription_matrix_with_allocation_price.rb +++ b/lib/orb/models/new_subscription_matrix_with_allocation_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionMatrixWithAllocationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionMatrixWithAllocationPrice::ConversionRateConfig }, + union: -> { Orb::NewSubscriptionMatrixWithAllocationPrice::UnnamedTypeWithobjectParent67 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewSubscriptionMatrixWithAllocationPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_subscription_matrix_with_display_name_price.rb b/lib/orb/models/new_subscription_matrix_with_display_name_price.rb index 3fa1a290..8c82d2fb 100644 --- a/lib/orb/models/new_subscription_matrix_with_display_name_price.rb +++ b/lib/orb/models/new_subscription_matrix_with_display_name_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionMatrixWithDisplayNamePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionMatrixWithDisplayNamePrice::ConversionRateConfig }, + union: -> { Orb::NewSubscriptionMatrixWithDisplayNamePrice::UnnamedTypeWithobjectParent68 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_subscription_max_group_tiered_package_price.rb b/lib/orb/models/new_subscription_max_group_tiered_package_price.rb index dc32adb5..cffef05a 100644 --- a/lib/orb/models/new_subscription_max_group_tiered_package_price.rb +++ b/lib/orb/models/new_subscription_max_group_tiered_package_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionMaxGroupTieredPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionMaxGroupTieredPackagePrice::ConversionRateConfig }, + union: -> { Orb::NewSubscriptionMaxGroupTieredPackagePrice::UnnamedTypeWithobjectParent69 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_subscription_package_price.rb b/lib/orb/models/new_subscription_package_price.rb index d8c94174..97141dbe 100644 --- a/lib/orb/models/new_subscription_package_price.rb +++ b/lib/orb/models/new_subscription_package_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionPackagePrice::ConversionRateConfig }, + union: -> { Orb::NewSubscriptionPackagePrice::UnnamedTypeWithobjectParent70 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewSubscriptionPackagePrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_subscription_package_with_allocation_price.rb b/lib/orb/models/new_subscription_package_with_allocation_price.rb index c61b563a..96e07e53 100644 --- a/lib/orb/models/new_subscription_package_with_allocation_price.rb +++ b/lib/orb/models/new_subscription_package_with_allocation_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionPackageWithAllocationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionPackageWithAllocationPrice::ConversionRateConfig }, + union: -> { Orb::NewSubscriptionPackageWithAllocationPrice::UnnamedTypeWithobjectParent71 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewSubscriptionPackageWithAllocationPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rb b/lib/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rb index 931e2dbf..c4b18efa 100644 --- a/lib/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rb +++ b/lib/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rb @@ -64,7 +64,9 @@ class NewSubscriptionScalableMatrixWithTieredPricingPrice < Orb::Internal::Type: # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ConversionRateConfig }, + union: -> { + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::UnnamedTypeWithobjectParent72 + }, nil?: true # @!attribute currency @@ -188,22 +190,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rb b/lib/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rb index 5910080d..8efad010 100644 --- a/lib/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rb +++ b/lib/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rb @@ -64,7 +64,9 @@ class NewSubscriptionScalableMatrixWithUnitPricingPrice < Orb::Internal::Type::B # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::ConversionRateConfig }, + union: -> { + Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::UnnamedTypeWithobjectParent73 + }, nil?: true # @!attribute currency @@ -188,22 +190,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_subscription_threshold_total_amount_price.rb b/lib/orb/models/new_subscription_threshold_total_amount_price.rb index c68e0f4f..2cec6b1c 100644 --- a/lib/orb/models/new_subscription_threshold_total_amount_price.rb +++ b/lib/orb/models/new_subscription_threshold_total_amount_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionThresholdTotalAmountPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionThresholdTotalAmountPrice::ConversionRateConfig }, + union: -> { Orb::NewSubscriptionThresholdTotalAmountPrice::UnnamedTypeWithobjectParent74 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewSubscriptionThresholdTotalAmountPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_subscription_tier_with_proration_price.rb b/lib/orb/models/new_subscription_tier_with_proration_price.rb index 94d868a6..9ba1f634 100644 --- a/lib/orb/models/new_subscription_tier_with_proration_price.rb +++ b/lib/orb/models/new_subscription_tier_with_proration_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionTierWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionTierWithProrationPrice::ConversionRateConfig }, + union: -> { Orb::NewSubscriptionTierWithProrationPrice::UnnamedTypeWithobjectParent80 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewSubscriptionTierWithProrationPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_subscription_tiered_bps_price.rb b/lib/orb/models/new_subscription_tiered_bps_price.rb index e3ac3f15..18b790bd 100644 --- a/lib/orb/models/new_subscription_tiered_bps_price.rb +++ b/lib/orb/models/new_subscription_tiered_bps_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionTieredBPSPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionTieredBPSPrice::ConversionRateConfig }, + union: -> { Orb::NewSubscriptionTieredBPSPrice::UnnamedTypeWithobjectParent75 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewSubscriptionTieredBPSPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_subscription_tiered_package_price.rb b/lib/orb/models/new_subscription_tiered_package_price.rb index 90a9c94c..8ffc96cc 100644 --- a/lib/orb/models/new_subscription_tiered_package_price.rb +++ b/lib/orb/models/new_subscription_tiered_package_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionTieredPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionTieredPackagePrice::ConversionRateConfig }, + union: -> { Orb::NewSubscriptionTieredPackagePrice::UnnamedTypeWithobjectParent76 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewSubscriptionTieredPackagePrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_subscription_tiered_package_with_minimum_price.rb b/lib/orb/models/new_subscription_tiered_package_with_minimum_price.rb index 2f214d5d..140d5239 100644 --- a/lib/orb/models/new_subscription_tiered_package_with_minimum_price.rb +++ b/lib/orb/models/new_subscription_tiered_package_with_minimum_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionTieredPackageWithMinimumPrice < Orb::Internal::Type::BaseMo # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionTieredPackageWithMinimumPrice::ConversionRateConfig }, + union: -> { Orb::NewSubscriptionTieredPackageWithMinimumPrice::UnnamedTypeWithobjectParent77 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_subscription_tiered_price.rb b/lib/orb/models/new_subscription_tiered_price.rb index 07e301b1..5e509cbc 100644 --- a/lib/orb/models/new_subscription_tiered_price.rb +++ b/lib/orb/models/new_subscription_tiered_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionTieredPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionTieredPrice::ConversionRateConfig }, + union: -> { Orb::NewSubscriptionTieredPrice::UnnamedTypeWithobjectParent78 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewSubscriptionTieredPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_subscription_tiered_with_minimum_price.rb b/lib/orb/models/new_subscription_tiered_with_minimum_price.rb index 519d989b..6628f480 100644 --- a/lib/orb/models/new_subscription_tiered_with_minimum_price.rb +++ b/lib/orb/models/new_subscription_tiered_with_minimum_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionTieredWithMinimumPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionTieredWithMinimumPrice::ConversionRateConfig }, + union: -> { Orb::NewSubscriptionTieredWithMinimumPrice::UnnamedTypeWithobjectParent79 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewSubscriptionTieredWithMinimumPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_subscription_unit_price.rb b/lib/orb/models/new_subscription_unit_price.rb index 4cf03072..09392a40 100644 --- a/lib/orb/models/new_subscription_unit_price.rb +++ b/lib/orb/models/new_subscription_unit_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionUnitPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionUnitPrice::ConversionRateConfig }, + union: -> { Orb::NewSubscriptionUnitPrice::UnnamedTypeWithobjectParent81 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewSubscriptionUnitPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_subscription_unit_with_percent_price.rb b/lib/orb/models/new_subscription_unit_with_percent_price.rb index e57a396c..8a2282b1 100644 --- a/lib/orb/models/new_subscription_unit_with_percent_price.rb +++ b/lib/orb/models/new_subscription_unit_with_percent_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionUnitWithPercentPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionUnitWithPercentPrice::ConversionRateConfig }, + union: -> { Orb::NewSubscriptionUnitWithPercentPrice::UnnamedTypeWithobjectParent82 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewSubscriptionUnitWithPercentPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/new_subscription_unit_with_proration_price.rb b/lib/orb/models/new_subscription_unit_with_proration_price.rb index 7801b499..4367f3df 100644 --- a/lib/orb/models/new_subscription_unit_with_proration_price.rb +++ b/lib/orb/models/new_subscription_unit_with_proration_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionUnitWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionUnitWithProrationPrice::ConversionRateConfig }, + union: -> { Orb::NewSubscriptionUnitWithProrationPrice::UnnamedTypeWithobjectParent83 }, nil?: true # @!attribute currency @@ -186,22 +186,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - # - # @see Orb::Models::NewSubscriptionUnitWithProrationPrice#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/lib/orb/models/price.rb b/lib/orb/models/price.rb index a5f45b84..b0b58298 100644 --- a/lib/orb/models/price.rb +++ b/lib/orb/models/price.rb @@ -104,7 +104,9 @@ class Unit < Orb::Internal::Type::BaseModel # @!attribute conversion_rate_config # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - required :conversion_rate_config, union: -> { Orb::Price::Unit::ConversionRateConfig }, nil?: true + required :conversion_rate_config, + union: -> { Orb::Price::Unit::UnnamedTypeWithobjectParent84 }, + nil?: true # @!attribute created_at # @@ -288,20 +290,6 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::Unit#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end - # @see Orb::Models::Price::Unit#price_type module PriceType extend Orb::Internal::Type::Enum @@ -343,7 +331,9 @@ class Package < Orb::Internal::Type::BaseModel # @!attribute conversion_rate_config # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - required :conversion_rate_config, union: -> { Orb::Price::Package::ConversionRateConfig }, nil?: true + required :conversion_rate_config, + union: -> { Orb::Price::Package::UnnamedTypeWithobjectParent85 }, + nil?: true # @!attribute created_at # @@ -527,20 +517,6 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::Package#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end - # @see Orb::Models::Price::Package#price_type module PriceType extend Orb::Internal::Type::Enum @@ -582,7 +558,9 @@ class Matrix < Orb::Internal::Type::BaseModel # @!attribute conversion_rate_config # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - required :conversion_rate_config, union: -> { Orb::Price::Matrix::ConversionRateConfig }, nil?: true + required :conversion_rate_config, + union: -> { Orb::Price::Matrix::UnnamedTypeWithobjectParent86 }, + nil?: true # @!attribute created_at # @@ -766,20 +744,6 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::Matrix#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end - # @see Orb::Models::Price::Matrix#price_type module PriceType extend Orb::Internal::Type::Enum @@ -821,7 +785,9 @@ class Tiered < Orb::Internal::Type::BaseModel # @!attribute conversion_rate_config # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - required :conversion_rate_config, union: -> { Orb::Price::Tiered::ConversionRateConfig }, nil?: true + required :conversion_rate_config, + union: -> { Orb::Price::Tiered::UnnamedTypeWithobjectParent87 }, + nil?: true # @!attribute created_at # @@ -1005,20 +971,6 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::Tiered#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end - # @see Orb::Models::Price::Tiered#price_type module PriceType extend Orb::Internal::Type::Enum @@ -1061,9 +1013,7 @@ class TieredBPS < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { - Orb::Price::TieredBPS::ConversionRateConfig - }, + union: -> { Orb::Price::TieredBPS::UnnamedTypeWithobjectParent88 }, nil?: true # @!attribute created_at @@ -1248,20 +1198,6 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::TieredBPS#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end - # @see Orb::Models::Price::TieredBPS#price_type module PriceType extend Orb::Internal::Type::Enum @@ -1308,7 +1244,11 @@ class BPS < Orb::Internal::Type::BaseModel # @!attribute conversion_rate_config # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - required :conversion_rate_config, union: -> { Orb::Price::BPS::ConversionRateConfig }, nil?: true + required :conversion_rate_config, + union: -> { + Orb::Price::BPS::UnnamedTypeWithobjectParent89 + }, + nil?: true # @!attribute created_at # @@ -1487,20 +1427,6 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::BPS#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end - # @see Orb::Models::Price::BPS#price_type module PriceType extend Orb::Internal::Type::Enum @@ -1547,7 +1473,9 @@ class BulkBPS < Orb::Internal::Type::BaseModel # @!attribute conversion_rate_config # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - required :conversion_rate_config, union: -> { Orb::Price::BulkBPS::ConversionRateConfig }, nil?: true + required :conversion_rate_config, + union: -> { Orb::Price::BulkBPS::UnnamedTypeWithobjectParent90 }, + nil?: true # @!attribute created_at # @@ -1726,20 +1654,6 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::BulkBPS#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end - # @see Orb::Models::Price::BulkBPS#price_type module PriceType extend Orb::Internal::Type::Enum @@ -1786,7 +1700,9 @@ class Bulk < Orb::Internal::Type::BaseModel # @!attribute conversion_rate_config # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - required :conversion_rate_config, union: -> { Orb::Price::Bulk::ConversionRateConfig }, nil?: true + required :conversion_rate_config, + union: -> { Orb::Price::Bulk::UnnamedTypeWithobjectParent91 }, + nil?: true # @!attribute created_at # @@ -1965,20 +1881,6 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::Bulk#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end - # @see Orb::Models::Price::Bulk#price_type module PriceType extend Orb::Internal::Type::Enum @@ -2021,7 +1923,7 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::ThresholdTotalAmount::ConversionRateConfig }, + union: -> { Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent92 }, nil?: true # @!attribute created_at @@ -2206,20 +2108,6 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::ThresholdTotalAmount#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end - # @see Orb::Models::Price::ThresholdTotalAmount#price_type module PriceType extend Orb::Internal::Type::Enum @@ -2262,7 +2150,7 @@ class TieredPackage < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::TieredPackage::ConversionRateConfig }, + union: -> { Orb::Price::TieredPackage::UnnamedTypeWithobjectParent93 }, nil?: true # @!attribute created_at @@ -2447,20 +2335,6 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::TieredPackage#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end - # @see Orb::Models::Price::TieredPackage#price_type module PriceType extend Orb::Internal::Type::Enum @@ -2503,7 +2377,7 @@ class GroupedTiered < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::GroupedTiered::ConversionRateConfig }, + union: -> { Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent94 }, nil?: true # @!attribute created_at @@ -2688,20 +2562,6 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::GroupedTiered#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end - # @see Orb::Models::Price::GroupedTiered#price_type module PriceType extend Orb::Internal::Type::Enum @@ -2744,7 +2604,7 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::TieredWithMinimum::ConversionRateConfig }, + union: -> { Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent95 }, nil?: true # @!attribute created_at @@ -2929,20 +2789,6 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::TieredWithMinimum#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end - # @see Orb::Models::Price::TieredWithMinimum#price_type module PriceType extend Orb::Internal::Type::Enum @@ -2985,7 +2831,7 @@ class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::TieredPackageWithMinimum::ConversionRateConfig }, + union: -> { Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent96 }, nil?: true # @!attribute created_at @@ -3170,20 +3016,6 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::TieredPackageWithMinimum#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end - # @see Orb::Models::Price::TieredPackageWithMinimum#price_type module PriceType extend Orb::Internal::Type::Enum @@ -3226,7 +3058,7 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::PackageWithAllocation::ConversionRateConfig }, + union: -> { Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent97 }, nil?: true # @!attribute created_at @@ -3411,20 +3243,6 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::PackageWithAllocation#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end - # @see Orb::Models::Price::PackageWithAllocation#price_type module PriceType extend Orb::Internal::Type::Enum @@ -3467,7 +3285,7 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::UnitWithPercent::ConversionRateConfig }, + union: -> { Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent98 }, nil?: true # @!attribute created_at @@ -3652,20 +3470,6 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::UnitWithPercent#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end - # @see Orb::Models::Price::UnitWithPercent#price_type module PriceType extend Orb::Internal::Type::Enum @@ -3708,7 +3512,7 @@ class MatrixWithAllocation < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::MatrixWithAllocation::ConversionRateConfig }, + union: -> { Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent99 }, nil?: true # @!attribute created_at @@ -3893,20 +3697,6 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::MatrixWithAllocation#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end - # @see Orb::Models::Price::MatrixWithAllocation#price_type module PriceType extend Orb::Internal::Type::Enum @@ -3949,7 +3739,7 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::TieredWithProration::ConversionRateConfig }, + union: -> { Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent100 }, nil?: true # @!attribute created_at @@ -4134,20 +3924,6 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::TieredWithProration#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end - # @see Orb::Models::Price::TieredWithProration#price_type module PriceType extend Orb::Internal::Type::Enum @@ -4190,7 +3966,7 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::UnitWithProration::ConversionRateConfig }, + union: -> { Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent101 }, nil?: true # @!attribute created_at @@ -4375,20 +4151,6 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::UnitWithProration#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end - # @see Orb::Models::Price::UnitWithProration#price_type module PriceType extend Orb::Internal::Type::Enum @@ -4431,7 +4193,7 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::GroupedAllocation::ConversionRateConfig }, + union: -> { Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent102 }, nil?: true # @!attribute created_at @@ -4616,20 +4378,6 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::GroupedAllocation#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end - # @see Orb::Models::Price::GroupedAllocation#price_type module PriceType extend Orb::Internal::Type::Enum @@ -4672,7 +4420,7 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::GroupedWithProratedMinimum::ConversionRateConfig }, + union: -> { Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent103 }, nil?: true # @!attribute created_at @@ -4857,20 +4605,6 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::GroupedWithProratedMinimum#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end - # @see Orb::Models::Price::GroupedWithProratedMinimum#price_type module PriceType extend Orb::Internal::Type::Enum @@ -4913,7 +4647,7 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::GroupedWithMeteredMinimum::ConversionRateConfig }, + union: -> { Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent104 }, nil?: true # @!attribute created_at @@ -5098,20 +4832,6 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::GroupedWithMeteredMinimum#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end - # @see Orb::Models::Price::GroupedWithMeteredMinimum#price_type module PriceType extend Orb::Internal::Type::Enum @@ -5154,7 +4874,7 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::MatrixWithDisplayName::ConversionRateConfig }, + union: -> { Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent105 }, nil?: true # @!attribute created_at @@ -5339,20 +5059,6 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::MatrixWithDisplayName#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end - # @see Orb::Models::Price::MatrixWithDisplayName#price_type module PriceType extend Orb::Internal::Type::Enum @@ -5400,7 +5106,7 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::BulkWithProration::ConversionRateConfig }, + union: -> { Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent106 }, nil?: true # @!attribute created_at @@ -5580,20 +5286,6 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::BulkWithProration#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end - # @see Orb::Models::Price::BulkWithProration#price_type module PriceType extend Orb::Internal::Type::Enum @@ -5636,7 +5328,7 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::GroupedTieredPackage::ConversionRateConfig }, + union: -> { Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent107 }, nil?: true # @!attribute created_at @@ -5821,20 +5513,6 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::GroupedTieredPackage#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end - # @see Orb::Models::Price::GroupedTieredPackage#price_type module PriceType extend Orb::Internal::Type::Enum @@ -5877,7 +5555,7 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::MaxGroupTieredPackage::ConversionRateConfig }, + union: -> { Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent108 }, nil?: true # @!attribute created_at @@ -6062,20 +5740,6 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::MaxGroupTieredPackage#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end - # @see Orb::Models::Price::MaxGroupTieredPackage#price_type module PriceType extend Orb::Internal::Type::Enum @@ -6118,7 +5782,7 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::ScalableMatrixWithUnitPricing::ConversionRateConfig }, + union: -> { Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent109 }, nil?: true # @!attribute created_at @@ -6304,20 +5968,6 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::ScalableMatrixWithUnitPricing#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end - # @see Orb::Models::Price::ScalableMatrixWithUnitPricing#price_type module PriceType extend Orb::Internal::Type::Enum @@ -6360,7 +6010,7 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::ScalableMatrixWithTieredPricing::ConversionRateConfig }, + union: -> { Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent110 }, nil?: true # @!attribute created_at @@ -6546,20 +6196,6 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::ScalableMatrixWithTieredPricing#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end - # @see Orb::Models::Price::ScalableMatrixWithTieredPricing#price_type module PriceType extend Orb::Internal::Type::Enum @@ -6602,7 +6238,7 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::CumulativeGroupedBulk::ConversionRateConfig }, + union: -> { Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent111 }, nil?: true # @!attribute created_at @@ -6787,20 +6423,6 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::CumulativeGroupedBulk#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end - # @see Orb::Models::Price::CumulativeGroupedBulk#price_type module PriceType extend Orb::Internal::Type::Enum @@ -6843,7 +6465,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig }, + union: -> { Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent112 }, nil?: true # @!attribute created_at @@ -7029,20 +6651,6 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::GroupedWithMinMaxThresholds#conversion_rate_config - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end - # @see Orb::Models::Price::GroupedWithMinMaxThresholds#price_type module PriceType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/price_create_params.rb b/lib/orb/models/price_create_params.rb index fb9cc042..153473e4 100644 --- a/lib/orb/models/price_create_params.rb +++ b/lib/orb/models/price_create_params.rb @@ -368,20 +368,6 @@ module ModelType # @!method self.values # @return [Array] end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - discriminator :conversion_rate_type - - variant :unit, -> { Orb::UnitConversionRateConfig } - - variant :tiered, -> { Orb::TieredConversionRateConfig } - - # @!method self.variants - # @return [Array(Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig)] - end end end end diff --git a/rbi/orb/models/new_floating_bps_price.rbi b/rbi/orb/models/new_floating_bps_price.rbi index fb7f7f7a..15a0c7d2 100644 --- a/rbi/orb/models/new_floating_bps_price.rbi +++ b/rbi/orb/models/new_floating_bps_price.rbi @@ -268,27 +268,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[Orb::NewFloatingBPSPrice::ConversionRateConfig::Variants] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_floating_bulk_bps_price.rbi b/rbi/orb/models/new_floating_bulk_bps_price.rbi index 3b995868..be204eed 100644 --- a/rbi/orb/models/new_floating_bulk_bps_price.rbi +++ b/rbi/orb/models/new_floating_bulk_bps_price.rbi @@ -281,29 +281,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewFloatingBulkBPSPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_floating_bulk_price.rbi b/rbi/orb/models/new_floating_bulk_price.rbi index 2ae85f3e..72d88ab9 100644 --- a/rbi/orb/models/new_floating_bulk_price.rbi +++ b/rbi/orb/models/new_floating_bulk_price.rbi @@ -272,27 +272,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[Orb::NewFloatingBulkPrice::ConversionRateConfig::Variants] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_floating_bulk_with_proration_price.rbi b/rbi/orb/models/new_floating_bulk_with_proration_price.rbi index ea9253be..f31ffa2f 100644 --- a/rbi/orb/models/new_floating_bulk_with_proration_price.rbi +++ b/rbi/orb/models/new_floating_bulk_with_proration_price.rbi @@ -303,29 +303,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewFloatingBulkWithProrationPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_floating_cumulative_grouped_bulk_price.rbi b/rbi/orb/models/new_floating_cumulative_grouped_bulk_price.rbi index d2fe1800..1efdc6a4 100644 --- a/rbi/orb/models/new_floating_cumulative_grouped_bulk_price.rbi +++ b/rbi/orb/models/new_floating_cumulative_grouped_bulk_price.rbi @@ -310,29 +310,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewFloatingCumulativeGroupedBulkPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_floating_grouped_allocation_price.rbi b/rbi/orb/models/new_floating_grouped_allocation_price.rbi index aa9f3427..6805b9f4 100644 --- a/rbi/orb/models/new_floating_grouped_allocation_price.rbi +++ b/rbi/orb/models/new_floating_grouped_allocation_price.rbi @@ -303,29 +303,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewFloatingGroupedAllocationPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_floating_grouped_tiered_package_price.rbi b/rbi/orb/models/new_floating_grouped_tiered_package_price.rbi index aa4bf8b8..fb1c8702 100644 --- a/rbi/orb/models/new_floating_grouped_tiered_package_price.rbi +++ b/rbi/orb/models/new_floating_grouped_tiered_package_price.rbi @@ -309,29 +309,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewFloatingGroupedTieredPackagePrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_floating_grouped_tiered_price.rbi b/rbi/orb/models/new_floating_grouped_tiered_price.rbi index 25c7110e..9a6b7293 100644 --- a/rbi/orb/models/new_floating_grouped_tiered_price.rbi +++ b/rbi/orb/models/new_floating_grouped_tiered_price.rbi @@ -297,29 +297,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewFloatingGroupedTieredPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_floating_grouped_with_metered_minimum_price.rbi b/rbi/orb/models/new_floating_grouped_with_metered_minimum_price.rbi index dce6b426..d4cf55a9 100644 --- a/rbi/orb/models/new_floating_grouped_with_metered_minimum_price.rbi +++ b/rbi/orb/models/new_floating_grouped_with_metered_minimum_price.rbi @@ -320,29 +320,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewFloatingGroupedWithMeteredMinimumPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_floating_grouped_with_prorated_minimum_price.rbi b/rbi/orb/models/new_floating_grouped_with_prorated_minimum_price.rbi index b361b5e1..c76d3e59 100644 --- a/rbi/orb/models/new_floating_grouped_with_prorated_minimum_price.rbi +++ b/rbi/orb/models/new_floating_grouped_with_prorated_minimum_price.rbi @@ -320,29 +320,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewFloatingGroupedWithProratedMinimumPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_floating_matrix_price.rbi b/rbi/orb/models/new_floating_matrix_price.rbi index 7d60743a..472c54e8 100644 --- a/rbi/orb/models/new_floating_matrix_price.rbi +++ b/rbi/orb/models/new_floating_matrix_price.rbi @@ -276,29 +276,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewFloatingMatrixPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_floating_matrix_with_allocation_price.rbi b/rbi/orb/models/new_floating_matrix_with_allocation_price.rbi index 88dbf722..06f1ac89 100644 --- a/rbi/orb/models/new_floating_matrix_with_allocation_price.rbi +++ b/rbi/orb/models/new_floating_matrix_with_allocation_price.rbi @@ -317,29 +317,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewFloatingMatrixWithAllocationPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_floating_matrix_with_display_name_price.rbi b/rbi/orb/models/new_floating_matrix_with_display_name_price.rbi index c43789c1..7b470bbc 100644 --- a/rbi/orb/models/new_floating_matrix_with_display_name_price.rbi +++ b/rbi/orb/models/new_floating_matrix_with_display_name_price.rbi @@ -310,29 +310,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewFloatingMatrixWithDisplayNamePrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_floating_max_group_tiered_package_price.rbi b/rbi/orb/models/new_floating_max_group_tiered_package_price.rbi index ca741842..59357a7f 100644 --- a/rbi/orb/models/new_floating_max_group_tiered_package_price.rbi +++ b/rbi/orb/models/new_floating_max_group_tiered_package_price.rbi @@ -310,29 +310,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewFloatingMaxGroupTieredPackagePrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_floating_package_price.rbi b/rbi/orb/models/new_floating_package_price.rbi index 6451becd..e3999e17 100644 --- a/rbi/orb/models/new_floating_package_price.rbi +++ b/rbi/orb/models/new_floating_package_price.rbi @@ -278,29 +278,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewFloatingPackagePrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_floating_package_with_allocation_price.rbi b/rbi/orb/models/new_floating_package_with_allocation_price.rbi index a5023bda..ce9d1457 100644 --- a/rbi/orb/models/new_floating_package_with_allocation_price.rbi +++ b/rbi/orb/models/new_floating_package_with_allocation_price.rbi @@ -310,29 +310,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewFloatingPackageWithAllocationPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbi b/rbi/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbi index 0ad40b5f..df8872c0 100644 --- a/rbi/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbi +++ b/rbi/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbi @@ -322,29 +322,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbi b/rbi/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbi index be0cc128..49728461 100644 --- a/rbi/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbi +++ b/rbi/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbi @@ -321,29 +321,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewFloatingScalableMatrixWithUnitPricingPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_floating_threshold_total_amount_price.rbi b/rbi/orb/models/new_floating_threshold_total_amount_price.rbi index ea37b05e..998f3554 100644 --- a/rbi/orb/models/new_floating_threshold_total_amount_price.rbi +++ b/rbi/orb/models/new_floating_threshold_total_amount_price.rbi @@ -309,29 +309,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewFloatingThresholdTotalAmountPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_floating_tiered_bps_price.rbi b/rbi/orb/models/new_floating_tiered_bps_price.rbi index fd95f66a..5e8913e5 100644 --- a/rbi/orb/models/new_floating_tiered_bps_price.rbi +++ b/rbi/orb/models/new_floating_tiered_bps_price.rbi @@ -289,29 +289,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewFloatingTieredBPSPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_floating_tiered_package_price.rbi b/rbi/orb/models/new_floating_tiered_package_price.rbi index b47ffb26..b9987f0a 100644 --- a/rbi/orb/models/new_floating_tiered_package_price.rbi +++ b/rbi/orb/models/new_floating_tiered_package_price.rbi @@ -297,29 +297,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewFloatingTieredPackagePrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_floating_tiered_package_with_minimum_price.rbi b/rbi/orb/models/new_floating_tiered_package_with_minimum_price.rbi index 8b4ff4be..86545668 100644 --- a/rbi/orb/models/new_floating_tiered_package_with_minimum_price.rbi +++ b/rbi/orb/models/new_floating_tiered_package_with_minimum_price.rbi @@ -320,29 +320,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewFloatingTieredPackageWithMinimumPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_floating_tiered_price.rbi b/rbi/orb/models/new_floating_tiered_price.rbi index abbd6bef..2a7641bd 100644 --- a/rbi/orb/models/new_floating_tiered_price.rbi +++ b/rbi/orb/models/new_floating_tiered_price.rbi @@ -276,29 +276,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewFloatingTieredPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_floating_tiered_with_minimum_price.rbi b/rbi/orb/models/new_floating_tiered_with_minimum_price.rbi index 21bc9098..669cbec9 100644 --- a/rbi/orb/models/new_floating_tiered_with_minimum_price.rbi +++ b/rbi/orb/models/new_floating_tiered_with_minimum_price.rbi @@ -303,29 +303,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewFloatingTieredWithMinimumPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_floating_tiered_with_proration_price.rbi b/rbi/orb/models/new_floating_tiered_with_proration_price.rbi index 152bd298..f9c3b169 100644 --- a/rbi/orb/models/new_floating_tiered_with_proration_price.rbi +++ b/rbi/orb/models/new_floating_tiered_with_proration_price.rbi @@ -309,29 +309,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewFloatingTieredWithProrationPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_floating_unit_price.rbi b/rbi/orb/models/new_floating_unit_price.rbi index 73abcb72..90c4b4dc 100644 --- a/rbi/orb/models/new_floating_unit_price.rbi +++ b/rbi/orb/models/new_floating_unit_price.rbi @@ -272,27 +272,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[Orb::NewFloatingUnitPrice::ConversionRateConfig::Variants] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_floating_unit_with_percent_price.rbi b/rbi/orb/models/new_floating_unit_with_percent_price.rbi index 087b5cb9..b3498b00 100644 --- a/rbi/orb/models/new_floating_unit_with_percent_price.rbi +++ b/rbi/orb/models/new_floating_unit_with_percent_price.rbi @@ -300,29 +300,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewFloatingUnitWithPercentPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_floating_unit_with_proration_price.rbi b/rbi/orb/models/new_floating_unit_with_proration_price.rbi index cc2f8e86..23a03428 100644 --- a/rbi/orb/models/new_floating_unit_with_proration_price.rbi +++ b/rbi/orb/models/new_floating_unit_with_proration_price.rbi @@ -303,29 +303,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewFloatingUnitWithProrationPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_plan_bps_price.rbi b/rbi/orb/models/new_plan_bps_price.rbi index 2b2bc653..3f4428d2 100644 --- a/rbi/orb/models/new_plan_bps_price.rbi +++ b/rbi/orb/models/new_plan_bps_price.rbi @@ -278,27 +278,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[Orb::NewPlanBPSPrice::ConversionRateConfig::Variants] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_plan_bulk_bps_price.rbi b/rbi/orb/models/new_plan_bulk_bps_price.rbi index 317416d5..d9cbb569 100644 --- a/rbi/orb/models/new_plan_bulk_bps_price.rbi +++ b/rbi/orb/models/new_plan_bulk_bps_price.rbi @@ -281,27 +281,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[Orb::NewPlanBulkBPSPrice::ConversionRateConfig::Variants] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_plan_bulk_price.rbi b/rbi/orb/models/new_plan_bulk_price.rbi index f5288131..cb9fd919 100644 --- a/rbi/orb/models/new_plan_bulk_price.rbi +++ b/rbi/orb/models/new_plan_bulk_price.rbi @@ -279,27 +279,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[Orb::NewPlanBulkPrice::ConversionRateConfig::Variants] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_plan_bulk_with_proration_price.rbi b/rbi/orb/models/new_plan_bulk_with_proration_price.rbi index 3336b818..c56f5050 100644 --- a/rbi/orb/models/new_plan_bulk_with_proration_price.rbi +++ b/rbi/orb/models/new_plan_bulk_with_proration_price.rbi @@ -309,29 +309,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewPlanBulkWithProrationPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_plan_cumulative_grouped_bulk_price.rbi b/rbi/orb/models/new_plan_cumulative_grouped_bulk_price.rbi index 39b3fc6d..6fbdef8c 100644 --- a/rbi/orb/models/new_plan_cumulative_grouped_bulk_price.rbi +++ b/rbi/orb/models/new_plan_cumulative_grouped_bulk_price.rbi @@ -315,29 +315,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewPlanCumulativeGroupedBulkPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_plan_grouped_allocation_price.rbi b/rbi/orb/models/new_plan_grouped_allocation_price.rbi index 95bb69dc..a47a8c14 100644 --- a/rbi/orb/models/new_plan_grouped_allocation_price.rbi +++ b/rbi/orb/models/new_plan_grouped_allocation_price.rbi @@ -309,29 +309,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewPlanGroupedAllocationPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_plan_grouped_tiered_package_price.rbi b/rbi/orb/models/new_plan_grouped_tiered_package_price.rbi index b5629419..95f33580 100644 --- a/rbi/orb/models/new_plan_grouped_tiered_package_price.rbi +++ b/rbi/orb/models/new_plan_grouped_tiered_package_price.rbi @@ -315,29 +315,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewPlanGroupedTieredPackagePrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_plan_grouped_tiered_price.rbi b/rbi/orb/models/new_plan_grouped_tiered_price.rbi index 839775ee..ac803a8d 100644 --- a/rbi/orb/models/new_plan_grouped_tiered_price.rbi +++ b/rbi/orb/models/new_plan_grouped_tiered_price.rbi @@ -298,29 +298,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewPlanGroupedTieredPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_plan_grouped_with_metered_minimum_price.rbi b/rbi/orb/models/new_plan_grouped_with_metered_minimum_price.rbi index 5012c750..e326ae88 100644 --- a/rbi/orb/models/new_plan_grouped_with_metered_minimum_price.rbi +++ b/rbi/orb/models/new_plan_grouped_with_metered_minimum_price.rbi @@ -322,29 +322,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewPlanGroupedWithMeteredMinimumPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_plan_grouped_with_prorated_minimum_price.rbi b/rbi/orb/models/new_plan_grouped_with_prorated_minimum_price.rbi index 1cc4e82a..7b0ffcf4 100644 --- a/rbi/orb/models/new_plan_grouped_with_prorated_minimum_price.rbi +++ b/rbi/orb/models/new_plan_grouped_with_prorated_minimum_price.rbi @@ -327,29 +327,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewPlanGroupedWithProratedMinimumPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_plan_matrix_price.rbi b/rbi/orb/models/new_plan_matrix_price.rbi index 1d1fdaad..71b024b9 100644 --- a/rbi/orb/models/new_plan_matrix_price.rbi +++ b/rbi/orb/models/new_plan_matrix_price.rbi @@ -281,27 +281,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[Orb::NewPlanMatrixPrice::ConversionRateConfig::Variants] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_plan_matrix_with_allocation_price.rbi b/rbi/orb/models/new_plan_matrix_with_allocation_price.rbi index d04ddad5..1950f936 100644 --- a/rbi/orb/models/new_plan_matrix_with_allocation_price.rbi +++ b/rbi/orb/models/new_plan_matrix_with_allocation_price.rbi @@ -323,29 +323,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewPlanMatrixWithAllocationPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_plan_matrix_with_display_name_price.rbi b/rbi/orb/models/new_plan_matrix_with_display_name_price.rbi index 4c28b34f..3b28c48c 100644 --- a/rbi/orb/models/new_plan_matrix_with_display_name_price.rbi +++ b/rbi/orb/models/new_plan_matrix_with_display_name_price.rbi @@ -315,29 +315,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewPlanMatrixWithDisplayNamePrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_plan_max_group_tiered_package_price.rbi b/rbi/orb/models/new_plan_max_group_tiered_package_price.rbi index fd39fcd3..e4e6f42b 100644 --- a/rbi/orb/models/new_plan_max_group_tiered_package_price.rbi +++ b/rbi/orb/models/new_plan_max_group_tiered_package_price.rbi @@ -315,29 +315,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewPlanMaxGroupTieredPackagePrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_plan_package_price.rbi b/rbi/orb/models/new_plan_package_price.rbi index 000e79af..bdc4ea63 100644 --- a/rbi/orb/models/new_plan_package_price.rbi +++ b/rbi/orb/models/new_plan_package_price.rbi @@ -281,27 +281,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[Orb::NewPlanPackagePrice::ConversionRateConfig::Variants] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_plan_package_with_allocation_price.rbi b/rbi/orb/models/new_plan_package_with_allocation_price.rbi index 65973845..55290bfc 100644 --- a/rbi/orb/models/new_plan_package_with_allocation_price.rbi +++ b/rbi/orb/models/new_plan_package_with_allocation_price.rbi @@ -315,29 +315,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewPlanPackageWithAllocationPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbi b/rbi/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbi index c599c34d..e88561b3 100644 --- a/rbi/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbi +++ b/rbi/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbi @@ -334,29 +334,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewPlanScalableMatrixWithTieredPricingPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbi b/rbi/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbi index 05db751a..f07426ad 100644 --- a/rbi/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbi +++ b/rbi/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbi @@ -333,29 +333,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewPlanScalableMatrixWithUnitPricingPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_plan_threshold_total_amount_price.rbi b/rbi/orb/models/new_plan_threshold_total_amount_price.rbi index 7d02e8ac..173d8628 100644 --- a/rbi/orb/models/new_plan_threshold_total_amount_price.rbi +++ b/rbi/orb/models/new_plan_threshold_total_amount_price.rbi @@ -315,29 +315,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewPlanThresholdTotalAmountPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_plan_tier_with_proration_price.rbi b/rbi/orb/models/new_plan_tier_with_proration_price.rbi index 65e71bcf..027b3349 100644 --- a/rbi/orb/models/new_plan_tier_with_proration_price.rbi +++ b/rbi/orb/models/new_plan_tier_with_proration_price.rbi @@ -309,29 +309,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewPlanTierWithProrationPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_plan_tiered_bps_price.rbi b/rbi/orb/models/new_plan_tiered_bps_price.rbi index 87fa287e..26cd5afb 100644 --- a/rbi/orb/models/new_plan_tiered_bps_price.rbi +++ b/rbi/orb/models/new_plan_tiered_bps_price.rbi @@ -288,27 +288,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[Orb::NewPlanTieredBPSPrice::ConversionRateConfig::Variants] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_plan_tiered_package_price.rbi b/rbi/orb/models/new_plan_tiered_package_price.rbi index f62b57ff..8da63a21 100644 --- a/rbi/orb/models/new_plan_tiered_package_price.rbi +++ b/rbi/orb/models/new_plan_tiered_package_price.rbi @@ -298,29 +298,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewPlanTieredPackagePrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_plan_tiered_package_with_minimum_price.rbi b/rbi/orb/models/new_plan_tiered_package_with_minimum_price.rbi index 7ddc3800..5c485d03 100644 --- a/rbi/orb/models/new_plan_tiered_package_with_minimum_price.rbi +++ b/rbi/orb/models/new_plan_tiered_package_with_minimum_price.rbi @@ -321,29 +321,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewPlanTieredPackageWithMinimumPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_plan_tiered_price.rbi b/rbi/orb/models/new_plan_tiered_price.rbi index 6cdfb4c5..b00b191f 100644 --- a/rbi/orb/models/new_plan_tiered_price.rbi +++ b/rbi/orb/models/new_plan_tiered_price.rbi @@ -281,27 +281,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[Orb::NewPlanTieredPrice::ConversionRateConfig::Variants] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_plan_tiered_with_minimum_price.rbi b/rbi/orb/models/new_plan_tiered_with_minimum_price.rbi index 1cc539cc..6b1c0757 100644 --- a/rbi/orb/models/new_plan_tiered_with_minimum_price.rbi +++ b/rbi/orb/models/new_plan_tiered_with_minimum_price.rbi @@ -309,29 +309,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewPlanTieredWithMinimumPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_plan_unit_price.rbi b/rbi/orb/models/new_plan_unit_price.rbi index 08113f80..2a4ed766 100644 --- a/rbi/orb/models/new_plan_unit_price.rbi +++ b/rbi/orb/models/new_plan_unit_price.rbi @@ -279,27 +279,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[Orb::NewPlanUnitPrice::ConversionRateConfig::Variants] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_plan_unit_with_percent_price.rbi b/rbi/orb/models/new_plan_unit_with_percent_price.rbi index 45676b55..65135664 100644 --- a/rbi/orb/models/new_plan_unit_with_percent_price.rbi +++ b/rbi/orb/models/new_plan_unit_with_percent_price.rbi @@ -307,29 +307,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewPlanUnitWithPercentPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_plan_unit_with_proration_price.rbi b/rbi/orb/models/new_plan_unit_with_proration_price.rbi index dd4be0cd..ddeba166 100644 --- a/rbi/orb/models/new_plan_unit_with_proration_price.rbi +++ b/rbi/orb/models/new_plan_unit_with_proration_price.rbi @@ -309,29 +309,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewPlanUnitWithProrationPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_subscription_bps_price.rbi b/rbi/orb/models/new_subscription_bps_price.rbi index 6e50631b..7e1a8488 100644 --- a/rbi/orb/models/new_subscription_bps_price.rbi +++ b/rbi/orb/models/new_subscription_bps_price.rbi @@ -289,29 +289,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewSubscriptionBPSPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_subscription_bulk_bps_price.rbi b/rbi/orb/models/new_subscription_bulk_bps_price.rbi index 16a670ae..4f32fecc 100644 --- a/rbi/orb/models/new_subscription_bulk_bps_price.rbi +++ b/rbi/orb/models/new_subscription_bulk_bps_price.rbi @@ -310,29 +310,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewSubscriptionBulkBPSPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_subscription_bulk_price.rbi b/rbi/orb/models/new_subscription_bulk_price.rbi index 7b6e6127..d32fc825 100644 --- a/rbi/orb/models/new_subscription_bulk_price.rbi +++ b/rbi/orb/models/new_subscription_bulk_price.rbi @@ -293,29 +293,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewSubscriptionBulkPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_subscription_bulk_with_proration_price.rbi b/rbi/orb/models/new_subscription_bulk_with_proration_price.rbi index 87b80c83..8a2559d6 100644 --- a/rbi/orb/models/new_subscription_bulk_with_proration_price.rbi +++ b/rbi/orb/models/new_subscription_bulk_with_proration_price.rbi @@ -322,29 +322,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewSubscriptionBulkWithProrationPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_subscription_cumulative_grouped_bulk_price.rbi b/rbi/orb/models/new_subscription_cumulative_grouped_bulk_price.rbi index 4521b228..88143f51 100644 --- a/rbi/orb/models/new_subscription_cumulative_grouped_bulk_price.rbi +++ b/rbi/orb/models/new_subscription_cumulative_grouped_bulk_price.rbi @@ -332,29 +332,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewSubscriptionCumulativeGroupedBulkPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_subscription_grouped_allocation_price.rbi b/rbi/orb/models/new_subscription_grouped_allocation_price.rbi index c828abb5..34d184a6 100644 --- a/rbi/orb/models/new_subscription_grouped_allocation_price.rbi +++ b/rbi/orb/models/new_subscription_grouped_allocation_price.rbi @@ -322,29 +322,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewSubscriptionGroupedAllocationPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_subscription_grouped_tiered_package_price.rbi b/rbi/orb/models/new_subscription_grouped_tiered_package_price.rbi index 9ca4cb17..398b7217 100644 --- a/rbi/orb/models/new_subscription_grouped_tiered_package_price.rbi +++ b/rbi/orb/models/new_subscription_grouped_tiered_package_price.rbi @@ -332,29 +332,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewSubscriptionGroupedTieredPackagePrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_subscription_grouped_tiered_price.rbi b/rbi/orb/models/new_subscription_grouped_tiered_price.rbi index 873413a6..296c9e16 100644 --- a/rbi/orb/models/new_subscription_grouped_tiered_price.rbi +++ b/rbi/orb/models/new_subscription_grouped_tiered_price.rbi @@ -315,29 +315,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewSubscriptionGroupedTieredPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_subscription_grouped_with_metered_minimum_price.rbi b/rbi/orb/models/new_subscription_grouped_with_metered_minimum_price.rbi index 26b7036a..b26e6a21 100644 --- a/rbi/orb/models/new_subscription_grouped_with_metered_minimum_price.rbi +++ b/rbi/orb/models/new_subscription_grouped_with_metered_minimum_price.rbi @@ -332,29 +332,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbi b/rbi/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbi index d12d4016..73c7c9ee 100644 --- a/rbi/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbi +++ b/rbi/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbi @@ -332,29 +332,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewSubscriptionGroupedWithProratedMinimumPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_subscription_matrix_price.rbi b/rbi/orb/models/new_subscription_matrix_price.rbi index df62c081..7393db83 100644 --- a/rbi/orb/models/new_subscription_matrix_price.rbi +++ b/rbi/orb/models/new_subscription_matrix_price.rbi @@ -304,29 +304,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewSubscriptionMatrixPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_subscription_matrix_with_allocation_price.rbi b/rbi/orb/models/new_subscription_matrix_with_allocation_price.rbi index 49b7939a..aaff8e4e 100644 --- a/rbi/orb/models/new_subscription_matrix_with_allocation_price.rbi +++ b/rbi/orb/models/new_subscription_matrix_with_allocation_price.rbi @@ -340,29 +340,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewSubscriptionMatrixWithAllocationPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_subscription_matrix_with_display_name_price.rbi b/rbi/orb/models/new_subscription_matrix_with_display_name_price.rbi index 5d979b18..e91f3e48 100644 --- a/rbi/orb/models/new_subscription_matrix_with_display_name_price.rbi +++ b/rbi/orb/models/new_subscription_matrix_with_display_name_price.rbi @@ -332,29 +332,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewSubscriptionMatrixWithDisplayNamePrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_subscription_max_group_tiered_package_price.rbi b/rbi/orb/models/new_subscription_max_group_tiered_package_price.rbi index 90e21ddd..298ea888 100644 --- a/rbi/orb/models/new_subscription_max_group_tiered_package_price.rbi +++ b/rbi/orb/models/new_subscription_max_group_tiered_package_price.rbi @@ -332,29 +332,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewSubscriptionMaxGroupTieredPackagePrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_subscription_package_price.rbi b/rbi/orb/models/new_subscription_package_price.rbi index 703713ca..ea7477a9 100644 --- a/rbi/orb/models/new_subscription_package_price.rbi +++ b/rbi/orb/models/new_subscription_package_price.rbi @@ -310,29 +310,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewSubscriptionPackagePrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_subscription_package_with_allocation_price.rbi b/rbi/orb/models/new_subscription_package_with_allocation_price.rbi index 8800d1ed..81ffa370 100644 --- a/rbi/orb/models/new_subscription_package_with_allocation_price.rbi +++ b/rbi/orb/models/new_subscription_package_with_allocation_price.rbi @@ -332,29 +332,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewSubscriptionPackageWithAllocationPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbi b/rbi/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbi index e35d47fd..57f27a2e 100644 --- a/rbi/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbi +++ b/rbi/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbi @@ -334,29 +334,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbi b/rbi/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbi index 41ed14eb..a5504053 100644 --- a/rbi/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbi +++ b/rbi/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbi @@ -333,29 +333,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_subscription_threshold_total_amount_price.rbi b/rbi/orb/models/new_subscription_threshold_total_amount_price.rbi index a71b914d..8fe9bcb1 100644 --- a/rbi/orb/models/new_subscription_threshold_total_amount_price.rbi +++ b/rbi/orb/models/new_subscription_threshold_total_amount_price.rbi @@ -332,29 +332,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewSubscriptionThresholdTotalAmountPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_subscription_tier_with_proration_price.rbi b/rbi/orb/models/new_subscription_tier_with_proration_price.rbi index a8d10acb..d3b119c4 100644 --- a/rbi/orb/models/new_subscription_tier_with_proration_price.rbi +++ b/rbi/orb/models/new_subscription_tier_with_proration_price.rbi @@ -322,29 +322,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewSubscriptionTierWithProrationPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_subscription_tiered_bps_price.rbi b/rbi/orb/models/new_subscription_tiered_bps_price.rbi index 59bfe215..d1c2c736 100644 --- a/rbi/orb/models/new_subscription_tiered_bps_price.rbi +++ b/rbi/orb/models/new_subscription_tiered_bps_price.rbi @@ -312,29 +312,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewSubscriptionTieredBPSPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_subscription_tiered_package_price.rbi b/rbi/orb/models/new_subscription_tiered_package_price.rbi index 299557ec..910b14e9 100644 --- a/rbi/orb/models/new_subscription_tiered_package_price.rbi +++ b/rbi/orb/models/new_subscription_tiered_package_price.rbi @@ -315,29 +315,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewSubscriptionTieredPackagePrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_subscription_tiered_package_with_minimum_price.rbi b/rbi/orb/models/new_subscription_tiered_package_with_minimum_price.rbi index 3fedd954..1bcfde2b 100644 --- a/rbi/orb/models/new_subscription_tiered_package_with_minimum_price.rbi +++ b/rbi/orb/models/new_subscription_tiered_package_with_minimum_price.rbi @@ -332,29 +332,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewSubscriptionTieredPackageWithMinimumPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_subscription_tiered_price.rbi b/rbi/orb/models/new_subscription_tiered_price.rbi index 52d258ca..dca7bb96 100644 --- a/rbi/orb/models/new_subscription_tiered_price.rbi +++ b/rbi/orb/models/new_subscription_tiered_price.rbi @@ -304,29 +304,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewSubscriptionTieredPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_subscription_tiered_with_minimum_price.rbi b/rbi/orb/models/new_subscription_tiered_with_minimum_price.rbi index 3e75de3e..ac0c1027 100644 --- a/rbi/orb/models/new_subscription_tiered_with_minimum_price.rbi +++ b/rbi/orb/models/new_subscription_tiered_with_minimum_price.rbi @@ -322,29 +322,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewSubscriptionTieredWithMinimumPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_subscription_unit_price.rbi b/rbi/orb/models/new_subscription_unit_price.rbi index 3b72bdde..dc8956d0 100644 --- a/rbi/orb/models/new_subscription_unit_price.rbi +++ b/rbi/orb/models/new_subscription_unit_price.rbi @@ -293,29 +293,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewSubscriptionUnitPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_subscription_unit_with_percent_price.rbi b/rbi/orb/models/new_subscription_unit_with_percent_price.rbi index b7d415e7..b33067d9 100644 --- a/rbi/orb/models/new_subscription_unit_with_percent_price.rbi +++ b/rbi/orb/models/new_subscription_unit_with_percent_price.rbi @@ -321,29 +321,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewSubscriptionUnitWithPercentPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/new_subscription_unit_with_proration_price.rbi b/rbi/orb/models/new_subscription_unit_with_proration_price.rbi index fe8775e2..f984781d 100644 --- a/rbi/orb/models/new_subscription_unit_with_proration_price.rbi +++ b/rbi/orb/models/new_subscription_unit_with_proration_price.rbi @@ -322,29 +322,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::NewSubscriptionUnitWithProrationPrice::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end end end end diff --git a/rbi/orb/models/price.rbi b/rbi/orb/models/price.rbi index 6fc9e6b1..0bba9e1f 100644 --- a/rbi/orb/models/price.rbi +++ b/rbi/orb/models/price.rbi @@ -84,7 +84,9 @@ module Orb attr_accessor :conversion_rate sig do - returns(T.nilable(Orb::Price::Unit::ConversionRateConfig::Variants)) + returns( + T.nilable(Orb::Price::Unit::UnnamedTypeWithobjectParent84::Variants) + ) end attr_accessor :conversion_rate_config @@ -278,7 +280,9 @@ module Orb cadence: Orb::Price::Unit::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), conversion_rate_config: - T.nilable(Orb::Price::Unit::ConversionRateConfig::Variants), + T.nilable( + Orb::Price::Unit::UnnamedTypeWithobjectParent84::Variants + ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), currency: String, @@ -329,26 +333,6 @@ module Orb end end - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[Orb::Price::Unit::ConversionRateConfig::Variants] - ) - end - def self.variants - end - end - module PriceType extend Orb::Internal::Type::Enum @@ -406,7 +390,9 @@ module Orb sig do returns( - T.nilable(Orb::Price::Package::ConversionRateConfig::Variants) + T.nilable( + Orb::Price::Package::UnnamedTypeWithobjectParent85::Variants + ) ) end attr_accessor :conversion_rate_config @@ -601,7 +587,9 @@ module Orb cadence: Orb::Price::Package::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), conversion_rate_config: - T.nilable(Orb::Price::Package::ConversionRateConfig::Variants), + T.nilable( + Orb::Price::Package::UnnamedTypeWithobjectParent85::Variants + ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), currency: String, @@ -656,26 +644,6 @@ module Orb end end - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[Orb::Price::Package::ConversionRateConfig::Variants] - ) - end - def self.variants - end - end - module PriceType extend Orb::Internal::Type::Enum @@ -732,7 +700,11 @@ module Orb attr_accessor :conversion_rate sig do - returns(T.nilable(Orb::Price::Matrix::ConversionRateConfig::Variants)) + returns( + T.nilable( + Orb::Price::Matrix::UnnamedTypeWithobjectParent86::Variants + ) + ) end attr_accessor :conversion_rate_config @@ -926,7 +898,9 @@ module Orb cadence: Orb::Price::Matrix::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), conversion_rate_config: - T.nilable(Orb::Price::Matrix::ConversionRateConfig::Variants), + T.nilable( + Orb::Price::Matrix::UnnamedTypeWithobjectParent86::Variants + ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), currency: String, @@ -980,26 +954,6 @@ module Orb end end - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[Orb::Price::Matrix::ConversionRateConfig::Variants] - ) - end - def self.variants - end - end - module PriceType extend Orb::Internal::Type::Enum @@ -1056,7 +1010,11 @@ module Orb attr_accessor :conversion_rate sig do - returns(T.nilable(Orb::Price::Tiered::ConversionRateConfig::Variants)) + returns( + T.nilable( + Orb::Price::Tiered::UnnamedTypeWithobjectParent87::Variants + ) + ) end attr_accessor :conversion_rate_config @@ -1250,7 +1208,9 @@ module Orb cadence: Orb::Price::Tiered::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), conversion_rate_config: - T.nilable(Orb::Price::Tiered::ConversionRateConfig::Variants), + T.nilable( + Orb::Price::Tiered::UnnamedTypeWithobjectParent87::Variants + ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), currency: String, @@ -1304,26 +1264,6 @@ module Orb end end - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[Orb::Price::Tiered::ConversionRateConfig::Variants] - ) - end - def self.variants - end - end - module PriceType extend Orb::Internal::Type::Enum @@ -1381,7 +1321,9 @@ module Orb sig do returns( - T.nilable(Orb::Price::TieredBPS::ConversionRateConfig::Variants) + T.nilable( + Orb::Price::TieredBPS::UnnamedTypeWithobjectParent88::Variants + ) ) end attr_accessor :conversion_rate_config @@ -1577,7 +1519,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::TieredBPS::ConversionRateConfig::Variants + Orb::Price::TieredBPS::UnnamedTypeWithobjectParent88::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -1634,26 +1576,6 @@ module Orb end end - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[Orb::Price::TieredBPS::ConversionRateConfig::Variants] - ) - end - def self.variants - end - end - module PriceType extend Orb::Internal::Type::Enum @@ -1715,7 +1637,9 @@ module Orb attr_accessor :conversion_rate sig do - returns(T.nilable(Orb::Price::BPS::ConversionRateConfig::Variants)) + returns( + T.nilable(Orb::Price::BPS::UnnamedTypeWithobjectParent89::Variants) + ) end attr_accessor :conversion_rate_config @@ -1904,7 +1828,9 @@ module Orb cadence: Orb::Price::BPS::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), conversion_rate_config: - T.nilable(Orb::Price::BPS::ConversionRateConfig::Variants), + T.nilable( + Orb::Price::BPS::UnnamedTypeWithobjectParent89::Variants + ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), currency: String, @@ -1954,26 +1880,6 @@ module Orb end end - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[Orb::Price::BPS::ConversionRateConfig::Variants] - ) - end - def self.variants - end - end - module PriceType extend Orb::Internal::Type::Enum @@ -2035,7 +1941,9 @@ module Orb sig do returns( - T.nilable(Orb::Price::BulkBPS::ConversionRateConfig::Variants) + T.nilable( + Orb::Price::BulkBPS::UnnamedTypeWithobjectParent90::Variants + ) ) end attr_accessor :conversion_rate_config @@ -2225,7 +2133,9 @@ module Orb cadence: Orb::Price::BulkBPS::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), conversion_rate_config: - T.nilable(Orb::Price::BulkBPS::ConversionRateConfig::Variants), + T.nilable( + Orb::Price::BulkBPS::UnnamedTypeWithobjectParent90::Variants + ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), currency: String, @@ -2279,26 +2189,6 @@ module Orb end end - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[Orb::Price::BulkBPS::ConversionRateConfig::Variants] - ) - end - def self.variants - end - end - module PriceType extend Orb::Internal::Type::Enum @@ -2361,7 +2251,9 @@ module Orb attr_accessor :conversion_rate sig do - returns(T.nilable(Orb::Price::Bulk::ConversionRateConfig::Variants)) + returns( + T.nilable(Orb::Price::Bulk::UnnamedTypeWithobjectParent91::Variants) + ) end attr_accessor :conversion_rate_config @@ -2550,7 +2442,9 @@ module Orb cadence: Orb::Price::Bulk::Cadence::TaggedSymbol, conversion_rate: T.nilable(Float), conversion_rate_config: - T.nilable(Orb::Price::Bulk::ConversionRateConfig::Variants), + T.nilable( + Orb::Price::Bulk::UnnamedTypeWithobjectParent91::Variants + ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), currency: String, @@ -2600,26 +2494,6 @@ module Orb end end - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[Orb::Price::Bulk::ConversionRateConfig::Variants] - ) - end - def self.variants - end - end - module PriceType extend Orb::Internal::Type::Enum @@ -2680,7 +2554,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::ThresholdTotalAmount::ConversionRateConfig::Variants + Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent92::Variants ) ) end @@ -2876,7 +2750,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::ThresholdTotalAmount::ConversionRateConfig::Variants + Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent92::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -2956,28 +2830,6 @@ module Orb end end - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::Price::ThresholdTotalAmount::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end - module PriceType extend Orb::Internal::Type::Enum @@ -3047,7 +2899,9 @@ module Orb sig do returns( - T.nilable(Orb::Price::TieredPackage::ConversionRateConfig::Variants) + T.nilable( + Orb::Price::TieredPackage::UnnamedTypeWithobjectParent93::Variants + ) ) end attr_accessor :conversion_rate_config @@ -3240,7 +3094,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::TieredPackage::ConversionRateConfig::Variants + Orb::Price::TieredPackage::UnnamedTypeWithobjectParent93::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -3302,28 +3156,6 @@ module Orb end end - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::Price::TieredPackage::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end - module PriceType extend Orb::Internal::Type::Enum @@ -3389,7 +3221,9 @@ module Orb sig do returns( - T.nilable(Orb::Price::GroupedTiered::ConversionRateConfig::Variants) + T.nilable( + Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent94::Variants + ) ) end attr_accessor :conversion_rate_config @@ -3582,7 +3416,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::GroupedTiered::ConversionRateConfig::Variants + Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent94::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -3644,28 +3478,6 @@ module Orb end end - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::Price::GroupedTiered::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end - module PriceType extend Orb::Internal::Type::Enum @@ -3732,7 +3544,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::TieredWithMinimum::ConversionRateConfig::Variants + Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent95::Variants ) ) end @@ -3926,7 +3738,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::TieredWithMinimum::ConversionRateConfig::Variants + Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent95::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -4000,28 +3812,6 @@ module Orb end end - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::Price::TieredWithMinimum::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end - module PriceType extend Orb::Internal::Type::Enum @@ -4092,7 +3882,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::TieredPackageWithMinimum::ConversionRateConfig::Variants + Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent96::Variants ) ) end @@ -4290,7 +4080,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::TieredPackageWithMinimum::ConversionRateConfig::Variants + Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent96::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -4372,28 +4162,6 @@ module Orb end end - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::Price::TieredPackageWithMinimum::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end - module PriceType extend Orb::Internal::Type::Enum @@ -4466,7 +4234,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::PackageWithAllocation::ConversionRateConfig::Variants + Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent97::Variants ) ) end @@ -4662,7 +4430,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::PackageWithAllocation::ConversionRateConfig::Variants + Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent97::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -4742,28 +4510,6 @@ module Orb end end - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::Price::PackageWithAllocation::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end - module PriceType extend Orb::Internal::Type::Enum @@ -4834,7 +4580,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::UnitWithPercent::ConversionRateConfig::Variants + Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent98::Variants ) ) end @@ -5028,7 +4774,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::UnitWithPercent::ConversionRateConfig::Variants + Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent98::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -5093,28 +4839,6 @@ module Orb end end - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::Price::UnitWithPercent::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end - module PriceType extend Orb::Internal::Type::Enum @@ -5183,7 +4907,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::MatrixWithAllocation::ConversionRateConfig::Variants + Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent99::Variants ) ) end @@ -5388,7 +5112,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::MatrixWithAllocation::ConversionRateConfig::Variants + Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent99::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -5468,28 +5192,6 @@ module Orb end end - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::Price::MatrixWithAllocation::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end - module PriceType extend Orb::Internal::Type::Enum @@ -5560,7 +5262,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::TieredWithProration::ConversionRateConfig::Variants + Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent100::Variants ) ) end @@ -5756,7 +5458,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::TieredWithProration::ConversionRateConfig::Variants + Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent100::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -5836,28 +5538,6 @@ module Orb end end - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::Price::TieredWithProration::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end - module PriceType extend Orb::Internal::Type::Enum @@ -5926,7 +5606,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::UnitWithProration::ConversionRateConfig::Variants + Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent101::Variants ) ) end @@ -6120,7 +5800,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::UnitWithProration::ConversionRateConfig::Variants + Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent101::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -6194,28 +5874,6 @@ module Orb end end - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::Price::UnitWithProration::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end - module PriceType extend Orb::Internal::Type::Enum @@ -6284,7 +5942,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::GroupedAllocation::ConversionRateConfig::Variants + Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent102::Variants ) ) end @@ -6478,7 +6136,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::GroupedAllocation::ConversionRateConfig::Variants + Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent102::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -6552,28 +6210,6 @@ module Orb end end - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::Price::GroupedAllocation::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end - module PriceType extend Orb::Internal::Type::Enum @@ -6647,7 +6283,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::GroupedWithProratedMinimum::ConversionRateConfig::Variants + Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent103::Variants ) ) end @@ -6847,7 +6483,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::GroupedWithProratedMinimum::ConversionRateConfig::Variants + Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent103::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -6929,28 +6565,6 @@ module Orb end end - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::Price::GroupedWithProratedMinimum::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end - module PriceType extend Orb::Internal::Type::Enum @@ -7023,7 +6637,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::GroupedWithMeteredMinimum::ConversionRateConfig::Variants + Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent104::Variants ) ) end @@ -7223,7 +6837,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::GroupedWithMeteredMinimum::ConversionRateConfig::Variants + Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent104::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -7305,28 +6919,6 @@ module Orb end end - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::Price::GroupedWithMeteredMinimum::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end - module PriceType extend Orb::Internal::Type::Enum @@ -7399,7 +6991,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::MatrixWithDisplayName::ConversionRateConfig::Variants + Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent105::Variants ) ) end @@ -7595,7 +7187,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::MatrixWithDisplayName::ConversionRateConfig::Variants + Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent105::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -7675,28 +7267,6 @@ module Orb end end - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::Price::MatrixWithDisplayName::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end - module PriceType extend Orb::Internal::Type::Enum @@ -7770,7 +7340,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::BulkWithProration::ConversionRateConfig::Variants + Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent106::Variants ) ) end @@ -7962,7 +7532,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::BulkWithProration::ConversionRateConfig::Variants + Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent106::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -8035,28 +7605,6 @@ module Orb end end - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::Price::BulkWithProration::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end - module PriceType extend Orb::Internal::Type::Enum @@ -8125,7 +7673,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::GroupedTieredPackage::ConversionRateConfig::Variants + Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent107::Variants ) ) end @@ -8321,7 +7869,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::GroupedTieredPackage::ConversionRateConfig::Variants + Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent107::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -8401,28 +7949,6 @@ module Orb end end - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::Price::GroupedTieredPackage::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end - module PriceType extend Orb::Internal::Type::Enum @@ -8495,7 +8021,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::MaxGroupTieredPackage::ConversionRateConfig::Variants + Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent108::Variants ) ) end @@ -8691,7 +8217,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::MaxGroupTieredPackage::ConversionRateConfig::Variants + Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent108::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -8771,28 +8297,6 @@ module Orb end end - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::Price::MaxGroupTieredPackage::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end - module PriceType extend Orb::Internal::Type::Enum @@ -8870,7 +8374,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::ScalableMatrixWithUnitPricing::ConversionRateConfig::Variants + Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent109::Variants ) ) end @@ -9072,7 +8576,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::ScalableMatrixWithUnitPricing::ConversionRateConfig::Variants + Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent109::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -9155,28 +8659,6 @@ module Orb end end - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::Price::ScalableMatrixWithUnitPricing::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end - module PriceType extend Orb::Internal::Type::Enum @@ -9257,7 +8739,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::ScalableMatrixWithTieredPricing::ConversionRateConfig::Variants + Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent110::Variants ) ) end @@ -9459,7 +8941,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::ScalableMatrixWithTieredPricing::ConversionRateConfig::Variants + Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent110::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -9545,28 +9027,6 @@ module Orb end end - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::Price::ScalableMatrixWithTieredPricing::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end - module PriceType extend Orb::Internal::Type::Enum @@ -9642,7 +9102,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::CumulativeGroupedBulk::ConversionRateConfig::Variants + Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent111::Variants ) ) end @@ -9838,7 +9298,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::CumulativeGroupedBulk::ConversionRateConfig::Variants + Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent111::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -9918,28 +9378,6 @@ module Orb end end - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::Price::CumulativeGroupedBulk::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end - module PriceType extend Orb::Internal::Type::Enum @@ -10017,7 +9455,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig::Variants + Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent112::Variants ) ) end @@ -10217,7 +9655,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig::Variants + Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent112::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -10300,28 +9738,6 @@ module Orb end end - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[ - Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig::Variants - ] - ) - end - def self.variants - end - end - module PriceType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/price_create_params.rbi b/rbi/orb/models/price_create_params.rbi index c839108a..e74184b4 100644 --- a/rbi/orb/models/price_create_params.rbi +++ b/rbi/orb/models/price_create_params.rbi @@ -471,27 +471,6 @@ module Orb def self.values end end - - # The configuration for the rate of the price currency to the invoicing currency. - module ConversionRateConfig - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - end - - sig do - override.returns( - T::Array[Orb::PriceCreateParams::ConversionRateConfig::Variants] - ) - end - def self.variants - end - end end end end diff --git a/sig/orb/models/new_floating_bps_price.rbs b/sig/orb/models/new_floating_bps_price.rbs index 13d1d977..99165e32 100644 --- a/sig/orb/models/new_floating_bps_price.rbs +++ b/sig/orb/models/new_floating_bps_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingBPSPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingBPSPrice::unnamed_type_withobject_parent0?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingBPSPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingBPSPrice::unnamed_type_withobject_parent0? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingBPSPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewFloatingBPSPrice::unnamed_type_withobject_parent0?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingBPSPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingBPSPrice::unnamed_type_withobject_parent0?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -121,15 +121,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingBPSPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewFloatingBPSPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_floating_bulk_bps_price.rbs b/sig/orb/models/new_floating_bulk_bps_price.rbs index 5115bf64..1bd0700b 100644 --- a/sig/orb/models/new_floating_bulk_bps_price.rbs +++ b/sig/orb/models/new_floating_bulk_bps_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingBulkBPSPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingBulkBPSPrice::unnamed_type_withobject_parent1?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingBulkBPSPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingBulkBPSPrice::unnamed_type_withobject_parent1? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingBulkBPSPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewFloatingBulkBPSPrice::unnamed_type_withobject_parent1?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingBulkBPSPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingBulkBPSPrice::unnamed_type_withobject_parent1?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -121,15 +121,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingBulkBPSPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewFloatingBulkBPSPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_floating_bulk_price.rbs b/sig/orb/models/new_floating_bulk_price.rbs index 30182652..4bfded64 100644 --- a/sig/orb/models/new_floating_bulk_price.rbs +++ b/sig/orb/models/new_floating_bulk_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingBulkPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingBulkPrice::unnamed_type_withobject_parent2?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingBulkPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingBulkPrice::unnamed_type_withobject_parent2? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingBulkPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewFloatingBulkPrice::unnamed_type_withobject_parent2?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingBulkPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingBulkPrice::unnamed_type_withobject_parent2?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -121,15 +121,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingBulkPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewFloatingBulkPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_floating_bulk_with_proration_price.rbs b/sig/orb/models/new_floating_bulk_with_proration_price.rbs index 534ef280..0802ab1a 100644 --- a/sig/orb/models/new_floating_bulk_with_proration_price.rbs +++ b/sig/orb/models/new_floating_bulk_with_proration_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingBulkWithProrationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingBulkWithProrationPrice::unnamed_type_withobject_parent3?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingBulkWithProrationPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingBulkWithProrationPrice::unnamed_type_withobject_parent3? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingBulkWithProrationPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewFloatingBulkWithProrationPrice::unnamed_type_withobject_parent3?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingBulkWithProrationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingBulkWithProrationPrice::unnamed_type_withobject_parent3?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -121,15 +121,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingBulkWithProrationPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewFloatingBulkWithProrationPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_floating_cumulative_grouped_bulk_price.rbs b/sig/orb/models/new_floating_cumulative_grouped_bulk_price.rbs index 919119e0..302dbe39 100644 --- a/sig/orb/models/new_floating_cumulative_grouped_bulk_price.rbs +++ b/sig/orb/models/new_floating_cumulative_grouped_bulk_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::unnamed_type_withobject_parent4?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::unnamed_type_withobject_parent4? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::unnamed_type_withobject_parent4?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::unnamed_type_withobject_parent4?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -121,15 +121,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingCumulativeGroupedBulkPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewFloatingCumulativeGroupedBulkPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_floating_grouped_allocation_price.rbs b/sig/orb/models/new_floating_grouped_allocation_price.rbs index 11b71b8c..a72491db 100644 --- a/sig/orb/models/new_floating_grouped_allocation_price.rbs +++ b/sig/orb/models/new_floating_grouped_allocation_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedAllocationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingGroupedAllocationPrice::unnamed_type_withobject_parent5?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedAllocationPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedAllocationPrice::unnamed_type_withobject_parent5? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingGroupedAllocationPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewFloatingGroupedAllocationPrice::unnamed_type_withobject_parent5?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedAllocationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingGroupedAllocationPrice::unnamed_type_withobject_parent5?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -121,15 +121,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingGroupedAllocationPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewFloatingGroupedAllocationPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_floating_grouped_tiered_package_price.rbs b/sig/orb/models/new_floating_grouped_tiered_package_price.rbs index b1b5ad3f..52f24cc3 100644 --- a/sig/orb/models/new_floating_grouped_tiered_package_price.rbs +++ b/sig/orb/models/new_floating_grouped_tiered_package_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPackagePrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPackagePrice::unnamed_type_withobject_parent6?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPackagePrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPackagePrice::unnamed_type_withobject_parent6? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPackagePrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPackagePrice::unnamed_type_withobject_parent6?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPackagePrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPackagePrice::unnamed_type_withobject_parent6?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -121,15 +121,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingGroupedTieredPackagePrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewFloatingGroupedTieredPackagePrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_floating_grouped_tiered_price.rbs b/sig/orb/models/new_floating_grouped_tiered_price.rbs index 32063aac..d288027d 100644 --- a/sig/orb/models/new_floating_grouped_tiered_price.rbs +++ b/sig/orb/models/new_floating_grouped_tiered_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPrice::unnamed_type_withobject_parent7?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPrice::unnamed_type_withobject_parent7? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPrice::unnamed_type_withobject_parent7?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPrice::unnamed_type_withobject_parent7?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -121,15 +121,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingGroupedTieredPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewFloatingGroupedTieredPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_floating_grouped_with_metered_minimum_price.rbs b/sig/orb/models/new_floating_grouped_with_metered_minimum_price.rbs index 1e3d200d..c8d46da5 100644 --- a/sig/orb/models/new_floating_grouped_with_metered_minimum_price.rbs +++ b/sig/orb/models/new_floating_grouped_with_metered_minimum_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent8?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent8? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent8?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent8?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -121,15 +121,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_floating_grouped_with_prorated_minimum_price.rbs b/sig/orb/models/new_floating_grouped_with_prorated_minimum_price.rbs index 25754c91..ad420568 100644 --- a/sig/orb/models/new_floating_grouped_with_prorated_minimum_price.rbs +++ b/sig/orb/models/new_floating_grouped_with_prorated_minimum_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent9?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent9? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent9?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent9?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -121,15 +121,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_floating_matrix_price.rbs b/sig/orb/models/new_floating_matrix_price.rbs index 3d7cd249..0cf398eb 100644 --- a/sig/orb/models/new_floating_matrix_price.rbs +++ b/sig/orb/models/new_floating_matrix_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingMatrixPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingMatrixPrice::unnamed_type_withobject_parent10?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingMatrixPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingMatrixPrice::unnamed_type_withobject_parent10? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingMatrixPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewFloatingMatrixPrice::unnamed_type_withobject_parent10?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingMatrixPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingMatrixPrice::unnamed_type_withobject_parent10?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -121,15 +121,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingMatrixPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewFloatingMatrixPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_floating_matrix_with_allocation_price.rbs b/sig/orb/models/new_floating_matrix_with_allocation_price.rbs index eabe70d6..10ae3428 100644 --- a/sig/orb/models/new_floating_matrix_with_allocation_price.rbs +++ b/sig/orb/models/new_floating_matrix_with_allocation_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingMatrixWithAllocationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingMatrixWithAllocationPrice::unnamed_type_withobject_parent11?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingMatrixWithAllocationPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingMatrixWithAllocationPrice::unnamed_type_withobject_parent11? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingMatrixWithAllocationPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewFloatingMatrixWithAllocationPrice::unnamed_type_withobject_parent11?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingMatrixWithAllocationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingMatrixWithAllocationPrice::unnamed_type_withobject_parent11?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -121,15 +121,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingMatrixWithAllocationPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewFloatingMatrixWithAllocationPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_floating_matrix_with_display_name_price.rbs b/sig/orb/models/new_floating_matrix_with_display_name_price.rbs index 0190cd4d..9590993e 100644 --- a/sig/orb/models/new_floating_matrix_with_display_name_price.rbs +++ b/sig/orb/models/new_floating_matrix_with_display_name_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::unnamed_type_withobject_parent12?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::unnamed_type_withobject_parent12? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::unnamed_type_withobject_parent12?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::unnamed_type_withobject_parent12?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -121,15 +121,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingMatrixWithDisplayNamePrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewFloatingMatrixWithDisplayNamePrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_floating_max_group_tiered_package_price.rbs b/sig/orb/models/new_floating_max_group_tiered_package_price.rbs index 23177add..d4cb6c38 100644 --- a/sig/orb/models/new_floating_max_group_tiered_package_price.rbs +++ b/sig/orb/models/new_floating_max_group_tiered_package_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::unnamed_type_withobject_parent13?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::unnamed_type_withobject_parent13? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::unnamed_type_withobject_parent13?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::unnamed_type_withobject_parent13?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -121,15 +121,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingMaxGroupTieredPackagePrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewFloatingMaxGroupTieredPackagePrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_floating_package_price.rbs b/sig/orb/models/new_floating_package_price.rbs index d3bb7235..0ec7411b 100644 --- a/sig/orb/models/new_floating_package_price.rbs +++ b/sig/orb/models/new_floating_package_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingPackagePrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingPackagePrice::unnamed_type_withobject_parent14?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingPackagePrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingPackagePrice::unnamed_type_withobject_parent14? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingPackagePrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewFloatingPackagePrice::unnamed_type_withobject_parent14?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingPackagePrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingPackagePrice::unnamed_type_withobject_parent14?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -121,15 +121,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingPackagePrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewFloatingPackagePrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_floating_package_with_allocation_price.rbs b/sig/orb/models/new_floating_package_with_allocation_price.rbs index 9e2da1e9..f0c6e0fa 100644 --- a/sig/orb/models/new_floating_package_with_allocation_price.rbs +++ b/sig/orb/models/new_floating_package_with_allocation_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingPackageWithAllocationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingPackageWithAllocationPrice::unnamed_type_withobject_parent15?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingPackageWithAllocationPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingPackageWithAllocationPrice::unnamed_type_withobject_parent15? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingPackageWithAllocationPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewFloatingPackageWithAllocationPrice::unnamed_type_withobject_parent15?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingPackageWithAllocationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingPackageWithAllocationPrice::unnamed_type_withobject_parent15?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -121,15 +121,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingPackageWithAllocationPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewFloatingPackageWithAllocationPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbs b/sig/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbs index 02c38bcb..588ee936 100644 --- a/sig/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbs +++ b/sig/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent16?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent16? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent16?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent16?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -121,15 +121,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbs b/sig/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbs index f931afae..569df7b2 100644 --- a/sig/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbs +++ b/sig/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent17?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent17? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent17?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent17?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -121,15 +121,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_floating_threshold_total_amount_price.rbs b/sig/orb/models/new_floating_threshold_total_amount_price.rbs index bf2c848f..31bc8d18 100644 --- a/sig/orb/models/new_floating_threshold_total_amount_price.rbs +++ b/sig/orb/models/new_floating_threshold_total_amount_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingThresholdTotalAmountPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingThresholdTotalAmountPrice::unnamed_type_withobject_parent18?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingThresholdTotalAmountPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingThresholdTotalAmountPrice::unnamed_type_withobject_parent18? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingThresholdTotalAmountPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewFloatingThresholdTotalAmountPrice::unnamed_type_withobject_parent18?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingThresholdTotalAmountPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingThresholdTotalAmountPrice::unnamed_type_withobject_parent18?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -121,15 +121,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingThresholdTotalAmountPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewFloatingThresholdTotalAmountPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_floating_tiered_bps_price.rbs b/sig/orb/models/new_floating_tiered_bps_price.rbs index a64b4f6b..7f5aa746 100644 --- a/sig/orb/models/new_floating_tiered_bps_price.rbs +++ b/sig/orb/models/new_floating_tiered_bps_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredBPSPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingTieredBPSPrice::unnamed_type_withobject_parent19?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredBPSPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredBPSPrice::unnamed_type_withobject_parent19? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingTieredBPSPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewFloatingTieredBPSPrice::unnamed_type_withobject_parent19?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredBPSPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingTieredBPSPrice::unnamed_type_withobject_parent19?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -121,15 +121,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingTieredBPSPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewFloatingTieredBPSPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_floating_tiered_package_price.rbs b/sig/orb/models/new_floating_tiered_package_price.rbs index 289ce9d7..faec3ad5 100644 --- a/sig/orb/models/new_floating_tiered_package_price.rbs +++ b/sig/orb/models/new_floating_tiered_package_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredPackagePrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingTieredPackagePrice::unnamed_type_withobject_parent20?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredPackagePrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredPackagePrice::unnamed_type_withobject_parent20? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingTieredPackagePrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewFloatingTieredPackagePrice::unnamed_type_withobject_parent20?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredPackagePrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingTieredPackagePrice::unnamed_type_withobject_parent20?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -121,15 +121,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingTieredPackagePrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewFloatingTieredPackagePrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_floating_tiered_package_with_minimum_price.rbs b/sig/orb/models/new_floating_tiered_package_with_minimum_price.rbs index b598308e..e95ca0c5 100644 --- a/sig/orb/models/new_floating_tiered_package_with_minimum_price.rbs +++ b/sig/orb/models/new_floating_tiered_package_with_minimum_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::unnamed_type_withobject_parent21?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::unnamed_type_withobject_parent21? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::unnamed_type_withobject_parent21?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::unnamed_type_withobject_parent21?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -121,15 +121,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingTieredPackageWithMinimumPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewFloatingTieredPackageWithMinimumPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_floating_tiered_price.rbs b/sig/orb/models/new_floating_tiered_price.rbs index acd5a852..409bf075 100644 --- a/sig/orb/models/new_floating_tiered_price.rbs +++ b/sig/orb/models/new_floating_tiered_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingTieredPrice::unnamed_type_withobject_parent22?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredPrice::unnamed_type_withobject_parent22? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingTieredPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewFloatingTieredPrice::unnamed_type_withobject_parent22?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingTieredPrice::unnamed_type_withobject_parent22?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -121,15 +121,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingTieredPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewFloatingTieredPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_floating_tiered_with_minimum_price.rbs b/sig/orb/models/new_floating_tiered_with_minimum_price.rbs index c48c399e..580360bd 100644 --- a/sig/orb/models/new_floating_tiered_with_minimum_price.rbs +++ b/sig/orb/models/new_floating_tiered_with_minimum_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredWithMinimumPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingTieredWithMinimumPrice::unnamed_type_withobject_parent23?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredWithMinimumPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredWithMinimumPrice::unnamed_type_withobject_parent23? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingTieredWithMinimumPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewFloatingTieredWithMinimumPrice::unnamed_type_withobject_parent23?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredWithMinimumPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingTieredWithMinimumPrice::unnamed_type_withobject_parent23?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -121,15 +121,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingTieredWithMinimumPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewFloatingTieredWithMinimumPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_floating_tiered_with_proration_price.rbs b/sig/orb/models/new_floating_tiered_with_proration_price.rbs index 44a82463..9250d31c 100644 --- a/sig/orb/models/new_floating_tiered_with_proration_price.rbs +++ b/sig/orb/models/new_floating_tiered_with_proration_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredWithProrationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingTieredWithProrationPrice::unnamed_type_withobject_parent24?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredWithProrationPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredWithProrationPrice::unnamed_type_withobject_parent24? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingTieredWithProrationPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewFloatingTieredWithProrationPrice::unnamed_type_withobject_parent24?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredWithProrationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingTieredWithProrationPrice::unnamed_type_withobject_parent24?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -121,15 +121,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingTieredWithProrationPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewFloatingTieredWithProrationPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_floating_unit_price.rbs b/sig/orb/models/new_floating_unit_price.rbs index 45df1655..7b7f344d 100644 --- a/sig/orb/models/new_floating_unit_price.rbs +++ b/sig/orb/models/new_floating_unit_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingUnitPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingUnitPrice::unnamed_type_withobject_parent25?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingUnitPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingUnitPrice::unnamed_type_withobject_parent25? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingUnitPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewFloatingUnitPrice::unnamed_type_withobject_parent25?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingUnitPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingUnitPrice::unnamed_type_withobject_parent25?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -121,15 +121,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingUnitPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewFloatingUnitPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_floating_unit_with_percent_price.rbs b/sig/orb/models/new_floating_unit_with_percent_price.rbs index 829a465a..cf3380e8 100644 --- a/sig/orb/models/new_floating_unit_with_percent_price.rbs +++ b/sig/orb/models/new_floating_unit_with_percent_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingUnitWithPercentPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingUnitWithPercentPrice::unnamed_type_withobject_parent26?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingUnitWithPercentPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingUnitWithPercentPrice::unnamed_type_withobject_parent26? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingUnitWithPercentPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewFloatingUnitWithPercentPrice::unnamed_type_withobject_parent26?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingUnitWithPercentPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingUnitWithPercentPrice::unnamed_type_withobject_parent26?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -121,15 +121,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingUnitWithPercentPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewFloatingUnitWithPercentPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_floating_unit_with_proration_price.rbs b/sig/orb/models/new_floating_unit_with_proration_price.rbs index e4e332c7..8e7e6d58 100644 --- a/sig/orb/models/new_floating_unit_with_proration_price.rbs +++ b/sig/orb/models/new_floating_unit_with_proration_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingUnitWithProrationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingUnitWithProrationPrice::unnamed_type_withobject_parent27?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingUnitWithProrationPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingUnitWithProrationPrice::unnamed_type_withobject_parent27? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingUnitWithProrationPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewFloatingUnitWithProrationPrice::unnamed_type_withobject_parent27?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingUnitWithProrationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewFloatingUnitWithProrationPrice::unnamed_type_withobject_parent27?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -121,15 +121,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingUnitWithProrationPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewFloatingUnitWithProrationPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_plan_bps_price.rbs b/sig/orb/models/new_plan_bps_price.rbs index 6e03b519..aba4230f 100644 --- a/sig/orb/models/new_plan_bps_price.rbs +++ b/sig/orb/models/new_plan_bps_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanBPSPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanBPSPrice::unnamed_type_withobject_parent28?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanBPSPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewPlanBPSPrice::unnamed_type_withobject_parent28? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanBPSPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewPlanBPSPrice::unnamed_type_withobject_parent28?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanBPSPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanBPSPrice::unnamed_type_withobject_parent28?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanBPSPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewPlanBPSPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_plan_bulk_bps_price.rbs b/sig/orb/models/new_plan_bulk_bps_price.rbs index 7a2b6ecb..d992b955 100644 --- a/sig/orb/models/new_plan_bulk_bps_price.rbs +++ b/sig/orb/models/new_plan_bulk_bps_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanBulkBPSPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanBulkBPSPrice::unnamed_type_withobject_parent29?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanBulkBPSPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewPlanBulkBPSPrice::unnamed_type_withobject_parent29? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanBulkBPSPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewPlanBulkBPSPrice::unnamed_type_withobject_parent29?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanBulkBPSPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanBulkBPSPrice::unnamed_type_withobject_parent29?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanBulkBPSPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewPlanBulkBPSPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_plan_bulk_price.rbs b/sig/orb/models/new_plan_bulk_price.rbs index ecd688b2..8ff2daab 100644 --- a/sig/orb/models/new_plan_bulk_price.rbs +++ b/sig/orb/models/new_plan_bulk_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanBulkPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanBulkPrice::unnamed_type_withobject_parent30?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanBulkPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewPlanBulkPrice::unnamed_type_withobject_parent30? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanBulkPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewPlanBulkPrice::unnamed_type_withobject_parent30?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanBulkPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanBulkPrice::unnamed_type_withobject_parent30?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanBulkPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewPlanBulkPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_plan_bulk_with_proration_price.rbs b/sig/orb/models/new_plan_bulk_with_proration_price.rbs index 3077e93b..a23a89d5 100644 --- a/sig/orb/models/new_plan_bulk_with_proration_price.rbs +++ b/sig/orb/models/new_plan_bulk_with_proration_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanBulkWithProrationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanBulkWithProrationPrice::unnamed_type_withobject_parent31?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanBulkWithProrationPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewPlanBulkWithProrationPrice::unnamed_type_withobject_parent31? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanBulkWithProrationPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewPlanBulkWithProrationPrice::unnamed_type_withobject_parent31?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanBulkWithProrationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanBulkWithProrationPrice::unnamed_type_withobject_parent31?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanBulkWithProrationPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewPlanBulkWithProrationPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_plan_cumulative_grouped_bulk_price.rbs b/sig/orb/models/new_plan_cumulative_grouped_bulk_price.rbs index 2b57bb19..3426a3b4 100644 --- a/sig/orb/models/new_plan_cumulative_grouped_bulk_price.rbs +++ b/sig/orb/models/new_plan_cumulative_grouped_bulk_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanCumulativeGroupedBulkPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanCumulativeGroupedBulkPrice::unnamed_type_withobject_parent32?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanCumulativeGroupedBulkPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewPlanCumulativeGroupedBulkPrice::unnamed_type_withobject_parent32? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanCumulativeGroupedBulkPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewPlanCumulativeGroupedBulkPrice::unnamed_type_withobject_parent32?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanCumulativeGroupedBulkPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanCumulativeGroupedBulkPrice::unnamed_type_withobject_parent32?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanCumulativeGroupedBulkPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewPlanCumulativeGroupedBulkPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_plan_grouped_allocation_price.rbs b/sig/orb/models/new_plan_grouped_allocation_price.rbs index a1d3ad45..1f6a2190 100644 --- a/sig/orb/models/new_plan_grouped_allocation_price.rbs +++ b/sig/orb/models/new_plan_grouped_allocation_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedAllocationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanGroupedAllocationPrice::unnamed_type_withobject_parent33?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedAllocationPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedAllocationPrice::unnamed_type_withobject_parent33? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanGroupedAllocationPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewPlanGroupedAllocationPrice::unnamed_type_withobject_parent33?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedAllocationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanGroupedAllocationPrice::unnamed_type_withobject_parent33?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanGroupedAllocationPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewPlanGroupedAllocationPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_plan_grouped_tiered_package_price.rbs b/sig/orb/models/new_plan_grouped_tiered_package_price.rbs index 9b6e8ab0..fd4dcd46 100644 --- a/sig/orb/models/new_plan_grouped_tiered_package_price.rbs +++ b/sig/orb/models/new_plan_grouped_tiered_package_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedTieredPackagePrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanGroupedTieredPackagePrice::unnamed_type_withobject_parent34?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedTieredPackagePrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedTieredPackagePrice::unnamed_type_withobject_parent34? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanGroupedTieredPackagePrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewPlanGroupedTieredPackagePrice::unnamed_type_withobject_parent34?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedTieredPackagePrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanGroupedTieredPackagePrice::unnamed_type_withobject_parent34?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanGroupedTieredPackagePrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewPlanGroupedTieredPackagePrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_plan_grouped_tiered_price.rbs b/sig/orb/models/new_plan_grouped_tiered_price.rbs index c08369b5..c4b3e7de 100644 --- a/sig/orb/models/new_plan_grouped_tiered_price.rbs +++ b/sig/orb/models/new_plan_grouped_tiered_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedTieredPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanGroupedTieredPrice::unnamed_type_withobject_parent35?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedTieredPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedTieredPrice::unnamed_type_withobject_parent35? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanGroupedTieredPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewPlanGroupedTieredPrice::unnamed_type_withobject_parent35?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedTieredPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanGroupedTieredPrice::unnamed_type_withobject_parent35?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanGroupedTieredPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewPlanGroupedTieredPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_plan_grouped_with_metered_minimum_price.rbs b/sig/orb/models/new_plan_grouped_with_metered_minimum_price.rbs index 865f6354..269f91e5 100644 --- a/sig/orb/models/new_plan_grouped_with_metered_minimum_price.rbs +++ b/sig/orb/models/new_plan_grouped_with_metered_minimum_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent36?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent36? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent36?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent36?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_plan_grouped_with_prorated_minimum_price.rbs b/sig/orb/models/new_plan_grouped_with_prorated_minimum_price.rbs index 5972a64b..d440626f 100644 --- a/sig/orb/models/new_plan_grouped_with_prorated_minimum_price.rbs +++ b/sig/orb/models/new_plan_grouped_with_prorated_minimum_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent37?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent37? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent37?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent37?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanGroupedWithProratedMinimumPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewPlanGroupedWithProratedMinimumPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_plan_matrix_price.rbs b/sig/orb/models/new_plan_matrix_price.rbs index 55a77581..303afd09 100644 --- a/sig/orb/models/new_plan_matrix_price.rbs +++ b/sig/orb/models/new_plan_matrix_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanMatrixPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanMatrixPrice::unnamed_type_withobject_parent38?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanMatrixPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewPlanMatrixPrice::unnamed_type_withobject_parent38? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanMatrixPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewPlanMatrixPrice::unnamed_type_withobject_parent38?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanMatrixPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanMatrixPrice::unnamed_type_withobject_parent38?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanMatrixPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewPlanMatrixPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_plan_matrix_with_allocation_price.rbs b/sig/orb/models/new_plan_matrix_with_allocation_price.rbs index dd5241a3..9b78e1f4 100644 --- a/sig/orb/models/new_plan_matrix_with_allocation_price.rbs +++ b/sig/orb/models/new_plan_matrix_with_allocation_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanMatrixWithAllocationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanMatrixWithAllocationPrice::unnamed_type_withobject_parent39?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanMatrixWithAllocationPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewPlanMatrixWithAllocationPrice::unnamed_type_withobject_parent39? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanMatrixWithAllocationPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewPlanMatrixWithAllocationPrice::unnamed_type_withobject_parent39?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanMatrixWithAllocationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanMatrixWithAllocationPrice::unnamed_type_withobject_parent39?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanMatrixWithAllocationPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewPlanMatrixWithAllocationPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_plan_matrix_with_display_name_price.rbs b/sig/orb/models/new_plan_matrix_with_display_name_price.rbs index 41354bdd..0c19e6b8 100644 --- a/sig/orb/models/new_plan_matrix_with_display_name_price.rbs +++ b/sig/orb/models/new_plan_matrix_with_display_name_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanMatrixWithDisplayNamePrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanMatrixWithDisplayNamePrice::unnamed_type_withobject_parent40?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanMatrixWithDisplayNamePrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewPlanMatrixWithDisplayNamePrice::unnamed_type_withobject_parent40? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanMatrixWithDisplayNamePrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewPlanMatrixWithDisplayNamePrice::unnamed_type_withobject_parent40?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanMatrixWithDisplayNamePrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanMatrixWithDisplayNamePrice::unnamed_type_withobject_parent40?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanMatrixWithDisplayNamePrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewPlanMatrixWithDisplayNamePrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_plan_max_group_tiered_package_price.rbs b/sig/orb/models/new_plan_max_group_tiered_package_price.rbs index f68a6dbe..deb6cc0e 100644 --- a/sig/orb/models/new_plan_max_group_tiered_package_price.rbs +++ b/sig/orb/models/new_plan_max_group_tiered_package_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanMaxGroupTieredPackagePrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanMaxGroupTieredPackagePrice::unnamed_type_withobject_parent41?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanMaxGroupTieredPackagePrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewPlanMaxGroupTieredPackagePrice::unnamed_type_withobject_parent41? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanMaxGroupTieredPackagePrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewPlanMaxGroupTieredPackagePrice::unnamed_type_withobject_parent41?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanMaxGroupTieredPackagePrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanMaxGroupTieredPackagePrice::unnamed_type_withobject_parent41?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanMaxGroupTieredPackagePrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewPlanMaxGroupTieredPackagePrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_plan_package_price.rbs b/sig/orb/models/new_plan_package_price.rbs index 7308833b..3baa2935 100644 --- a/sig/orb/models/new_plan_package_price.rbs +++ b/sig/orb/models/new_plan_package_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanPackagePrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanPackagePrice::unnamed_type_withobject_parent42?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanPackagePrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewPlanPackagePrice::unnamed_type_withobject_parent42? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanPackagePrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewPlanPackagePrice::unnamed_type_withobject_parent42?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanPackagePrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanPackagePrice::unnamed_type_withobject_parent42?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanPackagePrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewPlanPackagePrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_plan_package_with_allocation_price.rbs b/sig/orb/models/new_plan_package_with_allocation_price.rbs index 79a6cd89..2a3ad319 100644 --- a/sig/orb/models/new_plan_package_with_allocation_price.rbs +++ b/sig/orb/models/new_plan_package_with_allocation_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanPackageWithAllocationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanPackageWithAllocationPrice::unnamed_type_withobject_parent43?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanPackageWithAllocationPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewPlanPackageWithAllocationPrice::unnamed_type_withobject_parent43? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanPackageWithAllocationPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewPlanPackageWithAllocationPrice::unnamed_type_withobject_parent43?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanPackageWithAllocationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanPackageWithAllocationPrice::unnamed_type_withobject_parent43?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanPackageWithAllocationPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewPlanPackageWithAllocationPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbs b/sig/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbs index c4603f1b..745d2ca1 100644 --- a/sig/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbs +++ b/sig/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent44?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent44? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent44?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent44?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbs b/sig/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbs index 980362da..39881de6 100644 --- a/sig/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbs +++ b/sig/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent45?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent45? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent45?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent45?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_plan_threshold_total_amount_price.rbs b/sig/orb/models/new_plan_threshold_total_amount_price.rbs index 607d527e..9fbb9d05 100644 --- a/sig/orb/models/new_plan_threshold_total_amount_price.rbs +++ b/sig/orb/models/new_plan_threshold_total_amount_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanThresholdTotalAmountPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanThresholdTotalAmountPrice::unnamed_type_withobject_parent46?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanThresholdTotalAmountPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewPlanThresholdTotalAmountPrice::unnamed_type_withobject_parent46? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanThresholdTotalAmountPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewPlanThresholdTotalAmountPrice::unnamed_type_withobject_parent46?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanThresholdTotalAmountPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanThresholdTotalAmountPrice::unnamed_type_withobject_parent46?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanThresholdTotalAmountPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewPlanThresholdTotalAmountPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_plan_tier_with_proration_price.rbs b/sig/orb/models/new_plan_tier_with_proration_price.rbs index 5906107d..fbab3c78 100644 --- a/sig/orb/models/new_plan_tier_with_proration_price.rbs +++ b/sig/orb/models/new_plan_tier_with_proration_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::unnamed_type_withobject_parent52?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::unnamed_type_withobject_parent52? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::unnamed_type_withobject_parent52?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::unnamed_type_withobject_parent52?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanTierWithProrationPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewPlanTierWithProrationPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_plan_tiered_bps_price.rbs b/sig/orb/models/new_plan_tiered_bps_price.rbs index b7080f5a..4f1bf569 100644 --- a/sig/orb/models/new_plan_tiered_bps_price.rbs +++ b/sig/orb/models/new_plan_tiered_bps_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredBPSPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanTieredBPSPrice::unnamed_type_withobject_parent47?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredBPSPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredBPSPrice::unnamed_type_withobject_parent47? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanTieredBPSPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewPlanTieredBPSPrice::unnamed_type_withobject_parent47?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredBPSPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanTieredBPSPrice::unnamed_type_withobject_parent47?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanTieredBPSPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewPlanTieredBPSPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_plan_tiered_package_price.rbs b/sig/orb/models/new_plan_tiered_package_price.rbs index 98bdeb0a..dca76b1d 100644 --- a/sig/orb/models/new_plan_tiered_package_price.rbs +++ b/sig/orb/models/new_plan_tiered_package_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredPackagePrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanTieredPackagePrice::unnamed_type_withobject_parent48?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredPackagePrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredPackagePrice::unnamed_type_withobject_parent48? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanTieredPackagePrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewPlanTieredPackagePrice::unnamed_type_withobject_parent48?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredPackagePrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanTieredPackagePrice::unnamed_type_withobject_parent48?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanTieredPackagePrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewPlanTieredPackagePrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_plan_tiered_package_with_minimum_price.rbs b/sig/orb/models/new_plan_tiered_package_with_minimum_price.rbs index c57dd914..55ea25d1 100644 --- a/sig/orb/models/new_plan_tiered_package_with_minimum_price.rbs +++ b/sig/orb/models/new_plan_tiered_package_with_minimum_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredPackageWithMinimumPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanTieredPackageWithMinimumPrice::unnamed_type_withobject_parent49?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredPackageWithMinimumPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredPackageWithMinimumPrice::unnamed_type_withobject_parent49? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanTieredPackageWithMinimumPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewPlanTieredPackageWithMinimumPrice::unnamed_type_withobject_parent49?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredPackageWithMinimumPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanTieredPackageWithMinimumPrice::unnamed_type_withobject_parent49?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanTieredPackageWithMinimumPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewPlanTieredPackageWithMinimumPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_plan_tiered_price.rbs b/sig/orb/models/new_plan_tiered_price.rbs index 73400ade..8cb8c427 100644 --- a/sig/orb/models/new_plan_tiered_price.rbs +++ b/sig/orb/models/new_plan_tiered_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanTieredPrice::unnamed_type_withobject_parent50?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredPrice::unnamed_type_withobject_parent50? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanTieredPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewPlanTieredPrice::unnamed_type_withobject_parent50?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanTieredPrice::unnamed_type_withobject_parent50?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanTieredPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewPlanTieredPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_plan_tiered_with_minimum_price.rbs b/sig/orb/models/new_plan_tiered_with_minimum_price.rbs index 1bc1c173..e6edf203 100644 --- a/sig/orb/models/new_plan_tiered_with_minimum_price.rbs +++ b/sig/orb/models/new_plan_tiered_with_minimum_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredWithMinimumPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanTieredWithMinimumPrice::unnamed_type_withobject_parent51?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredWithMinimumPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredWithMinimumPrice::unnamed_type_withobject_parent51? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanTieredWithMinimumPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewPlanTieredWithMinimumPrice::unnamed_type_withobject_parent51?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredWithMinimumPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanTieredWithMinimumPrice::unnamed_type_withobject_parent51?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanTieredWithMinimumPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewPlanTieredWithMinimumPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_plan_unit_price.rbs b/sig/orb/models/new_plan_unit_price.rbs index 0a187a8d..3ac886a9 100644 --- a/sig/orb/models/new_plan_unit_price.rbs +++ b/sig/orb/models/new_plan_unit_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanUnitPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanUnitPrice::unnamed_type_withobject_parent53?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanUnitPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewPlanUnitPrice::unnamed_type_withobject_parent53? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanUnitPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewPlanUnitPrice::unnamed_type_withobject_parent53?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanUnitPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanUnitPrice::unnamed_type_withobject_parent53?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanUnitPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewPlanUnitPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_plan_unit_with_percent_price.rbs b/sig/orb/models/new_plan_unit_with_percent_price.rbs index 60ae0b43..bcf29fb0 100644 --- a/sig/orb/models/new_plan_unit_with_percent_price.rbs +++ b/sig/orb/models/new_plan_unit_with_percent_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanUnitWithPercentPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanUnitWithPercentPrice::unnamed_type_withobject_parent54?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanUnitWithPercentPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewPlanUnitWithPercentPrice::unnamed_type_withobject_parent54? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanUnitWithPercentPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewPlanUnitWithPercentPrice::unnamed_type_withobject_parent54?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanUnitWithPercentPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanUnitWithPercentPrice::unnamed_type_withobject_parent54?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanUnitWithPercentPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewPlanUnitWithPercentPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_plan_unit_with_proration_price.rbs b/sig/orb/models/new_plan_unit_with_proration_price.rbs index 68eb7519..b43cd8a3 100644 --- a/sig/orb/models/new_plan_unit_with_proration_price.rbs +++ b/sig/orb/models/new_plan_unit_with_proration_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanUnitWithProrationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanUnitWithProrationPrice::unnamed_type_withobject_parent55?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanUnitWithProrationPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewPlanUnitWithProrationPrice::unnamed_type_withobject_parent55? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanUnitWithProrationPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewPlanUnitWithProrationPrice::unnamed_type_withobject_parent55?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanUnitWithProrationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewPlanUnitWithProrationPrice::unnamed_type_withobject_parent55?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanUnitWithProrationPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewPlanUnitWithProrationPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_subscription_bps_price.rbs b/sig/orb/models/new_subscription_bps_price.rbs index eaf3e84b..dc936096 100644 --- a/sig/orb/models/new_subscription_bps_price.rbs +++ b/sig/orb/models/new_subscription_bps_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionBPSPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionBPSPrice::unnamed_type_withobject_parent56?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionBPSPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionBPSPrice::unnamed_type_withobject_parent56? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionBPSPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewSubscriptionBPSPrice::unnamed_type_withobject_parent56?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionBPSPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionBPSPrice::unnamed_type_withobject_parent56?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionBPSPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewSubscriptionBPSPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_subscription_bulk_bps_price.rbs b/sig/orb/models/new_subscription_bulk_bps_price.rbs index 22a47edc..a0cf9ec2 100644 --- a/sig/orb/models/new_subscription_bulk_bps_price.rbs +++ b/sig/orb/models/new_subscription_bulk_bps_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionBulkBPSPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionBulkBPSPrice::unnamed_type_withobject_parent57?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionBulkBPSPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionBulkBPSPrice::unnamed_type_withobject_parent57? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionBulkBPSPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewSubscriptionBulkBPSPrice::unnamed_type_withobject_parent57?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionBulkBPSPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionBulkBPSPrice::unnamed_type_withobject_parent57?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionBulkBPSPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewSubscriptionBulkBPSPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_subscription_bulk_price.rbs b/sig/orb/models/new_subscription_bulk_price.rbs index eac192d2..80f56638 100644 --- a/sig/orb/models/new_subscription_bulk_price.rbs +++ b/sig/orb/models/new_subscription_bulk_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionBulkPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionBulkPrice::unnamed_type_withobject_parent58?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionBulkPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionBulkPrice::unnamed_type_withobject_parent58? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionBulkPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewSubscriptionBulkPrice::unnamed_type_withobject_parent58?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionBulkPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionBulkPrice::unnamed_type_withobject_parent58?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionBulkPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewSubscriptionBulkPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_subscription_bulk_with_proration_price.rbs b/sig/orb/models/new_subscription_bulk_with_proration_price.rbs index 0506e2c9..1f513f6a 100644 --- a/sig/orb/models/new_subscription_bulk_with_proration_price.rbs +++ b/sig/orb/models/new_subscription_bulk_with_proration_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionBulkWithProrationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionBulkWithProrationPrice::unnamed_type_withobject_parent59?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionBulkWithProrationPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionBulkWithProrationPrice::unnamed_type_withobject_parent59? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionBulkWithProrationPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewSubscriptionBulkWithProrationPrice::unnamed_type_withobject_parent59?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionBulkWithProrationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionBulkWithProrationPrice::unnamed_type_withobject_parent59?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionBulkWithProrationPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewSubscriptionBulkWithProrationPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_subscription_cumulative_grouped_bulk_price.rbs b/sig/orb/models/new_subscription_cumulative_grouped_bulk_price.rbs index 57172ea2..016c8ae8 100644 --- a/sig/orb/models/new_subscription_cumulative_grouped_bulk_price.rbs +++ b/sig/orb/models/new_subscription_cumulative_grouped_bulk_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::unnamed_type_withobject_parent60?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::unnamed_type_withobject_parent60? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::unnamed_type_withobject_parent60?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::unnamed_type_withobject_parent60?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_subscription_grouped_allocation_price.rbs b/sig/orb/models/new_subscription_grouped_allocation_price.rbs index 1e1f6018..d39e6f58 100644 --- a/sig/orb/models/new_subscription_grouped_allocation_price.rbs +++ b/sig/orb/models/new_subscription_grouped_allocation_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionGroupedAllocationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionGroupedAllocationPrice::unnamed_type_withobject_parent61?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionGroupedAllocationPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionGroupedAllocationPrice::unnamed_type_withobject_parent61? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionGroupedAllocationPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewSubscriptionGroupedAllocationPrice::unnamed_type_withobject_parent61?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionGroupedAllocationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionGroupedAllocationPrice::unnamed_type_withobject_parent61?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionGroupedAllocationPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewSubscriptionGroupedAllocationPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_subscription_grouped_tiered_package_price.rbs b/sig/orb/models/new_subscription_grouped_tiered_package_price.rbs index 7799b636..851b3e94 100644 --- a/sig/orb/models/new_subscription_grouped_tiered_package_price.rbs +++ b/sig/orb/models/new_subscription_grouped_tiered_package_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPackagePrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPackagePrice::unnamed_type_withobject_parent62?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPackagePrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPackagePrice::unnamed_type_withobject_parent62? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPackagePrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPackagePrice::unnamed_type_withobject_parent62?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPackagePrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPackagePrice::unnamed_type_withobject_parent62?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionGroupedTieredPackagePrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewSubscriptionGroupedTieredPackagePrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_subscription_grouped_tiered_price.rbs b/sig/orb/models/new_subscription_grouped_tiered_price.rbs index a8b65d3a..80a8c4f8 100644 --- a/sig/orb/models/new_subscription_grouped_tiered_price.rbs +++ b/sig/orb/models/new_subscription_grouped_tiered_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPrice::unnamed_type_withobject_parent63?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPrice::unnamed_type_withobject_parent63? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPrice::unnamed_type_withobject_parent63?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPrice::unnamed_type_withobject_parent63?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionGroupedTieredPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewSubscriptionGroupedTieredPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_subscription_grouped_with_metered_minimum_price.rbs b/sig/orb/models/new_subscription_grouped_with_metered_minimum_price.rbs index 0bd8990a..ffce26be 100644 --- a/sig/orb/models/new_subscription_grouped_with_metered_minimum_price.rbs +++ b/sig/orb/models/new_subscription_grouped_with_metered_minimum_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent64?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent64? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent64?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent64?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbs b/sig/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbs index c60b64bf..87d8b15c 100644 --- a/sig/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbs +++ b/sig/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent65?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent65? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent65?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent65?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_subscription_matrix_price.rbs b/sig/orb/models/new_subscription_matrix_price.rbs index 4ceb967d..c1416ecf 100644 --- a/sig/orb/models/new_subscription_matrix_price.rbs +++ b/sig/orb/models/new_subscription_matrix_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionMatrixPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionMatrixPrice::unnamed_type_withobject_parent66?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionMatrixPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionMatrixPrice::unnamed_type_withobject_parent66? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionMatrixPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewSubscriptionMatrixPrice::unnamed_type_withobject_parent66?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionMatrixPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionMatrixPrice::unnamed_type_withobject_parent66?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionMatrixPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewSubscriptionMatrixPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_subscription_matrix_with_allocation_price.rbs b/sig/orb/models/new_subscription_matrix_with_allocation_price.rbs index cd2b14a8..5f7a651d 100644 --- a/sig/orb/models/new_subscription_matrix_with_allocation_price.rbs +++ b/sig/orb/models/new_subscription_matrix_with_allocation_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithAllocationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithAllocationPrice::unnamed_type_withobject_parent67?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithAllocationPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithAllocationPrice::unnamed_type_withobject_parent67? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithAllocationPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithAllocationPrice::unnamed_type_withobject_parent67?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithAllocationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithAllocationPrice::unnamed_type_withobject_parent67?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionMatrixWithAllocationPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewSubscriptionMatrixWithAllocationPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_subscription_matrix_with_display_name_price.rbs b/sig/orb/models/new_subscription_matrix_with_display_name_price.rbs index bd483deb..7d4293dc 100644 --- a/sig/orb/models/new_subscription_matrix_with_display_name_price.rbs +++ b/sig/orb/models/new_subscription_matrix_with_display_name_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::unnamed_type_withobject_parent68?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::unnamed_type_withobject_parent68? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::unnamed_type_withobject_parent68?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::unnamed_type_withobject_parent68?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_subscription_max_group_tiered_package_price.rbs b/sig/orb/models/new_subscription_max_group_tiered_package_price.rbs index ee1938b1..77ab0a55 100644 --- a/sig/orb/models/new_subscription_max_group_tiered_package_price.rbs +++ b/sig/orb/models/new_subscription_max_group_tiered_package_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::unnamed_type_withobject_parent69?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::unnamed_type_withobject_parent69? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::unnamed_type_withobject_parent69?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::unnamed_type_withobject_parent69?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_subscription_package_price.rbs b/sig/orb/models/new_subscription_package_price.rbs index 466e9dc9..b9209b78 100644 --- a/sig/orb/models/new_subscription_package_price.rbs +++ b/sig/orb/models/new_subscription_package_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionPackagePrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionPackagePrice::unnamed_type_withobject_parent70?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionPackagePrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionPackagePrice::unnamed_type_withobject_parent70? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionPackagePrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewSubscriptionPackagePrice::unnamed_type_withobject_parent70?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionPackagePrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionPackagePrice::unnamed_type_withobject_parent70?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionPackagePrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewSubscriptionPackagePrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_subscription_package_with_allocation_price.rbs b/sig/orb/models/new_subscription_package_with_allocation_price.rbs index b888865c..0c688822 100644 --- a/sig/orb/models/new_subscription_package_with_allocation_price.rbs +++ b/sig/orb/models/new_subscription_package_with_allocation_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionPackageWithAllocationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionPackageWithAllocationPrice::unnamed_type_withobject_parent71?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionPackageWithAllocationPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionPackageWithAllocationPrice::unnamed_type_withobject_parent71? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionPackageWithAllocationPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewSubscriptionPackageWithAllocationPrice::unnamed_type_withobject_parent71?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionPackageWithAllocationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionPackageWithAllocationPrice::unnamed_type_withobject_parent71?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionPackageWithAllocationPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewSubscriptionPackageWithAllocationPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbs b/sig/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbs index 593f4ebf..e7636e53 100644 --- a/sig/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbs +++ b/sig/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent72?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent72? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent72?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent72?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbs b/sig/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbs index 7d44c1e4..762723e9 100644 --- a/sig/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbs +++ b/sig/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent73?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent73? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent73?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent73?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_subscription_threshold_total_amount_price.rbs b/sig/orb/models/new_subscription_threshold_total_amount_price.rbs index 1978f825..62495c74 100644 --- a/sig/orb/models/new_subscription_threshold_total_amount_price.rbs +++ b/sig/orb/models/new_subscription_threshold_total_amount_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionThresholdTotalAmountPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionThresholdTotalAmountPrice::unnamed_type_withobject_parent74?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionThresholdTotalAmountPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionThresholdTotalAmountPrice::unnamed_type_withobject_parent74? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionThresholdTotalAmountPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewSubscriptionThresholdTotalAmountPrice::unnamed_type_withobject_parent74?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionThresholdTotalAmountPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionThresholdTotalAmountPrice::unnamed_type_withobject_parent74?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionThresholdTotalAmountPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewSubscriptionThresholdTotalAmountPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_subscription_tier_with_proration_price.rbs b/sig/orb/models/new_subscription_tier_with_proration_price.rbs index dd856f8e..31982bcc 100644 --- a/sig/orb/models/new_subscription_tier_with_proration_price.rbs +++ b/sig/orb/models/new_subscription_tier_with_proration_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::unnamed_type_withobject_parent80?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::unnamed_type_withobject_parent80? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::unnamed_type_withobject_parent80?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::unnamed_type_withobject_parent80?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionTierWithProrationPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewSubscriptionTierWithProrationPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_subscription_tiered_bps_price.rbs b/sig/orb/models/new_subscription_tiered_bps_price.rbs index 3d83e73d..00ea60de 100644 --- a/sig/orb/models/new_subscription_tiered_bps_price.rbs +++ b/sig/orb/models/new_subscription_tiered_bps_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredBPSPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionTieredBPSPrice::unnamed_type_withobject_parent75?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredBPSPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredBPSPrice::unnamed_type_withobject_parent75? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionTieredBPSPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewSubscriptionTieredBPSPrice::unnamed_type_withobject_parent75?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredBPSPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionTieredBPSPrice::unnamed_type_withobject_parent75?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionTieredBPSPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewSubscriptionTieredBPSPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_subscription_tiered_package_price.rbs b/sig/orb/models/new_subscription_tiered_package_price.rbs index e10b2e81..28610708 100644 --- a/sig/orb/models/new_subscription_tiered_package_price.rbs +++ b/sig/orb/models/new_subscription_tiered_package_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredPackagePrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionTieredPackagePrice::unnamed_type_withobject_parent76?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredPackagePrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredPackagePrice::unnamed_type_withobject_parent76? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionTieredPackagePrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewSubscriptionTieredPackagePrice::unnamed_type_withobject_parent76?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredPackagePrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionTieredPackagePrice::unnamed_type_withobject_parent76?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionTieredPackagePrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewSubscriptionTieredPackagePrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_subscription_tiered_package_with_minimum_price.rbs b/sig/orb/models/new_subscription_tiered_package_with_minimum_price.rbs index 0000c932..bde10abf 100644 --- a/sig/orb/models/new_subscription_tiered_package_with_minimum_price.rbs +++ b/sig/orb/models/new_subscription_tiered_package_with_minimum_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::unnamed_type_withobject_parent77?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::unnamed_type_withobject_parent77? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::unnamed_type_withobject_parent77?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::unnamed_type_withobject_parent77?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_subscription_tiered_price.rbs b/sig/orb/models/new_subscription_tiered_price.rbs index 3c7383b6..c98e4d24 100644 --- a/sig/orb/models/new_subscription_tiered_price.rbs +++ b/sig/orb/models/new_subscription_tiered_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionTieredPrice::unnamed_type_withobject_parent78?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredPrice::unnamed_type_withobject_parent78? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionTieredPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewSubscriptionTieredPrice::unnamed_type_withobject_parent78?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionTieredPrice::unnamed_type_withobject_parent78?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionTieredPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewSubscriptionTieredPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_subscription_tiered_with_minimum_price.rbs b/sig/orb/models/new_subscription_tiered_with_minimum_price.rbs index f93a3750..dab08025 100644 --- a/sig/orb/models/new_subscription_tiered_with_minimum_price.rbs +++ b/sig/orb/models/new_subscription_tiered_with_minimum_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredWithMinimumPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionTieredWithMinimumPrice::unnamed_type_withobject_parent79?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredWithMinimumPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredWithMinimumPrice::unnamed_type_withobject_parent79? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionTieredWithMinimumPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewSubscriptionTieredWithMinimumPrice::unnamed_type_withobject_parent79?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredWithMinimumPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionTieredWithMinimumPrice::unnamed_type_withobject_parent79?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionTieredWithMinimumPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewSubscriptionTieredWithMinimumPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_subscription_unit_price.rbs b/sig/orb/models/new_subscription_unit_price.rbs index 3dbc16bd..cb58c046 100644 --- a/sig/orb/models/new_subscription_unit_price.rbs +++ b/sig/orb/models/new_subscription_unit_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionUnitPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionUnitPrice::unnamed_type_withobject_parent81?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionUnitPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionUnitPrice::unnamed_type_withobject_parent81? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionUnitPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewSubscriptionUnitPrice::unnamed_type_withobject_parent81?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionUnitPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionUnitPrice::unnamed_type_withobject_parent81?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionUnitPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewSubscriptionUnitPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_subscription_unit_with_percent_price.rbs b/sig/orb/models/new_subscription_unit_with_percent_price.rbs index c6d3599b..0c574e92 100644 --- a/sig/orb/models/new_subscription_unit_with_percent_price.rbs +++ b/sig/orb/models/new_subscription_unit_with_percent_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionUnitWithPercentPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionUnitWithPercentPrice::unnamed_type_withobject_parent82?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionUnitWithPercentPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionUnitWithPercentPrice::unnamed_type_withobject_parent82? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionUnitWithPercentPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewSubscriptionUnitWithPercentPrice::unnamed_type_withobject_parent82?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionUnitWithPercentPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionUnitWithPercentPrice::unnamed_type_withobject_parent82?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionUnitWithPercentPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewSubscriptionUnitWithPercentPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/new_subscription_unit_with_proration_price.rbs b/sig/orb/models/new_subscription_unit_with_proration_price.rbs index 28fb03c9..ef238a06 100644 --- a/sig/orb/models/new_subscription_unit_with_proration_price.rbs +++ b/sig/orb/models/new_subscription_unit_with_proration_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionUnitWithProrationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionUnitWithProrationPrice::unnamed_type_withobject_parent83?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionUnitWithProrationPrice::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionUnitWithProrationPrice::unnamed_type_withobject_parent83? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionUnitWithProrationPrice::conversion_rate_config?, + ?conversion_rate_config: Orb::Models::NewSubscriptionUnitWithProrationPrice::unnamed_type_withobject_parent83?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionUnitWithProrationPrice::conversion_rate_config?, + conversion_rate_config: Orb::Models::NewSubscriptionUnitWithProrationPrice::unnamed_type_withobject_parent83?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -126,15 +126,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionUnitWithProrationPrice::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::NewSubscriptionUnitWithProrationPrice::conversion_rate_config] - end end end end diff --git a/sig/orb/models/price.rbs b/sig/orb/models/price.rbs index b2e86566..c1c29b27 100644 --- a/sig/orb/models/price.rbs +++ b/sig/orb/models/price.rbs @@ -41,7 +41,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::Unit::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Unit::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::Unit::unnamed_type_withobject_parent84?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -75,7 +75,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::Unit::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::Unit::unnamed_type_withobject_parent84? attr_accessor created_at: Time @@ -123,7 +123,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::Unit::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Unit::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::Unit::unnamed_type_withobject_parent84?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -152,7 +152,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::Unit::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Unit::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::Unit::unnamed_type_withobject_parent84?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -191,15 +191,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::Unit::cadence] end - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::Price::Unit::conversion_rate_config] - end - type price_type = :usage_price | :fixed_price module PriceType @@ -219,7 +210,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::Package::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Package::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::Package::unnamed_type_withobject_parent85?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -253,7 +244,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::Package::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::Package::unnamed_type_withobject_parent85? attr_accessor created_at: Time @@ -301,7 +292,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::Package::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Package::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::Package::unnamed_type_withobject_parent85?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -330,7 +321,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::Package::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Package::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::Package::unnamed_type_withobject_parent85?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -369,15 +360,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::Package::cadence] end - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::Price::Package::conversion_rate_config] - end - type price_type = :usage_price | :fixed_price module PriceType @@ -397,7 +379,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::Matrix::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Matrix::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::Matrix::unnamed_type_withobject_parent86?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -431,7 +413,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::Matrix::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::Matrix::unnamed_type_withobject_parent86? attr_accessor created_at: Time @@ -479,7 +461,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::Matrix::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Matrix::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::Matrix::unnamed_type_withobject_parent86?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -508,7 +490,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::Matrix::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Matrix::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::Matrix::unnamed_type_withobject_parent86?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -547,15 +529,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::Matrix::cadence] end - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::Price::Matrix::conversion_rate_config] - end - type price_type = :usage_price | :fixed_price module PriceType @@ -575,7 +548,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::Tiered::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Tiered::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::Tiered::unnamed_type_withobject_parent87?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -609,7 +582,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::Tiered::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::Tiered::unnamed_type_withobject_parent87? attr_accessor created_at: Time @@ -657,7 +630,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::Tiered::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Tiered::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::Tiered::unnamed_type_withobject_parent87?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -686,7 +659,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::Tiered::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Tiered::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::Tiered::unnamed_type_withobject_parent87?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -725,15 +698,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::Tiered::cadence] end - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::Price::Tiered::conversion_rate_config] - end - type price_type = :usage_price | :fixed_price module PriceType @@ -753,7 +717,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::TieredBPS::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredBPS::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::TieredBPS::unnamed_type_withobject_parent88?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -787,7 +751,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::TieredBPS::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::TieredBPS::unnamed_type_withobject_parent88? attr_accessor created_at: Time @@ -835,7 +799,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::TieredBPS::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredBPS::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::TieredBPS::unnamed_type_withobject_parent88?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -864,7 +828,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::TieredBPS::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredBPS::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::TieredBPS::unnamed_type_withobject_parent88?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -903,15 +867,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::TieredBPS::cadence] end - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::Price::TieredBPS::conversion_rate_config] - end - type price_type = :usage_price | :fixed_price module PriceType @@ -932,7 +887,7 @@ module Orb bps_config: Orb::BPSConfig, cadence: Orb::Models::Price::BPS::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::BPS::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::BPS::unnamed_type_withobject_parent89?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -967,7 +922,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::BPS::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::BPS::unnamed_type_withobject_parent89? attr_accessor created_at: Time @@ -1014,7 +969,7 @@ module Orb bps_config: Orb::BPSConfig, cadence: Orb::Models::Price::BPS::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::BPS::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::BPS::unnamed_type_withobject_parent89?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1043,7 +998,7 @@ module Orb bps_config: Orb::BPSConfig, cadence: Orb::Models::Price::BPS::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::BPS::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::BPS::unnamed_type_withobject_parent89?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1081,15 +1036,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::BPS::cadence] end - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::Price::BPS::conversion_rate_config] - end - type price_type = :usage_price | :fixed_price module PriceType @@ -1110,7 +1056,7 @@ module Orb bulk_bps_config: Orb::BulkBPSConfig, cadence: Orb::Models::Price::BulkBPS::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::BulkBPS::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::BulkBPS::unnamed_type_withobject_parent90?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1145,7 +1091,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::BulkBPS::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::BulkBPS::unnamed_type_withobject_parent90? attr_accessor created_at: Time @@ -1192,7 +1138,7 @@ module Orb bulk_bps_config: Orb::BulkBPSConfig, cadence: Orb::Models::Price::BulkBPS::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::BulkBPS::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::BulkBPS::unnamed_type_withobject_parent90?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1221,7 +1167,7 @@ module Orb bulk_bps_config: Orb::BulkBPSConfig, cadence: Orb::Models::Price::BulkBPS::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::BulkBPS::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::BulkBPS::unnamed_type_withobject_parent90?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1259,15 +1205,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::BulkBPS::cadence] end - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::Price::BulkBPS::conversion_rate_config] - end - type price_type = :usage_price | :fixed_price module PriceType @@ -1288,7 +1225,7 @@ module Orb bulk_config: Orb::BulkConfig, cadence: Orb::Models::Price::Bulk::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Bulk::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::Bulk::unnamed_type_withobject_parent91?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1323,7 +1260,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::Bulk::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::Bulk::unnamed_type_withobject_parent91? attr_accessor created_at: Time @@ -1370,7 +1307,7 @@ module Orb bulk_config: Orb::BulkConfig, cadence: Orb::Models::Price::Bulk::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Bulk::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::Bulk::unnamed_type_withobject_parent91?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1399,7 +1336,7 @@ module Orb bulk_config: Orb::BulkConfig, cadence: Orb::Models::Price::Bulk::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Bulk::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::Bulk::unnamed_type_withobject_parent91?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1437,15 +1374,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::Bulk::cadence] end - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::Price::Bulk::conversion_rate_config] - end - type price_type = :usage_price | :fixed_price module PriceType @@ -1465,7 +1393,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::ThresholdTotalAmount::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ThresholdTotalAmount::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::ThresholdTotalAmount::unnamed_type_withobject_parent92?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1499,7 +1427,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::ThresholdTotalAmount::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::ThresholdTotalAmount::unnamed_type_withobject_parent92? attr_accessor created_at: Time @@ -1547,7 +1475,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::ThresholdTotalAmount::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ThresholdTotalAmount::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::ThresholdTotalAmount::unnamed_type_withobject_parent92?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1576,7 +1504,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::ThresholdTotalAmount::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ThresholdTotalAmount::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::ThresholdTotalAmount::unnamed_type_withobject_parent92?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1615,15 +1543,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::ThresholdTotalAmount::cadence] end - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::Price::ThresholdTotalAmount::conversion_rate_config] - end - type price_type = :usage_price | :fixed_price module PriceType @@ -1643,7 +1562,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::TieredPackage::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredPackage::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::TieredPackage::unnamed_type_withobject_parent93?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1677,7 +1596,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::TieredPackage::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::TieredPackage::unnamed_type_withobject_parent93? attr_accessor created_at: Time @@ -1725,7 +1644,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::TieredPackage::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredPackage::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::TieredPackage::unnamed_type_withobject_parent93?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1754,7 +1673,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::TieredPackage::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredPackage::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::TieredPackage::unnamed_type_withobject_parent93?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1793,15 +1712,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::TieredPackage::cadence] end - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::Price::TieredPackage::conversion_rate_config] - end - type price_type = :usage_price | :fixed_price module PriceType @@ -1821,7 +1731,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedTiered::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedTiered::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::GroupedTiered::unnamed_type_withobject_parent94?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1855,7 +1765,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::GroupedTiered::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::GroupedTiered::unnamed_type_withobject_parent94? attr_accessor created_at: Time @@ -1903,7 +1813,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedTiered::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedTiered::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::GroupedTiered::unnamed_type_withobject_parent94?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1932,7 +1842,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedTiered::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedTiered::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::GroupedTiered::unnamed_type_withobject_parent94?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1971,15 +1881,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::GroupedTiered::cadence] end - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::Price::GroupedTiered::conversion_rate_config] - end - type price_type = :usage_price | :fixed_price module PriceType @@ -1999,7 +1900,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::TieredWithMinimum::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredWithMinimum::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::TieredWithMinimum::unnamed_type_withobject_parent95?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2033,7 +1934,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::TieredWithMinimum::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::TieredWithMinimum::unnamed_type_withobject_parent95? attr_accessor created_at: Time @@ -2081,7 +1982,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::TieredWithMinimum::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredWithMinimum::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::TieredWithMinimum::unnamed_type_withobject_parent95?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2110,7 +2011,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::TieredWithMinimum::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredWithMinimum::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::TieredWithMinimum::unnamed_type_withobject_parent95?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2149,15 +2050,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::TieredWithMinimum::cadence] end - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::Price::TieredWithMinimum::conversion_rate_config] - end - type price_type = :usage_price | :fixed_price module PriceType @@ -2177,7 +2069,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::TieredPackageWithMinimum::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredPackageWithMinimum::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::TieredPackageWithMinimum::unnamed_type_withobject_parent96?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2211,7 +2103,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::TieredPackageWithMinimum::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::TieredPackageWithMinimum::unnamed_type_withobject_parent96? attr_accessor created_at: Time @@ -2259,7 +2151,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::TieredPackageWithMinimum::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredPackageWithMinimum::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::TieredPackageWithMinimum::unnamed_type_withobject_parent96?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2288,7 +2180,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::TieredPackageWithMinimum::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredPackageWithMinimum::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::TieredPackageWithMinimum::unnamed_type_withobject_parent96?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2327,15 +2219,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::TieredPackageWithMinimum::cadence] end - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::Price::TieredPackageWithMinimum::conversion_rate_config] - end - type price_type = :usage_price | :fixed_price module PriceType @@ -2355,7 +2238,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::PackageWithAllocation::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::PackageWithAllocation::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::PackageWithAllocation::unnamed_type_withobject_parent97?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2389,7 +2272,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::PackageWithAllocation::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::PackageWithAllocation::unnamed_type_withobject_parent97? attr_accessor created_at: Time @@ -2437,7 +2320,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::PackageWithAllocation::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::PackageWithAllocation::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::PackageWithAllocation::unnamed_type_withobject_parent97?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2466,7 +2349,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::PackageWithAllocation::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::PackageWithAllocation::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::PackageWithAllocation::unnamed_type_withobject_parent97?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2505,15 +2388,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::PackageWithAllocation::cadence] end - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::Price::PackageWithAllocation::conversion_rate_config] - end - type price_type = :usage_price | :fixed_price module PriceType @@ -2533,7 +2407,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::UnitWithPercent::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::UnitWithPercent::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::UnitWithPercent::unnamed_type_withobject_parent98?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2567,7 +2441,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::UnitWithPercent::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::UnitWithPercent::unnamed_type_withobject_parent98? attr_accessor created_at: Time @@ -2615,7 +2489,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::UnitWithPercent::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::UnitWithPercent::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::UnitWithPercent::unnamed_type_withobject_parent98?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2644,7 +2518,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::UnitWithPercent::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::UnitWithPercent::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::UnitWithPercent::unnamed_type_withobject_parent98?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2683,15 +2557,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::UnitWithPercent::cadence] end - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::Price::UnitWithPercent::conversion_rate_config] - end - type price_type = :usage_price | :fixed_price module PriceType @@ -2711,7 +2576,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::MatrixWithAllocation::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MatrixWithAllocation::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::MatrixWithAllocation::unnamed_type_withobject_parent99?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2745,7 +2610,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::MatrixWithAllocation::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::MatrixWithAllocation::unnamed_type_withobject_parent99? attr_accessor created_at: Time @@ -2793,7 +2658,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::MatrixWithAllocation::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MatrixWithAllocation::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::MatrixWithAllocation::unnamed_type_withobject_parent99?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2822,7 +2687,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::MatrixWithAllocation::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MatrixWithAllocation::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::MatrixWithAllocation::unnamed_type_withobject_parent99?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2861,15 +2726,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::MatrixWithAllocation::cadence] end - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::Price::MatrixWithAllocation::conversion_rate_config] - end - type price_type = :usage_price | :fixed_price module PriceType @@ -2889,7 +2745,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::TieredWithProration::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredWithProration::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::TieredWithProration::unnamed_type_withobject_parent100?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2923,7 +2779,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::TieredWithProration::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::TieredWithProration::unnamed_type_withobject_parent100? attr_accessor created_at: Time @@ -2971,7 +2827,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::TieredWithProration::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredWithProration::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::TieredWithProration::unnamed_type_withobject_parent100?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3000,7 +2856,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::TieredWithProration::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredWithProration::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::TieredWithProration::unnamed_type_withobject_parent100?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3039,15 +2895,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::TieredWithProration::cadence] end - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::Price::TieredWithProration::conversion_rate_config] - end - type price_type = :usage_price | :fixed_price module PriceType @@ -3067,7 +2914,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::UnitWithProration::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::UnitWithProration::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::UnitWithProration::unnamed_type_withobject_parent101?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3101,7 +2948,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::UnitWithProration::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::UnitWithProration::unnamed_type_withobject_parent101? attr_accessor created_at: Time @@ -3149,7 +2996,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::UnitWithProration::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::UnitWithProration::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::UnitWithProration::unnamed_type_withobject_parent101?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3178,7 +3025,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::UnitWithProration::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::UnitWithProration::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::UnitWithProration::unnamed_type_withobject_parent101?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3217,15 +3064,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::UnitWithProration::cadence] end - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::Price::UnitWithProration::conversion_rate_config] - end - type price_type = :usage_price | :fixed_price module PriceType @@ -3245,7 +3083,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedAllocation::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedAllocation::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::GroupedAllocation::unnamed_type_withobject_parent102?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3279,7 +3117,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::GroupedAllocation::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::GroupedAllocation::unnamed_type_withobject_parent102? attr_accessor created_at: Time @@ -3327,7 +3165,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedAllocation::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedAllocation::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::GroupedAllocation::unnamed_type_withobject_parent102?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3356,7 +3194,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedAllocation::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedAllocation::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::GroupedAllocation::unnamed_type_withobject_parent102?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3395,15 +3233,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::GroupedAllocation::cadence] end - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::Price::GroupedAllocation::conversion_rate_config] - end - type price_type = :usage_price | :fixed_price module PriceType @@ -3423,7 +3252,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedWithProratedMinimum::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::unnamed_type_withobject_parent103?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3457,7 +3286,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::unnamed_type_withobject_parent103? attr_accessor created_at: Time @@ -3505,7 +3334,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedWithProratedMinimum::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::unnamed_type_withobject_parent103?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3534,7 +3363,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedWithProratedMinimum::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::unnamed_type_withobject_parent103?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3573,15 +3402,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::GroupedWithProratedMinimum::cadence] end - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::Price::GroupedWithProratedMinimum::conversion_rate_config] - end - type price_type = :usage_price | :fixed_price module PriceType @@ -3601,7 +3421,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedWithMeteredMinimum::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::unnamed_type_withobject_parent104?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3635,7 +3455,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::unnamed_type_withobject_parent104? attr_accessor created_at: Time @@ -3683,7 +3503,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedWithMeteredMinimum::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::unnamed_type_withobject_parent104?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3712,7 +3532,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedWithMeteredMinimum::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::unnamed_type_withobject_parent104?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3751,15 +3571,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::GroupedWithMeteredMinimum::cadence] end - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::Price::GroupedWithMeteredMinimum::conversion_rate_config] - end - type price_type = :usage_price | :fixed_price module PriceType @@ -3779,7 +3590,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::MatrixWithDisplayName::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::unnamed_type_withobject_parent105?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3813,7 +3624,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::unnamed_type_withobject_parent105? attr_accessor created_at: Time @@ -3861,7 +3672,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::MatrixWithDisplayName::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::unnamed_type_withobject_parent105?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3890,7 +3701,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::MatrixWithDisplayName::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::unnamed_type_withobject_parent105?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3929,15 +3740,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::MatrixWithDisplayName::cadence] end - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::Price::MatrixWithDisplayName::conversion_rate_config] - end - type price_type = :usage_price | :fixed_price module PriceType @@ -3958,7 +3760,7 @@ module Orb bulk_with_proration_config: ::Hash[Symbol, top], cadence: Orb::Models::Price::BulkWithProration::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::BulkWithProration::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::BulkWithProration::unnamed_type_withobject_parent106?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3993,7 +3795,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::BulkWithProration::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::BulkWithProration::unnamed_type_withobject_parent106? attr_accessor created_at: Time @@ -4040,7 +3842,7 @@ module Orb bulk_with_proration_config: ::Hash[Symbol, top], cadence: Orb::Models::Price::BulkWithProration::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::BulkWithProration::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::BulkWithProration::unnamed_type_withobject_parent106?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4069,7 +3871,7 @@ module Orb bulk_with_proration_config: ::Hash[Symbol, top], cadence: Orb::Models::Price::BulkWithProration::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::BulkWithProration::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::BulkWithProration::unnamed_type_withobject_parent106?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4107,15 +3909,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::BulkWithProration::cadence] end - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::Price::BulkWithProration::conversion_rate_config] - end - type price_type = :usage_price | :fixed_price module PriceType @@ -4135,7 +3928,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedTieredPackage::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::unnamed_type_withobject_parent107?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4169,7 +3962,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::unnamed_type_withobject_parent107? attr_accessor created_at: Time @@ -4217,7 +4010,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedTieredPackage::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::unnamed_type_withobject_parent107?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4246,7 +4039,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedTieredPackage::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::unnamed_type_withobject_parent107?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4285,15 +4078,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::GroupedTieredPackage::cadence] end - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::Price::GroupedTieredPackage::conversion_rate_config] - end - type price_type = :usage_price | :fixed_price module PriceType @@ -4313,7 +4097,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::MaxGroupTieredPackage::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::unnamed_type_withobject_parent108?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4347,7 +4131,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::unnamed_type_withobject_parent108? attr_accessor created_at: Time @@ -4395,7 +4179,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::MaxGroupTieredPackage::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::unnamed_type_withobject_parent108?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4424,7 +4208,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::MaxGroupTieredPackage::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::unnamed_type_withobject_parent108?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4463,15 +4247,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::MaxGroupTieredPackage::cadence] end - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::Price::MaxGroupTieredPackage::conversion_rate_config] - end - type price_type = :usage_price | :fixed_price module PriceType @@ -4491,7 +4266,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::unnamed_type_withobject_parent109?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4525,7 +4300,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::unnamed_type_withobject_parent109? attr_accessor created_at: Time @@ -4573,7 +4348,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::unnamed_type_withobject_parent109?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4602,7 +4377,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::unnamed_type_withobject_parent109?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4641,15 +4416,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithUnitPricing::cadence] end - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::Price::ScalableMatrixWithUnitPricing::conversion_rate_config] - end - type price_type = :usage_price | :fixed_price module PriceType @@ -4669,7 +4435,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::unnamed_type_withobject_parent110?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4703,7 +4469,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::unnamed_type_withobject_parent110? attr_accessor created_at: Time @@ -4751,7 +4517,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::unnamed_type_withobject_parent110?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4780,7 +4546,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::unnamed_type_withobject_parent110?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4819,15 +4585,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithTieredPricing::cadence] end - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::Price::ScalableMatrixWithTieredPricing::conversion_rate_config] - end - type price_type = :usage_price | :fixed_price module PriceType @@ -4847,7 +4604,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::CumulativeGroupedBulk::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::unnamed_type_withobject_parent111?, created_at: Time, credit_allocation: Orb::Allocation?, cumulative_grouped_bulk_config: ::Hash[Symbol, top], @@ -4881,7 +4638,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::unnamed_type_withobject_parent111? attr_accessor created_at: Time @@ -4929,7 +4686,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::CumulativeGroupedBulk::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::unnamed_type_withobject_parent111?, created_at: Time, credit_allocation: Orb::Allocation?, cumulative_grouped_bulk_config: ::Hash[Symbol, top], @@ -4958,7 +4715,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::CumulativeGroupedBulk::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::unnamed_type_withobject_parent111?, created_at: Time, credit_allocation: Orb::Allocation?, cumulative_grouped_bulk_config: ::Hash[Symbol, top], @@ -4997,15 +4754,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::CumulativeGroupedBulk::cadence] end - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::Price::CumulativeGroupedBulk::conversion_rate_config] - end - type price_type = :usage_price | :fixed_price module PriceType @@ -5025,7 +4773,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedWithMinMaxThresholds::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent112?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -5059,7 +4807,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent112? attr_accessor created_at: Time @@ -5107,7 +4855,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedWithMinMaxThresholds::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent112?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -5136,7 +4884,7 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedWithMinMaxThresholds::cadence, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent112?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -5175,15 +4923,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::GroupedWithMinMaxThresholds::cadence] end - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::Price::GroupedWithMinMaxThresholds::conversion_rate_config] - end - type price_type = :usage_price | :fixed_price module PriceType diff --git a/sig/orb/models/price_create_params.rbs b/sig/orb/models/price_create_params.rbs index f036bb01..702c700d 100644 --- a/sig/orb/models/price_create_params.rbs +++ b/sig/orb/models/price_create_params.rbs @@ -262,15 +262,6 @@ module Orb def self?.values: -> ::Array[Orb::Models::PriceCreateParams::model_type] end - - type conversion_rate_config = - Orb::UnitConversionRateConfig | Orb::TieredConversionRateConfig - - module ConversionRateConfig - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::PriceCreateParams::conversion_rate_config] - end end end end diff --git a/test/orb/resources/prices/external_price_id_test.rb b/test/orb/resources/prices/external_price_id_test.rb index 1cad4c46..b4b45a3b 100644 --- a/test/orb/resources/prices/external_price_id_test.rb +++ b/test/orb/resources/prices/external_price_id_test.rb @@ -53,7 +53,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Unit::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Unit::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent84 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -81,7 +81,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Package::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Package::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent85 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -109,7 +109,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Matrix::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Matrix::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent86 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -137,7 +137,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Tiered::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Tiered::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent87 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -165,7 +165,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredBPS::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredBPS::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredBPS::UnnamedTypeWithobjectParent88 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -194,7 +194,7 @@ def test_update bps_config: Orb::BPSConfig, cadence: Orb::Price::BPS::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BPS::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::BPS::UnnamedTypeWithobjectParent89 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -222,7 +222,7 @@ def test_update bulk_bps_config: Orb::BulkBPSConfig, cadence: Orb::Price::BulkBPS::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkBPS::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::BulkBPS::UnnamedTypeWithobjectParent90 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -250,7 +250,7 @@ def test_update bulk_config: Orb::BulkConfig, cadence: Orb::Price::Bulk::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Bulk::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent91 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -277,7 +277,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ThresholdTotalAmount::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ThresholdTotalAmount::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent92 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -305,7 +305,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredPackage::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackage::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent93 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -333,7 +333,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedTiered::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTiered::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent94 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -361,7 +361,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredWithMinimum::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithMinimum::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent95 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -389,7 +389,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredPackageWithMinimum::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackageWithMinimum::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent96 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -417,7 +417,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::PackageWithAllocation::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::PackageWithAllocation::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent97 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -445,7 +445,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::UnitWithPercent::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithPercent::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent98 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -473,7 +473,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MatrixWithAllocation::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithAllocation::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent99 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -501,7 +501,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredWithProration::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithProration::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent100 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -529,7 +529,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::UnitWithProration::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithProration::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent101 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -557,7 +557,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedAllocation::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedAllocation::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent102 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -585,7 +585,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent103 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -613,7 +613,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent104 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -641,7 +641,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MatrixWithDisplayName::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithDisplayName::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent105 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -670,7 +670,7 @@ def test_update bulk_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), cadence: Orb::Price::BulkWithProration::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkWithProration::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent106 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -697,7 +697,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedTieredPackage::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTieredPackage::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent107 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -725,7 +725,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MaxGroupTieredPackage::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MaxGroupTieredPackage::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent108 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -753,7 +753,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent109 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -781,7 +781,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent110 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -809,7 +809,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::CumulativeGroupedBulk::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::CumulativeGroupedBulk::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent111 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), @@ -837,7 +837,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent112 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -912,7 +912,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Unit::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Unit::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent84 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -940,7 +940,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Package::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Package::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent85 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -968,7 +968,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Matrix::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Matrix::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent86 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -996,7 +996,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Tiered::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Tiered::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent87 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1024,7 +1024,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredBPS::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredBPS::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredBPS::UnnamedTypeWithobjectParent88 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1053,7 +1053,7 @@ def test_fetch bps_config: Orb::BPSConfig, cadence: Orb::Price::BPS::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BPS::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::BPS::UnnamedTypeWithobjectParent89 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1081,7 +1081,7 @@ def test_fetch bulk_bps_config: Orb::BulkBPSConfig, cadence: Orb::Price::BulkBPS::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkBPS::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::BulkBPS::UnnamedTypeWithobjectParent90 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1109,7 +1109,7 @@ def test_fetch bulk_config: Orb::BulkConfig, cadence: Orb::Price::Bulk::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Bulk::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent91 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1136,7 +1136,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ThresholdTotalAmount::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ThresholdTotalAmount::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent92 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1164,7 +1164,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredPackage::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackage::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent93 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1192,7 +1192,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedTiered::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTiered::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent94 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1220,7 +1220,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredWithMinimum::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithMinimum::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent95 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1248,7 +1248,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredPackageWithMinimum::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackageWithMinimum::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent96 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1276,7 +1276,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::PackageWithAllocation::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::PackageWithAllocation::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent97 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1304,7 +1304,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::UnitWithPercent::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithPercent::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent98 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1332,7 +1332,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MatrixWithAllocation::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithAllocation::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent99 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1360,7 +1360,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredWithProration::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithProration::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent100 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1388,7 +1388,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::UnitWithProration::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithProration::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent101 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1416,7 +1416,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedAllocation::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedAllocation::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent102 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1444,7 +1444,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent103 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1472,7 +1472,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent104 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1500,7 +1500,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MatrixWithDisplayName::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithDisplayName::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent105 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1529,7 +1529,7 @@ def test_fetch bulk_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), cadence: Orb::Price::BulkWithProration::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkWithProration::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent106 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1556,7 +1556,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedTieredPackage::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTieredPackage::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent107 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1584,7 +1584,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MaxGroupTieredPackage::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MaxGroupTieredPackage::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent108 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1612,7 +1612,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent109 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1640,7 +1640,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent110 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1668,7 +1668,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::CumulativeGroupedBulk::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::CumulativeGroupedBulk::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent111 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), @@ -1696,7 +1696,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent112 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, diff --git a/test/orb/resources/prices_test.rb b/test/orb/resources/prices_test.rb index d3caf913..df97d265 100644 --- a/test/orb/resources/prices_test.rb +++ b/test/orb/resources/prices_test.rb @@ -61,7 +61,7 @@ def test_create_required_params billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Unit::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Unit::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent84 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -89,7 +89,7 @@ def test_create_required_params billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Package::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Package::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent85 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -117,7 +117,7 @@ def test_create_required_params billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Matrix::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Matrix::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent86 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -145,7 +145,7 @@ def test_create_required_params billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Tiered::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Tiered::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent87 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -173,7 +173,7 @@ def test_create_required_params billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredBPS::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredBPS::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredBPS::UnnamedTypeWithobjectParent88 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -202,7 +202,7 @@ def test_create_required_params bps_config: Orb::BPSConfig, cadence: Orb::Price::BPS::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BPS::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::BPS::UnnamedTypeWithobjectParent89 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -230,7 +230,7 @@ def test_create_required_params bulk_bps_config: Orb::BulkBPSConfig, cadence: Orb::Price::BulkBPS::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkBPS::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::BulkBPS::UnnamedTypeWithobjectParent90 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -258,7 +258,7 @@ def test_create_required_params bulk_config: Orb::BulkConfig, cadence: Orb::Price::Bulk::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Bulk::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent91 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -285,7 +285,7 @@ def test_create_required_params billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ThresholdTotalAmount::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ThresholdTotalAmount::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent92 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -313,7 +313,7 @@ def test_create_required_params billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredPackage::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackage::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent93 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -341,7 +341,7 @@ def test_create_required_params billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedTiered::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTiered::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent94 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -369,7 +369,7 @@ def test_create_required_params billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredWithMinimum::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithMinimum::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent95 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -397,7 +397,7 @@ def test_create_required_params billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredPackageWithMinimum::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackageWithMinimum::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent96 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -425,7 +425,7 @@ def test_create_required_params billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::PackageWithAllocation::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::PackageWithAllocation::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent97 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -453,7 +453,7 @@ def test_create_required_params billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::UnitWithPercent::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithPercent::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent98 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -481,7 +481,7 @@ def test_create_required_params billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MatrixWithAllocation::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithAllocation::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent99 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -509,7 +509,7 @@ def test_create_required_params billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredWithProration::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithProration::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent100 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -537,7 +537,7 @@ def test_create_required_params billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::UnitWithProration::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithProration::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent101 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -565,7 +565,7 @@ def test_create_required_params billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedAllocation::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedAllocation::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent102 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -593,7 +593,7 @@ def test_create_required_params billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent103 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -621,7 +621,7 @@ def test_create_required_params billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent104 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -649,7 +649,7 @@ def test_create_required_params billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MatrixWithDisplayName::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithDisplayName::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent105 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -678,7 +678,7 @@ def test_create_required_params bulk_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), cadence: Orb::Price::BulkWithProration::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkWithProration::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent106 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -705,7 +705,7 @@ def test_create_required_params billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedTieredPackage::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTieredPackage::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent107 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -733,7 +733,7 @@ def test_create_required_params billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MaxGroupTieredPackage::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MaxGroupTieredPackage::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent108 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -761,7 +761,7 @@ def test_create_required_params billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent109 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -789,7 +789,7 @@ def test_create_required_params billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent110 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -817,7 +817,7 @@ def test_create_required_params billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::CumulativeGroupedBulk::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::CumulativeGroupedBulk::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent111 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), @@ -845,7 +845,7 @@ def test_create_required_params billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent112 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -920,7 +920,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Unit::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Unit::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent84 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -948,7 +948,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Package::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Package::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent85 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -976,7 +976,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Matrix::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Matrix::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent86 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1004,7 +1004,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Tiered::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Tiered::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent87 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1032,7 +1032,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredBPS::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredBPS::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredBPS::UnnamedTypeWithobjectParent88 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1061,7 +1061,7 @@ def test_update bps_config: Orb::BPSConfig, cadence: Orb::Price::BPS::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BPS::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::BPS::UnnamedTypeWithobjectParent89 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1089,7 +1089,7 @@ def test_update bulk_bps_config: Orb::BulkBPSConfig, cadence: Orb::Price::BulkBPS::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkBPS::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::BulkBPS::UnnamedTypeWithobjectParent90 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1117,7 +1117,7 @@ def test_update bulk_config: Orb::BulkConfig, cadence: Orb::Price::Bulk::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Bulk::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent91 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1144,7 +1144,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ThresholdTotalAmount::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ThresholdTotalAmount::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent92 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1172,7 +1172,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredPackage::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackage::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent93 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1200,7 +1200,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedTiered::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTiered::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent94 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1228,7 +1228,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredWithMinimum::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithMinimum::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent95 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1256,7 +1256,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredPackageWithMinimum::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackageWithMinimum::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent96 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1284,7 +1284,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::PackageWithAllocation::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::PackageWithAllocation::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent97 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1312,7 +1312,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::UnitWithPercent::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithPercent::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent98 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1340,7 +1340,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MatrixWithAllocation::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithAllocation::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent99 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1368,7 +1368,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredWithProration::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithProration::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent100 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1396,7 +1396,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::UnitWithProration::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithProration::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent101 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1424,7 +1424,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedAllocation::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedAllocation::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent102 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1452,7 +1452,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent103 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1480,7 +1480,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent104 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1508,7 +1508,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MatrixWithDisplayName::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithDisplayName::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent105 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1537,7 +1537,7 @@ def test_update bulk_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), cadence: Orb::Price::BulkWithProration::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkWithProration::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent106 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1564,7 +1564,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedTieredPackage::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTieredPackage::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent107 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1592,7 +1592,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MaxGroupTieredPackage::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MaxGroupTieredPackage::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent108 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1620,7 +1620,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent109 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1648,7 +1648,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent110 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1676,7 +1676,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::CumulativeGroupedBulk::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::CumulativeGroupedBulk::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent111 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), @@ -1704,7 +1704,7 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent112 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1786,7 +1786,7 @@ def test_list billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Unit::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Unit::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent84 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1814,7 +1814,7 @@ def test_list billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Package::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Package::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent85 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1842,7 +1842,7 @@ def test_list billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Matrix::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Matrix::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent86 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1870,7 +1870,7 @@ def test_list billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Tiered::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Tiered::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent87 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1898,7 +1898,7 @@ def test_list billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredBPS::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredBPS::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredBPS::UnnamedTypeWithobjectParent88 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1927,7 +1927,7 @@ def test_list bps_config: Orb::BPSConfig, cadence: Orb::Price::BPS::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BPS::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::BPS::UnnamedTypeWithobjectParent89 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1955,7 +1955,7 @@ def test_list bulk_bps_config: Orb::BulkBPSConfig, cadence: Orb::Price::BulkBPS::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkBPS::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::BulkBPS::UnnamedTypeWithobjectParent90 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1983,7 +1983,7 @@ def test_list bulk_config: Orb::BulkConfig, cadence: Orb::Price::Bulk::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Bulk::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent91 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2010,7 +2010,7 @@ def test_list billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ThresholdTotalAmount::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ThresholdTotalAmount::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent92 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2038,7 +2038,7 @@ def test_list billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredPackage::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackage::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent93 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2066,7 +2066,7 @@ def test_list billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedTiered::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTiered::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent94 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2094,7 +2094,7 @@ def test_list billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredWithMinimum::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithMinimum::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent95 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2122,7 +2122,7 @@ def test_list billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredPackageWithMinimum::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackageWithMinimum::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent96 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2150,7 +2150,7 @@ def test_list billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::PackageWithAllocation::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::PackageWithAllocation::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent97 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2178,7 +2178,7 @@ def test_list billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::UnitWithPercent::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithPercent::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent98 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2206,7 +2206,7 @@ def test_list billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MatrixWithAllocation::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithAllocation::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent99 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2234,7 +2234,7 @@ def test_list billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredWithProration::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithProration::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent100 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2262,7 +2262,7 @@ def test_list billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::UnitWithProration::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithProration::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent101 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2290,7 +2290,7 @@ def test_list billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedAllocation::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedAllocation::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent102 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2318,7 +2318,7 @@ def test_list billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent103 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2346,7 +2346,7 @@ def test_list billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent104 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2374,7 +2374,7 @@ def test_list billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MatrixWithDisplayName::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithDisplayName::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent105 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2403,7 +2403,7 @@ def test_list bulk_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), cadence: Orb::Price::BulkWithProration::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkWithProration::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent106 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2430,7 +2430,7 @@ def test_list billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedTieredPackage::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTieredPackage::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent107 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2458,7 +2458,7 @@ def test_list billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MaxGroupTieredPackage::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MaxGroupTieredPackage::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent108 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2486,7 +2486,7 @@ def test_list billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent109 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2514,7 +2514,7 @@ def test_list billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent110 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2542,7 +2542,7 @@ def test_list billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::CumulativeGroupedBulk::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::CumulativeGroupedBulk::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent111 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), @@ -2570,7 +2570,7 @@ def test_list billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent112 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2700,7 +2700,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Unit::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Unit::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent84 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2728,7 +2728,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Package::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Package::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent85 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2756,7 +2756,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Matrix::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Matrix::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent86 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2784,7 +2784,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Tiered::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Tiered::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent87 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2812,7 +2812,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredBPS::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredBPS::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredBPS::UnnamedTypeWithobjectParent88 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2841,7 +2841,7 @@ def test_fetch bps_config: Orb::BPSConfig, cadence: Orb::Price::BPS::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BPS::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::BPS::UnnamedTypeWithobjectParent89 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2869,7 +2869,7 @@ def test_fetch bulk_bps_config: Orb::BulkBPSConfig, cadence: Orb::Price::BulkBPS::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkBPS::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::BulkBPS::UnnamedTypeWithobjectParent90 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2897,7 +2897,7 @@ def test_fetch bulk_config: Orb::BulkConfig, cadence: Orb::Price::Bulk::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Bulk::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent91 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2924,7 +2924,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ThresholdTotalAmount::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ThresholdTotalAmount::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent92 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2952,7 +2952,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredPackage::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackage::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent93 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2980,7 +2980,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedTiered::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTiered::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent94 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3008,7 +3008,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredWithMinimum::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithMinimum::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent95 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3036,7 +3036,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredPackageWithMinimum::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackageWithMinimum::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent96 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3064,7 +3064,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::PackageWithAllocation::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::PackageWithAllocation::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent97 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3092,7 +3092,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::UnitWithPercent::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithPercent::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent98 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3120,7 +3120,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MatrixWithAllocation::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithAllocation::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent99 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3148,7 +3148,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredWithProration::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithProration::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent100 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3176,7 +3176,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::UnitWithProration::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithProration::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent101 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3204,7 +3204,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedAllocation::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedAllocation::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent102 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3232,7 +3232,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent103 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3260,7 +3260,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent104 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3288,7 +3288,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MatrixWithDisplayName::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithDisplayName::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent105 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3317,7 +3317,7 @@ def test_fetch bulk_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), cadence: Orb::Price::BulkWithProration::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkWithProration::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent106 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3344,7 +3344,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedTieredPackage::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTieredPackage::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent107 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3372,7 +3372,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MaxGroupTieredPackage::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MaxGroupTieredPackage::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent108 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3400,7 +3400,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent109 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3428,7 +3428,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent110 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3456,7 +3456,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::CumulativeGroupedBulk::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::CumulativeGroupedBulk::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent111 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), @@ -3484,7 +3484,7 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent112 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, From 394af826a5ba3cd462447304c8ec659038e67617 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 2 Sep 2025 23:42:03 +0000 Subject: [PATCH 02/24] feat(api): api update --- .stats.yml | 4 +- lib/orb.rb | 14 - lib/orb/models.rb | 28 - ...rnal_plan_id_create_plan_version_params.rb | 824 ++++- .../models/beta_create_plan_version_params.rb | 821 ++++- lib/orb/models/bps_config.rb | 24 - lib/orb/models/bps_tier.rb | 40 - lib/orb/models/bulk_bps_config.rb | 20 - lib/orb/models/bulk_bps_tier.rb | 32 - lib/orb/models/customer.rb | 12 +- lib/orb/models/customer_create_params.rb | 13 +- .../customer_update_by_external_id_params.rb | 13 +- lib/orb/models/customer_update_params.rb | 13 +- .../balance_transaction_create_response.rb | 1 + .../balance_transaction_list_response.rb | 1 + ...dger_create_entry_by_external_id_params.rb | 40 +- .../credits/ledger_create_entry_params.rb | 40 +- lib/orb/models/invoice.rb | 23 +- lib/orb/models/invoice_create_params.rb | 40 +- .../models/invoice_fetch_upcoming_response.rb | 23 +- .../invoice_line_item_create_response.rb | 8 +- lib/orb/models/invoice_update_params.rb | 36 +- .../monetary_amount_discount_adjustment.rb | 6 +- lib/orb/models/monetary_maximum_adjustment.rb | 6 +- lib/orb/models/monetary_minimum_adjustment.rb | 6 +- ...monetary_percentage_discount_adjustment.rb | 6 +- .../monetary_usage_discount_adjustment.rb | 6 +- lib/orb/models/new_floating_bps_price.rb | 181 -- lib/orb/models/new_floating_bulk_bps_price.rb | 181 -- lib/orb/models/new_floating_bulk_price.rb | 2 +- .../new_floating_bulk_with_proration_price.rb | 2 +- ..._floating_cumulative_grouped_bulk_price.rb | 2 +- .../new_floating_grouped_allocation_price.rb | 2 +- ...w_floating_grouped_tiered_package_price.rb | 2 +- .../new_floating_grouped_tiered_price.rb | 2 +- ...ting_grouped_with_metered_minimum_price.rb | 2 +- ...ing_grouped_with_prorated_minimum_price.rb | 2 +- lib/orb/models/new_floating_matrix_price.rb | 2 +- ...w_floating_matrix_with_allocation_price.rb | 2 +- ...floating_matrix_with_display_name_price.rb | 2 +- ...floating_max_group_tiered_package_price.rb | 2 +- lib/orb/models/new_floating_package_price.rb | 2 +- ..._floating_package_with_allocation_price.rb | 2 +- ...alable_matrix_with_tiered_pricing_price.rb | 2 +- ...scalable_matrix_with_unit_pricing_price.rb | 2 +- ...w_floating_threshold_total_amount_price.rb | 2 +- .../models/new_floating_tiered_bps_price.rb | 181 -- .../new_floating_tiered_package_price.rb | 2 +- ...ating_tiered_package_with_minimum_price.rb | 2 +- lib/orb/models/new_floating_tiered_price.rb | 2 +- .../new_floating_tiered_with_minimum_price.rb | 2 +- ...ew_floating_tiered_with_proration_price.rb | 2 +- lib/orb/models/new_floating_unit_price.rb | 2 +- .../new_floating_unit_with_percent_price.rb | 2 +- .../new_floating_unit_with_proration_price.rb | 2 +- lib/orb/models/new_plan_bps_price.rb | 191 -- lib/orb/models/new_plan_bulk_bps_price.rb | 191 -- lib/orb/models/new_plan_bulk_price.rb | 2 +- .../new_plan_bulk_with_proration_price.rb | 2 +- .../new_plan_cumulative_grouped_bulk_price.rb | 2 +- .../new_plan_grouped_allocation_price.rb | 2 +- .../new_plan_grouped_tiered_package_price.rb | 2 +- .../models/new_plan_grouped_tiered_price.rb | 2 +- ...plan_grouped_with_metered_minimum_price.rb | 2 +- ...lan_grouped_with_prorated_minimum_price.rb | 2 +- lib/orb/models/new_plan_matrix_price.rb | 2 +- .../new_plan_matrix_with_allocation_price.rb | 2 +- ...new_plan_matrix_with_display_name_price.rb | 2 +- ...new_plan_max_group_tiered_package_price.rb | 2 +- lib/orb/models/new_plan_package_price.rb | 2 +- .../new_plan_package_with_allocation_price.rb | 2 +- ...alable_matrix_with_tiered_pricing_price.rb | 2 +- ...scalable_matrix_with_unit_pricing_price.rb | 2 +- .../new_plan_threshold_total_amount_price.rb | 2 +- .../new_plan_tier_with_proration_price.rb | 2 +- lib/orb/models/new_plan_tiered_bps_price.rb | 191 -- .../models/new_plan_tiered_package_price.rb | 2 +- ..._plan_tiered_package_with_minimum_price.rb | 2 +- lib/orb/models/new_plan_tiered_price.rb | 2 +- .../new_plan_tiered_with_minimum_price.rb | 2 +- lib/orb/models/new_plan_unit_price.rb | 2 +- .../new_plan_unit_with_percent_price.rb | 2 +- .../new_plan_unit_with_proration_price.rb | 2 +- lib/orb/models/new_subscription_bps_price.rb | 191 -- .../models/new_subscription_bulk_bps_price.rb | 191 -- ..._subscription_tier_with_proration_price.rb | 2 +- .../new_subscription_tiered_bps_price.rb | 191 -- .../new_subscription_tiered_package_price.rb | 2 +- ...ption_tiered_package_with_minimum_price.rb | 2 +- .../models/new_subscription_tiered_price.rb | 2 +- ..._subscription_tiered_with_minimum_price.rb | 2 +- lib/orb/models/new_subscription_unit_price.rb | 2 +- ...ew_subscription_unit_with_percent_price.rb | 2 +- ..._subscription_unit_with_proration_price.rb | 2 +- lib/orb/models/per_price_cost.rb | 4 +- lib/orb/models/plan.rb | 4 +- lib/orb/models/plan_create_params.rb | 408 ++- .../plan_phase_amount_discount_adjustment.rb | 6 +- .../models/plan_phase_maximum_adjustment.rb | 6 +- .../models/plan_phase_minimum_adjustment.rb | 6 +- ...an_phase_percentage_discount_adjustment.rb | 6 +- .../plan_phase_usage_discount_adjustment.rb | 6 +- lib/orb/models/plan_version.rb | 4 +- lib/orb/models/price.rb | 1459 ++++----- lib/orb/models/price_create_params.rb | 63 +- .../models/price_evaluate_multiple_params.rb | 391 ++- .../price_evaluate_preview_events_params.rb | 392 ++- lib/orb/models/price_interval.rb | 4 +- lib/orb/models/subscription_create_params.rb | 821 ++++- .../subscription_price_intervals_params.rb | 454 ++- ...ubscription_schedule_plan_change_params.rb | 824 ++++- lib/orb/models/tiered_bps_config.rb | 20 - lib/orb/resources/alerts.rb | 2 +- lib/orb/resources/customers.rb | 12 +- lib/orb/resources/customers/credits/ledger.rb | 4 +- lib/orb/resources/dimensional_price_groups.rb | 2 +- lib/orb/resources/events/backfills.rb | 4 +- lib/orb/resources/invoices.rb | 22 +- lib/orb/resources/prices.rb | 20 +- lib/orb/resources/prices/external_price_id.rb | 4 +- lib/orb/resources/subscriptions.rb | 2 +- rbi/orb/models.rbi | 28 - ...nal_plan_id_create_plan_version_params.rbi | 1360 ++++++++- .../beta_create_plan_version_params.rbi | 1360 ++++++++- rbi/orb/models/bps_config.rbi | 36 - rbi/orb/models/bps_tier.rbi | 58 - rbi/orb/models/bulk_bps_config.rbi | 31 - rbi/orb/models/bulk_bps_tier.rbi | 50 - rbi/orb/models/customer.rbi | 12 + rbi/orb/models/customer_create_params.rbi | 14 + .../customer_update_by_external_id_params.rbi | 14 + rbi/orb/models/customer_update_params.rbi | 14 + .../balance_transaction_create_response.rbi | 5 + .../balance_transaction_list_response.rbi | 5 + ...ger_create_entry_by_external_id_params.rbi | 56 +- .../credits/ledger_create_entry_params.rbi | 56 +- rbi/orb/models/invoice.rbi | 25 +- rbi/orb/models/invoice_create_params.rbi | 50 +- .../invoice_fetch_upcoming_response.rbi | 25 +- .../invoice_line_item_create_response.rbi | 10 +- rbi/orb/models/invoice_update_params.rbi | 42 + .../monetary_amount_discount_adjustment.rbi | 8 +- .../models/monetary_maximum_adjustment.rbi | 8 +- .../models/monetary_minimum_adjustment.rbi | 8 +- ...onetary_percentage_discount_adjustment.rbi | 8 +- .../monetary_usage_discount_adjustment.rbi | 8 +- rbi/orb/models/new_floating_bps_price.rbi | 273 -- .../models/new_floating_bulk_bps_price.rbi | 286 -- .../models/new_floating_tiered_bps_price.rbi | 294 -- rbi/orb/models/new_plan_bps_price.rbi | 283 -- rbi/orb/models/new_plan_bulk_bps_price.rbi | 286 -- rbi/orb/models/new_plan_tiered_bps_price.rbi | 293 -- rbi/orb/models/new_subscription_bps_price.rbi | 294 -- .../new_subscription_bulk_bps_price.rbi | 315 -- .../new_subscription_tiered_bps_price.rbi | 317 -- rbi/orb/models/per_price_cost.rbi | 6 +- rbi/orb/models/plan.rbi | 6 +- rbi/orb/models/plan_create_params.rbi | 680 ++++- .../plan_phase_amount_discount_adjustment.rbi | 8 +- .../models/plan_phase_maximum_adjustment.rbi | 8 +- .../models/plan_phase_minimum_adjustment.rbi | 8 +- ...n_phase_percentage_discount_adjustment.rbi | 8 +- .../plan_phase_usage_discount_adjustment.rbi | 8 +- rbi/orb/models/plan_version.rbi | 6 +- rbi/orb/models/price.rbi | 2715 +++++++---------- rbi/orb/models/price_create_params.rbi | 92 +- .../models/price_evaluate_multiple_params.rbi | 656 +++- .../price_evaluate_preview_events_params.rbi | 656 +++- rbi/orb/models/price_interval.rbi | 6 +- rbi/orb/models/subscription_create_params.rbi | 1360 ++++++++- .../subscription_price_intervals_params.rbi | 764 ++++- ...bscription_schedule_plan_change_params.rbi | 1360 ++++++++- rbi/orb/models/tiered_bps_config.rbi | 29 - rbi/orb/resources/alerts.rbi | 2 +- rbi/orb/resources/customers.rbi | 18 + .../resources/customers/credits/ledger.rbi | 4 +- .../resources/dimensional_price_groups.rbi | 2 +- rbi/orb/resources/events/backfills.rbi | 4 +- rbi/orb/resources/invoices.rbi | 35 +- rbi/orb/resources/prices.rbi | 10 +- rbi/orb/resources/subscriptions.rbi | 2 +- sig/orb/models.rbs | 28 - ...nal_plan_id_create_plan_version_params.rbs | 532 +++- .../beta_create_plan_version_params.rbs | 526 +++- sig/orb/models/bps_config.rbs | 15 - sig/orb/models/bps_tier.rbs | 35 - sig/orb/models/bulk_bps_config.rbs | 13 - sig/orb/models/bulk_bps_tier.rbs | 26 - sig/orb/models/customer.rbs | 5 + sig/orb/models/customer_create_params.rbs | 5 + .../customer_update_by_external_id_params.rbs | 5 + sig/orb/models/customer_update_params.rbs | 5 + .../balance_transaction_create_response.rbs | 2 + .../balance_transaction_list_response.rbs | 2 + ...ger_create_entry_by_external_id_params.rbs | 13 + .../credits/ledger_create_entry_params.rbs | 13 + sig/orb/models/invoice.rbs | 7 + sig/orb/models/invoice_create_params.rbs | 13 + .../invoice_fetch_upcoming_response.rbs | 7 + sig/orb/models/invoice_update_params.rbs | 22 +- sig/orb/models/new_floating_bps_price.rbs | 126 - .../models/new_floating_bulk_bps_price.rbs | 126 - sig/orb/models/new_floating_bulk_price.rbs | 8 +- ...new_floating_bulk_with_proration_price.rbs | 8 +- ...floating_cumulative_grouped_bulk_price.rbs | 8 +- .../new_floating_grouped_allocation_price.rbs | 8 +- ..._floating_grouped_tiered_package_price.rbs | 8 +- .../new_floating_grouped_tiered_price.rbs | 8 +- ...ing_grouped_with_metered_minimum_price.rbs | 8 +- ...ng_grouped_with_prorated_minimum_price.rbs | 8 +- sig/orb/models/new_floating_matrix_price.rbs | 8 +- ..._floating_matrix_with_allocation_price.rbs | 8 +- ...loating_matrix_with_display_name_price.rbs | 8 +- ...loating_max_group_tiered_package_price.rbs | 8 +- sig/orb/models/new_floating_package_price.rbs | 8 +- ...floating_package_with_allocation_price.rbs | 8 +- ...lable_matrix_with_tiered_pricing_price.rbs | 8 +- ...calable_matrix_with_unit_pricing_price.rbs | 8 +- ..._floating_threshold_total_amount_price.rbs | 8 +- .../models/new_floating_tiered_bps_price.rbs | 126 - .../new_floating_tiered_package_price.rbs | 8 +- ...ting_tiered_package_with_minimum_price.rbs | 8 +- sig/orb/models/new_floating_tiered_price.rbs | 8 +- ...new_floating_tiered_with_minimum_price.rbs | 8 +- ...w_floating_tiered_with_proration_price.rbs | 8 +- sig/orb/models/new_floating_unit_price.rbs | 8 +- .../new_floating_unit_with_percent_price.rbs | 8 +- ...new_floating_unit_with_proration_price.rbs | 8 +- sig/orb/models/new_plan_bps_price.rbs | 131 - sig/orb/models/new_plan_bulk_bps_price.rbs | 131 - sig/orb/models/new_plan_bulk_price.rbs | 8 +- .../new_plan_bulk_with_proration_price.rbs | 8 +- ...new_plan_cumulative_grouped_bulk_price.rbs | 8 +- .../new_plan_grouped_allocation_price.rbs | 8 +- .../new_plan_grouped_tiered_package_price.rbs | 8 +- .../models/new_plan_grouped_tiered_price.rbs | 8 +- ...lan_grouped_with_metered_minimum_price.rbs | 8 +- ...an_grouped_with_prorated_minimum_price.rbs | 8 +- sig/orb/models/new_plan_matrix_price.rbs | 8 +- .../new_plan_matrix_with_allocation_price.rbs | 8 +- ...ew_plan_matrix_with_display_name_price.rbs | 8 +- ...ew_plan_max_group_tiered_package_price.rbs | 8 +- sig/orb/models/new_plan_package_price.rbs | 8 +- ...new_plan_package_with_allocation_price.rbs | 8 +- ...lable_matrix_with_tiered_pricing_price.rbs | 8 +- ...calable_matrix_with_unit_pricing_price.rbs | 8 +- .../new_plan_threshold_total_amount_price.rbs | 8 +- .../new_plan_tier_with_proration_price.rbs | 8 +- sig/orb/models/new_plan_tiered_bps_price.rbs | 131 - .../models/new_plan_tiered_package_price.rbs | 8 +- ...plan_tiered_package_with_minimum_price.rbs | 8 +- sig/orb/models/new_plan_tiered_price.rbs | 8 +- .../new_plan_tiered_with_minimum_price.rbs | 8 +- sig/orb/models/new_plan_unit_price.rbs | 8 +- .../new_plan_unit_with_percent_price.rbs | 8 +- .../new_plan_unit_with_proration_price.rbs | 8 +- sig/orb/models/new_subscription_bps_price.rbs | 131 - .../new_subscription_bulk_bps_price.rbs | 131 - ...subscription_tier_with_proration_price.rbs | 8 +- .../new_subscription_tiered_bps_price.rbs | 131 - .../new_subscription_tiered_package_price.rbs | 8 +- ...tion_tiered_package_with_minimum_price.rbs | 8 +- .../models/new_subscription_tiered_price.rbs | 8 +- ...subscription_tiered_with_minimum_price.rbs | 8 +- .../models/new_subscription_unit_price.rbs | 8 +- ...w_subscription_unit_with_percent_price.rbs | 8 +- ...subscription_unit_with_proration_price.rbs | 8 +- sig/orb/models/plan_create_params.rbs | 263 +- sig/orb/models/price.rbs | 1175 +++---- sig/orb/models/price_create_params.rbs | 43 +- .../models/price_evaluate_multiple_params.rbs | 253 +- .../price_evaluate_preview_events_params.rbs | 253 +- sig/orb/models/subscription_create_params.rbs | 526 +++- .../subscription_price_intervals_params.rbs | 284 +- ...bscription_schedule_plan_change_params.rbs | 526 +++- sig/orb/models/tiered_bps_config.rbs | 13 - sig/orb/resources/customers.rbs | 3 + sig/orb/resources/invoices.rbs | 3 + sig/orb/resources/prices.rbs | 5 +- test/orb/resources/customers_test.rb | 6 + .../prices/external_price_id_test.rb | 390 +-- test/orb/resources/prices_test.rb | 780 ++--- 282 files changed, 19894 insertions(+), 10771 deletions(-) delete mode 100644 lib/orb/models/bps_config.rb delete mode 100644 lib/orb/models/bps_tier.rb delete mode 100644 lib/orb/models/bulk_bps_config.rb delete mode 100644 lib/orb/models/bulk_bps_tier.rb delete mode 100644 lib/orb/models/new_floating_bps_price.rb delete mode 100644 lib/orb/models/new_floating_bulk_bps_price.rb delete mode 100644 lib/orb/models/new_floating_tiered_bps_price.rb delete mode 100644 lib/orb/models/new_plan_bps_price.rb delete mode 100644 lib/orb/models/new_plan_bulk_bps_price.rb delete mode 100644 lib/orb/models/new_plan_tiered_bps_price.rb delete mode 100644 lib/orb/models/new_subscription_bps_price.rb delete mode 100644 lib/orb/models/new_subscription_bulk_bps_price.rb delete mode 100644 lib/orb/models/new_subscription_tiered_bps_price.rb delete mode 100644 lib/orb/models/tiered_bps_config.rb delete mode 100644 rbi/orb/models/bps_config.rbi delete mode 100644 rbi/orb/models/bps_tier.rbi delete mode 100644 rbi/orb/models/bulk_bps_config.rbi delete mode 100644 rbi/orb/models/bulk_bps_tier.rbi delete mode 100644 rbi/orb/models/new_floating_bps_price.rbi delete mode 100644 rbi/orb/models/new_floating_bulk_bps_price.rbi delete mode 100644 rbi/orb/models/new_floating_tiered_bps_price.rbi delete mode 100644 rbi/orb/models/new_plan_bps_price.rbi delete mode 100644 rbi/orb/models/new_plan_bulk_bps_price.rbi delete mode 100644 rbi/orb/models/new_plan_tiered_bps_price.rbi delete mode 100644 rbi/orb/models/new_subscription_bps_price.rbi delete mode 100644 rbi/orb/models/new_subscription_bulk_bps_price.rbi delete mode 100644 rbi/orb/models/new_subscription_tiered_bps_price.rbi delete mode 100644 rbi/orb/models/tiered_bps_config.rbi delete mode 100644 sig/orb/models/bps_config.rbs delete mode 100644 sig/orb/models/bps_tier.rbs delete mode 100644 sig/orb/models/bulk_bps_config.rbs delete mode 100644 sig/orb/models/bulk_bps_tier.rbs delete mode 100644 sig/orb/models/new_floating_bps_price.rbs delete mode 100644 sig/orb/models/new_floating_bulk_bps_price.rbs delete mode 100644 sig/orb/models/new_floating_tiered_bps_price.rbs delete mode 100644 sig/orb/models/new_plan_bps_price.rbs delete mode 100644 sig/orb/models/new_plan_bulk_bps_price.rbs delete mode 100644 sig/orb/models/new_plan_tiered_bps_price.rbs delete mode 100644 sig/orb/models/new_subscription_bps_price.rbs delete mode 100644 sig/orb/models/new_subscription_bulk_bps_price.rbs delete mode 100644 sig/orb/models/new_subscription_tiered_bps_price.rbs delete mode 100644 sig/orb/models/tiered_bps_config.rbs diff --git a/.stats.yml b/.stats.yml index 3fc0331e..a2f42b36 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 118 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-4f31d46f5ba187fc4d702c9f9f1573dacb891edbd086f935707578d7c4f5fed8.yml -openapi_spec_hash: 25b1019f20a47b8af665aae5f8fd0025 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-6b2550b95f82872b3825619c109352352b9c92281c8b2470fce158e971142881.yml +openapi_spec_hash: 379df18de1af6a9d0b50d3653aab4d44 config_hash: be9350529b910ec14bff0a30cd74a185 diff --git a/lib/orb.rb b/lib/orb.rb index a8aaf838..1938dece 100644 --- a/lib/orb.rb +++ b/lib/orb.rb @@ -79,10 +79,6 @@ require_relative "orb/models/billing_cycle_anchor_configuration" require_relative "orb/models/billing_cycle_configuration" require_relative "orb/models/billing_cycle_relative_date" -require_relative "orb/models/bps_config" -require_relative "orb/models/bps_tier" -require_relative "orb/models/bulk_bps_config" -require_relative "orb/models/bulk_bps_tier" require_relative "orb/models/bulk_config" require_relative "orb/models/bulk_tier" require_relative "orb/models/changed_subscription_resources" @@ -234,8 +230,6 @@ require_relative "orb/models/new_avalara_tax_configuration" require_relative "orb/models/new_billing_cycle_configuration" require_relative "orb/models/new_dimensional_price_configuration" -require_relative "orb/models/new_floating_bps_price" -require_relative "orb/models/new_floating_bulk_bps_price" require_relative "orb/models/new_floating_bulk_price" require_relative "orb/models/new_floating_bulk_with_proration_price" require_relative "orb/models/new_floating_cumulative_grouped_bulk_price" @@ -253,7 +247,6 @@ require_relative "orb/models/new_floating_scalable_matrix_with_tiered_pricing_price" require_relative "orb/models/new_floating_scalable_matrix_with_unit_pricing_price" require_relative "orb/models/new_floating_threshold_total_amount_price" -require_relative "orb/models/new_floating_tiered_bps_price" require_relative "orb/models/new_floating_tiered_package_price" require_relative "orb/models/new_floating_tiered_package_with_minimum_price" require_relative "orb/models/new_floating_tiered_price" @@ -265,8 +258,6 @@ require_relative "orb/models/new_maximum" require_relative "orb/models/new_minimum" require_relative "orb/models/new_percentage_discount" -require_relative "orb/models/new_plan_bps_price" -require_relative "orb/models/new_plan_bulk_bps_price" require_relative "orb/models/new_plan_bulk_price" require_relative "orb/models/new_plan_bulk_with_proration_price" require_relative "orb/models/new_plan_cumulative_grouped_bulk_price" @@ -284,7 +275,6 @@ require_relative "orb/models/new_plan_scalable_matrix_with_tiered_pricing_price" require_relative "orb/models/new_plan_scalable_matrix_with_unit_pricing_price" require_relative "orb/models/new_plan_threshold_total_amount_price" -require_relative "orb/models/new_plan_tiered_bps_price" require_relative "orb/models/new_plan_tiered_package_price" require_relative "orb/models/new_plan_tiered_package_with_minimum_price" require_relative "orb/models/new_plan_tiered_price" @@ -295,8 +285,6 @@ require_relative "orb/models/new_plan_unit_with_proration_price" require_relative "orb/models/new_reporting_configuration" require_relative "orb/models/new_sphere_configuration" -require_relative "orb/models/new_subscription_bps_price" -require_relative "orb/models/new_subscription_bulk_bps_price" require_relative "orb/models/new_subscription_bulk_price" require_relative "orb/models/new_subscription_bulk_with_proration_price" require_relative "orb/models/new_subscription_cumulative_grouped_bulk_price" @@ -314,7 +302,6 @@ require_relative "orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price" require_relative "orb/models/new_subscription_scalable_matrix_with_unit_pricing_price" require_relative "orb/models/new_subscription_threshold_total_amount_price" -require_relative "orb/models/new_subscription_tiered_bps_price" require_relative "orb/models/new_subscription_tiered_package_price" require_relative "orb/models/new_subscription_tiered_package_with_minimum_price" require_relative "orb/models/new_subscription_tiered_price" @@ -396,7 +383,6 @@ require_relative "orb/models/threshold" require_relative "orb/models/tier" require_relative "orb/models/tier_config" -require_relative "orb/models/tiered_bps_config" require_relative "orb/models/tiered_config" require_relative "orb/models/tiered_conversion_rate_config" require_relative "orb/models/tier_sub_line_item" diff --git a/lib/orb/models.rb b/lib/orb/models.rb index 72de570f..dd619f82 100644 --- a/lib/orb/models.rb +++ b/lib/orb/models.rb @@ -91,14 +91,6 @@ module Orb BillingCycleRelativeDate = Orb::Models::BillingCycleRelativeDate - BPSConfig = Orb::Models::BPSConfig - - BPSTier = Orb::Models::BPSTier - - BulkBPSConfig = Orb::Models::BulkBPSConfig - - BulkBPSTier = Orb::Models::BulkBPSTier - BulkConfig = Orb::Models::BulkConfig BulkTier = Orb::Models::BulkTier @@ -290,10 +282,6 @@ module Orb NewDimensionalPriceConfiguration = Orb::Models::NewDimensionalPriceConfiguration - NewFloatingBPSPrice = Orb::Models::NewFloatingBPSPrice - - NewFloatingBulkBPSPrice = Orb::Models::NewFloatingBulkBPSPrice - NewFloatingBulkPrice = Orb::Models::NewFloatingBulkPrice NewFloatingBulkWithProrationPrice = Orb::Models::NewFloatingBulkWithProrationPrice @@ -330,8 +318,6 @@ module Orb NewFloatingThresholdTotalAmountPrice = Orb::Models::NewFloatingThresholdTotalAmountPrice - NewFloatingTieredBPSPrice = Orb::Models::NewFloatingTieredBPSPrice - NewFloatingTieredPackagePrice = Orb::Models::NewFloatingTieredPackagePrice NewFloatingTieredPackageWithMinimumPrice = Orb::Models::NewFloatingTieredPackageWithMinimumPrice @@ -354,10 +340,6 @@ module Orb NewPercentageDiscount = Orb::Models::NewPercentageDiscount - NewPlanBPSPrice = Orb::Models::NewPlanBPSPrice - - NewPlanBulkBPSPrice = Orb::Models::NewPlanBulkBPSPrice - NewPlanBulkPrice = Orb::Models::NewPlanBulkPrice NewPlanBulkWithProrationPrice = Orb::Models::NewPlanBulkWithProrationPrice @@ -392,8 +374,6 @@ module Orb NewPlanThresholdTotalAmountPrice = Orb::Models::NewPlanThresholdTotalAmountPrice - NewPlanTieredBPSPrice = Orb::Models::NewPlanTieredBPSPrice - NewPlanTieredPackagePrice = Orb::Models::NewPlanTieredPackagePrice NewPlanTieredPackageWithMinimumPrice = Orb::Models::NewPlanTieredPackageWithMinimumPrice @@ -414,10 +394,6 @@ module Orb NewSphereConfiguration = Orb::Models::NewSphereConfiguration - NewSubscriptionBPSPrice = Orb::Models::NewSubscriptionBPSPrice - - NewSubscriptionBulkBPSPrice = Orb::Models::NewSubscriptionBulkBPSPrice - NewSubscriptionBulkPrice = Orb::Models::NewSubscriptionBulkPrice NewSubscriptionBulkWithProrationPrice = Orb::Models::NewSubscriptionBulkWithProrationPrice @@ -456,8 +432,6 @@ module Orb NewSubscriptionThresholdTotalAmountPrice = Orb::Models::NewSubscriptionThresholdTotalAmountPrice - NewSubscriptionTieredBPSPrice = Orb::Models::NewSubscriptionTieredBPSPrice - NewSubscriptionTieredPackagePrice = Orb::Models::NewSubscriptionTieredPackagePrice NewSubscriptionTieredPackageWithMinimumPrice = Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice @@ -602,8 +576,6 @@ module Orb TierConfig = Orb::Models::TierConfig - TieredBPSConfig = Orb::Models::TieredBPSConfig - TieredConfig = Orb::Models::TieredConfig TieredConversionRateConfig = Orb::Models::TieredConversionRateConfig diff --git a/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb b/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb index 2d58ac35..eddaefd6 100644 --- a/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb +++ b/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb @@ -157,7 +157,7 @@ class AddPrice < Orb::Internal::Type::BaseModel # @!attribute price # The price to add to the plan # - # @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanTieredBPSPrice, Orb::Models::NewPlanBPSPrice, Orb::Models::NewPlanBulkBPSPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, nil] + # @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum, nil] optional :price, union: -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price }, nil?: true @@ -167,7 +167,7 @@ class AddPrice < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] The phase to add this price to. # - # @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanTieredBPSPrice, Orb::Models::NewPlanBPSPrice, Orb::Models::NewPlanBulkBPSPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, nil] The price to add to the plan + # @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum, nil] The price to add to the plan # The price to add to the plan # @@ -185,12 +185,6 @@ module Price variant :tiered, -> { Orb::NewPlanTieredPrice } - variant :tiered_bps, -> { Orb::NewPlanTieredBPSPrice } - - variant :bps, -> { Orb::NewPlanBPSPrice } - - variant :bulk_bps, -> { Orb::NewPlanBulkBPSPrice } - variant :bulk, -> { Orb::NewPlanBulkPrice } variant :threshold_total_amount, -> { Orb::NewPlanThresholdTotalAmountPrice } @@ -213,6 +207,9 @@ module Price variant :grouped_with_metered_minimum, -> { Orb::NewPlanGroupedWithMeteredMinimumPrice } + variant :grouped_with_min_max_thresholds, + -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds } + variant :matrix_with_display_name, -> { Orb::NewPlanMatrixWithDisplayNamePrice } variant :bulk_with_proration, -> { Orb::NewPlanBulkWithProrationPrice } @@ -233,8 +230,405 @@ module Price variant :grouped_tiered, -> { Orb::NewPlanGroupedTieredPrice } + variant :minimum, -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum } + + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence] + required :cadence, + enum: -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence } + + # @!attribute grouped_with_min_max_thresholds_config + # + # @return [Hash{Symbol=>Object}] + required :grouped_with_min_max_thresholds_config, + Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String + + # @!attribute model_type + # + # @return [Symbol, :grouped_with_min_max_thresholds] + required :model_type, const: :grouped_with_min_max_thresholds + + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String + + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true + + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent0 + }, + nil?: true + + # @!attribute currency + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + # + # @return [String, nil] + optional :currency, String, nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, + -> { + Orb::NewDimensionalPriceConfiguration + }, + nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!attribute reference_id + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + # + # @return [String, nil] + optional :reference_id, String, nil?: true + + # @!method initialize(cadence:, grouped_with_min_max_thresholds_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :grouped_with_min_max_thresholds) + # Some parameter documentations has been truncated, see + # {Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds} + # for more details. + # + # @param cadence [Symbol, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence] The cadence to bill for this price on. + # + # @param grouped_with_min_max_thresholds_config [Hash{Symbol=>Object}] + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param name [String] The name of the price. + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments + # + # @param model_type [Symbol, :grouped_with_min_max_thresholds] + + # The cadence to bill for this price on. + # + # @see Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + end + + class Minimum < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence] + required :cadence, + enum: -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence } + + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String + + # @!attribute minimum_config + # + # @return [Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig] + required :minimum_config, + -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig } + + # @!attribute model_type + # + # @return [Symbol, :minimum] + required :model_type, const: :minimum + + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String + + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true + + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::UnnamedTypeWithobjectParent1 + }, + nil?: true + + # @!attribute currency + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + # + # @return [String, nil] + optional :currency, String, nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, + -> { + Orb::NewDimensionalPriceConfiguration + }, + nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!attribute reference_id + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + # + # @return [String, nil] + optional :reference_id, String, nil?: true + + # @!method initialize(cadence:, item_id:, minimum_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :minimum) + # Some parameter documentations has been truncated, see + # {Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum} + # for more details. + # + # @param cadence [Symbol, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence] The cadence to bill for this price on. + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param minimum_config [Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig] + # + # @param name [String] The name of the price. + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments + # + # @param model_type [Symbol, :minimum] + + # The cadence to bill for this price on. + # + # @see Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + + # @see Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum#minimum_config + class MinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute minimum_amount + # The minimum amount to apply + # + # @return [String] + required :minimum_amount, String + + # @!attribute prorated + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + # + # @return [Boolean, nil] + optional :prorated, Orb::Internal::Type::Boolean, nil?: true + + # @!method initialize(minimum_amount:, prorated: nil) + # Some parameter documentations has been truncated, see + # {Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig} + # for more details. + # + # @param minimum_amount [String] The minimum amount to apply + # + # @param prorated [Boolean, nil] By default, subtotals from minimum composite prices are prorated based on the se + end + end + # @!method self.variants - # @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanTieredBPSPrice, Orb::Models::NewPlanBPSPrice, Orb::Models::NewPlanBulkBPSPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice)] + # @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum)] end end @@ -348,7 +742,7 @@ class ReplacePrice < Orb::Internal::Type::BaseModel # @!attribute price # The price to add to the plan # - # @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanTieredBPSPrice, Orb::Models::NewPlanBPSPrice, Orb::Models::NewPlanBulkBPSPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, nil] + # @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum, nil] optional :price, union: -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price }, nil?: true @@ -360,7 +754,7 @@ class ReplacePrice < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] The phase to replace this price from. # - # @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanTieredBPSPrice, Orb::Models::NewPlanBPSPrice, Orb::Models::NewPlanBulkBPSPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, nil] The price to add to the plan + # @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum, nil] The price to add to the plan # The price to add to the plan # @@ -378,12 +772,6 @@ module Price variant :tiered, -> { Orb::NewPlanTieredPrice } - variant :tiered_bps, -> { Orb::NewPlanTieredBPSPrice } - - variant :bps, -> { Orb::NewPlanBPSPrice } - - variant :bulk_bps, -> { Orb::NewPlanBulkBPSPrice } - variant :bulk, -> { Orb::NewPlanBulkPrice } variant :threshold_total_amount, -> { Orb::NewPlanThresholdTotalAmountPrice } @@ -406,6 +794,9 @@ module Price variant :grouped_with_metered_minimum, -> { Orb::NewPlanGroupedWithMeteredMinimumPrice } + variant :grouped_with_min_max_thresholds, + -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds } + variant :matrix_with_display_name, -> { Orb::NewPlanMatrixWithDisplayNamePrice } variant :bulk_with_proration, -> { Orb::NewPlanBulkWithProrationPrice } @@ -426,8 +817,405 @@ module Price variant :grouped_tiered, -> { Orb::NewPlanGroupedTieredPrice } + variant :minimum, -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum } + + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence] + required :cadence, + enum: -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence } + + # @!attribute grouped_with_min_max_thresholds_config + # + # @return [Hash{Symbol=>Object}] + required :grouped_with_min_max_thresholds_config, + Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String + + # @!attribute model_type + # + # @return [Symbol, :grouped_with_min_max_thresholds] + required :model_type, const: :grouped_with_min_max_thresholds + + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String + + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true + + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent2 + }, + nil?: true + + # @!attribute currency + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + # + # @return [String, nil] + optional :currency, String, nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, + -> { + Orb::NewDimensionalPriceConfiguration + }, + nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!attribute reference_id + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + # + # @return [String, nil] + optional :reference_id, String, nil?: true + + # @!method initialize(cadence:, grouped_with_min_max_thresholds_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :grouped_with_min_max_thresholds) + # Some parameter documentations has been truncated, see + # {Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds} + # for more details. + # + # @param cadence [Symbol, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence] The cadence to bill for this price on. + # + # @param grouped_with_min_max_thresholds_config [Hash{Symbol=>Object}] + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param name [String] The name of the price. + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments + # + # @param model_type [Symbol, :grouped_with_min_max_thresholds] + + # The cadence to bill for this price on. + # + # @see Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + end + + class Minimum < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence] + required :cadence, + enum: -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence } + + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String + + # @!attribute minimum_config + # + # @return [Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig] + required :minimum_config, + -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig } + + # @!attribute model_type + # + # @return [Symbol, :minimum] + required :model_type, const: :minimum + + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String + + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true + + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::UnnamedTypeWithobjectParent3 + }, + nil?: true + + # @!attribute currency + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + # + # @return [String, nil] + optional :currency, String, nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, + -> { + Orb::NewDimensionalPriceConfiguration + }, + nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!attribute reference_id + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + # + # @return [String, nil] + optional :reference_id, String, nil?: true + + # @!method initialize(cadence:, item_id:, minimum_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :minimum) + # Some parameter documentations has been truncated, see + # {Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum} + # for more details. + # + # @param cadence [Symbol, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence] The cadence to bill for this price on. + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param minimum_config [Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig] + # + # @param name [String] The name of the price. + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments + # + # @param model_type [Symbol, :minimum] + + # The cadence to bill for this price on. + # + # @see Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + + # @see Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum#minimum_config + class MinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute minimum_amount + # The minimum amount to apply + # + # @return [String] + required :minimum_amount, String + + # @!attribute prorated + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + # + # @return [Boolean, nil] + optional :prorated, Orb::Internal::Type::Boolean, nil?: true + + # @!method initialize(minimum_amount:, prorated: nil) + # Some parameter documentations has been truncated, see + # {Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig} + # for more details. + # + # @param minimum_amount [String] The minimum amount to apply + # + # @param prorated [Boolean, nil] By default, subtotals from minimum composite prices are prorated based on the se + end + end + # @!method self.variants - # @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanTieredBPSPrice, Orb::Models::NewPlanBPSPrice, Orb::Models::NewPlanBulkBPSPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice)] + # @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum)] end end end diff --git a/lib/orb/models/beta_create_plan_version_params.rb b/lib/orb/models/beta_create_plan_version_params.rb index 8e8c158d..7c5874e4 100644 --- a/lib/orb/models/beta_create_plan_version_params.rb +++ b/lib/orb/models/beta_create_plan_version_params.rb @@ -143,7 +143,7 @@ class AddPrice < Orb::Internal::Type::BaseModel # @!attribute price # The price to add to the plan # - # @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanTieredBPSPrice, Orb::Models::NewPlanBPSPrice, Orb::Models::NewPlanBulkBPSPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, nil] + # @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum, nil] optional :price, union: -> { Orb::BetaCreatePlanVersionParams::AddPrice::Price }, nil?: true # @!method initialize(allocation_price: nil, plan_phase_order: nil, price: nil) @@ -151,7 +151,7 @@ class AddPrice < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] The phase to add this price to. # - # @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanTieredBPSPrice, Orb::Models::NewPlanBPSPrice, Orb::Models::NewPlanBulkBPSPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, nil] The price to add to the plan + # @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum, nil] The price to add to the plan # The price to add to the plan # @@ -169,12 +169,6 @@ module Price variant :tiered, -> { Orb::NewPlanTieredPrice } - variant :tiered_bps, -> { Orb::NewPlanTieredBPSPrice } - - variant :bps, -> { Orb::NewPlanBPSPrice } - - variant :bulk_bps, -> { Orb::NewPlanBulkBPSPrice } - variant :bulk, -> { Orb::NewPlanBulkPrice } variant :threshold_total_amount, -> { Orb::NewPlanThresholdTotalAmountPrice } @@ -197,6 +191,9 @@ module Price variant :grouped_with_metered_minimum, -> { Orb::NewPlanGroupedWithMeteredMinimumPrice } + variant :grouped_with_min_max_thresholds, + -> { Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds } + variant :matrix_with_display_name, -> { Orb::NewPlanMatrixWithDisplayNamePrice } variant :bulk_with_proration, -> { Orb::NewPlanBulkWithProrationPrice } @@ -217,8 +214,403 @@ module Price variant :grouped_tiered, -> { Orb::NewPlanGroupedTieredPrice } + variant :minimum, -> { Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum } + + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence] + required :cadence, + enum: -> { Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence } + + # @!attribute grouped_with_min_max_thresholds_config + # + # @return [Hash{Symbol=>Object}] + required :grouped_with_min_max_thresholds_config, + Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String + + # @!attribute model_type + # + # @return [Symbol, :grouped_with_min_max_thresholds] + required :model_type, const: :grouped_with_min_max_thresholds + + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String + + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true + + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent4 + }, + nil?: true + + # @!attribute currency + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + # + # @return [String, nil] + optional :currency, String, nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, + -> { + Orb::NewDimensionalPriceConfiguration + }, + nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!attribute reference_id + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + # + # @return [String, nil] + optional :reference_id, String, nil?: true + + # @!method initialize(cadence:, grouped_with_min_max_thresholds_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :grouped_with_min_max_thresholds) + # Some parameter documentations has been truncated, see + # {Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds} + # for more details. + # + # @param cadence [Symbol, Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence] The cadence to bill for this price on. + # + # @param grouped_with_min_max_thresholds_config [Hash{Symbol=>Object}] + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param name [String] The name of the price. + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments + # + # @param model_type [Symbol, :grouped_with_min_max_thresholds] + + # The cadence to bill for this price on. + # + # @see Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + end + + class Minimum < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence] + required :cadence, enum: -> { Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence } + + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String + + # @!attribute minimum_config + # + # @return [Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig] + required :minimum_config, -> { Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig } + + # @!attribute model_type + # + # @return [Symbol, :minimum] + required :model_type, const: :minimum + + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String + + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true + + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { + Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::UnnamedTypeWithobjectParent5 + }, + nil?: true + + # @!attribute currency + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + # + # @return [String, nil] + optional :currency, String, nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, + -> { + Orb::NewDimensionalPriceConfiguration + }, + nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!attribute reference_id + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + # + # @return [String, nil] + optional :reference_id, String, nil?: true + + # @!method initialize(cadence:, item_id:, minimum_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :minimum) + # Some parameter documentations has been truncated, see + # {Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum} for more + # details. + # + # @param cadence [Symbol, Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence] The cadence to bill for this price on. + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param minimum_config [Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig] + # + # @param name [String] The name of the price. + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments + # + # @param model_type [Symbol, :minimum] + + # The cadence to bill for this price on. + # + # @see Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + + # @see Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum#minimum_config + class MinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute minimum_amount + # The minimum amount to apply + # + # @return [String] + required :minimum_amount, String + + # @!attribute prorated + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + # + # @return [Boolean, nil] + optional :prorated, Orb::Internal::Type::Boolean, nil?: true + + # @!method initialize(minimum_amount:, prorated: nil) + # Some parameter documentations has been truncated, see + # {Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig} + # for more details. + # + # @param minimum_amount [String] The minimum amount to apply + # + # @param prorated [Boolean, nil] By default, subtotals from minimum composite prices are prorated based on the se + end + end + # @!method self.variants - # @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanTieredBPSPrice, Orb::Models::NewPlanBPSPrice, Orb::Models::NewPlanBulkBPSPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice)] + # @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum)] end end @@ -331,7 +723,7 @@ class ReplacePrice < Orb::Internal::Type::BaseModel # @!attribute price # The price to add to the plan # - # @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanTieredBPSPrice, Orb::Models::NewPlanBPSPrice, Orb::Models::NewPlanBulkBPSPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, nil] + # @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum, nil] optional :price, union: -> { Orb::BetaCreatePlanVersionParams::ReplacePrice::Price }, nil?: true # @!method initialize(replaces_price_id:, allocation_price: nil, plan_phase_order: nil, price: nil) @@ -341,7 +733,7 @@ class ReplacePrice < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] The phase to replace this price from. # - # @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanTieredBPSPrice, Orb::Models::NewPlanBPSPrice, Orb::Models::NewPlanBulkBPSPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, nil] The price to add to the plan + # @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum, nil] The price to add to the plan # The price to add to the plan # @@ -359,12 +751,6 @@ module Price variant :tiered, -> { Orb::NewPlanTieredPrice } - variant :tiered_bps, -> { Orb::NewPlanTieredBPSPrice } - - variant :bps, -> { Orb::NewPlanBPSPrice } - - variant :bulk_bps, -> { Orb::NewPlanBulkBPSPrice } - variant :bulk, -> { Orb::NewPlanBulkPrice } variant :threshold_total_amount, -> { Orb::NewPlanThresholdTotalAmountPrice } @@ -387,6 +773,9 @@ module Price variant :grouped_with_metered_minimum, -> { Orb::NewPlanGroupedWithMeteredMinimumPrice } + variant :grouped_with_min_max_thresholds, + -> { Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds } + variant :matrix_with_display_name, -> { Orb::NewPlanMatrixWithDisplayNamePrice } variant :bulk_with_proration, -> { Orb::NewPlanBulkWithProrationPrice } @@ -407,8 +796,404 @@ module Price variant :grouped_tiered, -> { Orb::NewPlanGroupedTieredPrice } + variant :minimum, -> { Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum } + + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence] + required :cadence, + enum: -> { Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence } + + # @!attribute grouped_with_min_max_thresholds_config + # + # @return [Hash{Symbol=>Object}] + required :grouped_with_min_max_thresholds_config, + Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String + + # @!attribute model_type + # + # @return [Symbol, :grouped_with_min_max_thresholds] + required :model_type, const: :grouped_with_min_max_thresholds + + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String + + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true + + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent6 + }, + nil?: true + + # @!attribute currency + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + # + # @return [String, nil] + optional :currency, String, nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, + -> { + Orb::NewDimensionalPriceConfiguration + }, + nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!attribute reference_id + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + # + # @return [String, nil] + optional :reference_id, String, nil?: true + + # @!method initialize(cadence:, grouped_with_min_max_thresholds_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :grouped_with_min_max_thresholds) + # Some parameter documentations has been truncated, see + # {Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds} + # for more details. + # + # @param cadence [Symbol, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence] The cadence to bill for this price on. + # + # @param grouped_with_min_max_thresholds_config [Hash{Symbol=>Object}] + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param name [String] The name of the price. + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments + # + # @param model_type [Symbol, :grouped_with_min_max_thresholds] + + # The cadence to bill for this price on. + # + # @see Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + end + + class Minimum < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence] + required :cadence, enum: -> { Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence } + + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String + + # @!attribute minimum_config + # + # @return [Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig] + required :minimum_config, + -> { Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig } + + # @!attribute model_type + # + # @return [Symbol, :minimum] + required :model_type, const: :minimum + + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String + + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true + + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::UnnamedTypeWithobjectParent7 + }, + nil?: true + + # @!attribute currency + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + # + # @return [String, nil] + optional :currency, String, nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, + -> { + Orb::NewDimensionalPriceConfiguration + }, + nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!attribute reference_id + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + # + # @return [String, nil] + optional :reference_id, String, nil?: true + + # @!method initialize(cadence:, item_id:, minimum_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :minimum) + # Some parameter documentations has been truncated, see + # {Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum} for + # more details. + # + # @param cadence [Symbol, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence] The cadence to bill for this price on. + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param minimum_config [Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig] + # + # @param name [String] The name of the price. + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments + # + # @param model_type [Symbol, :minimum] + + # The cadence to bill for this price on. + # + # @see Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + + # @see Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum#minimum_config + class MinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute minimum_amount + # The minimum amount to apply + # + # @return [String] + required :minimum_amount, String + + # @!attribute prorated + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + # + # @return [Boolean, nil] + optional :prorated, Orb::Internal::Type::Boolean, nil?: true + + # @!method initialize(minimum_amount:, prorated: nil) + # Some parameter documentations has been truncated, see + # {Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig} + # for more details. + # + # @param minimum_amount [String] The minimum amount to apply + # + # @param prorated [Boolean, nil] By default, subtotals from minimum composite prices are prorated based on the se + end + end + # @!method self.variants - # @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanTieredBPSPrice, Orb::Models::NewPlanBPSPrice, Orb::Models::NewPlanBulkBPSPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice)] + # @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum)] end end end diff --git a/lib/orb/models/bps_config.rb b/lib/orb/models/bps_config.rb deleted file mode 100644 index d9d816af..00000000 --- a/lib/orb/models/bps_config.rb +++ /dev/null @@ -1,24 +0,0 @@ -# frozen_string_literal: true - -module Orb - module Models - class BPSConfig < Orb::Internal::Type::BaseModel - # @!attribute bps - # Basis point take rate per event - # - # @return [Float] - required :bps, Float - - # @!attribute per_unit_maximum - # Optional currency amount maximum to cap spend per event - # - # @return [String, nil] - optional :per_unit_maximum, String, nil?: true - - # @!method initialize(bps:, per_unit_maximum: nil) - # @param bps [Float] Basis point take rate per event - # - # @param per_unit_maximum [String, nil] Optional currency amount maximum to cap spend per event - end - end -end diff --git a/lib/orb/models/bps_tier.rb b/lib/orb/models/bps_tier.rb deleted file mode 100644 index 97af3177..00000000 --- a/lib/orb/models/bps_tier.rb +++ /dev/null @@ -1,40 +0,0 @@ -# frozen_string_literal: true - -module Orb - module Models - class BPSTier < Orb::Internal::Type::BaseModel - # @!attribute bps - # Per-event basis point rate - # - # @return [Float] - required :bps, Float - - # @!attribute minimum_amount - # Exclusive tier starting value - # - # @return [String] - required :minimum_amount, String - - # @!attribute maximum_amount - # Inclusive tier ending value - # - # @return [String, nil] - optional :maximum_amount, String, nil?: true - - # @!attribute per_unit_maximum - # Per unit maximum to charge - # - # @return [String, nil] - optional :per_unit_maximum, String, nil?: true - - # @!method initialize(bps:, minimum_amount:, maximum_amount: nil, per_unit_maximum: nil) - # @param bps [Float] Per-event basis point rate - # - # @param minimum_amount [String] Exclusive tier starting value - # - # @param maximum_amount [String, nil] Inclusive tier ending value - # - # @param per_unit_maximum [String, nil] Per unit maximum to charge - end - end -end diff --git a/lib/orb/models/bulk_bps_config.rb b/lib/orb/models/bulk_bps_config.rb deleted file mode 100644 index 5c3e0974..00000000 --- a/lib/orb/models/bulk_bps_config.rb +++ /dev/null @@ -1,20 +0,0 @@ -# frozen_string_literal: true - -module Orb - module Models - class BulkBPSConfig < Orb::Internal::Type::BaseModel - # @!attribute tiers - # Tiers for a bulk BPS pricing model where all usage is aggregated to a single - # tier based on total volume - # - # @return [Array] - required :tiers, -> { Orb::Internal::Type::ArrayOf[Orb::BulkBPSTier] } - - # @!method initialize(tiers:) - # Some parameter documentations has been truncated, see - # {Orb::Models::BulkBPSConfig} for more details. - # - # @param tiers [Array] Tiers for a bulk BPS pricing model where all usage is aggregated to a single tie - end - end -end diff --git a/lib/orb/models/bulk_bps_tier.rb b/lib/orb/models/bulk_bps_tier.rb deleted file mode 100644 index c84be573..00000000 --- a/lib/orb/models/bulk_bps_tier.rb +++ /dev/null @@ -1,32 +0,0 @@ -# frozen_string_literal: true - -module Orb - module Models - class BulkBPSTier < Orb::Internal::Type::BaseModel - # @!attribute bps - # Basis points to rate on - # - # @return [Float] - required :bps, Float - - # @!attribute maximum_amount - # Upper bound for tier - # - # @return [String, nil] - optional :maximum_amount, String, nil?: true - - # @!attribute per_unit_maximum - # The maximum amount to charge for any one event - # - # @return [String, nil] - optional :per_unit_maximum, String, nil?: true - - # @!method initialize(bps:, maximum_amount: nil, per_unit_maximum: nil) - # @param bps [Float] Basis points to rate on - # - # @param maximum_amount [String, nil] Upper bound for tier - # - # @param per_unit_maximum [String, nil] The maximum amount to charge for any one event - end - end -end diff --git a/lib/orb/models/customer.rb b/lib/orb/models/customer.rb index 088a5136..9ccea06a 100644 --- a/lib/orb/models/customer.rb +++ b/lib/orb/models/customer.rb @@ -19,6 +19,14 @@ class Customer < Orb::Internal::Type::BaseModel # @return [Boolean] required :auto_collection, Orb::Internal::Type::Boolean + # @!attribute auto_issuance + # Whether invoices for this customer should be automatically issued. If true, + # invoices will be automatically issued. If false, invoices will require manual + # approval. If null, inherits the account-level setting. + # + # @return [Boolean, nil] + required :auto_issuance, Orb::Internal::Type::Boolean, nil?: true + # @!attribute balance # The customer's current balance in their currency. # @@ -279,7 +287,7 @@ class Customer < Orb::Internal::Type::BaseModel # @return [Orb::Models::Customer::ReportingConfiguration, nil] optional :reporting_configuration, -> { Orb::Customer::ReportingConfiguration }, nil?: true - # @!method initialize(id:, additional_emails:, auto_collection:, balance:, billing_address:, created_at:, currency:, email:, email_delivery:, exempt_from_automated_tax:, external_customer_id:, hierarchy:, metadata:, name:, payment_provider:, payment_provider_id:, portal_url:, shipping_address:, tax_id:, timezone:, accounting_sync_configuration: nil, reporting_configuration: nil) + # @!method initialize(id:, additional_emails:, auto_collection:, auto_issuance:, balance:, billing_address:, created_at:, currency:, email:, email_delivery:, exempt_from_automated_tax:, external_customer_id:, hierarchy:, metadata:, name:, payment_provider:, payment_provider_id:, portal_url:, shipping_address:, tax_id:, timezone:, accounting_sync_configuration: nil, reporting_configuration: nil) # Some parameter documentations has been truncated, see {Orb::Models::Customer} # for more details. # @@ -308,6 +316,8 @@ class Customer < Orb::Internal::Type::BaseModel # # @param auto_collection [Boolean] # + # @param auto_issuance [Boolean, nil] Whether invoices for this customer should be automatically issued. If true, invo + # # @param balance [String] The customer's current balance in their currency. # # @param billing_address [Orb::Models::Address, nil] diff --git a/lib/orb/models/customer_create_params.rb b/lib/orb/models/customer_create_params.rb index d66159b1..5534be94 100644 --- a/lib/orb/models/customer_create_params.rb +++ b/lib/orb/models/customer_create_params.rb @@ -41,6 +41,15 @@ class CustomerCreateParams < Orb::Internal::Type::BaseModel # @return [Boolean, nil] optional :auto_collection, Orb::Internal::Type::Boolean, nil?: true + # @!attribute auto_issuance + # Used to determine if invoices for this customer will be automatically issued. If + # true, invoices will be automatically issued. If false, invoices will require + # manual approval. If `null` is specified, the customer's auto issuance setting + # will be inherited from the account-level setting. + # + # @return [Boolean, nil] + optional :auto_issuance, Orb::Internal::Type::Boolean, nil?: true + # @!attribute billing_address # # @return [Orb::Models::AddressInput, nil] @@ -267,7 +276,7 @@ class CustomerCreateParams < Orb::Internal::Type::BaseModel # @return [String, nil] optional :timezone, String, nil?: true - # @!method initialize(email:, name:, accounting_sync_configuration: nil, additional_emails: nil, auto_collection: nil, billing_address: nil, currency: nil, email_delivery: nil, external_customer_id: nil, hierarchy: nil, metadata: nil, payment_provider: nil, payment_provider_id: nil, reporting_configuration: nil, shipping_address: nil, tax_configuration: nil, tax_id: nil, timezone: nil, request_options: {}) + # @!method initialize(email:, name:, accounting_sync_configuration: nil, additional_emails: nil, auto_collection: nil, auto_issuance: nil, billing_address: nil, currency: nil, email_delivery: nil, external_customer_id: nil, hierarchy: nil, metadata: nil, payment_provider: nil, payment_provider_id: nil, reporting_configuration: nil, shipping_address: nil, tax_configuration: nil, tax_id: nil, timezone: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Orb::Models::CustomerCreateParams} for more details. # @@ -281,6 +290,8 @@ class CustomerCreateParams < Orb::Internal::Type::BaseModel # # @param auto_collection [Boolean, nil] Used to determine if invoices for this customer will automatically attempt to ch # + # @param auto_issuance [Boolean, nil] Used to determine if invoices for this customer will be automatically issued. If + # # @param billing_address [Orb::Models::AddressInput, nil] # # @param currency [String, nil] An ISO 4217 currency string used for the customer's invoices and balance. If not diff --git a/lib/orb/models/customer_update_by_external_id_params.rb b/lib/orb/models/customer_update_by_external_id_params.rb index c9c4d9ea..30f4ce42 100644 --- a/lib/orb/models/customer_update_by_external_id_params.rb +++ b/lib/orb/models/customer_update_by_external_id_params.rb @@ -27,6 +27,15 @@ class CustomerUpdateByExternalIDParams < Orb::Internal::Type::BaseModel # @return [Boolean, nil] optional :auto_collection, Orb::Internal::Type::Boolean, nil?: true + # @!attribute auto_issuance + # Used to determine if invoices for this customer will be automatically issued. If + # true, invoices will be automatically issued. If false, invoices will require + # manual approval.If `null` is specified, the customer's auto issuance setting + # will be inherited from the account-level setting. + # + # @return [Boolean, nil] + optional :auto_issuance, Orb::Internal::Type::Boolean, nil?: true + # @!attribute billing_address # # @return [Orb::Models::AddressInput, nil] @@ -267,7 +276,7 @@ class CustomerUpdateByExternalIDParams < Orb::Internal::Type::BaseModel # @return [Orb::Models::CustomerTaxID, nil] optional :tax_id, -> { Orb::CustomerTaxID }, nil?: true - # @!method initialize(accounting_sync_configuration: nil, additional_emails: nil, auto_collection: nil, billing_address: nil, currency: nil, email: nil, email_delivery: nil, external_customer_id: nil, hierarchy: nil, metadata: nil, name: nil, payment_provider: nil, payment_provider_id: nil, reporting_configuration: nil, shipping_address: nil, tax_configuration: nil, tax_id: nil, request_options: {}) + # @!method initialize(accounting_sync_configuration: nil, additional_emails: nil, auto_collection: nil, auto_issuance: nil, billing_address: nil, currency: nil, email: nil, email_delivery: nil, external_customer_id: nil, hierarchy: nil, metadata: nil, name: nil, payment_provider: nil, payment_provider_id: nil, reporting_configuration: nil, shipping_address: nil, tax_configuration: nil, tax_id: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Orb::Models::CustomerUpdateByExternalIDParams} for more details. # @@ -277,6 +286,8 @@ class CustomerUpdateByExternalIDParams < Orb::Internal::Type::BaseModel # # @param auto_collection [Boolean, nil] Used to determine if invoices for this customer will automatically attempt to ch # + # @param auto_issuance [Boolean, nil] Used to determine if invoices for this customer will be automatically issued. If + # # @param billing_address [Orb::Models::AddressInput, nil] # # @param currency [String, nil] An ISO 4217 currency string used for the customer's invoices and balance. If not diff --git a/lib/orb/models/customer_update_params.rb b/lib/orb/models/customer_update_params.rb index da2fb028..954bc8c7 100644 --- a/lib/orb/models/customer_update_params.rb +++ b/lib/orb/models/customer_update_params.rb @@ -27,6 +27,15 @@ class CustomerUpdateParams < Orb::Internal::Type::BaseModel # @return [Boolean, nil] optional :auto_collection, Orb::Internal::Type::Boolean, nil?: true + # @!attribute auto_issuance + # Used to determine if invoices for this customer will be automatically issued. If + # true, invoices will be automatically issued. If false, invoices will require + # manual approval.If `null` is specified, the customer's auto issuance setting + # will be inherited from the account-level setting. + # + # @return [Boolean, nil] + optional :auto_issuance, Orb::Internal::Type::Boolean, nil?: true + # @!attribute billing_address # # @return [Orb::Models::AddressInput, nil] @@ -263,7 +272,7 @@ class CustomerUpdateParams < Orb::Internal::Type::BaseModel # @return [Orb::Models::CustomerTaxID, nil] optional :tax_id, -> { Orb::CustomerTaxID }, nil?: true - # @!method initialize(accounting_sync_configuration: nil, additional_emails: nil, auto_collection: nil, billing_address: nil, currency: nil, email: nil, email_delivery: nil, external_customer_id: nil, hierarchy: nil, metadata: nil, name: nil, payment_provider: nil, payment_provider_id: nil, reporting_configuration: nil, shipping_address: nil, tax_configuration: nil, tax_id: nil, request_options: {}) + # @!method initialize(accounting_sync_configuration: nil, additional_emails: nil, auto_collection: nil, auto_issuance: nil, billing_address: nil, currency: nil, email: nil, email_delivery: nil, external_customer_id: nil, hierarchy: nil, metadata: nil, name: nil, payment_provider: nil, payment_provider_id: nil, reporting_configuration: nil, shipping_address: nil, tax_configuration: nil, tax_id: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Orb::Models::CustomerUpdateParams} for more details. # @@ -273,6 +282,8 @@ class CustomerUpdateParams < Orb::Internal::Type::BaseModel # # @param auto_collection [Boolean, nil] Used to determine if invoices for this customer will automatically attempt to ch # + # @param auto_issuance [Boolean, nil] Used to determine if invoices for this customer will be automatically issued. If + # # @param billing_address [Orb::Models::AddressInput, nil] # # @param currency [String, nil] An ISO 4217 currency string used for the customer's invoices and balance. If not diff --git a/lib/orb/models/customers/balance_transaction_create_response.rb b/lib/orb/models/customers/balance_transaction_create_response.rb index da9bbf4c..35686a3c 100644 --- a/lib/orb/models/customers/balance_transaction_create_response.rb +++ b/lib/orb/models/customers/balance_transaction_create_response.rb @@ -100,6 +100,7 @@ module Action CREDIT_NOTE_VOIDED = :credit_note_voided OVERPAYMENT_REFUND = :overpayment_refund EXTERNAL_PAYMENT = :external_payment + SMALL_INVOICE_CARRYOVER = :small_invoice_carryover # @!method self.values # @return [Array] diff --git a/lib/orb/models/customers/balance_transaction_list_response.rb b/lib/orb/models/customers/balance_transaction_list_response.rb index c1d2573c..fc30a817 100644 --- a/lib/orb/models/customers/balance_transaction_list_response.rb +++ b/lib/orb/models/customers/balance_transaction_list_response.rb @@ -100,6 +100,7 @@ module Action CREDIT_NOTE_VOIDED = :credit_note_voided OVERPAYMENT_REFUND = :overpayment_refund EXTERNAL_PAYMENT = :external_payment + SMALL_INVOICE_CARRYOVER = :small_invoice_carryover # @!method self.values # @return [Array] diff --git a/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb b/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb index aadc7db9..2342cd47 100644 --- a/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb +++ b/lib/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rb @@ -146,13 +146,26 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel required :auto_collection, Orb::Internal::Type::Boolean # @!attribute net_terms - # The net terms determines the difference between the invoice date and the issue - # date for the invoice. If you intend the invoice to be due on issue, set this - # to 0. + # The net terms determines the due date of the invoice. Due date is calculated + # based on the invoice or issuance date, depending on the account's configured due + # date calculation method. A value of '0' here represents that the invoice is due + # on issue, whereas a value of '30' represents that the customer has 30 days to + # pay the invoice. Do not set this field if you want to set a custom due date. # # @return [Integer, nil] required :net_terms, Integer, nil?: true + # @!attribute custom_due_date + # An optional custom due date for the invoice. If not set, the due date will be + # calculated based on the `net_terms` value. + # + # @return [Date, Time, nil] + optional :custom_due_date, + union: -> { + Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::CustomDueDate + }, + nil?: true + # @!attribute invoice_date # An ISO 8601 format date that denotes when this invoice should be dated in the # customer's timezone. If not provided, the invoice date will default to the @@ -178,7 +191,7 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel # @return [Boolean, nil] optional :require_successful_payment, Orb::Internal::Type::Boolean - # @!method initialize(auto_collection:, net_terms:, invoice_date: nil, memo: nil, require_successful_payment: nil) + # @!method initialize(auto_collection:, net_terms:, custom_due_date: nil, invoice_date: nil, memo: nil, require_successful_payment: nil) # Some parameter documentations has been truncated, see # {Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings} # for more details. @@ -190,7 +203,9 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel # # @param auto_collection [Boolean] Whether the credits purchase invoice should auto collect with the customer's sav # - # @param net_terms [Integer, nil] The net terms determines the difference between the invoice date and the issue d + # @param net_terms [Integer, nil] The net terms determines the due date of the invoice. Due date is calculated bas + # + # @param custom_due_date [Date, Time, nil] An optional custom due date for the invoice. If not set, the due date will be ca # # @param invoice_date [Date, Time, nil] An ISO 8601 format date that denotes when this invoice should be dated in the cu # @@ -198,6 +213,21 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel # # @param require_successful_payment [Boolean] If true, the new credit block will require that the corresponding invoice is pai + # An optional custom due date for the invoice. If not set, the due date will be + # calculated based on the `net_terms` value. + # + # @see Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings#custom_due_date + module CustomDueDate + extend Orb::Internal::Type::Union + + variant Date + + variant Time + + # @!method self.variants + # @return [Array(Date, Time)] + end + # An ISO 8601 format date that denotes when this invoice should be dated in the # customer's timezone. If not provided, the invoice date will default to the # credit block's effective date. diff --git a/lib/orb/models/customers/credits/ledger_create_entry_params.rb b/lib/orb/models/customers/credits/ledger_create_entry_params.rb index 4b6cc06a..bb60d602 100644 --- a/lib/orb/models/customers/credits/ledger_create_entry_params.rb +++ b/lib/orb/models/customers/credits/ledger_create_entry_params.rb @@ -145,13 +145,26 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel required :auto_collection, Orb::Internal::Type::Boolean # @!attribute net_terms - # The net terms determines the difference between the invoice date and the issue - # date for the invoice. If you intend the invoice to be due on issue, set this - # to 0. + # The net terms determines the due date of the invoice. Due date is calculated + # based on the invoice or issuance date, depending on the account's configured due + # date calculation method. A value of '0' here represents that the invoice is due + # on issue, whereas a value of '30' represents that the customer has 30 days to + # pay the invoice. Do not set this field if you want to set a custom due date. # # @return [Integer, nil] required :net_terms, Integer, nil?: true + # @!attribute custom_due_date + # An optional custom due date for the invoice. If not set, the due date will be + # calculated based on the `net_terms` value. + # + # @return [Date, Time, nil] + optional :custom_due_date, + union: -> { + Orb::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::CustomDueDate + }, + nil?: true + # @!attribute invoice_date # An ISO 8601 format date that denotes when this invoice should be dated in the # customer's timezone. If not provided, the invoice date will default to the @@ -177,7 +190,7 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel # @return [Boolean, nil] optional :require_successful_payment, Orb::Internal::Type::Boolean - # @!method initialize(auto_collection:, net_terms:, invoice_date: nil, memo: nil, require_successful_payment: nil) + # @!method initialize(auto_collection:, net_terms:, custom_due_date: nil, invoice_date: nil, memo: nil, require_successful_payment: nil) # Some parameter documentations has been truncated, see # {Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings} for # more details. @@ -189,7 +202,9 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel # # @param auto_collection [Boolean] Whether the credits purchase invoice should auto collect with the customer's sav # - # @param net_terms [Integer, nil] The net terms determines the difference between the invoice date and the issue d + # @param net_terms [Integer, nil] The net terms determines the due date of the invoice. Due date is calculated bas + # + # @param custom_due_date [Date, Time, nil] An optional custom due date for the invoice. If not set, the due date will be ca # # @param invoice_date [Date, Time, nil] An ISO 8601 format date that denotes when this invoice should be dated in the cu # @@ -197,6 +212,21 @@ class InvoiceSettings < Orb::Internal::Type::BaseModel # # @param require_successful_payment [Boolean] If true, the new credit block will require that the corresponding invoice is pai + # An optional custom due date for the invoice. If not set, the due date will be + # calculated based on the `net_terms` value. + # + # @see Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings#custom_due_date + module CustomDueDate + extend Orb::Internal::Type::Union + + variant Date + + variant Time + + # @!method self.variants + # @return [Array(Date, Time)] + end + # An ISO 8601 format date that denotes when this invoice should be dated in the # customer's timezone. If not provided, the invoice date will default to the # credit block's effective date. diff --git a/lib/orb/models/invoice.rb b/lib/orb/models/invoice.rb index cf49a6d7..36f545d8 100644 --- a/lib/orb/models/invoice.rb +++ b/lib/orb/models/invoice.rb @@ -696,6 +696,7 @@ module Action CREDIT_NOTE_VOIDED = :credit_note_voided OVERPAYMENT_REFUND = :overpayment_refund EXTERNAL_PAYMENT = :external_payment + SMALL_INVOICE_CARRYOVER = :small_invoice_carryover # @!method self.values # @return [Array] @@ -844,7 +845,7 @@ class LineItem < Orb::Internal::Type::BaseModel # For more on the types of prices, see # [the core concepts documentation](/core-concepts#plan-and-price) # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBPS, Orb::Models::Price::BPS, Orb::Models::Price::BulkBPS, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds] + # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::Minimum] required :price, union: -> { Orb::Price } # @!attribute quantity @@ -867,7 +868,7 @@ class LineItem < Orb::Internal::Type::BaseModel required :sub_line_items, -> { Orb::Internal::Type::ArrayOf[union: Orb::Invoice::LineItem::SubLineItem] } # @!attribute subtotal - # The line amount before before any adjustments. + # The line amount before any adjustments. # # @return [String] required :subtotal, String @@ -919,7 +920,7 @@ class LineItem < Orb::Internal::Type::BaseModel # # @param partially_invoiced_amount [String] Any amount applied from a partial invoice # - # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBPS, Orb::Models::Price::BPS, Orb::Models::Price::BulkBPS, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds] The Price resource represents a price that can be billed on a subscription, resu + # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::Minimum] The Price resource represents a price that can be billed on a subscription, resu # # @param quantity [Float] Either the fixed fee quantity or the usage during the service period. # @@ -927,7 +928,7 @@ class LineItem < Orb::Internal::Type::BaseModel # # @param sub_line_items [Array] For complex pricing structures, the line item can be broken down further in `sub # - # @param subtotal [String] The line amount before before any adjustments. + # @param subtotal [String] The line amount before any adjustments. # # @param tax_amounts [Array] An array of tax rates and their incurred tax amounts. Empty if no tax integratio # @@ -999,13 +1000,23 @@ class PaymentAttempt < Orb::Internal::Type::BaseModel # @return [String, nil] required :payment_provider_id, String, nil?: true + # @!attribute receipt_pdf + # URL to the downloadable PDF version of the receipt. This field will be `null` + # for payment attempts that did not succeed. + # + # @return [String, nil] + required :receipt_pdf, String, nil?: true + # @!attribute succeeded # Whether the payment attempt succeeded. # # @return [Boolean] required :succeeded, Orb::Internal::Type::Boolean - # @!method initialize(id:, amount:, created_at:, payment_provider:, payment_provider_id:, succeeded:) + # @!method initialize(id:, amount:, created_at:, payment_provider:, payment_provider_id:, receipt_pdf:, succeeded:) + # Some parameter documentations has been truncated, see + # {Orb::Models::Invoice::PaymentAttempt} for more details. + # # @param id [String] The ID of the payment attempt. # # @param amount [String] The amount of the payment attempt. @@ -1016,6 +1027,8 @@ class PaymentAttempt < Orb::Internal::Type::BaseModel # # @param payment_provider_id [String, nil] The ID of the payment attempt in the payment provider. # + # @param receipt_pdf [String, nil] URL to the downloadable PDF version of the receipt. This field will be `null` fo + # # @param succeeded [Boolean] Whether the payment attempt succeeded. # The payment provider that attempted to collect the payment. diff --git a/lib/orb/models/invoice_create_params.rb b/lib/orb/models/invoice_create_params.rb index cb86d7ff..8654db48 100644 --- a/lib/orb/models/invoice_create_params.rb +++ b/lib/orb/models/invoice_create_params.rb @@ -39,6 +39,13 @@ class InvoiceCreateParams < Orb::Internal::Type::BaseModel # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] optional :discount, union: -> { Orb::Discount }, nil?: true + # @!attribute due_date + # An optional custom due date for the invoice. If not set, the due date will be + # calculated based on the `net_terms` value. + # + # @return [Date, Time, nil] + optional :due_date, union: -> { Orb::InvoiceCreateParams::DueDate }, nil?: true + # @!attribute external_customer_id # The `external_customer_id` of the `Customer` to create this invoice for. One of # `customer_id` and `external_customer_id` are required. @@ -47,7 +54,8 @@ class InvoiceCreateParams < Orb::Internal::Type::BaseModel optional :external_customer_id, String, nil?: true # @!attribute memo - # An optional memo to attach to the invoice. + # An optional memo to attach to the invoice. If no memo is provided, we will + # attach the default memo # # @return [String, nil] optional :memo, String, nil?: true @@ -61,10 +69,11 @@ class InvoiceCreateParams < Orb::Internal::Type::BaseModel optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true # @!attribute net_terms - # Determines the difference between the invoice issue date for subscription - # invoices as the date that they are due. A value of '0' here represents that the - # invoice is due on issue, whereas a value of 30 represents that the customer has - # 30 days to pay the invoice. + # The net terms determines the due date of the invoice. Due date is calculated + # based on the invoice or issuance date, depending on the account's configured due + # date calculation method. A value of '0' here represents that the invoice is due + # on issue, whereas a value of '30' represents that the customer has 30 days to + # pay the invoice. Do not set this field if you want to set a custom due date. # # @return [Integer, nil] optional :net_terms, Integer, nil?: true @@ -77,7 +86,7 @@ class InvoiceCreateParams < Orb::Internal::Type::BaseModel # @return [Boolean, nil] optional :will_auto_issue, Orb::Internal::Type::Boolean - # @!method initialize(currency:, invoice_date:, line_items:, customer_id: nil, discount: nil, external_customer_id: nil, memo: nil, metadata: nil, net_terms: nil, will_auto_issue: nil, request_options: {}) + # @!method initialize(currency:, invoice_date:, line_items:, customer_id: nil, discount: nil, due_date: nil, external_customer_id: nil, memo: nil, metadata: nil, net_terms: nil, will_auto_issue: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Orb::Models::InvoiceCreateParams} for more details. # @@ -91,13 +100,15 @@ class InvoiceCreateParams < Orb::Internal::Type::BaseModel # # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] An optional discount to attach to the invoice. # + # @param due_date [Date, Time, nil] An optional custom due date for the invoice. If not set, the due date will be ca + # # @param external_customer_id [String, nil] The `external_customer_id` of the `Customer` to create this invoice for. One of # - # @param memo [String, nil] An optional memo to attach to the invoice. + # @param memo [String, nil] An optional memo to attach to the invoice. If no memo is provided, we will attac # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed # - # @param net_terms [Integer, nil] Determines the difference between the invoice issue date for subscription invoic + # @param net_terms [Integer, nil] The net terms determines the due date of the invoice. Due date is calculated bas # # @param will_auto_issue [Boolean] When true, this invoice will be submitted for issuance upon creation. When false # @@ -168,6 +179,19 @@ module ModelType # @return [Array] end end + + # An optional custom due date for the invoice. If not set, the due date will be + # calculated based on the `net_terms` value. + module DueDate + extend Orb::Internal::Type::Union + + variant Date + + variant Time + + # @!method self.variants + # @return [Array(Date, Time)] + end end end end diff --git a/lib/orb/models/invoice_fetch_upcoming_response.rb b/lib/orb/models/invoice_fetch_upcoming_response.rb index 8c8fe8d1..9da429c7 100644 --- a/lib/orb/models/invoice_fetch_upcoming_response.rb +++ b/lib/orb/models/invoice_fetch_upcoming_response.rb @@ -696,6 +696,7 @@ module Action CREDIT_NOTE_VOIDED = :credit_note_voided OVERPAYMENT_REFUND = :overpayment_refund EXTERNAL_PAYMENT = :external_payment + SMALL_INVOICE_CARRYOVER = :small_invoice_carryover # @!method self.values # @return [Array] @@ -845,7 +846,7 @@ class LineItem < Orb::Internal::Type::BaseModel # For more on the types of prices, see # [the core concepts documentation](/core-concepts#plan-and-price) # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBPS, Orb::Models::Price::BPS, Orb::Models::Price::BulkBPS, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds] + # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::Minimum] required :price, union: -> { Orb::Price } # @!attribute quantity @@ -869,7 +870,7 @@ class LineItem < Orb::Internal::Type::BaseModel -> { Orb::Internal::Type::ArrayOf[union: Orb::Models::InvoiceFetchUpcomingResponse::LineItem::SubLineItem] } # @!attribute subtotal - # The line amount before before any adjustments. + # The line amount before any adjustments. # # @return [String] required :subtotal, String @@ -921,7 +922,7 @@ class LineItem < Orb::Internal::Type::BaseModel # # @param partially_invoiced_amount [String] Any amount applied from a partial invoice # - # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBPS, Orb::Models::Price::BPS, Orb::Models::Price::BulkBPS, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds] The Price resource represents a price that can be billed on a subscription, resu + # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::Minimum] The Price resource represents a price that can be billed on a subscription, resu # # @param quantity [Float] Either the fixed fee quantity or the usage during the service period. # @@ -929,7 +930,7 @@ class LineItem < Orb::Internal::Type::BaseModel # # @param sub_line_items [Array] For complex pricing structures, the line item can be broken down further in `sub # - # @param subtotal [String] The line amount before before any adjustments. + # @param subtotal [String] The line amount before any adjustments. # # @param tax_amounts [Array] An array of tax rates and their incurred tax amounts. Empty if no tax integratio # @@ -1003,13 +1004,23 @@ class PaymentAttempt < Orb::Internal::Type::BaseModel # @return [String, nil] required :payment_provider_id, String, nil?: true + # @!attribute receipt_pdf + # URL to the downloadable PDF version of the receipt. This field will be `null` + # for payment attempts that did not succeed. + # + # @return [String, nil] + required :receipt_pdf, String, nil?: true + # @!attribute succeeded # Whether the payment attempt succeeded. # # @return [Boolean] required :succeeded, Orb::Internal::Type::Boolean - # @!method initialize(id:, amount:, created_at:, payment_provider:, payment_provider_id:, succeeded:) + # @!method initialize(id:, amount:, created_at:, payment_provider:, payment_provider_id:, receipt_pdf:, succeeded:) + # Some parameter documentations has been truncated, see + # {Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt} for more details. + # # @param id [String] The ID of the payment attempt. # # @param amount [String] The amount of the payment attempt. @@ -1020,6 +1031,8 @@ class PaymentAttempt < Orb::Internal::Type::BaseModel # # @param payment_provider_id [String, nil] The ID of the payment attempt in the payment provider. # + # @param receipt_pdf [String, nil] URL to the downloadable PDF version of the receipt. This field will be `null` fo + # # @param succeeded [Boolean] Whether the payment attempt succeeded. # The payment provider that attempted to collect the payment. diff --git a/lib/orb/models/invoice_line_item_create_response.rb b/lib/orb/models/invoice_line_item_create_response.rb index c4533fc8..d5341f5e 100644 --- a/lib/orb/models/invoice_line_item_create_response.rb +++ b/lib/orb/models/invoice_line_item_create_response.rb @@ -123,7 +123,7 @@ class InvoiceLineItemCreateResponse < Orb::Internal::Type::BaseModel # For more on the types of prices, see # [the core concepts documentation](/core-concepts#plan-and-price) # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBPS, Orb::Models::Price::BPS, Orb::Models::Price::BulkBPS, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds] + # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::Minimum] required :price, union: -> { Orb::Price } # @!attribute quantity @@ -147,7 +147,7 @@ class InvoiceLineItemCreateResponse < Orb::Internal::Type::BaseModel -> { Orb::Internal::Type::ArrayOf[union: Orb::Models::InvoiceLineItemCreateResponse::SubLineItem] } # @!attribute subtotal - # The line amount before before any adjustments. + # The line amount before any adjustments. # # @return [String] required :subtotal, String @@ -199,7 +199,7 @@ class InvoiceLineItemCreateResponse < Orb::Internal::Type::BaseModel # # @param partially_invoiced_amount [String] Any amount applied from a partial invoice # - # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBPS, Orb::Models::Price::BPS, Orb::Models::Price::BulkBPS, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds] The Price resource represents a price that can be billed on a subscription, resu + # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::Minimum] The Price resource represents a price that can be billed on a subscription, resu # # @param quantity [Float] Either the fixed fee quantity or the usage during the service period. # @@ -207,7 +207,7 @@ class InvoiceLineItemCreateResponse < Orb::Internal::Type::BaseModel # # @param sub_line_items [Array] For complex pricing structures, the line item can be broken down further in `sub # - # @param subtotal [String] The line amount before before any adjustments. + # @param subtotal [String] The line amount before any adjustments. # # @param tax_amounts [Array] An array of tax rates and their incurred tax amounts. Empty if no tax integratio # diff --git a/lib/orb/models/invoice_update_params.rb b/lib/orb/models/invoice_update_params.rb index 32300d62..9659ab9d 100644 --- a/lib/orb/models/invoice_update_params.rb +++ b/lib/orb/models/invoice_update_params.rb @@ -7,6 +7,13 @@ class InvoiceUpdateParams < Orb::Internal::Type::BaseModel extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + # @!attribute due_date + # An optional custom due date for the invoice. If not set, the due date will be + # calculated based on the `net_terms` value. + # + # @return [Date, Time, nil] + optional :due_date, union: -> { Orb::InvoiceUpdateParams::DueDate }, nil?: true + # @!attribute metadata # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared @@ -15,13 +22,40 @@ class InvoiceUpdateParams < Orb::Internal::Type::BaseModel # @return [Hash{Symbol=>String, nil}, nil] optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true - # @!method initialize(metadata: nil, request_options: {}) + # @!attribute net_terms + # The net terms determines the due date of the invoice. Due date is calculated + # based on the invoice or issuance date, depending on the account's configured due + # date calculation method. A value of '0' here represents that the invoice is due + # on issue, whereas a value of '30' represents that the customer has 30 days to + # pay the invoice. Do not set this field if you want to set a custom due date. + # + # @return [Integer, nil] + optional :net_terms, Integer, nil?: true + + # @!method initialize(due_date: nil, metadata: nil, net_terms: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Orb::Models::InvoiceUpdateParams} for more details. # + # @param due_date [Date, Time, nil] An optional custom due date for the invoice. If not set, the due date will be ca + # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed # + # @param net_terms [Integer, nil] The net terms determines the due date of the invoice. Due date is calculated bas + # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] + + # An optional custom due date for the invoice. If not set, the due date will be + # calculated based on the `net_terms` value. + module DueDate + extend Orb::Internal::Type::Union + + variant Date + + variant Time + + # @!method self.variants + # @return [Array(Date, Time)] + end end end end diff --git a/lib/orb/models/monetary_amount_discount_adjustment.rb b/lib/orb/models/monetary_amount_discount_adjustment.rb index f440f6c1..be488a11 100644 --- a/lib/orb/models/monetary_amount_discount_adjustment.rb +++ b/lib/orb/models/monetary_amount_discount_adjustment.rb @@ -41,8 +41,8 @@ class MonetaryAmountDiscountAdjustment < Orb::Internal::Type::BaseModel required :filters, -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] } # @!attribute is_invoice_level - # True for adjustments that apply to an entire invocice, false for adjustments - # that apply to only one price. + # True for adjustments that apply to an entire invoice, false for adjustments that + # apply to only one price. # # @return [Boolean] required :is_invoice_level, Orb::Internal::Type::Boolean @@ -76,7 +76,7 @@ class MonetaryAmountDiscountAdjustment < Orb::Internal::Type::BaseModel # # @param filters [Array] The filters that determine which prices to apply this adjustment to. # - # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha + # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invoice, false for adjustments that # # @param reason [String, nil] The reason for the adjustment. # diff --git a/lib/orb/models/monetary_maximum_adjustment.rb b/lib/orb/models/monetary_maximum_adjustment.rb index ab07d10b..365c21d5 100644 --- a/lib/orb/models/monetary_maximum_adjustment.rb +++ b/lib/orb/models/monetary_maximum_adjustment.rb @@ -34,8 +34,8 @@ class MonetaryMaximumAdjustment < Orb::Internal::Type::BaseModel required :filters, -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] } # @!attribute is_invoice_level - # True for adjustments that apply to an entire invocice, false for adjustments - # that apply to only one price. + # True for adjustments that apply to an entire invoice, false for adjustments that + # apply to only one price. # # @return [Boolean] required :is_invoice_level, Orb::Internal::Type::Boolean @@ -74,7 +74,7 @@ class MonetaryMaximumAdjustment < Orb::Internal::Type::BaseModel # # @param filters [Array] The filters that determine which prices to apply this adjustment to. # - # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha + # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invoice, false for adjustments that # # @param maximum_amount [String] The maximum amount to charge in a given billing period for the prices this adjus # diff --git a/lib/orb/models/monetary_minimum_adjustment.rb b/lib/orb/models/monetary_minimum_adjustment.rb index 6419d5ae..2f78cc4a 100644 --- a/lib/orb/models/monetary_minimum_adjustment.rb +++ b/lib/orb/models/monetary_minimum_adjustment.rb @@ -34,8 +34,8 @@ class MonetaryMinimumAdjustment < Orb::Internal::Type::BaseModel required :filters, -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] } # @!attribute is_invoice_level - # True for adjustments that apply to an entire invocice, false for adjustments - # that apply to only one price. + # True for adjustments that apply to an entire invoice, false for adjustments that + # apply to only one price. # # @return [Boolean] required :is_invoice_level, Orb::Internal::Type::Boolean @@ -80,7 +80,7 @@ class MonetaryMinimumAdjustment < Orb::Internal::Type::BaseModel # # @param filters [Array] The filters that determine which prices to apply this adjustment to. # - # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha + # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invoice, false for adjustments that # # @param item_id [String] The item ID that revenue from this minimum will be attributed to. # diff --git a/lib/orb/models/monetary_percentage_discount_adjustment.rb b/lib/orb/models/monetary_percentage_discount_adjustment.rb index a0eb138e..8850364a 100644 --- a/lib/orb/models/monetary_percentage_discount_adjustment.rb +++ b/lib/orb/models/monetary_percentage_discount_adjustment.rb @@ -34,8 +34,8 @@ class MonetaryPercentageDiscountAdjustment < Orb::Internal::Type::BaseModel required :filters, -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] } # @!attribute is_invoice_level - # True for adjustments that apply to an entire invocice, false for adjustments - # that apply to only one price. + # True for adjustments that apply to an entire invoice, false for adjustments that + # apply to only one price. # # @return [Boolean] required :is_invoice_level, Orb::Internal::Type::Boolean @@ -74,7 +74,7 @@ class MonetaryPercentageDiscountAdjustment < Orb::Internal::Type::BaseModel # # @param filters [Array] The filters that determine which prices to apply this adjustment to. # - # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha + # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invoice, false for adjustments that # # @param percentage_discount [Float] The percentage (as a value between 0 and 1) by which to discount the price inter # diff --git a/lib/orb/models/monetary_usage_discount_adjustment.rb b/lib/orb/models/monetary_usage_discount_adjustment.rb index a1c2c549..9f8a78ca 100644 --- a/lib/orb/models/monetary_usage_discount_adjustment.rb +++ b/lib/orb/models/monetary_usage_discount_adjustment.rb @@ -34,8 +34,8 @@ class MonetaryUsageDiscountAdjustment < Orb::Internal::Type::BaseModel required :filters, -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] } # @!attribute is_invoice_level - # True for adjustments that apply to an entire invocice, false for adjustments - # that apply to only one price. + # True for adjustments that apply to an entire invoice, false for adjustments that + # apply to only one price. # # @return [Boolean] required :is_invoice_level, Orb::Internal::Type::Boolean @@ -74,7 +74,7 @@ class MonetaryUsageDiscountAdjustment < Orb::Internal::Type::BaseModel # # @param filters [Array] The filters that determine which prices to apply this adjustment to. # - # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha + # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invoice, false for adjustments that # # @param reason [String, nil] The reason for the adjustment. # diff --git a/lib/orb/models/new_floating_bps_price.rb b/lib/orb/models/new_floating_bps_price.rb deleted file mode 100644 index 103d506e..00000000 --- a/lib/orb/models/new_floating_bps_price.rb +++ /dev/null @@ -1,181 +0,0 @@ -# frozen_string_literal: true - -module Orb - module Models - class NewFloatingBPSPrice < Orb::Internal::Type::BaseModel - # @!attribute bps_config - # - # @return [Orb::Models::BPSConfig] - required :bps_config, -> { Orb::BPSConfig } - - # @!attribute cadence - # The cadence to bill for this price on. - # - # @return [Symbol, Orb::Models::NewFloatingBPSPrice::Cadence] - required :cadence, enum: -> { Orb::NewFloatingBPSPrice::Cadence } - - # @!attribute currency - # An ISO 4217 currency string for which this price is billed in. - # - # @return [String] - required :currency, String - - # @!attribute item_id - # The id of the item the price will be associated with. - # - # @return [String] - required :item_id, String - - # @!attribute model_type - # - # @return [Symbol, Orb::Models::NewFloatingBPSPrice::ModelType] - required :model_type, enum: -> { Orb::NewFloatingBPSPrice::ModelType } - - # @!attribute name - # The name of the price. - # - # @return [String] - required :name, String - - # @!attribute billable_metric_id - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - # - # @return [String, nil] - optional :billable_metric_id, String, nil?: true - - # @!attribute billed_in_advance - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - # - # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true - - # @!attribute billing_cycle_configuration - # For custom cadence: specifies the duration of the billing period in days or - # months. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute conversion_rate - # The per unit conversion rate of the price currency to the invoicing currency. - # - # @return [Float, nil] - optional :conversion_rate, Float, nil?: true - - # @!attribute conversion_rate_config - # The configuration for the rate of the price currency to the invoicing currency. - # - # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - optional :conversion_rate_config, - union: -> { Orb::NewFloatingBPSPrice::UnnamedTypeWithobjectParent0 }, - nil?: true - - # @!attribute dimensional_price_configuration - # For dimensional price: specifies a price group and dimension values - # - # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] - optional :dimensional_price_configuration, -> { Orb::NewDimensionalPriceConfiguration }, nil?: true - - # @!attribute external_price_id - # An alias for the price. - # - # @return [String, nil] - optional :external_price_id, String, nil?: true - - # @!attribute fixed_price_quantity - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - # - # @return [Float, nil] - optional :fixed_price_quantity, Float, nil?: true - - # @!attribute invoice_grouping_key - # The property used to group this price on an invoice - # - # @return [String, nil] - optional :invoice_grouping_key, String, nil?: true - - # @!attribute invoicing_cycle_configuration - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute metadata - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - # - # @return [Hash{Symbol=>String, nil}, nil] - optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true - - # @!method initialize(bps_config:, cadence:, currency:, item_id:, model_type:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil) - # Some parameter documentations has been truncated, see - # {Orb::Models::NewFloatingBPSPrice} for more details. - # - # @param bps_config [Orb::Models::BPSConfig] - # - # @param cadence [Symbol, Orb::Models::NewFloatingBPSPrice::Cadence] The cadence to bill for this price on. - # - # @param currency [String] An ISO 4217 currency string for which this price is billed in. - # - # @param item_id [String] The id of the item the price will be associated with. - # - # @param model_type [Symbol, Orb::Models::NewFloatingBPSPrice::ModelType] - # - # @param name [String] The name of the price. - # - # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # - # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # - # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # - # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. - # - # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. - # - # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values - # - # @param external_price_id [String, nil] An alias for the price. - # - # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # - # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice - # - # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # - # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - - # The cadence to bill for this price on. - # - # @see Orb::Models::NewFloatingBPSPrice#cadence - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom - - # @!method self.values - # @return [Array] - end - - # @see Orb::Models::NewFloatingBPSPrice#model_type - module ModelType - extend Orb::Internal::Type::Enum - - BPS = :bps - - # @!method self.values - # @return [Array] - end - end - end -end diff --git a/lib/orb/models/new_floating_bulk_bps_price.rb b/lib/orb/models/new_floating_bulk_bps_price.rb deleted file mode 100644 index de77e562..00000000 --- a/lib/orb/models/new_floating_bulk_bps_price.rb +++ /dev/null @@ -1,181 +0,0 @@ -# frozen_string_literal: true - -module Orb - module Models - class NewFloatingBulkBPSPrice < Orb::Internal::Type::BaseModel - # @!attribute bulk_bps_config - # - # @return [Orb::Models::BulkBPSConfig] - required :bulk_bps_config, -> { Orb::BulkBPSConfig } - - # @!attribute cadence - # The cadence to bill for this price on. - # - # @return [Symbol, Orb::Models::NewFloatingBulkBPSPrice::Cadence] - required :cadence, enum: -> { Orb::NewFloatingBulkBPSPrice::Cadence } - - # @!attribute currency - # An ISO 4217 currency string for which this price is billed in. - # - # @return [String] - required :currency, String - - # @!attribute item_id - # The id of the item the price will be associated with. - # - # @return [String] - required :item_id, String - - # @!attribute model_type - # - # @return [Symbol, Orb::Models::NewFloatingBulkBPSPrice::ModelType] - required :model_type, enum: -> { Orb::NewFloatingBulkBPSPrice::ModelType } - - # @!attribute name - # The name of the price. - # - # @return [String] - required :name, String - - # @!attribute billable_metric_id - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - # - # @return [String, nil] - optional :billable_metric_id, String, nil?: true - - # @!attribute billed_in_advance - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - # - # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true - - # @!attribute billing_cycle_configuration - # For custom cadence: specifies the duration of the billing period in days or - # months. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute conversion_rate - # The per unit conversion rate of the price currency to the invoicing currency. - # - # @return [Float, nil] - optional :conversion_rate, Float, nil?: true - - # @!attribute conversion_rate_config - # The configuration for the rate of the price currency to the invoicing currency. - # - # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - optional :conversion_rate_config, - union: -> { Orb::NewFloatingBulkBPSPrice::UnnamedTypeWithobjectParent1 }, - nil?: true - - # @!attribute dimensional_price_configuration - # For dimensional price: specifies a price group and dimension values - # - # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] - optional :dimensional_price_configuration, -> { Orb::NewDimensionalPriceConfiguration }, nil?: true - - # @!attribute external_price_id - # An alias for the price. - # - # @return [String, nil] - optional :external_price_id, String, nil?: true - - # @!attribute fixed_price_quantity - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - # - # @return [Float, nil] - optional :fixed_price_quantity, Float, nil?: true - - # @!attribute invoice_grouping_key - # The property used to group this price on an invoice - # - # @return [String, nil] - optional :invoice_grouping_key, String, nil?: true - - # @!attribute invoicing_cycle_configuration - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute metadata - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - # - # @return [Hash{Symbol=>String, nil}, nil] - optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true - - # @!method initialize(bulk_bps_config:, cadence:, currency:, item_id:, model_type:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil) - # Some parameter documentations has been truncated, see - # {Orb::Models::NewFloatingBulkBPSPrice} for more details. - # - # @param bulk_bps_config [Orb::Models::BulkBPSConfig] - # - # @param cadence [Symbol, Orb::Models::NewFloatingBulkBPSPrice::Cadence] The cadence to bill for this price on. - # - # @param currency [String] An ISO 4217 currency string for which this price is billed in. - # - # @param item_id [String] The id of the item the price will be associated with. - # - # @param model_type [Symbol, Orb::Models::NewFloatingBulkBPSPrice::ModelType] - # - # @param name [String] The name of the price. - # - # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # - # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # - # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # - # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. - # - # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. - # - # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values - # - # @param external_price_id [String, nil] An alias for the price. - # - # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # - # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice - # - # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # - # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - - # The cadence to bill for this price on. - # - # @see Orb::Models::NewFloatingBulkBPSPrice#cadence - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom - - # @!method self.values - # @return [Array] - end - - # @see Orb::Models::NewFloatingBulkBPSPrice#model_type - module ModelType - extend Orb::Internal::Type::Enum - - BULK_BPS = :bulk_bps - - # @!method self.values - # @return [Array] - end - end - end -end diff --git a/lib/orb/models/new_floating_bulk_price.rb b/lib/orb/models/new_floating_bulk_price.rb index eeaf9423..40f96d64 100644 --- a/lib/orb/models/new_floating_bulk_price.rb +++ b/lib/orb/models/new_floating_bulk_price.rb @@ -69,7 +69,7 @@ class NewFloatingBulkPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingBulkPrice::UnnamedTypeWithobjectParent2 }, + union: -> { Orb::NewFloatingBulkPrice::UnnamedTypeWithobjectParent8 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_bulk_with_proration_price.rb b/lib/orb/models/new_floating_bulk_with_proration_price.rb index b31f82b7..7080ace1 100644 --- a/lib/orb/models/new_floating_bulk_with_proration_price.rb +++ b/lib/orb/models/new_floating_bulk_with_proration_price.rb @@ -69,7 +69,7 @@ class NewFloatingBulkWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingBulkWithProrationPrice::UnnamedTypeWithobjectParent3 }, + union: -> { Orb::NewFloatingBulkWithProrationPrice::UnnamedTypeWithobjectParent9 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_cumulative_grouped_bulk_price.rb b/lib/orb/models/new_floating_cumulative_grouped_bulk_price.rb index b9b9376c..53853a1d 100644 --- a/lib/orb/models/new_floating_cumulative_grouped_bulk_price.rb +++ b/lib/orb/models/new_floating_cumulative_grouped_bulk_price.rb @@ -69,7 +69,7 @@ class NewFloatingCumulativeGroupedBulkPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingCumulativeGroupedBulkPrice::UnnamedTypeWithobjectParent4 }, + union: -> { Orb::NewFloatingCumulativeGroupedBulkPrice::UnnamedTypeWithobjectParent10 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_grouped_allocation_price.rb b/lib/orb/models/new_floating_grouped_allocation_price.rb index 5220d9f4..0f9e2955 100644 --- a/lib/orb/models/new_floating_grouped_allocation_price.rb +++ b/lib/orb/models/new_floating_grouped_allocation_price.rb @@ -69,7 +69,7 @@ class NewFloatingGroupedAllocationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingGroupedAllocationPrice::UnnamedTypeWithobjectParent5 }, + union: -> { Orb::NewFloatingGroupedAllocationPrice::UnnamedTypeWithobjectParent11 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_grouped_tiered_package_price.rb b/lib/orb/models/new_floating_grouped_tiered_package_price.rb index 98b1c957..94af723f 100644 --- a/lib/orb/models/new_floating_grouped_tiered_package_price.rb +++ b/lib/orb/models/new_floating_grouped_tiered_package_price.rb @@ -69,7 +69,7 @@ class NewFloatingGroupedTieredPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingGroupedTieredPackagePrice::UnnamedTypeWithobjectParent6 }, + union: -> { Orb::NewFloatingGroupedTieredPackagePrice::UnnamedTypeWithobjectParent12 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_grouped_tiered_price.rb b/lib/orb/models/new_floating_grouped_tiered_price.rb index f6d4555d..021cf2c4 100644 --- a/lib/orb/models/new_floating_grouped_tiered_price.rb +++ b/lib/orb/models/new_floating_grouped_tiered_price.rb @@ -69,7 +69,7 @@ class NewFloatingGroupedTieredPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingGroupedTieredPrice::UnnamedTypeWithobjectParent7 }, + union: -> { Orb::NewFloatingGroupedTieredPrice::UnnamedTypeWithobjectParent13 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb b/lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb index acb3fea7..ab4a6650 100644 --- a/lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb +++ b/lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb @@ -69,7 +69,7 @@ class NewFloatingGroupedWithMeteredMinimumPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingGroupedWithMeteredMinimumPrice::UnnamedTypeWithobjectParent8 }, + union: -> { Orb::NewFloatingGroupedWithMeteredMinimumPrice::UnnamedTypeWithobjectParent14 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_grouped_with_prorated_minimum_price.rb b/lib/orb/models/new_floating_grouped_with_prorated_minimum_price.rb index 35a56b94..d3f246fe 100644 --- a/lib/orb/models/new_floating_grouped_with_prorated_minimum_price.rb +++ b/lib/orb/models/new_floating_grouped_with_prorated_minimum_price.rb @@ -69,7 +69,7 @@ class NewFloatingGroupedWithProratedMinimumPrice < Orb::Internal::Type::BaseMode # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingGroupedWithProratedMinimumPrice::UnnamedTypeWithobjectParent9 }, + union: -> { Orb::NewFloatingGroupedWithProratedMinimumPrice::UnnamedTypeWithobjectParent15 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_matrix_price.rb b/lib/orb/models/new_floating_matrix_price.rb index eef5ea17..ffde0e26 100644 --- a/lib/orb/models/new_floating_matrix_price.rb +++ b/lib/orb/models/new_floating_matrix_price.rb @@ -69,7 +69,7 @@ class NewFloatingMatrixPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingMatrixPrice::UnnamedTypeWithobjectParent10 }, + union: -> { Orb::NewFloatingMatrixPrice::UnnamedTypeWithobjectParent16 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_matrix_with_allocation_price.rb b/lib/orb/models/new_floating_matrix_with_allocation_price.rb index 5febce9d..42c69531 100644 --- a/lib/orb/models/new_floating_matrix_with_allocation_price.rb +++ b/lib/orb/models/new_floating_matrix_with_allocation_price.rb @@ -69,7 +69,7 @@ class NewFloatingMatrixWithAllocationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingMatrixWithAllocationPrice::UnnamedTypeWithobjectParent11 }, + union: -> { Orb::NewFloatingMatrixWithAllocationPrice::UnnamedTypeWithobjectParent17 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_matrix_with_display_name_price.rb b/lib/orb/models/new_floating_matrix_with_display_name_price.rb index efe4a766..5a796943 100644 --- a/lib/orb/models/new_floating_matrix_with_display_name_price.rb +++ b/lib/orb/models/new_floating_matrix_with_display_name_price.rb @@ -69,7 +69,7 @@ class NewFloatingMatrixWithDisplayNamePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingMatrixWithDisplayNamePrice::UnnamedTypeWithobjectParent12 }, + union: -> { Orb::NewFloatingMatrixWithDisplayNamePrice::UnnamedTypeWithobjectParent18 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_max_group_tiered_package_price.rb b/lib/orb/models/new_floating_max_group_tiered_package_price.rb index 67921568..26fbe7aa 100644 --- a/lib/orb/models/new_floating_max_group_tiered_package_price.rb +++ b/lib/orb/models/new_floating_max_group_tiered_package_price.rb @@ -69,7 +69,7 @@ class NewFloatingMaxGroupTieredPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingMaxGroupTieredPackagePrice::UnnamedTypeWithobjectParent13 }, + union: -> { Orb::NewFloatingMaxGroupTieredPackagePrice::UnnamedTypeWithobjectParent19 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_package_price.rb b/lib/orb/models/new_floating_package_price.rb index 1d0b7922..ba9db59f 100644 --- a/lib/orb/models/new_floating_package_price.rb +++ b/lib/orb/models/new_floating_package_price.rb @@ -69,7 +69,7 @@ class NewFloatingPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingPackagePrice::UnnamedTypeWithobjectParent14 }, + union: -> { Orb::NewFloatingPackagePrice::UnnamedTypeWithobjectParent20 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_package_with_allocation_price.rb b/lib/orb/models/new_floating_package_with_allocation_price.rb index 819e17c7..f4ced562 100644 --- a/lib/orb/models/new_floating_package_with_allocation_price.rb +++ b/lib/orb/models/new_floating_package_with_allocation_price.rb @@ -69,7 +69,7 @@ class NewFloatingPackageWithAllocationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingPackageWithAllocationPrice::UnnamedTypeWithobjectParent15 }, + union: -> { Orb::NewFloatingPackageWithAllocationPrice::UnnamedTypeWithobjectParent21 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rb b/lib/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rb index c9c70651..e0dcca7e 100644 --- a/lib/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rb +++ b/lib/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rb @@ -71,7 +71,7 @@ class NewFloatingScalableMatrixWithTieredPricingPrice < Orb::Internal::Type::Bas # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, union: -> { - Orb::NewFloatingScalableMatrixWithTieredPricingPrice::UnnamedTypeWithobjectParent16 + Orb::NewFloatingScalableMatrixWithTieredPricingPrice::UnnamedTypeWithobjectParent22 }, nil?: true diff --git a/lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb b/lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb index 1af47072..89d7b67c 100644 --- a/lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb +++ b/lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb @@ -71,7 +71,7 @@ class NewFloatingScalableMatrixWithUnitPricingPrice < Orb::Internal::Type::BaseM # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, union: -> { - Orb::NewFloatingScalableMatrixWithUnitPricingPrice::UnnamedTypeWithobjectParent17 + Orb::NewFloatingScalableMatrixWithUnitPricingPrice::UnnamedTypeWithobjectParent23 }, nil?: true diff --git a/lib/orb/models/new_floating_threshold_total_amount_price.rb b/lib/orb/models/new_floating_threshold_total_amount_price.rb index f8ca6bb4..90cc8503 100644 --- a/lib/orb/models/new_floating_threshold_total_amount_price.rb +++ b/lib/orb/models/new_floating_threshold_total_amount_price.rb @@ -69,7 +69,7 @@ class NewFloatingThresholdTotalAmountPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingThresholdTotalAmountPrice::UnnamedTypeWithobjectParent18 }, + union: -> { Orb::NewFloatingThresholdTotalAmountPrice::UnnamedTypeWithobjectParent24 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_tiered_bps_price.rb b/lib/orb/models/new_floating_tiered_bps_price.rb deleted file mode 100644 index bd6d7cf2..00000000 --- a/lib/orb/models/new_floating_tiered_bps_price.rb +++ /dev/null @@ -1,181 +0,0 @@ -# frozen_string_literal: true - -module Orb - module Models - class NewFloatingTieredBPSPrice < Orb::Internal::Type::BaseModel - # @!attribute cadence - # The cadence to bill for this price on. - # - # @return [Symbol, Orb::Models::NewFloatingTieredBPSPrice::Cadence] - required :cadence, enum: -> { Orb::NewFloatingTieredBPSPrice::Cadence } - - # @!attribute currency - # An ISO 4217 currency string for which this price is billed in. - # - # @return [String] - required :currency, String - - # @!attribute item_id - # The id of the item the price will be associated with. - # - # @return [String] - required :item_id, String - - # @!attribute model_type - # - # @return [Symbol, Orb::Models::NewFloatingTieredBPSPrice::ModelType] - required :model_type, enum: -> { Orb::NewFloatingTieredBPSPrice::ModelType } - - # @!attribute name - # The name of the price. - # - # @return [String] - required :name, String - - # @!attribute tiered_bps_config - # - # @return [Orb::Models::TieredBPSConfig] - required :tiered_bps_config, -> { Orb::TieredBPSConfig } - - # @!attribute billable_metric_id - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - # - # @return [String, nil] - optional :billable_metric_id, String, nil?: true - - # @!attribute billed_in_advance - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - # - # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true - - # @!attribute billing_cycle_configuration - # For custom cadence: specifies the duration of the billing period in days or - # months. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute conversion_rate - # The per unit conversion rate of the price currency to the invoicing currency. - # - # @return [Float, nil] - optional :conversion_rate, Float, nil?: true - - # @!attribute conversion_rate_config - # The configuration for the rate of the price currency to the invoicing currency. - # - # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - optional :conversion_rate_config, - union: -> { Orb::NewFloatingTieredBPSPrice::UnnamedTypeWithobjectParent19 }, - nil?: true - - # @!attribute dimensional_price_configuration - # For dimensional price: specifies a price group and dimension values - # - # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] - optional :dimensional_price_configuration, -> { Orb::NewDimensionalPriceConfiguration }, nil?: true - - # @!attribute external_price_id - # An alias for the price. - # - # @return [String, nil] - optional :external_price_id, String, nil?: true - - # @!attribute fixed_price_quantity - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - # - # @return [Float, nil] - optional :fixed_price_quantity, Float, nil?: true - - # @!attribute invoice_grouping_key - # The property used to group this price on an invoice - # - # @return [String, nil] - optional :invoice_grouping_key, String, nil?: true - - # @!attribute invoicing_cycle_configuration - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute metadata - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - # - # @return [Hash{Symbol=>String, nil}, nil] - optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true - - # @!method initialize(cadence:, currency:, item_id:, model_type:, name:, tiered_bps_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil) - # Some parameter documentations has been truncated, see - # {Orb::Models::NewFloatingTieredBPSPrice} for more details. - # - # @param cadence [Symbol, Orb::Models::NewFloatingTieredBPSPrice::Cadence] The cadence to bill for this price on. - # - # @param currency [String] An ISO 4217 currency string for which this price is billed in. - # - # @param item_id [String] The id of the item the price will be associated with. - # - # @param model_type [Symbol, Orb::Models::NewFloatingTieredBPSPrice::ModelType] - # - # @param name [String] The name of the price. - # - # @param tiered_bps_config [Orb::Models::TieredBPSConfig] - # - # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # - # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # - # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # - # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. - # - # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. - # - # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values - # - # @param external_price_id [String, nil] An alias for the price. - # - # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # - # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice - # - # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # - # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - - # The cadence to bill for this price on. - # - # @see Orb::Models::NewFloatingTieredBPSPrice#cadence - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom - - # @!method self.values - # @return [Array] - end - - # @see Orb::Models::NewFloatingTieredBPSPrice#model_type - module ModelType - extend Orb::Internal::Type::Enum - - TIERED_BPS = :tiered_bps - - # @!method self.values - # @return [Array] - end - end - end -end diff --git a/lib/orb/models/new_floating_tiered_package_price.rb b/lib/orb/models/new_floating_tiered_package_price.rb index fd3f5460..3db2aa4d 100644 --- a/lib/orb/models/new_floating_tiered_package_price.rb +++ b/lib/orb/models/new_floating_tiered_package_price.rb @@ -69,7 +69,7 @@ class NewFloatingTieredPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingTieredPackagePrice::UnnamedTypeWithobjectParent20 }, + union: -> { Orb::NewFloatingTieredPackagePrice::UnnamedTypeWithobjectParent25 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_tiered_package_with_minimum_price.rb b/lib/orb/models/new_floating_tiered_package_with_minimum_price.rb index 294b9370..e840fd14 100644 --- a/lib/orb/models/new_floating_tiered_package_with_minimum_price.rb +++ b/lib/orb/models/new_floating_tiered_package_with_minimum_price.rb @@ -69,7 +69,7 @@ class NewFloatingTieredPackageWithMinimumPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingTieredPackageWithMinimumPrice::UnnamedTypeWithobjectParent21 }, + union: -> { Orb::NewFloatingTieredPackageWithMinimumPrice::UnnamedTypeWithobjectParent26 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_tiered_price.rb b/lib/orb/models/new_floating_tiered_price.rb index 644fc96c..bf38899b 100644 --- a/lib/orb/models/new_floating_tiered_price.rb +++ b/lib/orb/models/new_floating_tiered_price.rb @@ -69,7 +69,7 @@ class NewFloatingTieredPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingTieredPrice::UnnamedTypeWithobjectParent22 }, + union: -> { Orb::NewFloatingTieredPrice::UnnamedTypeWithobjectParent27 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_tiered_with_minimum_price.rb b/lib/orb/models/new_floating_tiered_with_minimum_price.rb index 2d355fc3..8461e84d 100644 --- a/lib/orb/models/new_floating_tiered_with_minimum_price.rb +++ b/lib/orb/models/new_floating_tiered_with_minimum_price.rb @@ -69,7 +69,7 @@ class NewFloatingTieredWithMinimumPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingTieredWithMinimumPrice::UnnamedTypeWithobjectParent23 }, + union: -> { Orb::NewFloatingTieredWithMinimumPrice::UnnamedTypeWithobjectParent28 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_tiered_with_proration_price.rb b/lib/orb/models/new_floating_tiered_with_proration_price.rb index 577dba38..ce9dded2 100644 --- a/lib/orb/models/new_floating_tiered_with_proration_price.rb +++ b/lib/orb/models/new_floating_tiered_with_proration_price.rb @@ -69,7 +69,7 @@ class NewFloatingTieredWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingTieredWithProrationPrice::UnnamedTypeWithobjectParent24 }, + union: -> { Orb::NewFloatingTieredWithProrationPrice::UnnamedTypeWithobjectParent29 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_unit_price.rb b/lib/orb/models/new_floating_unit_price.rb index 9f4a8ccc..fe489fc0 100644 --- a/lib/orb/models/new_floating_unit_price.rb +++ b/lib/orb/models/new_floating_unit_price.rb @@ -69,7 +69,7 @@ class NewFloatingUnitPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingUnitPrice::UnnamedTypeWithobjectParent25 }, + union: -> { Orb::NewFloatingUnitPrice::UnnamedTypeWithobjectParent30 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_unit_with_percent_price.rb b/lib/orb/models/new_floating_unit_with_percent_price.rb index 595f768a..0574f8c6 100644 --- a/lib/orb/models/new_floating_unit_with_percent_price.rb +++ b/lib/orb/models/new_floating_unit_with_percent_price.rb @@ -69,7 +69,7 @@ class NewFloatingUnitWithPercentPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingUnitWithPercentPrice::UnnamedTypeWithobjectParent26 }, + union: -> { Orb::NewFloatingUnitWithPercentPrice::UnnamedTypeWithobjectParent31 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_unit_with_proration_price.rb b/lib/orb/models/new_floating_unit_with_proration_price.rb index 3424836b..822fa08a 100644 --- a/lib/orb/models/new_floating_unit_with_proration_price.rb +++ b/lib/orb/models/new_floating_unit_with_proration_price.rb @@ -69,7 +69,7 @@ class NewFloatingUnitWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingUnitWithProrationPrice::UnnamedTypeWithobjectParent27 }, + union: -> { Orb::NewFloatingUnitWithProrationPrice::UnnamedTypeWithobjectParent32 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_plan_bps_price.rb b/lib/orb/models/new_plan_bps_price.rb deleted file mode 100644 index 1f0a1081..00000000 --- a/lib/orb/models/new_plan_bps_price.rb +++ /dev/null @@ -1,191 +0,0 @@ -# frozen_string_literal: true - -module Orb - module Models - class NewPlanBPSPrice < Orb::Internal::Type::BaseModel - # @!attribute bps_config - # - # @return [Orb::Models::BPSConfig] - required :bps_config, -> { Orb::BPSConfig } - - # @!attribute cadence - # The cadence to bill for this price on. - # - # @return [Symbol, Orb::Models::NewPlanBPSPrice::Cadence] - required :cadence, enum: -> { Orb::NewPlanBPSPrice::Cadence } - - # @!attribute item_id - # The id of the item the price will be associated with. - # - # @return [String] - required :item_id, String - - # @!attribute model_type - # - # @return [Symbol, Orb::Models::NewPlanBPSPrice::ModelType] - required :model_type, enum: -> { Orb::NewPlanBPSPrice::ModelType } - - # @!attribute name - # The name of the price. - # - # @return [String] - required :name, String - - # @!attribute billable_metric_id - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - # - # @return [String, nil] - optional :billable_metric_id, String, nil?: true - - # @!attribute billed_in_advance - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - # - # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true - - # @!attribute billing_cycle_configuration - # For custom cadence: specifies the duration of the billing period in days or - # months. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute conversion_rate - # The per unit conversion rate of the price currency to the invoicing currency. - # - # @return [Float, nil] - optional :conversion_rate, Float, nil?: true - - # @!attribute conversion_rate_config - # The configuration for the rate of the price currency to the invoicing currency. - # - # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - optional :conversion_rate_config, - union: -> { Orb::NewPlanBPSPrice::UnnamedTypeWithobjectParent28 }, - nil?: true - - # @!attribute currency - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - # - # @return [String, nil] - optional :currency, String, nil?: true - - # @!attribute dimensional_price_configuration - # For dimensional price: specifies a price group and dimension values - # - # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] - optional :dimensional_price_configuration, -> { Orb::NewDimensionalPriceConfiguration }, nil?: true - - # @!attribute external_price_id - # An alias for the price. - # - # @return [String, nil] - optional :external_price_id, String, nil?: true - - # @!attribute fixed_price_quantity - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - # - # @return [Float, nil] - optional :fixed_price_quantity, Float, nil?: true - - # @!attribute invoice_grouping_key - # The property used to group this price on an invoice - # - # @return [String, nil] - optional :invoice_grouping_key, String, nil?: true - - # @!attribute invoicing_cycle_configuration - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute metadata - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - # - # @return [Hash{Symbol=>String, nil}, nil] - optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true - - # @!attribute reference_id - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - # - # @return [String, nil] - optional :reference_id, String, nil?: true - - # @!method initialize(bps_config:, cadence:, item_id:, model_type:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil) - # Some parameter documentations has been truncated, see - # {Orb::Models::NewPlanBPSPrice} for more details. - # - # @param bps_config [Orb::Models::BPSConfig] - # - # @param cadence [Symbol, Orb::Models::NewPlanBPSPrice::Cadence] The cadence to bill for this price on. - # - # @param item_id [String] The id of the item the price will be associated with. - # - # @param model_type [Symbol, Orb::Models::NewPlanBPSPrice::ModelType] - # - # @param name [String] The name of the price. - # - # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # - # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # - # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # - # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. - # - # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. - # - # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # - # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values - # - # @param external_price_id [String, nil] An alias for the price. - # - # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # - # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice - # - # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # - # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # - # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - - # The cadence to bill for this price on. - # - # @see Orb::Models::NewPlanBPSPrice#cadence - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom - - # @!method self.values - # @return [Array] - end - - # @see Orb::Models::NewPlanBPSPrice#model_type - module ModelType - extend Orb::Internal::Type::Enum - - BPS = :bps - - # @!method self.values - # @return [Array] - end - end - end -end diff --git a/lib/orb/models/new_plan_bulk_bps_price.rb b/lib/orb/models/new_plan_bulk_bps_price.rb deleted file mode 100644 index 8be7bbb9..00000000 --- a/lib/orb/models/new_plan_bulk_bps_price.rb +++ /dev/null @@ -1,191 +0,0 @@ -# frozen_string_literal: true - -module Orb - module Models - class NewPlanBulkBPSPrice < Orb::Internal::Type::BaseModel - # @!attribute bulk_bps_config - # - # @return [Orb::Models::BulkBPSConfig] - required :bulk_bps_config, -> { Orb::BulkBPSConfig } - - # @!attribute cadence - # The cadence to bill for this price on. - # - # @return [Symbol, Orb::Models::NewPlanBulkBPSPrice::Cadence] - required :cadence, enum: -> { Orb::NewPlanBulkBPSPrice::Cadence } - - # @!attribute item_id - # The id of the item the price will be associated with. - # - # @return [String] - required :item_id, String - - # @!attribute model_type - # - # @return [Symbol, Orb::Models::NewPlanBulkBPSPrice::ModelType] - required :model_type, enum: -> { Orb::NewPlanBulkBPSPrice::ModelType } - - # @!attribute name - # The name of the price. - # - # @return [String] - required :name, String - - # @!attribute billable_metric_id - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - # - # @return [String, nil] - optional :billable_metric_id, String, nil?: true - - # @!attribute billed_in_advance - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - # - # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true - - # @!attribute billing_cycle_configuration - # For custom cadence: specifies the duration of the billing period in days or - # months. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute conversion_rate - # The per unit conversion rate of the price currency to the invoicing currency. - # - # @return [Float, nil] - optional :conversion_rate, Float, nil?: true - - # @!attribute conversion_rate_config - # The configuration for the rate of the price currency to the invoicing currency. - # - # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - optional :conversion_rate_config, - union: -> { Orb::NewPlanBulkBPSPrice::UnnamedTypeWithobjectParent29 }, - nil?: true - - # @!attribute currency - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - # - # @return [String, nil] - optional :currency, String, nil?: true - - # @!attribute dimensional_price_configuration - # For dimensional price: specifies a price group and dimension values - # - # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] - optional :dimensional_price_configuration, -> { Orb::NewDimensionalPriceConfiguration }, nil?: true - - # @!attribute external_price_id - # An alias for the price. - # - # @return [String, nil] - optional :external_price_id, String, nil?: true - - # @!attribute fixed_price_quantity - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - # - # @return [Float, nil] - optional :fixed_price_quantity, Float, nil?: true - - # @!attribute invoice_grouping_key - # The property used to group this price on an invoice - # - # @return [String, nil] - optional :invoice_grouping_key, String, nil?: true - - # @!attribute invoicing_cycle_configuration - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute metadata - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - # - # @return [Hash{Symbol=>String, nil}, nil] - optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true - - # @!attribute reference_id - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - # - # @return [String, nil] - optional :reference_id, String, nil?: true - - # @!method initialize(bulk_bps_config:, cadence:, item_id:, model_type:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil) - # Some parameter documentations has been truncated, see - # {Orb::Models::NewPlanBulkBPSPrice} for more details. - # - # @param bulk_bps_config [Orb::Models::BulkBPSConfig] - # - # @param cadence [Symbol, Orb::Models::NewPlanBulkBPSPrice::Cadence] The cadence to bill for this price on. - # - # @param item_id [String] The id of the item the price will be associated with. - # - # @param model_type [Symbol, Orb::Models::NewPlanBulkBPSPrice::ModelType] - # - # @param name [String] The name of the price. - # - # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # - # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # - # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # - # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. - # - # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. - # - # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # - # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values - # - # @param external_price_id [String, nil] An alias for the price. - # - # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # - # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice - # - # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # - # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # - # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - - # The cadence to bill for this price on. - # - # @see Orb::Models::NewPlanBulkBPSPrice#cadence - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom - - # @!method self.values - # @return [Array] - end - - # @see Orb::Models::NewPlanBulkBPSPrice#model_type - module ModelType - extend Orb::Internal::Type::Enum - - BULK_BPS = :bulk_bps - - # @!method self.values - # @return [Array] - end - end - end -end diff --git a/lib/orb/models/new_plan_bulk_price.rb b/lib/orb/models/new_plan_bulk_price.rb index f4d51243..063cad00 100644 --- a/lib/orb/models/new_plan_bulk_price.rb +++ b/lib/orb/models/new_plan_bulk_price.rb @@ -63,7 +63,7 @@ class NewPlanBulkPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanBulkPrice::UnnamedTypeWithobjectParent30 }, + union: -> { Orb::NewPlanBulkPrice::UnnamedTypeWithobjectParent33 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_bulk_with_proration_price.rb b/lib/orb/models/new_plan_bulk_with_proration_price.rb index 46115f53..14714533 100644 --- a/lib/orb/models/new_plan_bulk_with_proration_price.rb +++ b/lib/orb/models/new_plan_bulk_with_proration_price.rb @@ -63,7 +63,7 @@ class NewPlanBulkWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanBulkWithProrationPrice::UnnamedTypeWithobjectParent31 }, + union: -> { Orb::NewPlanBulkWithProrationPrice::UnnamedTypeWithobjectParent34 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb b/lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb index 8ecd30b6..bfc3a944 100644 --- a/lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb +++ b/lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb @@ -63,7 +63,7 @@ class NewPlanCumulativeGroupedBulkPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanCumulativeGroupedBulkPrice::UnnamedTypeWithobjectParent32 }, + union: -> { Orb::NewPlanCumulativeGroupedBulkPrice::UnnamedTypeWithobjectParent35 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_grouped_allocation_price.rb b/lib/orb/models/new_plan_grouped_allocation_price.rb index c3b17c0c..974af90e 100644 --- a/lib/orb/models/new_plan_grouped_allocation_price.rb +++ b/lib/orb/models/new_plan_grouped_allocation_price.rb @@ -63,7 +63,7 @@ class NewPlanGroupedAllocationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanGroupedAllocationPrice::UnnamedTypeWithobjectParent33 }, + union: -> { Orb::NewPlanGroupedAllocationPrice::UnnamedTypeWithobjectParent36 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_grouped_tiered_package_price.rb b/lib/orb/models/new_plan_grouped_tiered_package_price.rb index b2b601b4..011bf8ce 100644 --- a/lib/orb/models/new_plan_grouped_tiered_package_price.rb +++ b/lib/orb/models/new_plan_grouped_tiered_package_price.rb @@ -63,7 +63,7 @@ class NewPlanGroupedTieredPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanGroupedTieredPackagePrice::UnnamedTypeWithobjectParent34 }, + union: -> { Orb::NewPlanGroupedTieredPackagePrice::UnnamedTypeWithobjectParent37 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_grouped_tiered_price.rb b/lib/orb/models/new_plan_grouped_tiered_price.rb index 615b8998..dfccdf30 100644 --- a/lib/orb/models/new_plan_grouped_tiered_price.rb +++ b/lib/orb/models/new_plan_grouped_tiered_price.rb @@ -63,7 +63,7 @@ class NewPlanGroupedTieredPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanGroupedTieredPrice::UnnamedTypeWithobjectParent35 }, + union: -> { Orb::NewPlanGroupedTieredPrice::UnnamedTypeWithobjectParent38 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_grouped_with_metered_minimum_price.rb b/lib/orb/models/new_plan_grouped_with_metered_minimum_price.rb index 8d7b0d55..cdc0051d 100644 --- a/lib/orb/models/new_plan_grouped_with_metered_minimum_price.rb +++ b/lib/orb/models/new_plan_grouped_with_metered_minimum_price.rb @@ -63,7 +63,7 @@ class NewPlanGroupedWithMeteredMinimumPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanGroupedWithMeteredMinimumPrice::UnnamedTypeWithobjectParent36 }, + union: -> { Orb::NewPlanGroupedWithMeteredMinimumPrice::UnnamedTypeWithobjectParent39 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_grouped_with_prorated_minimum_price.rb b/lib/orb/models/new_plan_grouped_with_prorated_minimum_price.rb index b7bc6185..74ddfc9d 100644 --- a/lib/orb/models/new_plan_grouped_with_prorated_minimum_price.rb +++ b/lib/orb/models/new_plan_grouped_with_prorated_minimum_price.rb @@ -63,7 +63,7 @@ class NewPlanGroupedWithProratedMinimumPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanGroupedWithProratedMinimumPrice::UnnamedTypeWithobjectParent37 }, + union: -> { Orb::NewPlanGroupedWithProratedMinimumPrice::UnnamedTypeWithobjectParent40 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_matrix_price.rb b/lib/orb/models/new_plan_matrix_price.rb index a0cb3138..719b6273 100644 --- a/lib/orb/models/new_plan_matrix_price.rb +++ b/lib/orb/models/new_plan_matrix_price.rb @@ -63,7 +63,7 @@ class NewPlanMatrixPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanMatrixPrice::UnnamedTypeWithobjectParent38 }, + union: -> { Orb::NewPlanMatrixPrice::UnnamedTypeWithobjectParent41 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_matrix_with_allocation_price.rb b/lib/orb/models/new_plan_matrix_with_allocation_price.rb index 720fcdb8..4d1db41a 100644 --- a/lib/orb/models/new_plan_matrix_with_allocation_price.rb +++ b/lib/orb/models/new_plan_matrix_with_allocation_price.rb @@ -63,7 +63,7 @@ class NewPlanMatrixWithAllocationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanMatrixWithAllocationPrice::UnnamedTypeWithobjectParent39 }, + union: -> { Orb::NewPlanMatrixWithAllocationPrice::UnnamedTypeWithobjectParent42 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_matrix_with_display_name_price.rb b/lib/orb/models/new_plan_matrix_with_display_name_price.rb index 56d3d3cc..52dd0fbd 100644 --- a/lib/orb/models/new_plan_matrix_with_display_name_price.rb +++ b/lib/orb/models/new_plan_matrix_with_display_name_price.rb @@ -63,7 +63,7 @@ class NewPlanMatrixWithDisplayNamePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanMatrixWithDisplayNamePrice::UnnamedTypeWithobjectParent40 }, + union: -> { Orb::NewPlanMatrixWithDisplayNamePrice::UnnamedTypeWithobjectParent43 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_max_group_tiered_package_price.rb b/lib/orb/models/new_plan_max_group_tiered_package_price.rb index 095f2e64..d2ebfa1f 100644 --- a/lib/orb/models/new_plan_max_group_tiered_package_price.rb +++ b/lib/orb/models/new_plan_max_group_tiered_package_price.rb @@ -63,7 +63,7 @@ class NewPlanMaxGroupTieredPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanMaxGroupTieredPackagePrice::UnnamedTypeWithobjectParent41 }, + union: -> { Orb::NewPlanMaxGroupTieredPackagePrice::UnnamedTypeWithobjectParent44 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_package_price.rb b/lib/orb/models/new_plan_package_price.rb index 900b5c40..b6e5728e 100644 --- a/lib/orb/models/new_plan_package_price.rb +++ b/lib/orb/models/new_plan_package_price.rb @@ -63,7 +63,7 @@ class NewPlanPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanPackagePrice::UnnamedTypeWithobjectParent42 }, + union: -> { Orb::NewPlanPackagePrice::UnnamedTypeWithobjectParent45 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_package_with_allocation_price.rb b/lib/orb/models/new_plan_package_with_allocation_price.rb index 1288576d..20f92262 100644 --- a/lib/orb/models/new_plan_package_with_allocation_price.rb +++ b/lib/orb/models/new_plan_package_with_allocation_price.rb @@ -63,7 +63,7 @@ class NewPlanPackageWithAllocationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanPackageWithAllocationPrice::UnnamedTypeWithobjectParent43 }, + union: -> { Orb::NewPlanPackageWithAllocationPrice::UnnamedTypeWithobjectParent46 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rb b/lib/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rb index d2a898b5..6387bd32 100644 --- a/lib/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rb +++ b/lib/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rb @@ -64,7 +64,7 @@ class NewPlanScalableMatrixWithTieredPricingPrice < Orb::Internal::Type::BaseMod # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanScalableMatrixWithTieredPricingPrice::UnnamedTypeWithobjectParent44 }, + union: -> { Orb::NewPlanScalableMatrixWithTieredPricingPrice::UnnamedTypeWithobjectParent47 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb b/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb index 7ceaab88..39380c64 100644 --- a/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb +++ b/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb @@ -64,7 +64,7 @@ class NewPlanScalableMatrixWithUnitPricingPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanScalableMatrixWithUnitPricingPrice::UnnamedTypeWithobjectParent45 }, + union: -> { Orb::NewPlanScalableMatrixWithUnitPricingPrice::UnnamedTypeWithobjectParent48 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_threshold_total_amount_price.rb b/lib/orb/models/new_plan_threshold_total_amount_price.rb index bf7d94d4..84e3bfa1 100644 --- a/lib/orb/models/new_plan_threshold_total_amount_price.rb +++ b/lib/orb/models/new_plan_threshold_total_amount_price.rb @@ -63,7 +63,7 @@ class NewPlanThresholdTotalAmountPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanThresholdTotalAmountPrice::UnnamedTypeWithobjectParent46 }, + union: -> { Orb::NewPlanThresholdTotalAmountPrice::UnnamedTypeWithobjectParent49 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_tier_with_proration_price.rb b/lib/orb/models/new_plan_tier_with_proration_price.rb index e90d2fa6..69564d70 100644 --- a/lib/orb/models/new_plan_tier_with_proration_price.rb +++ b/lib/orb/models/new_plan_tier_with_proration_price.rb @@ -63,7 +63,7 @@ class NewPlanTierWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanTierWithProrationPrice::UnnamedTypeWithobjectParent52 }, + union: -> { Orb::NewPlanTierWithProrationPrice::UnnamedTypeWithobjectParent54 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_tiered_bps_price.rb b/lib/orb/models/new_plan_tiered_bps_price.rb deleted file mode 100644 index 404353a5..00000000 --- a/lib/orb/models/new_plan_tiered_bps_price.rb +++ /dev/null @@ -1,191 +0,0 @@ -# frozen_string_literal: true - -module Orb - module Models - class NewPlanTieredBPSPrice < Orb::Internal::Type::BaseModel - # @!attribute cadence - # The cadence to bill for this price on. - # - # @return [Symbol, Orb::Models::NewPlanTieredBPSPrice::Cadence] - required :cadence, enum: -> { Orb::NewPlanTieredBPSPrice::Cadence } - - # @!attribute item_id - # The id of the item the price will be associated with. - # - # @return [String] - required :item_id, String - - # @!attribute model_type - # - # @return [Symbol, Orb::Models::NewPlanTieredBPSPrice::ModelType] - required :model_type, enum: -> { Orb::NewPlanTieredBPSPrice::ModelType } - - # @!attribute name - # The name of the price. - # - # @return [String] - required :name, String - - # @!attribute tiered_bps_config - # - # @return [Orb::Models::TieredBPSConfig] - required :tiered_bps_config, -> { Orb::TieredBPSConfig } - - # @!attribute billable_metric_id - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - # - # @return [String, nil] - optional :billable_metric_id, String, nil?: true - - # @!attribute billed_in_advance - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - # - # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true - - # @!attribute billing_cycle_configuration - # For custom cadence: specifies the duration of the billing period in days or - # months. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute conversion_rate - # The per unit conversion rate of the price currency to the invoicing currency. - # - # @return [Float, nil] - optional :conversion_rate, Float, nil?: true - - # @!attribute conversion_rate_config - # The configuration for the rate of the price currency to the invoicing currency. - # - # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - optional :conversion_rate_config, - union: -> { Orb::NewPlanTieredBPSPrice::UnnamedTypeWithobjectParent47 }, - nil?: true - - # @!attribute currency - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - # - # @return [String, nil] - optional :currency, String, nil?: true - - # @!attribute dimensional_price_configuration - # For dimensional price: specifies a price group and dimension values - # - # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] - optional :dimensional_price_configuration, -> { Orb::NewDimensionalPriceConfiguration }, nil?: true - - # @!attribute external_price_id - # An alias for the price. - # - # @return [String, nil] - optional :external_price_id, String, nil?: true - - # @!attribute fixed_price_quantity - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - # - # @return [Float, nil] - optional :fixed_price_quantity, Float, nil?: true - - # @!attribute invoice_grouping_key - # The property used to group this price on an invoice - # - # @return [String, nil] - optional :invoice_grouping_key, String, nil?: true - - # @!attribute invoicing_cycle_configuration - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute metadata - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - # - # @return [Hash{Symbol=>String, nil}, nil] - optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true - - # @!attribute reference_id - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - # - # @return [String, nil] - optional :reference_id, String, nil?: true - - # @!method initialize(cadence:, item_id:, model_type:, name:, tiered_bps_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, metadata: nil, reference_id: nil) - # Some parameter documentations has been truncated, see - # {Orb::Models::NewPlanTieredBPSPrice} for more details. - # - # @param cadence [Symbol, Orb::Models::NewPlanTieredBPSPrice::Cadence] The cadence to bill for this price on. - # - # @param item_id [String] The id of the item the price will be associated with. - # - # @param model_type [Symbol, Orb::Models::NewPlanTieredBPSPrice::ModelType] - # - # @param name [String] The name of the price. - # - # @param tiered_bps_config [Orb::Models::TieredBPSConfig] - # - # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # - # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # - # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # - # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. - # - # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. - # - # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # - # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values - # - # @param external_price_id [String, nil] An alias for the price. - # - # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # - # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice - # - # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # - # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # - # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - - # The cadence to bill for this price on. - # - # @see Orb::Models::NewPlanTieredBPSPrice#cadence - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom - - # @!method self.values - # @return [Array] - end - - # @see Orb::Models::NewPlanTieredBPSPrice#model_type - module ModelType - extend Orb::Internal::Type::Enum - - TIERED_BPS = :tiered_bps - - # @!method self.values - # @return [Array] - end - end - end -end diff --git a/lib/orb/models/new_plan_tiered_package_price.rb b/lib/orb/models/new_plan_tiered_package_price.rb index 1ee4c137..24bff229 100644 --- a/lib/orb/models/new_plan_tiered_package_price.rb +++ b/lib/orb/models/new_plan_tiered_package_price.rb @@ -63,7 +63,7 @@ class NewPlanTieredPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanTieredPackagePrice::UnnamedTypeWithobjectParent48 }, + union: -> { Orb::NewPlanTieredPackagePrice::UnnamedTypeWithobjectParent50 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_tiered_package_with_minimum_price.rb b/lib/orb/models/new_plan_tiered_package_with_minimum_price.rb index ca92b81e..ea756008 100644 --- a/lib/orb/models/new_plan_tiered_package_with_minimum_price.rb +++ b/lib/orb/models/new_plan_tiered_package_with_minimum_price.rb @@ -63,7 +63,7 @@ class NewPlanTieredPackageWithMinimumPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanTieredPackageWithMinimumPrice::UnnamedTypeWithobjectParent49 }, + union: -> { Orb::NewPlanTieredPackageWithMinimumPrice::UnnamedTypeWithobjectParent51 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_tiered_price.rb b/lib/orb/models/new_plan_tiered_price.rb index 09dd78cd..2cf6a19c 100644 --- a/lib/orb/models/new_plan_tiered_price.rb +++ b/lib/orb/models/new_plan_tiered_price.rb @@ -63,7 +63,7 @@ class NewPlanTieredPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanTieredPrice::UnnamedTypeWithobjectParent50 }, + union: -> { Orb::NewPlanTieredPrice::UnnamedTypeWithobjectParent52 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_tiered_with_minimum_price.rb b/lib/orb/models/new_plan_tiered_with_minimum_price.rb index d972523e..f34a32de 100644 --- a/lib/orb/models/new_plan_tiered_with_minimum_price.rb +++ b/lib/orb/models/new_plan_tiered_with_minimum_price.rb @@ -63,7 +63,7 @@ class NewPlanTieredWithMinimumPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanTieredWithMinimumPrice::UnnamedTypeWithobjectParent51 }, + union: -> { Orb::NewPlanTieredWithMinimumPrice::UnnamedTypeWithobjectParent53 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_unit_price.rb b/lib/orb/models/new_plan_unit_price.rb index 40bfd8fe..04b9a97c 100644 --- a/lib/orb/models/new_plan_unit_price.rb +++ b/lib/orb/models/new_plan_unit_price.rb @@ -63,7 +63,7 @@ class NewPlanUnitPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanUnitPrice::UnnamedTypeWithobjectParent53 }, + union: -> { Orb::NewPlanUnitPrice::UnnamedTypeWithobjectParent55 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_unit_with_percent_price.rb b/lib/orb/models/new_plan_unit_with_percent_price.rb index dffeec35..36a0638a 100644 --- a/lib/orb/models/new_plan_unit_with_percent_price.rb +++ b/lib/orb/models/new_plan_unit_with_percent_price.rb @@ -63,7 +63,7 @@ class NewPlanUnitWithPercentPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanUnitWithPercentPrice::UnnamedTypeWithobjectParent54 }, + union: -> { Orb::NewPlanUnitWithPercentPrice::UnnamedTypeWithobjectParent56 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_unit_with_proration_price.rb b/lib/orb/models/new_plan_unit_with_proration_price.rb index 29ca2fe1..9177c4d9 100644 --- a/lib/orb/models/new_plan_unit_with_proration_price.rb +++ b/lib/orb/models/new_plan_unit_with_proration_price.rb @@ -63,7 +63,7 @@ class NewPlanUnitWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanUnitWithProrationPrice::UnnamedTypeWithobjectParent55 }, + union: -> { Orb::NewPlanUnitWithProrationPrice::UnnamedTypeWithobjectParent57 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_bps_price.rb b/lib/orb/models/new_subscription_bps_price.rb deleted file mode 100644 index 62bed4ee..00000000 --- a/lib/orb/models/new_subscription_bps_price.rb +++ /dev/null @@ -1,191 +0,0 @@ -# frozen_string_literal: true - -module Orb - module Models - class NewSubscriptionBPSPrice < Orb::Internal::Type::BaseModel - # @!attribute bps_config - # - # @return [Orb::Models::BPSConfig] - required :bps_config, -> { Orb::BPSConfig } - - # @!attribute cadence - # The cadence to bill for this price on. - # - # @return [Symbol, Orb::Models::NewSubscriptionBPSPrice::Cadence] - required :cadence, enum: -> { Orb::NewSubscriptionBPSPrice::Cadence } - - # @!attribute item_id - # The id of the item the price will be associated with. - # - # @return [String] - required :item_id, String - - # @!attribute model_type - # - # @return [Symbol, Orb::Models::NewSubscriptionBPSPrice::ModelType] - required :model_type, enum: -> { Orb::NewSubscriptionBPSPrice::ModelType } - - # @!attribute name - # The name of the price. - # - # @return [String] - required :name, String - - # @!attribute billable_metric_id - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - # - # @return [String, nil] - optional :billable_metric_id, String, nil?: true - - # @!attribute billed_in_advance - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - # - # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true - - # @!attribute billing_cycle_configuration - # For custom cadence: specifies the duration of the billing period in days or - # months. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute conversion_rate - # The per unit conversion rate of the price currency to the invoicing currency. - # - # @return [Float, nil] - optional :conversion_rate, Float, nil?: true - - # @!attribute conversion_rate_config - # The configuration for the rate of the price currency to the invoicing currency. - # - # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionBPSPrice::UnnamedTypeWithobjectParent56 }, - nil?: true - - # @!attribute currency - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - # - # @return [String, nil] - optional :currency, String, nil?: true - - # @!attribute dimensional_price_configuration - # For dimensional price: specifies a price group and dimension values - # - # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] - optional :dimensional_price_configuration, -> { Orb::NewDimensionalPriceConfiguration }, nil?: true - - # @!attribute external_price_id - # An alias for the price. - # - # @return [String, nil] - optional :external_price_id, String, nil?: true - - # @!attribute fixed_price_quantity - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - # - # @return [Float, nil] - optional :fixed_price_quantity, Float, nil?: true - - # @!attribute invoice_grouping_key - # The property used to group this price on an invoice - # - # @return [String, nil] - optional :invoice_grouping_key, String, nil?: true - - # @!attribute invoicing_cycle_configuration - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute metadata - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - # - # @return [Hash{Symbol=>String, nil}, nil] - optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true - - # @!attribute reference_id - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - # - # @return [String, nil] - optional :reference_id, String, nil?: true - - # @!method initialize(bps_config:, cadence:, item_id:, model_type:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil) - # Some parameter documentations has been truncated, see - # {Orb::Models::NewSubscriptionBPSPrice} for more details. - # - # @param bps_config [Orb::Models::BPSConfig] - # - # @param cadence [Symbol, Orb::Models::NewSubscriptionBPSPrice::Cadence] The cadence to bill for this price on. - # - # @param item_id [String] The id of the item the price will be associated with. - # - # @param model_type [Symbol, Orb::Models::NewSubscriptionBPSPrice::ModelType] - # - # @param name [String] The name of the price. - # - # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # - # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # - # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # - # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. - # - # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. - # - # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # - # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values - # - # @param external_price_id [String, nil] An alias for the price. - # - # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # - # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice - # - # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # - # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # - # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - - # The cadence to bill for this price on. - # - # @see Orb::Models::NewSubscriptionBPSPrice#cadence - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom - - # @!method self.values - # @return [Array] - end - - # @see Orb::Models::NewSubscriptionBPSPrice#model_type - module ModelType - extend Orb::Internal::Type::Enum - - BPS = :bps - - # @!method self.values - # @return [Array] - end - end - end -end diff --git a/lib/orb/models/new_subscription_bulk_bps_price.rb b/lib/orb/models/new_subscription_bulk_bps_price.rb deleted file mode 100644 index e846bfe7..00000000 --- a/lib/orb/models/new_subscription_bulk_bps_price.rb +++ /dev/null @@ -1,191 +0,0 @@ -# frozen_string_literal: true - -module Orb - module Models - class NewSubscriptionBulkBPSPrice < Orb::Internal::Type::BaseModel - # @!attribute bulk_bps_config - # - # @return [Orb::Models::BulkBPSConfig] - required :bulk_bps_config, -> { Orb::BulkBPSConfig } - - # @!attribute cadence - # The cadence to bill for this price on. - # - # @return [Symbol, Orb::Models::NewSubscriptionBulkBPSPrice::Cadence] - required :cadence, enum: -> { Orb::NewSubscriptionBulkBPSPrice::Cadence } - - # @!attribute item_id - # The id of the item the price will be associated with. - # - # @return [String] - required :item_id, String - - # @!attribute model_type - # - # @return [Symbol, Orb::Models::NewSubscriptionBulkBPSPrice::ModelType] - required :model_type, enum: -> { Orb::NewSubscriptionBulkBPSPrice::ModelType } - - # @!attribute name - # The name of the price. - # - # @return [String] - required :name, String - - # @!attribute billable_metric_id - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - # - # @return [String, nil] - optional :billable_metric_id, String, nil?: true - - # @!attribute billed_in_advance - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - # - # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true - - # @!attribute billing_cycle_configuration - # For custom cadence: specifies the duration of the billing period in days or - # months. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute conversion_rate - # The per unit conversion rate of the price currency to the invoicing currency. - # - # @return [Float, nil] - optional :conversion_rate, Float, nil?: true - - # @!attribute conversion_rate_config - # The configuration for the rate of the price currency to the invoicing currency. - # - # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionBulkBPSPrice::UnnamedTypeWithobjectParent57 }, - nil?: true - - # @!attribute currency - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - # - # @return [String, nil] - optional :currency, String, nil?: true - - # @!attribute dimensional_price_configuration - # For dimensional price: specifies a price group and dimension values - # - # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] - optional :dimensional_price_configuration, -> { Orb::NewDimensionalPriceConfiguration }, nil?: true - - # @!attribute external_price_id - # An alias for the price. - # - # @return [String, nil] - optional :external_price_id, String, nil?: true - - # @!attribute fixed_price_quantity - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - # - # @return [Float, nil] - optional :fixed_price_quantity, Float, nil?: true - - # @!attribute invoice_grouping_key - # The property used to group this price on an invoice - # - # @return [String, nil] - optional :invoice_grouping_key, String, nil?: true - - # @!attribute invoicing_cycle_configuration - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute metadata - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - # - # @return [Hash{Symbol=>String, nil}, nil] - optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true - - # @!attribute reference_id - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - # - # @return [String, nil] - optional :reference_id, String, nil?: true - - # @!method initialize(bulk_bps_config:, cadence:, item_id:, model_type:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil) - # Some parameter documentations has been truncated, see - # {Orb::Models::NewSubscriptionBulkBPSPrice} for more details. - # - # @param bulk_bps_config [Orb::Models::BulkBPSConfig] - # - # @param cadence [Symbol, Orb::Models::NewSubscriptionBulkBPSPrice::Cadence] The cadence to bill for this price on. - # - # @param item_id [String] The id of the item the price will be associated with. - # - # @param model_type [Symbol, Orb::Models::NewSubscriptionBulkBPSPrice::ModelType] - # - # @param name [String] The name of the price. - # - # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # - # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # - # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # - # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. - # - # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. - # - # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # - # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values - # - # @param external_price_id [String, nil] An alias for the price. - # - # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # - # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice - # - # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # - # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # - # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - - # The cadence to bill for this price on. - # - # @see Orb::Models::NewSubscriptionBulkBPSPrice#cadence - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom - - # @!method self.values - # @return [Array] - end - - # @see Orb::Models::NewSubscriptionBulkBPSPrice#model_type - module ModelType - extend Orb::Internal::Type::Enum - - BULK_BPS = :bulk_bps - - # @!method self.values - # @return [Array] - end - end - end -end diff --git a/lib/orb/models/new_subscription_tier_with_proration_price.rb b/lib/orb/models/new_subscription_tier_with_proration_price.rb index 9ba1f634..9b5b13b2 100644 --- a/lib/orb/models/new_subscription_tier_with_proration_price.rb +++ b/lib/orb/models/new_subscription_tier_with_proration_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionTierWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionTierWithProrationPrice::UnnamedTypeWithobjectParent80 }, + union: -> { Orb::NewSubscriptionTierWithProrationPrice::UnnamedTypeWithobjectParent79 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_tiered_bps_price.rb b/lib/orb/models/new_subscription_tiered_bps_price.rb deleted file mode 100644 index 18b790bd..00000000 --- a/lib/orb/models/new_subscription_tiered_bps_price.rb +++ /dev/null @@ -1,191 +0,0 @@ -# frozen_string_literal: true - -module Orb - module Models - class NewSubscriptionTieredBPSPrice < Orb::Internal::Type::BaseModel - # @!attribute cadence - # The cadence to bill for this price on. - # - # @return [Symbol, Orb::Models::NewSubscriptionTieredBPSPrice::Cadence] - required :cadence, enum: -> { Orb::NewSubscriptionTieredBPSPrice::Cadence } - - # @!attribute item_id - # The id of the item the price will be associated with. - # - # @return [String] - required :item_id, String - - # @!attribute model_type - # - # @return [Symbol, Orb::Models::NewSubscriptionTieredBPSPrice::ModelType] - required :model_type, enum: -> { Orb::NewSubscriptionTieredBPSPrice::ModelType } - - # @!attribute name - # The name of the price. - # - # @return [String] - required :name, String - - # @!attribute tiered_bps_config - # - # @return [Orb::Models::TieredBPSConfig] - required :tiered_bps_config, -> { Orb::TieredBPSConfig } - - # @!attribute billable_metric_id - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - # - # @return [String, nil] - optional :billable_metric_id, String, nil?: true - - # @!attribute billed_in_advance - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - # - # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true - - # @!attribute billing_cycle_configuration - # For custom cadence: specifies the duration of the billing period in days or - # months. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute conversion_rate - # The per unit conversion rate of the price currency to the invoicing currency. - # - # @return [Float, nil] - optional :conversion_rate, Float, nil?: true - - # @!attribute conversion_rate_config - # The configuration for the rate of the price currency to the invoicing currency. - # - # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionTieredBPSPrice::UnnamedTypeWithobjectParent75 }, - nil?: true - - # @!attribute currency - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - # - # @return [String, nil] - optional :currency, String, nil?: true - - # @!attribute dimensional_price_configuration - # For dimensional price: specifies a price group and dimension values - # - # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] - optional :dimensional_price_configuration, -> { Orb::NewDimensionalPriceConfiguration }, nil?: true - - # @!attribute external_price_id - # An alias for the price. - # - # @return [String, nil] - optional :external_price_id, String, nil?: true - - # @!attribute fixed_price_quantity - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - # - # @return [Float, nil] - optional :fixed_price_quantity, Float, nil?: true - - # @!attribute invoice_grouping_key - # The property used to group this price on an invoice - # - # @return [String, nil] - optional :invoice_grouping_key, String, nil?: true - - # @!attribute invoicing_cycle_configuration - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute metadata - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - # - # @return [Hash{Symbol=>String, nil}, nil] - optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true - - # @!attribute reference_id - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - # - # @return [String, nil] - optional :reference_id, String, nil?: true - - # @!method initialize(cadence:, item_id:, model_type:, name:, tiered_bps_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, metadata: nil, reference_id: nil) - # Some parameter documentations has been truncated, see - # {Orb::Models::NewSubscriptionTieredBPSPrice} for more details. - # - # @param cadence [Symbol, Orb::Models::NewSubscriptionTieredBPSPrice::Cadence] The cadence to bill for this price on. - # - # @param item_id [String] The id of the item the price will be associated with. - # - # @param model_type [Symbol, Orb::Models::NewSubscriptionTieredBPSPrice::ModelType] - # - # @param name [String] The name of the price. - # - # @param tiered_bps_config [Orb::Models::TieredBPSConfig] - # - # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # - # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # - # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # - # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. - # - # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. - # - # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # - # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values - # - # @param external_price_id [String, nil] An alias for the price. - # - # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # - # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice - # - # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # - # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # - # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - - # The cadence to bill for this price on. - # - # @see Orb::Models::NewSubscriptionTieredBPSPrice#cadence - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom - - # @!method self.values - # @return [Array] - end - - # @see Orb::Models::NewSubscriptionTieredBPSPrice#model_type - module ModelType - extend Orb::Internal::Type::Enum - - TIERED_BPS = :tiered_bps - - # @!method self.values - # @return [Array] - end - end - end -end diff --git a/lib/orb/models/new_subscription_tiered_package_price.rb b/lib/orb/models/new_subscription_tiered_package_price.rb index 8ffc96cc..48560ff6 100644 --- a/lib/orb/models/new_subscription_tiered_package_price.rb +++ b/lib/orb/models/new_subscription_tiered_package_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionTieredPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionTieredPackagePrice::UnnamedTypeWithobjectParent76 }, + union: -> { Orb::NewSubscriptionTieredPackagePrice::UnnamedTypeWithobjectParent75 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_tiered_package_with_minimum_price.rb b/lib/orb/models/new_subscription_tiered_package_with_minimum_price.rb index 140d5239..be262f6c 100644 --- a/lib/orb/models/new_subscription_tiered_package_with_minimum_price.rb +++ b/lib/orb/models/new_subscription_tiered_package_with_minimum_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionTieredPackageWithMinimumPrice < Orb::Internal::Type::BaseMo # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionTieredPackageWithMinimumPrice::UnnamedTypeWithobjectParent77 }, + union: -> { Orb::NewSubscriptionTieredPackageWithMinimumPrice::UnnamedTypeWithobjectParent76 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_tiered_price.rb b/lib/orb/models/new_subscription_tiered_price.rb index 5e509cbc..f8ec58a8 100644 --- a/lib/orb/models/new_subscription_tiered_price.rb +++ b/lib/orb/models/new_subscription_tiered_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionTieredPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionTieredPrice::UnnamedTypeWithobjectParent78 }, + union: -> { Orb::NewSubscriptionTieredPrice::UnnamedTypeWithobjectParent77 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_tiered_with_minimum_price.rb b/lib/orb/models/new_subscription_tiered_with_minimum_price.rb index 6628f480..c8d382ae 100644 --- a/lib/orb/models/new_subscription_tiered_with_minimum_price.rb +++ b/lib/orb/models/new_subscription_tiered_with_minimum_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionTieredWithMinimumPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionTieredWithMinimumPrice::UnnamedTypeWithobjectParent79 }, + union: -> { Orb::NewSubscriptionTieredWithMinimumPrice::UnnamedTypeWithobjectParent78 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_unit_price.rb b/lib/orb/models/new_subscription_unit_price.rb index 09392a40..06262e04 100644 --- a/lib/orb/models/new_subscription_unit_price.rb +++ b/lib/orb/models/new_subscription_unit_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionUnitPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionUnitPrice::UnnamedTypeWithobjectParent81 }, + union: -> { Orb::NewSubscriptionUnitPrice::UnnamedTypeWithobjectParent80 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_unit_with_percent_price.rb b/lib/orb/models/new_subscription_unit_with_percent_price.rb index 8a2282b1..7f3e13e8 100644 --- a/lib/orb/models/new_subscription_unit_with_percent_price.rb +++ b/lib/orb/models/new_subscription_unit_with_percent_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionUnitWithPercentPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionUnitWithPercentPrice::UnnamedTypeWithobjectParent82 }, + union: -> { Orb::NewSubscriptionUnitWithPercentPrice::UnnamedTypeWithobjectParent81 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_unit_with_proration_price.rb b/lib/orb/models/new_subscription_unit_with_proration_price.rb index 4367f3df..c1a9577c 100644 --- a/lib/orb/models/new_subscription_unit_with_proration_price.rb +++ b/lib/orb/models/new_subscription_unit_with_proration_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionUnitWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionUnitWithProrationPrice::UnnamedTypeWithobjectParent83 }, + union: -> { Orb::NewSubscriptionUnitWithProrationPrice::UnnamedTypeWithobjectParent82 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/per_price_cost.rb b/lib/orb/models/per_price_cost.rb index e064c068..d8f23e35 100644 --- a/lib/orb/models/per_price_cost.rb +++ b/lib/orb/models/per_price_cost.rb @@ -6,7 +6,7 @@ class PerPriceCost < Orb::Internal::Type::BaseModel # @!attribute price # The price object # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBPS, Orb::Models::Price::BPS, Orb::Models::Price::BulkBPS, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds] + # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::Minimum] required :price, union: -> { Orb::Price } # @!attribute price_id @@ -34,7 +34,7 @@ class PerPriceCost < Orb::Internal::Type::BaseModel optional :quantity, Float, nil?: true # @!method initialize(price:, price_id:, subtotal:, total:, quantity: nil) - # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBPS, Orb::Models::Price::BPS, Orb::Models::Price::BulkBPS, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds] The price object + # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::Minimum] The price object # # @param price_id [String] The price the cost is associated with # diff --git a/lib/orb/models/plan.rb b/lib/orb/models/plan.rb index a864682b..d9664e92 100644 --- a/lib/orb/models/plan.rb +++ b/lib/orb/models/plan.rb @@ -132,7 +132,7 @@ class Plan < Orb::Internal::Type::BaseModel # Prices for this plan. If the plan has phases, this includes prices across all # phases of the plan. # - # @return [Array] + # @return [Array] required :prices, -> { Orb::Internal::Type::ArrayOf[union: Orb::Price] } # @!attribute product @@ -202,7 +202,7 @@ class Plan < Orb::Internal::Type::BaseModel # # @param plan_phases [Array, nil] # - # @param prices [Array] Prices for this plan. If the plan has phases, this includes prices across all ph + # @param prices [Array] Prices for this plan. If the plan has phases, this includes prices across all ph # # @param product [Orb::Models::Plan::Product] # diff --git a/lib/orb/models/plan_create_params.rb b/lib/orb/models/plan_create_params.rb index b4129d09..1de987e7 100644 --- a/lib/orb/models/plan_create_params.rb +++ b/lib/orb/models/plan_create_params.rb @@ -120,7 +120,7 @@ class Price < Orb::Internal::Type::BaseModel # @!attribute price # The price to add to the plan # - # @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanTieredBPSPrice, Orb::Models::NewPlanBPSPrice, Orb::Models::NewPlanBulkBPSPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, nil] + # @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::PlanCreateParams::Price::Price::Minimum, nil] optional :price, union: -> { Orb::PlanCreateParams::Price::Price }, nil?: true # @!method initialize(allocation_price: nil, plan_phase_order: nil, price: nil) @@ -128,7 +128,7 @@ class Price < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] The phase to add this price to. # - # @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanTieredBPSPrice, Orb::Models::NewPlanBPSPrice, Orb::Models::NewPlanBulkBPSPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, nil] The price to add to the plan + # @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::PlanCreateParams::Price::Price::Minimum, nil] The price to add to the plan # The price to add to the plan # @@ -146,12 +146,6 @@ module Price variant :tiered, -> { Orb::NewPlanTieredPrice } - variant :tiered_bps, -> { Orb::NewPlanTieredBPSPrice } - - variant :bps, -> { Orb::NewPlanBPSPrice } - - variant :bulk_bps, -> { Orb::NewPlanBulkBPSPrice } - variant :bulk, -> { Orb::NewPlanBulkPrice } variant :threshold_total_amount, -> { Orb::NewPlanThresholdTotalAmountPrice } @@ -174,6 +168,9 @@ module Price variant :grouped_with_metered_minimum, -> { Orb::NewPlanGroupedWithMeteredMinimumPrice } + variant :grouped_with_min_max_thresholds, + -> { Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds } + variant :matrix_with_display_name, -> { Orb::NewPlanMatrixWithDisplayNamePrice } variant :bulk_with_proration, -> { Orb::NewPlanBulkWithProrationPrice } @@ -194,8 +191,401 @@ module Price variant :grouped_tiered, -> { Orb::NewPlanGroupedTieredPrice } + variant :minimum, -> { Orb::PlanCreateParams::Price::Price::Minimum } + + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::Cadence] + required :cadence, enum: -> { Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::Cadence } + + # @!attribute grouped_with_min_max_thresholds_config + # + # @return [Hash{Symbol=>Object}] + required :grouped_with_min_max_thresholds_config, + Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String + + # @!attribute model_type + # + # @return [Symbol, :grouped_with_min_max_thresholds] + required :model_type, const: :grouped_with_min_max_thresholds + + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String + + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true + + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { + Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent83 + }, + nil?: true + + # @!attribute currency + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + # + # @return [String, nil] + optional :currency, String, nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, + -> { + Orb::NewDimensionalPriceConfiguration + }, + nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!attribute reference_id + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + # + # @return [String, nil] + optional :reference_id, String, nil?: true + + # @!method initialize(cadence:, grouped_with_min_max_thresholds_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :grouped_with_min_max_thresholds) + # Some parameter documentations has been truncated, see + # {Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds} for + # more details. + # + # @param cadence [Symbol, Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::Cadence] The cadence to bill for this price on. + # + # @param grouped_with_min_max_thresholds_config [Hash{Symbol=>Object}] + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param name [String] The name of the price. + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments + # + # @param model_type [Symbol, :grouped_with_min_max_thresholds] + + # The cadence to bill for this price on. + # + # @see Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + end + + class Minimum < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::PlanCreateParams::Price::Price::Minimum::Cadence] + required :cadence, enum: -> { Orb::PlanCreateParams::Price::Price::Minimum::Cadence } + + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String + + # @!attribute minimum_config + # + # @return [Orb::Models::PlanCreateParams::Price::Price::Minimum::MinimumConfig] + required :minimum_config, -> { Orb::PlanCreateParams::Price::Price::Minimum::MinimumConfig } + + # @!attribute model_type + # + # @return [Symbol, :minimum] + required :model_type, const: :minimum + + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String + + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true + + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { + Orb::PlanCreateParams::Price::Price::Minimum::UnnamedTypeWithobjectParent84 + }, + nil?: true + + # @!attribute currency + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + # + # @return [String, nil] + optional :currency, String, nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, + -> { + Orb::NewDimensionalPriceConfiguration + }, + nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!attribute reference_id + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + # + # @return [String, nil] + optional :reference_id, String, nil?: true + + # @!method initialize(cadence:, item_id:, minimum_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :minimum) + # Some parameter documentations has been truncated, see + # {Orb::Models::PlanCreateParams::Price::Price::Minimum} for more details. + # + # @param cadence [Symbol, Orb::Models::PlanCreateParams::Price::Price::Minimum::Cadence] The cadence to bill for this price on. + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param minimum_config [Orb::Models::PlanCreateParams::Price::Price::Minimum::MinimumConfig] + # + # @param name [String] The name of the price. + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments + # + # @param model_type [Symbol, :minimum] + + # The cadence to bill for this price on. + # + # @see Orb::Models::PlanCreateParams::Price::Price::Minimum#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + + # @see Orb::Models::PlanCreateParams::Price::Price::Minimum#minimum_config + class MinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute minimum_amount + # The minimum amount to apply + # + # @return [String] + required :minimum_amount, String + + # @!attribute prorated + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + # + # @return [Boolean, nil] + optional :prorated, Orb::Internal::Type::Boolean, nil?: true + + # @!method initialize(minimum_amount:, prorated: nil) + # Some parameter documentations has been truncated, see + # {Orb::Models::PlanCreateParams::Price::Price::Minimum::MinimumConfig} for more + # details. + # + # @param minimum_amount [String] The minimum amount to apply + # + # @param prorated [Boolean, nil] By default, subtotals from minimum composite prices are prorated based on the se + end + end + # @!method self.variants - # @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanTieredBPSPrice, Orb::Models::NewPlanBPSPrice, Orb::Models::NewPlanBulkBPSPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice)] + # @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::PlanCreateParams::Price::Price::Minimum)] end end diff --git a/lib/orb/models/plan_phase_amount_discount_adjustment.rb b/lib/orb/models/plan_phase_amount_discount_adjustment.rb index 2f40dd9f..0d1f53a5 100644 --- a/lib/orb/models/plan_phase_amount_discount_adjustment.rb +++ b/lib/orb/models/plan_phase_amount_discount_adjustment.rb @@ -35,8 +35,8 @@ class PlanPhaseAmountDiscountAdjustment < Orb::Internal::Type::BaseModel required :filters, -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] } # @!attribute is_invoice_level - # True for adjustments that apply to an entire invocice, false for adjustments - # that apply to only one price. + # True for adjustments that apply to an entire invoice, false for adjustments that + # apply to only one price. # # @return [Boolean] required :is_invoice_level, Orb::Internal::Type::Boolean @@ -74,7 +74,7 @@ class PlanPhaseAmountDiscountAdjustment < Orb::Internal::Type::BaseModel # # @param filters [Array] The filters that determine which prices to apply this adjustment to. # - # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha + # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invoice, false for adjustments that # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # diff --git a/lib/orb/models/plan_phase_maximum_adjustment.rb b/lib/orb/models/plan_phase_maximum_adjustment.rb index befddba2..b5dae113 100644 --- a/lib/orb/models/plan_phase_maximum_adjustment.rb +++ b/lib/orb/models/plan_phase_maximum_adjustment.rb @@ -28,8 +28,8 @@ class PlanPhaseMaximumAdjustment < Orb::Internal::Type::BaseModel required :filters, -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] } # @!attribute is_invoice_level - # True for adjustments that apply to an entire invocice, false for adjustments - # that apply to only one price. + # True for adjustments that apply to an entire invoice, false for adjustments that + # apply to only one price. # # @return [Boolean] required :is_invoice_level, Orb::Internal::Type::Boolean @@ -72,7 +72,7 @@ class PlanPhaseMaximumAdjustment < Orb::Internal::Type::BaseModel # # @param filters [Array] The filters that determine which prices to apply this adjustment to. # - # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha + # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invoice, false for adjustments that # # @param maximum_amount [String] The maximum amount to charge in a given billing period for the prices this adjus # diff --git a/lib/orb/models/plan_phase_minimum_adjustment.rb b/lib/orb/models/plan_phase_minimum_adjustment.rb index 909e05bd..73447908 100644 --- a/lib/orb/models/plan_phase_minimum_adjustment.rb +++ b/lib/orb/models/plan_phase_minimum_adjustment.rb @@ -28,8 +28,8 @@ class PlanPhaseMinimumAdjustment < Orb::Internal::Type::BaseModel required :filters, -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] } # @!attribute is_invoice_level - # True for adjustments that apply to an entire invocice, false for adjustments - # that apply to only one price. + # True for adjustments that apply to an entire invoice, false for adjustments that + # apply to only one price. # # @return [Boolean] required :is_invoice_level, Orb::Internal::Type::Boolean @@ -78,7 +78,7 @@ class PlanPhaseMinimumAdjustment < Orb::Internal::Type::BaseModel # # @param filters [Array] The filters that determine which prices to apply this adjustment to. # - # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha + # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invoice, false for adjustments that # # @param item_id [String] The item ID that revenue from this minimum will be attributed to. # diff --git a/lib/orb/models/plan_phase_percentage_discount_adjustment.rb b/lib/orb/models/plan_phase_percentage_discount_adjustment.rb index b969d66d..3ff592a5 100644 --- a/lib/orb/models/plan_phase_percentage_discount_adjustment.rb +++ b/lib/orb/models/plan_phase_percentage_discount_adjustment.rb @@ -28,8 +28,8 @@ class PlanPhasePercentageDiscountAdjustment < Orb::Internal::Type::BaseModel required :filters, -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] } # @!attribute is_invoice_level - # True for adjustments that apply to an entire invocice, false for adjustments - # that apply to only one price. + # True for adjustments that apply to an entire invoice, false for adjustments that + # apply to only one price. # # @return [Boolean] required :is_invoice_level, Orb::Internal::Type::Boolean @@ -72,7 +72,7 @@ class PlanPhasePercentageDiscountAdjustment < Orb::Internal::Type::BaseModel # # @param filters [Array] The filters that determine which prices to apply this adjustment to. # - # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha + # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invoice, false for adjustments that # # @param percentage_discount [Float] The percentage (as a value between 0 and 1) by which to discount the price inter # diff --git a/lib/orb/models/plan_phase_usage_discount_adjustment.rb b/lib/orb/models/plan_phase_usage_discount_adjustment.rb index 13b86f2b..c60ec305 100644 --- a/lib/orb/models/plan_phase_usage_discount_adjustment.rb +++ b/lib/orb/models/plan_phase_usage_discount_adjustment.rb @@ -28,8 +28,8 @@ class PlanPhaseUsageDiscountAdjustment < Orb::Internal::Type::BaseModel required :filters, -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] } # @!attribute is_invoice_level - # True for adjustments that apply to an entire invocice, false for adjustments - # that apply to only one price. + # True for adjustments that apply to an entire invoice, false for adjustments that + # apply to only one price. # # @return [Boolean] required :is_invoice_level, Orb::Internal::Type::Boolean @@ -72,7 +72,7 @@ class PlanPhaseUsageDiscountAdjustment < Orb::Internal::Type::BaseModel # # @param filters [Array] The filters that determine which prices to apply this adjustment to. # - # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invocice, false for adjustments tha + # @param is_invoice_level [Boolean] True for adjustments that apply to an entire invoice, false for adjustments that # # @param plan_phase_order [Integer, nil] The plan phase in which this adjustment is active. # diff --git a/lib/orb/models/plan_version.rb b/lib/orb/models/plan_version.rb index ba5072b9..3af47fd8 100644 --- a/lib/orb/models/plan_version.rb +++ b/lib/orb/models/plan_version.rb @@ -25,7 +25,7 @@ class PlanVersion < Orb::Internal::Type::BaseModel # Prices for this plan. If the plan has phases, this includes prices across all # phases of the plan. # - # @return [Array] + # @return [Array] required :prices, -> { Orb::Internal::Type::ArrayOf[union: Orb::Price] } # @!attribute version @@ -46,7 +46,7 @@ class PlanVersion < Orb::Internal::Type::BaseModel # # @param plan_phases [Array, nil] # - # @param prices [Array] Prices for this plan. If the plan has phases, this includes prices across all ph + # @param prices [Array] Prices for this plan. If the plan has phases, this includes prices across all ph # # @param version [Integer] diff --git a/lib/orb/models/price.rb b/lib/orb/models/price.rb index b0b58298..f8278bb7 100644 --- a/lib/orb/models/price.rb +++ b/lib/orb/models/price.rb @@ -25,12 +25,6 @@ module Price variant :tiered, -> { Orb::Price::Tiered } - variant :tiered_bps, -> { Orb::Price::TieredBPS } - - variant :bps, -> { Orb::Price::BPS } - - variant :bulk_bps, -> { Orb::Price::BulkBPS } - variant :bulk, -> { Orb::Price::Bulk } variant :threshold_total_amount, -> { Orb::Price::ThresholdTotalAmount } @@ -57,706 +51,27 @@ module Price variant :grouped_with_prorated_minimum, -> { Orb::Price::GroupedWithProratedMinimum } - variant :grouped_with_metered_minimum, -> { Orb::Price::GroupedWithMeteredMinimum } - - variant :matrix_with_display_name, -> { Orb::Price::MatrixWithDisplayName } - - variant :bulk_with_proration, -> { Orb::Price::BulkWithProration } - - variant :grouped_tiered_package, -> { Orb::Price::GroupedTieredPackage } - - variant :max_group_tiered_package, -> { Orb::Price::MaxGroupTieredPackage } - - variant :scalable_matrix_with_unit_pricing, -> { Orb::Price::ScalableMatrixWithUnitPricing } - - variant :scalable_matrix_with_tiered_pricing, -> { Orb::Price::ScalableMatrixWithTieredPricing } - - variant :cumulative_grouped_bulk, -> { Orb::Price::CumulativeGroupedBulk } - - variant :grouped_with_min_max_thresholds, -> { Orb::Price::GroupedWithMinMaxThresholds } - - class Unit < Orb::Internal::Type::BaseModel - # @!attribute id - # - # @return [String] - required :id, String - - # @!attribute billable_metric - # - # @return [Orb::Models::BillableMetricTiny, nil] - required :billable_metric, -> { Orb::BillableMetricTiny }, nil?: true - - # @!attribute billing_cycle_configuration - # - # @return [Orb::Models::BillingCycleConfiguration] - required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } - - # @!attribute cadence - # - # @return [Symbol, Orb::Models::Price::Unit::Cadence] - required :cadence, enum: -> { Orb::Price::Unit::Cadence } - - # @!attribute conversion_rate - # - # @return [Float, nil] - required :conversion_rate, Float, nil?: true - - # @!attribute conversion_rate_config - # - # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - required :conversion_rate_config, - union: -> { Orb::Price::Unit::UnnamedTypeWithobjectParent84 }, - nil?: true - - # @!attribute created_at - # - # @return [Time] - required :created_at, Time - - # @!attribute credit_allocation - # - # @return [Orb::Models::Allocation, nil] - required :credit_allocation, -> { Orb::Allocation }, nil?: true - - # @!attribute currency - # - # @return [String] - required :currency, String - - # @!attribute discount - # @deprecated - # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Discount }, nil?: true - - # @!attribute external_price_id - # - # @return [String, nil] - required :external_price_id, String, nil?: true - - # @!attribute fixed_price_quantity - # - # @return [Float, nil] - required :fixed_price_quantity, Float, nil?: true - - # @!attribute invoicing_cycle_configuration - # - # @return [Orb::Models::BillingCycleConfiguration, nil] - required :invoicing_cycle_configuration, -> { Orb::BillingCycleConfiguration }, nil?: true - - # @!attribute item - # - # @return [Orb::Models::ItemSlim] - required :item, -> { Orb::ItemSlim } - - # @!attribute maximum - # @deprecated - # - # @return [Orb::Models::Maximum, nil] - required :maximum, -> { Orb::Maximum }, nil?: true - - # @!attribute maximum_amount - # @deprecated - # - # @return [String, nil] - required :maximum_amount, String, nil?: true - - # @!attribute metadata - # User specified key-value pairs for the resource. If not present, this defaults - # to an empty dictionary. Individual keys can be removed by setting the value to - # `null`, and the entire metadata mapping can be cleared by setting `metadata` to - # `null`. - # - # @return [Hash{Symbol=>String}] - required :metadata, Orb::Internal::Type::HashOf[String] - - # @!attribute minimum - # @deprecated - # - # @return [Orb::Models::Minimum, nil] - required :minimum, -> { Orb::Minimum }, nil?: true - - # @!attribute minimum_amount - # @deprecated - # - # @return [String, nil] - required :minimum_amount, String, nil?: true - - # @!attribute model_type - # - # @return [Symbol, :unit] - required :model_type, const: :unit - - # @!attribute name - # - # @return [String] - required :name, String - - # @!attribute plan_phase_order - # - # @return [Integer, nil] - required :plan_phase_order, Integer, nil?: true - - # @!attribute price_type - # - # @return [Symbol, Orb::Models::Price::Unit::PriceType] - required :price_type, enum: -> { Orb::Price::Unit::PriceType } - - # @!attribute replaces_price_id - # The price id this price replaces. This price will take the place of the replaced - # price in plan version migrations. - # - # @return [String, nil] - required :replaces_price_id, String, nil?: true - - # @!attribute unit_config - # - # @return [Orb::Models::UnitConfig] - required :unit_config, -> { Orb::UnitConfig } - - # @!attribute dimensional_price_configuration - # - # @return [Orb::Models::DimensionalPriceConfiguration, nil] - optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, unit_config:, dimensional_price_configuration: nil, model_type: :unit) - # Some parameter documentations has been truncated, see {Orb::Models::Price::Unit} - # for more details. - # - # @param id [String] - # - # @param billable_metric [Orb::Models::BillableMetricTiny, nil] - # - # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] - # - # @param cadence [Symbol, Orb::Models::Price::Unit::Cadence] - # - # @param conversion_rate [Float, nil] - # - # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - # - # @param created_at [Time] - # - # @param credit_allocation [Orb::Models::Allocation, nil] - # - # @param currency [String] - # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - # - # @param external_price_id [String, nil] - # - # @param fixed_price_quantity [Float, nil] - # - # @param invoicing_cycle_configuration [Orb::Models::BillingCycleConfiguration, nil] - # - # @param item [Orb::Models::ItemSlim] - # - # @param maximum [Orb::Models::Maximum, nil] - # - # @param maximum_amount [String, nil] - # - # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # - # @param minimum [Orb::Models::Minimum, nil] - # - # @param minimum_amount [String, nil] - # - # @param name [String] - # - # @param plan_phase_order [Integer, nil] - # - # @param price_type [Symbol, Orb::Models::Price::Unit::PriceType] - # - # @param replaces_price_id [String, nil] The price id this price replaces. This price will take the place of the replaced - # - # @param unit_config [Orb::Models::UnitConfig] - # - # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] - # - # @param model_type [Symbol, :unit] - - # @see Orb::Models::Price::Unit#cadence - module Cadence - extend Orb::Internal::Type::Enum - - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom - - # @!method self.values - # @return [Array] - end - - # @see Orb::Models::Price::Unit#price_type - module PriceType - extend Orb::Internal::Type::Enum - - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price - - # @!method self.values - # @return [Array] - end - end - - class Package < Orb::Internal::Type::BaseModel - # @!attribute id - # - # @return [String] - required :id, String - - # @!attribute billable_metric - # - # @return [Orb::Models::BillableMetricTiny, nil] - required :billable_metric, -> { Orb::BillableMetricTiny }, nil?: true - - # @!attribute billing_cycle_configuration - # - # @return [Orb::Models::BillingCycleConfiguration] - required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } - - # @!attribute cadence - # - # @return [Symbol, Orb::Models::Price::Package::Cadence] - required :cadence, enum: -> { Orb::Price::Package::Cadence } - - # @!attribute conversion_rate - # - # @return [Float, nil] - required :conversion_rate, Float, nil?: true - - # @!attribute conversion_rate_config - # - # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - required :conversion_rate_config, - union: -> { Orb::Price::Package::UnnamedTypeWithobjectParent85 }, - nil?: true - - # @!attribute created_at - # - # @return [Time] - required :created_at, Time - - # @!attribute credit_allocation - # - # @return [Orb::Models::Allocation, nil] - required :credit_allocation, -> { Orb::Allocation }, nil?: true - - # @!attribute currency - # - # @return [String] - required :currency, String - - # @!attribute discount - # @deprecated - # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Discount }, nil?: true - - # @!attribute external_price_id - # - # @return [String, nil] - required :external_price_id, String, nil?: true - - # @!attribute fixed_price_quantity - # - # @return [Float, nil] - required :fixed_price_quantity, Float, nil?: true - - # @!attribute invoicing_cycle_configuration - # - # @return [Orb::Models::BillingCycleConfiguration, nil] - required :invoicing_cycle_configuration, -> { Orb::BillingCycleConfiguration }, nil?: true - - # @!attribute item - # - # @return [Orb::Models::ItemSlim] - required :item, -> { Orb::ItemSlim } - - # @!attribute maximum - # @deprecated - # - # @return [Orb::Models::Maximum, nil] - required :maximum, -> { Orb::Maximum }, nil?: true - - # @!attribute maximum_amount - # @deprecated - # - # @return [String, nil] - required :maximum_amount, String, nil?: true - - # @!attribute metadata - # User specified key-value pairs for the resource. If not present, this defaults - # to an empty dictionary. Individual keys can be removed by setting the value to - # `null`, and the entire metadata mapping can be cleared by setting `metadata` to - # `null`. - # - # @return [Hash{Symbol=>String}] - required :metadata, Orb::Internal::Type::HashOf[String] - - # @!attribute minimum - # @deprecated - # - # @return [Orb::Models::Minimum, nil] - required :minimum, -> { Orb::Minimum }, nil?: true - - # @!attribute minimum_amount - # @deprecated - # - # @return [String, nil] - required :minimum_amount, String, nil?: true - - # @!attribute model_type - # - # @return [Symbol, :package] - required :model_type, const: :package - - # @!attribute name - # - # @return [String] - required :name, String - - # @!attribute package_config - # - # @return [Orb::Models::PackageConfig] - required :package_config, -> { Orb::PackageConfig } - - # @!attribute plan_phase_order - # - # @return [Integer, nil] - required :plan_phase_order, Integer, nil?: true - - # @!attribute price_type - # - # @return [Symbol, Orb::Models::Price::Package::PriceType] - required :price_type, enum: -> { Orb::Price::Package::PriceType } - - # @!attribute replaces_price_id - # The price id this price replaces. This price will take the place of the replaced - # price in plan version migrations. - # - # @return [String, nil] - required :replaces_price_id, String, nil?: true - - # @!attribute dimensional_price_configuration - # - # @return [Orb::Models::DimensionalPriceConfiguration, nil] - optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, package_config:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :package) - # Some parameter documentations has been truncated, see - # {Orb::Models::Price::Package} for more details. - # - # @param id [String] - # - # @param billable_metric [Orb::Models::BillableMetricTiny, nil] - # - # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] - # - # @param cadence [Symbol, Orb::Models::Price::Package::Cadence] - # - # @param conversion_rate [Float, nil] - # - # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - # - # @param created_at [Time] - # - # @param credit_allocation [Orb::Models::Allocation, nil] - # - # @param currency [String] - # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - # - # @param external_price_id [String, nil] - # - # @param fixed_price_quantity [Float, nil] - # - # @param invoicing_cycle_configuration [Orb::Models::BillingCycleConfiguration, nil] - # - # @param item [Orb::Models::ItemSlim] - # - # @param maximum [Orb::Models::Maximum, nil] - # - # @param maximum_amount [String, nil] - # - # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # - # @param minimum [Orb::Models::Minimum, nil] - # - # @param minimum_amount [String, nil] - # - # @param name [String] - # - # @param package_config [Orb::Models::PackageConfig] - # - # @param plan_phase_order [Integer, nil] - # - # @param price_type [Symbol, Orb::Models::Price::Package::PriceType] - # - # @param replaces_price_id [String, nil] The price id this price replaces. This price will take the place of the replaced - # - # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] - # - # @param model_type [Symbol, :package] - - # @see Orb::Models::Price::Package#cadence - module Cadence - extend Orb::Internal::Type::Enum - - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom - - # @!method self.values - # @return [Array] - end - - # @see Orb::Models::Price::Package#price_type - module PriceType - extend Orb::Internal::Type::Enum - - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price - - # @!method self.values - # @return [Array] - end - end - - class Matrix < Orb::Internal::Type::BaseModel - # @!attribute id - # - # @return [String] - required :id, String - - # @!attribute billable_metric - # - # @return [Orb::Models::BillableMetricTiny, nil] - required :billable_metric, -> { Orb::BillableMetricTiny }, nil?: true - - # @!attribute billing_cycle_configuration - # - # @return [Orb::Models::BillingCycleConfiguration] - required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } - - # @!attribute cadence - # - # @return [Symbol, Orb::Models::Price::Matrix::Cadence] - required :cadence, enum: -> { Orb::Price::Matrix::Cadence } - - # @!attribute conversion_rate - # - # @return [Float, nil] - required :conversion_rate, Float, nil?: true - - # @!attribute conversion_rate_config - # - # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - required :conversion_rate_config, - union: -> { Orb::Price::Matrix::UnnamedTypeWithobjectParent86 }, - nil?: true - - # @!attribute created_at - # - # @return [Time] - required :created_at, Time - - # @!attribute credit_allocation - # - # @return [Orb::Models::Allocation, nil] - required :credit_allocation, -> { Orb::Allocation }, nil?: true - - # @!attribute currency - # - # @return [String] - required :currency, String - - # @!attribute discount - # @deprecated - # - # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - required :discount, union: -> { Orb::Discount }, nil?: true - - # @!attribute external_price_id - # - # @return [String, nil] - required :external_price_id, String, nil?: true - - # @!attribute fixed_price_quantity - # - # @return [Float, nil] - required :fixed_price_quantity, Float, nil?: true - - # @!attribute invoicing_cycle_configuration - # - # @return [Orb::Models::BillingCycleConfiguration, nil] - required :invoicing_cycle_configuration, -> { Orb::BillingCycleConfiguration }, nil?: true - - # @!attribute item - # - # @return [Orb::Models::ItemSlim] - required :item, -> { Orb::ItemSlim } - - # @!attribute matrix_config - # - # @return [Orb::Models::MatrixConfig] - required :matrix_config, -> { Orb::MatrixConfig } - - # @!attribute maximum - # @deprecated - # - # @return [Orb::Models::Maximum, nil] - required :maximum, -> { Orb::Maximum }, nil?: true - - # @!attribute maximum_amount - # @deprecated - # - # @return [String, nil] - required :maximum_amount, String, nil?: true - - # @!attribute metadata - # User specified key-value pairs for the resource. If not present, this defaults - # to an empty dictionary. Individual keys can be removed by setting the value to - # `null`, and the entire metadata mapping can be cleared by setting `metadata` to - # `null`. - # - # @return [Hash{Symbol=>String}] - required :metadata, Orb::Internal::Type::HashOf[String] - - # @!attribute minimum - # @deprecated - # - # @return [Orb::Models::Minimum, nil] - required :minimum, -> { Orb::Minimum }, nil?: true - - # @!attribute minimum_amount - # @deprecated - # - # @return [String, nil] - required :minimum_amount, String, nil?: true - - # @!attribute model_type - # - # @return [Symbol, :matrix] - required :model_type, const: :matrix - - # @!attribute name - # - # @return [String] - required :name, String - - # @!attribute plan_phase_order - # - # @return [Integer, nil] - required :plan_phase_order, Integer, nil?: true - - # @!attribute price_type - # - # @return [Symbol, Orb::Models::Price::Matrix::PriceType] - required :price_type, enum: -> { Orb::Price::Matrix::PriceType } - - # @!attribute replaces_price_id - # The price id this price replaces. This price will take the place of the replaced - # price in plan version migrations. - # - # @return [String, nil] - required :replaces_price_id, String, nil?: true + variant :grouped_with_metered_minimum, -> { Orb::Price::GroupedWithMeteredMinimum } - # @!attribute dimensional_price_configuration - # - # @return [Orb::Models::DimensionalPriceConfiguration, nil] - optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true + variant :matrix_with_display_name, -> { Orb::Price::MatrixWithDisplayName } - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, matrix_config:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :matrix) - # Some parameter documentations has been truncated, see - # {Orb::Models::Price::Matrix} for more details. - # - # @param id [String] - # - # @param billable_metric [Orb::Models::BillableMetricTiny, nil] - # - # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] - # - # @param cadence [Symbol, Orb::Models::Price::Matrix::Cadence] - # - # @param conversion_rate [Float, nil] - # - # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - # - # @param created_at [Time] - # - # @param credit_allocation [Orb::Models::Allocation, nil] - # - # @param currency [String] - # - # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] - # - # @param external_price_id [String, nil] - # - # @param fixed_price_quantity [Float, nil] - # - # @param invoicing_cycle_configuration [Orb::Models::BillingCycleConfiguration, nil] - # - # @param item [Orb::Models::ItemSlim] - # - # @param matrix_config [Orb::Models::MatrixConfig] - # - # @param maximum [Orb::Models::Maximum, nil] - # - # @param maximum_amount [String, nil] - # - # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t - # - # @param minimum [Orb::Models::Minimum, nil] - # - # @param minimum_amount [String, nil] - # - # @param name [String] - # - # @param plan_phase_order [Integer, nil] - # - # @param price_type [Symbol, Orb::Models::Price::Matrix::PriceType] - # - # @param replaces_price_id [String, nil] The price id this price replaces. This price will take the place of the replaced - # - # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] - # - # @param model_type [Symbol, :matrix] + variant :bulk_with_proration, -> { Orb::Price::BulkWithProration } - # @see Orb::Models::Price::Matrix#cadence - module Cadence - extend Orb::Internal::Type::Enum + variant :grouped_tiered_package, -> { Orb::Price::GroupedTieredPackage } - ONE_TIME = :one_time - MONTHLY = :monthly - QUARTERLY = :quarterly - SEMI_ANNUAL = :semi_annual - ANNUAL = :annual - CUSTOM = :custom + variant :max_group_tiered_package, -> { Orb::Price::MaxGroupTieredPackage } - # @!method self.values - # @return [Array] - end + variant :scalable_matrix_with_unit_pricing, -> { Orb::Price::ScalableMatrixWithUnitPricing } - # @see Orb::Models::Price::Matrix#price_type - module PriceType - extend Orb::Internal::Type::Enum + variant :scalable_matrix_with_tiered_pricing, -> { Orb::Price::ScalableMatrixWithTieredPricing } - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + variant :cumulative_grouped_bulk, -> { Orb::Price::CumulativeGroupedBulk } - # @!method self.values - # @return [Array] - end - end + variant :grouped_with_min_max_thresholds, -> { Orb::Price::GroupedWithMinMaxThresholds } - class Tiered < Orb::Internal::Type::BaseModel + variant :minimum, -> { Orb::Price::Minimum } + + class Unit < Orb::Internal::Type::BaseModel # @!attribute id # # @return [String] @@ -774,8 +89,15 @@ class Tiered < Orb::Internal::Type::BaseModel # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::Tiered::Cadence] - required :cadence, enum: -> { Orb::Price::Tiered::Cadence } + # @return [Symbol, Orb::Models::Price::Unit::Cadence] + required :cadence, enum: -> { Orb::Price::Unit::Cadence } + + # @!attribute composite_price_filters + # + # @return [Array, nil] + required :composite_price_filters, + -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] }, + nil?: true # @!attribute conversion_rate # @@ -786,7 +108,7 @@ class Tiered < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::Tiered::UnnamedTypeWithobjectParent87 }, + union: -> { Orb::Price::Unit::UnnamedTypeWithobjectParent85 }, nil?: true # @!attribute created_at @@ -865,8 +187,8 @@ class Tiered < Orb::Internal::Type::BaseModel # @!attribute model_type # - # @return [Symbol, :tiered] - required :model_type, const: :tiered + # @return [Symbol, :unit] + required :model_type, const: :unit # @!attribute name # @@ -880,8 +202,8 @@ class Tiered < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::Tiered::PriceType] - required :price_type, enum: -> { Orb::Price::Tiered::PriceType } + # @return [Symbol, Orb::Models::Price::Unit::PriceType] + required :price_type, enum: -> { Orb::Price::Unit::PriceType } # @!attribute replaces_price_id # The price id this price replaces. This price will take the place of the replaced @@ -890,19 +212,19 @@ class Tiered < Orb::Internal::Type::BaseModel # @return [String, nil] required :replaces_price_id, String, nil?: true - # @!attribute tiered_config + # @!attribute unit_config # - # @return [Orb::Models::TieredConfig] - required :tiered_config, -> { Orb::TieredConfig } + # @return [Orb::Models::UnitConfig] + required :unit_config, -> { Orb::UnitConfig } # @!attribute dimensional_price_configuration # # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, tiered_config:, dimensional_price_configuration: nil, model_type: :tiered) - # Some parameter documentations has been truncated, see - # {Orb::Models::Price::Tiered} for more details. + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, unit_config:, dimensional_price_configuration: nil, model_type: :unit) + # Some parameter documentations has been truncated, see {Orb::Models::Price::Unit} + # for more details. # # @param id [String] # @@ -910,7 +232,9 @@ class Tiered < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::Tiered::Cadence] + # @param cadence [Symbol, Orb::Models::Price::Unit::Cadence] + # + # @param composite_price_filters [Array, nil] # # @param conversion_rate [Float, nil] # @@ -946,17 +270,17 @@ class Tiered < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::Tiered::PriceType] + # @param price_type [Symbol, Orb::Models::Price::Unit::PriceType] # # @param replaces_price_id [String, nil] The price id this price replaces. This price will take the place of the replaced # - # @param tiered_config [Orb::Models::TieredConfig] + # @param unit_config [Orb::Models::UnitConfig] # # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] # - # @param model_type [Symbol, :tiered] + # @param model_type [Symbol, :unit] - # @see Orb::Models::Price::Tiered#cadence + # @see Orb::Models::Price::Unit#cadence module Cadence extend Orb::Internal::Type::Enum @@ -971,7 +295,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::Tiered#price_type + # @see Orb::Models::Price::Unit#price_type module PriceType extend Orb::Internal::Type::Enum @@ -983,7 +307,7 @@ module PriceType end end - class TieredBPS < Orb::Internal::Type::BaseModel + class Package < Orb::Internal::Type::BaseModel # @!attribute id # # @return [String] @@ -1001,8 +325,15 @@ class TieredBPS < Orb::Internal::Type::BaseModel # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::TieredBPS::Cadence] - required :cadence, enum: -> { Orb::Price::TieredBPS::Cadence } + # @return [Symbol, Orb::Models::Price::Package::Cadence] + required :cadence, enum: -> { Orb::Price::Package::Cadence } + + # @!attribute composite_price_filters + # + # @return [Array, nil] + required :composite_price_filters, + -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] }, + nil?: true # @!attribute conversion_rate # @@ -1013,7 +344,7 @@ class TieredBPS < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::TieredBPS::UnnamedTypeWithobjectParent88 }, + union: -> { Orb::Price::Package::UnnamedTypeWithobjectParent86 }, nil?: true # @!attribute created_at @@ -1092,14 +423,19 @@ class TieredBPS < Orb::Internal::Type::BaseModel # @!attribute model_type # - # @return [Symbol, :tiered_bps] - required :model_type, const: :tiered_bps + # @return [Symbol, :package] + required :model_type, const: :package # @!attribute name # # @return [String] required :name, String + # @!attribute package_config + # + # @return [Orb::Models::PackageConfig] + required :package_config, -> { Orb::PackageConfig } + # @!attribute plan_phase_order # # @return [Integer, nil] @@ -1107,8 +443,8 @@ class TieredBPS < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::TieredBPS::PriceType] - required :price_type, enum: -> { Orb::Price::TieredBPS::PriceType } + # @return [Symbol, Orb::Models::Price::Package::PriceType] + required :price_type, enum: -> { Orb::Price::Package::PriceType } # @!attribute replaces_price_id # The price id this price replaces. This price will take the place of the replaced @@ -1117,19 +453,14 @@ class TieredBPS < Orb::Internal::Type::BaseModel # @return [String, nil] required :replaces_price_id, String, nil?: true - # @!attribute tiered_bps_config - # - # @return [Orb::Models::TieredBPSConfig] - required :tiered_bps_config, -> { Orb::TieredBPSConfig } - # @!attribute dimensional_price_configuration # # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, tiered_bps_config:, dimensional_price_configuration: nil, model_type: :tiered_bps) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, package_config:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :package) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::TieredBPS} for more details. + # {Orb::Models::Price::Package} for more details. # # @param id [String] # @@ -1137,7 +468,9 @@ class TieredBPS < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::TieredBPS::Cadence] + # @param cadence [Symbol, Orb::Models::Price::Package::Cadence] + # + # @param composite_price_filters [Array, nil] # # @param conversion_rate [Float, nil] # @@ -1171,19 +504,19 @@ class TieredBPS < Orb::Internal::Type::BaseModel # # @param name [String] # + # @param package_config [Orb::Models::PackageConfig] + # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::TieredBPS::PriceType] + # @param price_type [Symbol, Orb::Models::Price::Package::PriceType] # # @param replaces_price_id [String, nil] The price id this price replaces. This price will take the place of the replaced # - # @param tiered_bps_config [Orb::Models::TieredBPSConfig] - # # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] # - # @param model_type [Symbol, :tiered_bps] + # @param model_type [Symbol, :package] - # @see Orb::Models::Price::TieredBPS#cadence + # @see Orb::Models::Price::Package#cadence module Cadence extend Orb::Internal::Type::Enum @@ -1198,7 +531,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::TieredBPS#price_type + # @see Orb::Models::Price::Package#price_type module PriceType extend Orb::Internal::Type::Enum @@ -1210,7 +543,7 @@ module PriceType end end - class BPS < Orb::Internal::Type::BaseModel + class Matrix < Orb::Internal::Type::BaseModel # @!attribute id # # @return [String] @@ -1226,15 +559,17 @@ class BPS < Orb::Internal::Type::BaseModel # @return [Orb::Models::BillingCycleConfiguration] required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } - # @!attribute bps_config + # @!attribute cadence # - # @return [Orb::Models::BPSConfig] - required :bps_config, -> { Orb::BPSConfig } + # @return [Symbol, Orb::Models::Price::Matrix::Cadence] + required :cadence, enum: -> { Orb::Price::Matrix::Cadence } - # @!attribute cadence + # @!attribute composite_price_filters # - # @return [Symbol, Orb::Models::Price::BPS::Cadence] - required :cadence, enum: -> { Orb::Price::BPS::Cadence } + # @return [Array, nil] + required :composite_price_filters, + -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] }, + nil?: true # @!attribute conversion_rate # @@ -1245,9 +580,7 @@ class BPS < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { - Orb::Price::BPS::UnnamedTypeWithobjectParent89 - }, + union: -> { Orb::Price::Matrix::UnnamedTypeWithobjectParent87 }, nil?: true # @!attribute created_at @@ -1291,6 +624,11 @@ class BPS < Orb::Internal::Type::BaseModel # @return [Orb::Models::ItemSlim] required :item, -> { Orb::ItemSlim } + # @!attribute matrix_config + # + # @return [Orb::Models::MatrixConfig] + required :matrix_config, -> { Orb::MatrixConfig } + # @!attribute maximum # @deprecated # @@ -1326,8 +664,8 @@ class BPS < Orb::Internal::Type::BaseModel # @!attribute model_type # - # @return [Symbol, :bps] - required :model_type, const: :bps + # @return [Symbol, :matrix] + required :model_type, const: :matrix # @!attribute name # @@ -1341,8 +679,8 @@ class BPS < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::BPS::PriceType] - required :price_type, enum: -> { Orb::Price::BPS::PriceType } + # @return [Symbol, Orb::Models::Price::Matrix::PriceType] + required :price_type, enum: -> { Orb::Price::Matrix::PriceType } # @!attribute replaces_price_id # The price id this price replaces. This price will take the place of the replaced @@ -1356,9 +694,9 @@ class BPS < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, bps_config:, cadence:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :bps) - # Some parameter documentations has been truncated, see {Orb::Models::Price::BPS} - # for more details. + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, matrix_config:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :matrix) + # Some parameter documentations has been truncated, see + # {Orb::Models::Price::Matrix} for more details. # # @param id [String] # @@ -1366,9 +704,9 @@ class BPS < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # - # @param bps_config [Orb::Models::BPSConfig] + # @param cadence [Symbol, Orb::Models::Price::Matrix::Cadence] # - # @param cadence [Symbol, Orb::Models::Price::BPS::Cadence] + # @param composite_price_filters [Array, nil] # # @param conversion_rate [Float, nil] # @@ -1390,6 +728,8 @@ class BPS < Orb::Internal::Type::BaseModel # # @param item [Orb::Models::ItemSlim] # + # @param matrix_config [Orb::Models::MatrixConfig] + # # @param maximum [Orb::Models::Maximum, nil] # # @param maximum_amount [String, nil] @@ -1404,15 +744,15 @@ class BPS < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::BPS::PriceType] + # @param price_type [Symbol, Orb::Models::Price::Matrix::PriceType] # # @param replaces_price_id [String, nil] The price id this price replaces. This price will take the place of the replaced # # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] # - # @param model_type [Symbol, :bps] + # @param model_type [Symbol, :matrix] - # @see Orb::Models::Price::BPS#cadence + # @see Orb::Models::Price::Matrix#cadence module Cadence extend Orb::Internal::Type::Enum @@ -1427,7 +767,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::BPS#price_type + # @see Orb::Models::Price::Matrix#price_type module PriceType extend Orb::Internal::Type::Enum @@ -1439,7 +779,7 @@ module PriceType end end - class BulkBPS < Orb::Internal::Type::BaseModel + class Tiered < Orb::Internal::Type::BaseModel # @!attribute id # # @return [String] @@ -1455,15 +795,17 @@ class BulkBPS < Orb::Internal::Type::BaseModel # @return [Orb::Models::BillingCycleConfiguration] required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } - # @!attribute bulk_bps_config + # @!attribute cadence # - # @return [Orb::Models::BulkBPSConfig] - required :bulk_bps_config, -> { Orb::BulkBPSConfig } + # @return [Symbol, Orb::Models::Price::Tiered::Cadence] + required :cadence, enum: -> { Orb::Price::Tiered::Cadence } - # @!attribute cadence + # @!attribute composite_price_filters # - # @return [Symbol, Orb::Models::Price::BulkBPS::Cadence] - required :cadence, enum: -> { Orb::Price::BulkBPS::Cadence } + # @return [Array, nil] + required :composite_price_filters, + -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] }, + nil?: true # @!attribute conversion_rate # @@ -1474,7 +816,7 @@ class BulkBPS < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::BulkBPS::UnnamedTypeWithobjectParent90 }, + union: -> { Orb::Price::Tiered::UnnamedTypeWithobjectParent88 }, nil?: true # @!attribute created_at @@ -1553,8 +895,8 @@ class BulkBPS < Orb::Internal::Type::BaseModel # @!attribute model_type # - # @return [Symbol, :bulk_bps] - required :model_type, const: :bulk_bps + # @return [Symbol, :tiered] + required :model_type, const: :tiered # @!attribute name # @@ -1568,8 +910,8 @@ class BulkBPS < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::BulkBPS::PriceType] - required :price_type, enum: -> { Orb::Price::BulkBPS::PriceType } + # @return [Symbol, Orb::Models::Price::Tiered::PriceType] + required :price_type, enum: -> { Orb::Price::Tiered::PriceType } # @!attribute replaces_price_id # The price id this price replaces. This price will take the place of the replaced @@ -1578,14 +920,19 @@ class BulkBPS < Orb::Internal::Type::BaseModel # @return [String, nil] required :replaces_price_id, String, nil?: true + # @!attribute tiered_config + # + # @return [Orb::Models::TieredConfig] + required :tiered_config, -> { Orb::TieredConfig } + # @!attribute dimensional_price_configuration # # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, bulk_bps_config:, cadence:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :bulk_bps) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, tiered_config:, dimensional_price_configuration: nil, model_type: :tiered) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::BulkBPS} for more details. + # {Orb::Models::Price::Tiered} for more details. # # @param id [String] # @@ -1593,9 +940,9 @@ class BulkBPS < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # - # @param bulk_bps_config [Orb::Models::BulkBPSConfig] + # @param cadence [Symbol, Orb::Models::Price::Tiered::Cadence] # - # @param cadence [Symbol, Orb::Models::Price::BulkBPS::Cadence] + # @param composite_price_filters [Array, nil] # # @param conversion_rate [Float, nil] # @@ -1631,15 +978,17 @@ class BulkBPS < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::BulkBPS::PriceType] + # @param price_type [Symbol, Orb::Models::Price::Tiered::PriceType] # # @param replaces_price_id [String, nil] The price id this price replaces. This price will take the place of the replaced # + # @param tiered_config [Orb::Models::TieredConfig] + # # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] # - # @param model_type [Symbol, :bulk_bps] + # @param model_type [Symbol, :tiered] - # @see Orb::Models::Price::BulkBPS#cadence + # @see Orb::Models::Price::Tiered#cadence module Cadence extend Orb::Internal::Type::Enum @@ -1654,7 +1003,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::BulkBPS#price_type + # @see Orb::Models::Price::Tiered#price_type module PriceType extend Orb::Internal::Type::Enum @@ -1692,6 +1041,13 @@ class Bulk < Orb::Internal::Type::BaseModel # @return [Symbol, Orb::Models::Price::Bulk::Cadence] required :cadence, enum: -> { Orb::Price::Bulk::Cadence } + # @!attribute composite_price_filters + # + # @return [Array, nil] + required :composite_price_filters, + -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] }, + nil?: true + # @!attribute conversion_rate # # @return [Float, nil] @@ -1701,7 +1057,7 @@ class Bulk < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::Bulk::UnnamedTypeWithobjectParent91 }, + union: -> { Orb::Price::Bulk::UnnamedTypeWithobjectParent89 }, nil?: true # @!attribute created_at @@ -1810,7 +1166,7 @@ class Bulk < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, bulk_config:, cadence:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :bulk) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, bulk_config:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :bulk) # Some parameter documentations has been truncated, see {Orb::Models::Price::Bulk} # for more details. # @@ -1824,6 +1180,8 @@ class Bulk < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::Price::Bulk::Cadence] # + # @param composite_price_filters [Array, nil] + # # @param conversion_rate [Float, nil] # # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] @@ -1914,6 +1272,13 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # @return [Symbol, Orb::Models::Price::ThresholdTotalAmount::Cadence] required :cadence, enum: -> { Orb::Price::ThresholdTotalAmount::Cadence } + # @!attribute composite_price_filters + # + # @return [Array, nil] + required :composite_price_filters, + -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] }, + nil?: true + # @!attribute conversion_rate # # @return [Float, nil] @@ -1923,7 +1288,7 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent92 }, + union: -> { Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent90 }, nil?: true # @!attribute created_at @@ -2037,7 +1402,7 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, threshold_total_amount_config:, dimensional_price_configuration: nil, model_type: :threshold_total_amount) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, threshold_total_amount_config:, dimensional_price_configuration: nil, model_type: :threshold_total_amount) # Some parameter documentations has been truncated, see # {Orb::Models::Price::ThresholdTotalAmount} for more details. # @@ -2049,6 +1414,8 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::Price::ThresholdTotalAmount::Cadence] # + # @param composite_price_filters [Array, nil] + # # @param conversion_rate [Float, nil] # # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] @@ -2141,6 +1508,13 @@ class TieredPackage < Orb::Internal::Type::BaseModel # @return [Symbol, Orb::Models::Price::TieredPackage::Cadence] required :cadence, enum: -> { Orb::Price::TieredPackage::Cadence } + # @!attribute composite_price_filters + # + # @return [Array, nil] + required :composite_price_filters, + -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] }, + nil?: true + # @!attribute conversion_rate # # @return [Float, nil] @@ -2150,7 +1524,7 @@ class TieredPackage < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::TieredPackage::UnnamedTypeWithobjectParent93 }, + union: -> { Orb::Price::TieredPackage::UnnamedTypeWithobjectParent91 }, nil?: true # @!attribute created_at @@ -2264,7 +1638,7 @@ class TieredPackage < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, tiered_package_config:, dimensional_price_configuration: nil, model_type: :tiered_package) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, tiered_package_config:, dimensional_price_configuration: nil, model_type: :tiered_package) # Some parameter documentations has been truncated, see # {Orb::Models::Price::TieredPackage} for more details. # @@ -2276,6 +1650,8 @@ class TieredPackage < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::Price::TieredPackage::Cadence] # + # @param composite_price_filters [Array, nil] + # # @param conversion_rate [Float, nil] # # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] @@ -2368,6 +1744,13 @@ class GroupedTiered < Orb::Internal::Type::BaseModel # @return [Symbol, Orb::Models::Price::GroupedTiered::Cadence] required :cadence, enum: -> { Orb::Price::GroupedTiered::Cadence } + # @!attribute composite_price_filters + # + # @return [Array, nil] + required :composite_price_filters, + -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] }, + nil?: true + # @!attribute conversion_rate # # @return [Float, nil] @@ -2377,7 +1760,7 @@ class GroupedTiered < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent94 }, + union: -> { Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent92 }, nil?: true # @!attribute created_at @@ -2491,7 +1874,7 @@ class GroupedTiered < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_tiered_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :grouped_tiered) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_tiered_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :grouped_tiered) # Some parameter documentations has been truncated, see # {Orb::Models::Price::GroupedTiered} for more details. # @@ -2503,6 +1886,8 @@ class GroupedTiered < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::Price::GroupedTiered::Cadence] # + # @param composite_price_filters [Array, nil] + # # @param conversion_rate [Float, nil] # # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] @@ -2595,6 +1980,13 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # @return [Symbol, Orb::Models::Price::TieredWithMinimum::Cadence] required :cadence, enum: -> { Orb::Price::TieredWithMinimum::Cadence } + # @!attribute composite_price_filters + # + # @return [Array, nil] + required :composite_price_filters, + -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] }, + nil?: true + # @!attribute conversion_rate # # @return [Float, nil] @@ -2604,7 +1996,7 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent95 }, + union: -> { Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent93 }, nil?: true # @!attribute created_at @@ -2718,7 +2110,7 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, tiered_with_minimum_config:, dimensional_price_configuration: nil, model_type: :tiered_with_minimum) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, tiered_with_minimum_config:, dimensional_price_configuration: nil, model_type: :tiered_with_minimum) # Some parameter documentations has been truncated, see # {Orb::Models::Price::TieredWithMinimum} for more details. # @@ -2730,6 +2122,8 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::Price::TieredWithMinimum::Cadence] # + # @param composite_price_filters [Array, nil] + # # @param conversion_rate [Float, nil] # # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] @@ -2822,6 +2216,13 @@ class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel # @return [Symbol, Orb::Models::Price::TieredPackageWithMinimum::Cadence] required :cadence, enum: -> { Orb::Price::TieredPackageWithMinimum::Cadence } + # @!attribute composite_price_filters + # + # @return [Array, nil] + required :composite_price_filters, + -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] }, + nil?: true + # @!attribute conversion_rate # # @return [Float, nil] @@ -2831,7 +2232,7 @@ class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent96 }, + union: -> { Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent94 }, nil?: true # @!attribute created_at @@ -2945,7 +2346,7 @@ class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, tiered_package_with_minimum_config:, dimensional_price_configuration: nil, model_type: :tiered_package_with_minimum) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, tiered_package_with_minimum_config:, dimensional_price_configuration: nil, model_type: :tiered_package_with_minimum) # Some parameter documentations has been truncated, see # {Orb::Models::Price::TieredPackageWithMinimum} for more details. # @@ -2957,6 +2358,8 @@ class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::Price::TieredPackageWithMinimum::Cadence] # + # @param composite_price_filters [Array, nil] + # # @param conversion_rate [Float, nil] # # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] @@ -3049,6 +2452,13 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # @return [Symbol, Orb::Models::Price::PackageWithAllocation::Cadence] required :cadence, enum: -> { Orb::Price::PackageWithAllocation::Cadence } + # @!attribute composite_price_filters + # + # @return [Array, nil] + required :composite_price_filters, + -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] }, + nil?: true + # @!attribute conversion_rate # # @return [Float, nil] @@ -3058,7 +2468,7 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent97 }, + union: -> { Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent95 }, nil?: true # @!attribute created_at @@ -3172,7 +2582,7 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, package_with_allocation_config:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :package_with_allocation) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, package_with_allocation_config:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :package_with_allocation) # Some parameter documentations has been truncated, see # {Orb::Models::Price::PackageWithAllocation} for more details. # @@ -3184,6 +2594,8 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::Price::PackageWithAllocation::Cadence] # + # @param composite_price_filters [Array, nil] + # # @param conversion_rate [Float, nil] # # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] @@ -3276,6 +2688,13 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # @return [Symbol, Orb::Models::Price::UnitWithPercent::Cadence] required :cadence, enum: -> { Orb::Price::UnitWithPercent::Cadence } + # @!attribute composite_price_filters + # + # @return [Array, nil] + required :composite_price_filters, + -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] }, + nil?: true + # @!attribute conversion_rate # # @return [Float, nil] @@ -3285,7 +2704,7 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent98 }, + union: -> { Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent96 }, nil?: true # @!attribute created_at @@ -3399,7 +2818,7 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, unit_with_percent_config:, dimensional_price_configuration: nil, model_type: :unit_with_percent) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, unit_with_percent_config:, dimensional_price_configuration: nil, model_type: :unit_with_percent) # Some parameter documentations has been truncated, see # {Orb::Models::Price::UnitWithPercent} for more details. # @@ -3411,6 +2830,8 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::Price::UnitWithPercent::Cadence] # + # @param composite_price_filters [Array, nil] + # # @param conversion_rate [Float, nil] # # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] @@ -3503,6 +2924,13 @@ class MatrixWithAllocation < Orb::Internal::Type::BaseModel # @return [Symbol, Orb::Models::Price::MatrixWithAllocation::Cadence] required :cadence, enum: -> { Orb::Price::MatrixWithAllocation::Cadence } + # @!attribute composite_price_filters + # + # @return [Array, nil] + required :composite_price_filters, + -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] }, + nil?: true + # @!attribute conversion_rate # # @return [Float, nil] @@ -3512,7 +2940,7 @@ class MatrixWithAllocation < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent99 }, + union: -> { Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent97 }, nil?: true # @!attribute created_at @@ -3626,7 +3054,7 @@ class MatrixWithAllocation < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, matrix_with_allocation_config:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :matrix_with_allocation) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, matrix_with_allocation_config:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :matrix_with_allocation) # Some parameter documentations has been truncated, see # {Orb::Models::Price::MatrixWithAllocation} for more details. # @@ -3638,6 +3066,8 @@ class MatrixWithAllocation < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::Price::MatrixWithAllocation::Cadence] # + # @param composite_price_filters [Array, nil] + # # @param conversion_rate [Float, nil] # # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] @@ -3730,6 +3160,13 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # @return [Symbol, Orb::Models::Price::TieredWithProration::Cadence] required :cadence, enum: -> { Orb::Price::TieredWithProration::Cadence } + # @!attribute composite_price_filters + # + # @return [Array, nil] + required :composite_price_filters, + -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] }, + nil?: true + # @!attribute conversion_rate # # @return [Float, nil] @@ -3739,7 +3176,7 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent100 }, + union: -> { Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent98 }, nil?: true # @!attribute created_at @@ -3853,7 +3290,7 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, tiered_with_proration_config:, dimensional_price_configuration: nil, model_type: :tiered_with_proration) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, tiered_with_proration_config:, dimensional_price_configuration: nil, model_type: :tiered_with_proration) # Some parameter documentations has been truncated, see # {Orb::Models::Price::TieredWithProration} for more details. # @@ -3865,6 +3302,8 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::Price::TieredWithProration::Cadence] # + # @param composite_price_filters [Array, nil] + # # @param conversion_rate [Float, nil] # # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] @@ -3957,6 +3396,13 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # @return [Symbol, Orb::Models::Price::UnitWithProration::Cadence] required :cadence, enum: -> { Orb::Price::UnitWithProration::Cadence } + # @!attribute composite_price_filters + # + # @return [Array, nil] + required :composite_price_filters, + -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] }, + nil?: true + # @!attribute conversion_rate # # @return [Float, nil] @@ -3966,7 +3412,7 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent101 }, + union: -> { Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent99 }, nil?: true # @!attribute created_at @@ -4080,7 +3526,7 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, unit_with_proration_config:, dimensional_price_configuration: nil, model_type: :unit_with_proration) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, unit_with_proration_config:, dimensional_price_configuration: nil, model_type: :unit_with_proration) # Some parameter documentations has been truncated, see # {Orb::Models::Price::UnitWithProration} for more details. # @@ -4092,6 +3538,8 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::Price::UnitWithProration::Cadence] # + # @param composite_price_filters [Array, nil] + # # @param conversion_rate [Float, nil] # # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] @@ -4184,6 +3632,13 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # @return [Symbol, Orb::Models::Price::GroupedAllocation::Cadence] required :cadence, enum: -> { Orb::Price::GroupedAllocation::Cadence } + # @!attribute composite_price_filters + # + # @return [Array, nil] + required :composite_price_filters, + -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] }, + nil?: true + # @!attribute conversion_rate # # @return [Float, nil] @@ -4193,7 +3648,7 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent102 }, + union: -> { Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent100 }, nil?: true # @!attribute created_at @@ -4307,7 +3762,7 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_allocation_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :grouped_allocation) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_allocation_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :grouped_allocation) # Some parameter documentations has been truncated, see # {Orb::Models::Price::GroupedAllocation} for more details. # @@ -4319,6 +3774,8 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::Price::GroupedAllocation::Cadence] # + # @param composite_price_filters [Array, nil] + # # @param conversion_rate [Float, nil] # # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] @@ -4411,6 +3868,13 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # @return [Symbol, Orb::Models::Price::GroupedWithProratedMinimum::Cadence] required :cadence, enum: -> { Orb::Price::GroupedWithProratedMinimum::Cadence } + # @!attribute composite_price_filters + # + # @return [Array, nil] + required :composite_price_filters, + -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] }, + nil?: true + # @!attribute conversion_rate # # @return [Float, nil] @@ -4420,7 +3884,7 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent103 }, + union: -> { Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent101 }, nil?: true # @!attribute created_at @@ -4534,7 +3998,7 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_with_prorated_minimum_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :grouped_with_prorated_minimum) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_with_prorated_minimum_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :grouped_with_prorated_minimum) # Some parameter documentations has been truncated, see # {Orb::Models::Price::GroupedWithProratedMinimum} for more details. # @@ -4546,6 +4010,8 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::Price::GroupedWithProratedMinimum::Cadence] # + # @param composite_price_filters [Array, nil] + # # @param conversion_rate [Float, nil] # # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] @@ -4638,6 +4104,13 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # @return [Symbol, Orb::Models::Price::GroupedWithMeteredMinimum::Cadence] required :cadence, enum: -> { Orb::Price::GroupedWithMeteredMinimum::Cadence } + # @!attribute composite_price_filters + # + # @return [Array, nil] + required :composite_price_filters, + -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] }, + nil?: true + # @!attribute conversion_rate # # @return [Float, nil] @@ -4647,7 +4120,7 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent104 }, + union: -> { Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent102 }, nil?: true # @!attribute created_at @@ -4761,7 +4234,7 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_with_metered_minimum_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :grouped_with_metered_minimum) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_with_metered_minimum_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :grouped_with_metered_minimum) # Some parameter documentations has been truncated, see # {Orb::Models::Price::GroupedWithMeteredMinimum} for more details. # @@ -4773,6 +4246,8 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::Price::GroupedWithMeteredMinimum::Cadence] # + # @param composite_price_filters [Array, nil] + # # @param conversion_rate [Float, nil] # # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] @@ -4865,6 +4340,13 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @return [Symbol, Orb::Models::Price::MatrixWithDisplayName::Cadence] required :cadence, enum: -> { Orb::Price::MatrixWithDisplayName::Cadence } + # @!attribute composite_price_filters + # + # @return [Array, nil] + required :composite_price_filters, + -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] }, + nil?: true + # @!attribute conversion_rate # # @return [Float, nil] @@ -4874,7 +4356,7 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent105 }, + union: -> { Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent103 }, nil?: true # @!attribute created_at @@ -4988,7 +4470,7 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, matrix_with_display_name_config:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :matrix_with_display_name) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, matrix_with_display_name_config:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :matrix_with_display_name) # Some parameter documentations has been truncated, see # {Orb::Models::Price::MatrixWithDisplayName} for more details. # @@ -5000,6 +4482,8 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::Price::MatrixWithDisplayName::Cadence] # + # @param composite_price_filters [Array, nil] + # # @param conversion_rate [Float, nil] # # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] @@ -5097,6 +4581,13 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # @return [Symbol, Orb::Models::Price::BulkWithProration::Cadence] required :cadence, enum: -> { Orb::Price::BulkWithProration::Cadence } + # @!attribute composite_price_filters + # + # @return [Array, nil] + required :composite_price_filters, + -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] }, + nil?: true + # @!attribute conversion_rate # # @return [Float, nil] @@ -5106,7 +4597,7 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent106 }, + union: -> { Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent104 }, nil?: true # @!attribute created_at @@ -5215,7 +4706,7 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, bulk_with_proration_config:, cadence:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :bulk_with_proration) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, bulk_with_proration_config:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :bulk_with_proration) # Some parameter documentations has been truncated, see # {Orb::Models::Price::BulkWithProration} for more details. # @@ -5229,6 +4720,8 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::Price::BulkWithProration::Cadence] # + # @param composite_price_filters [Array, nil] + # # @param conversion_rate [Float, nil] # # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] @@ -5319,6 +4812,13 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # @return [Symbol, Orb::Models::Price::GroupedTieredPackage::Cadence] required :cadence, enum: -> { Orb::Price::GroupedTieredPackage::Cadence } + # @!attribute composite_price_filters + # + # @return [Array, nil] + required :composite_price_filters, + -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] }, + nil?: true + # @!attribute conversion_rate # # @return [Float, nil] @@ -5328,7 +4828,7 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent107 }, + union: -> { Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent105 }, nil?: true # @!attribute created_at @@ -5442,7 +4942,7 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_tiered_package_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :grouped_tiered_package) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_tiered_package_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :grouped_tiered_package) # Some parameter documentations has been truncated, see # {Orb::Models::Price::GroupedTieredPackage} for more details. # @@ -5454,6 +4954,8 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::Price::GroupedTieredPackage::Cadence] # + # @param composite_price_filters [Array, nil] + # # @param conversion_rate [Float, nil] # # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] @@ -5546,6 +5048,13 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @return [Symbol, Orb::Models::Price::MaxGroupTieredPackage::Cadence] required :cadence, enum: -> { Orb::Price::MaxGroupTieredPackage::Cadence } + # @!attribute composite_price_filters + # + # @return [Array, nil] + required :composite_price_filters, + -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] }, + nil?: true + # @!attribute conversion_rate # # @return [Float, nil] @@ -5555,7 +5064,7 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent108 }, + union: -> { Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent106 }, nil?: true # @!attribute created_at @@ -5669,7 +5178,7 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, max_group_tiered_package_config:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :max_group_tiered_package) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, max_group_tiered_package_config:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :max_group_tiered_package) # Some parameter documentations has been truncated, see # {Orb::Models::Price::MaxGroupTieredPackage} for more details. # @@ -5681,6 +5190,8 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::Price::MaxGroupTieredPackage::Cadence] # + # @param composite_price_filters [Array, nil] + # # @param conversion_rate [Float, nil] # # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] @@ -5773,6 +5284,13 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # @return [Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricing::Cadence] required :cadence, enum: -> { Orb::Price::ScalableMatrixWithUnitPricing::Cadence } + # @!attribute composite_price_filters + # + # @return [Array, nil] + required :composite_price_filters, + -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] }, + nil?: true + # @!attribute conversion_rate # # @return [Float, nil] @@ -5782,7 +5300,7 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent109 }, + union: -> { Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent107 }, nil?: true # @!attribute created_at @@ -5897,7 +5415,7 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, scalable_matrix_with_unit_pricing_config:, dimensional_price_configuration: nil, model_type: :scalable_matrix_with_unit_pricing) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, scalable_matrix_with_unit_pricing_config:, dimensional_price_configuration: nil, model_type: :scalable_matrix_with_unit_pricing) # Some parameter documentations has been truncated, see # {Orb::Models::Price::ScalableMatrixWithUnitPricing} for more details. # @@ -5909,6 +5427,8 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricing::Cadence] # + # @param composite_price_filters [Array, nil] + # # @param conversion_rate [Float, nil] # # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] @@ -6001,6 +5521,13 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # @return [Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricing::Cadence] required :cadence, enum: -> { Orb::Price::ScalableMatrixWithTieredPricing::Cadence } + # @!attribute composite_price_filters + # + # @return [Array, nil] + required :composite_price_filters, + -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] }, + nil?: true + # @!attribute conversion_rate # # @return [Float, nil] @@ -6010,7 +5537,7 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent110 }, + union: -> { Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent108 }, nil?: true # @!attribute created_at @@ -6125,7 +5652,7 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, scalable_matrix_with_tiered_pricing_config:, dimensional_price_configuration: nil, model_type: :scalable_matrix_with_tiered_pricing) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, scalable_matrix_with_tiered_pricing_config:, dimensional_price_configuration: nil, model_type: :scalable_matrix_with_tiered_pricing) # Some parameter documentations has been truncated, see # {Orb::Models::Price::ScalableMatrixWithTieredPricing} for more details. # @@ -6137,6 +5664,8 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricing::Cadence] # + # @param composite_price_filters [Array, nil] + # # @param conversion_rate [Float, nil] # # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] @@ -6229,6 +5758,13 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # @return [Symbol, Orb::Models::Price::CumulativeGroupedBulk::Cadence] required :cadence, enum: -> { Orb::Price::CumulativeGroupedBulk::Cadence } + # @!attribute composite_price_filters + # + # @return [Array, nil] + required :composite_price_filters, + -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] }, + nil?: true + # @!attribute conversion_rate # # @return [Float, nil] @@ -6238,7 +5774,7 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent111 }, + union: -> { Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent109 }, nil?: true # @!attribute created_at @@ -6352,7 +5888,7 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, cumulative_grouped_bulk_config:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :cumulative_grouped_bulk) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, cumulative_grouped_bulk_config:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :cumulative_grouped_bulk) # Some parameter documentations has been truncated, see # {Orb::Models::Price::CumulativeGroupedBulk} for more details. # @@ -6364,6 +5900,8 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::Price::CumulativeGroupedBulk::Cadence] # + # @param composite_price_filters [Array, nil] + # # @param conversion_rate [Float, nil] # # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] @@ -6456,6 +5994,13 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @return [Symbol, Orb::Models::Price::GroupedWithMinMaxThresholds::Cadence] required :cadence, enum: -> { Orb::Price::GroupedWithMinMaxThresholds::Cadence } + # @!attribute composite_price_filters + # + # @return [Array, nil] + required :composite_price_filters, + -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] }, + nil?: true + # @!attribute conversion_rate # # @return [Float, nil] @@ -6465,7 +6010,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent112 }, + union: -> { Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent110 }, nil?: true # @!attribute created_at @@ -6580,7 +6125,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_with_min_max_thresholds_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :grouped_with_min_max_thresholds) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_with_min_max_thresholds_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :grouped_with_min_max_thresholds) # Some parameter documentations has been truncated, see # {Orb::Models::Price::GroupedWithMinMaxThresholds} for more details. # @@ -6592,6 +6137,8 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::Price::GroupedWithMinMaxThresholds::Cadence] # + # @param composite_price_filters [Array, nil] + # # @param conversion_rate [Float, nil] # # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] @@ -6663,8 +6210,268 @@ module PriceType end end + class Minimum < Orb::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute billable_metric + # + # @return [Orb::Models::BillableMetricTiny, nil] + required :billable_metric, -> { Orb::BillableMetricTiny }, nil?: true + + # @!attribute billing_cycle_configuration + # + # @return [Orb::Models::BillingCycleConfiguration] + required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } + + # @!attribute cadence + # + # @return [Symbol, Orb::Models::Price::Minimum::Cadence] + required :cadence, enum: -> { Orb::Price::Minimum::Cadence } + + # @!attribute composite_price_filters + # + # @return [Array, nil] + required :composite_price_filters, + -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] }, + nil?: true + + # @!attribute conversion_rate + # + # @return [Float, nil] + required :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + required :conversion_rate_config, + union: -> { Orb::Price::Minimum::UnnamedTypeWithobjectParent111 }, + nil?: true + + # @!attribute created_at + # + # @return [Time] + required :created_at, Time + + # @!attribute credit_allocation + # + # @return [Orb::Models::Allocation, nil] + required :credit_allocation, -> { Orb::Allocation }, nil?: true + + # @!attribute currency + # + # @return [String] + required :currency, String + + # @!attribute discount + # @deprecated + # + # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true + + # @!attribute external_price_id + # + # @return [String, nil] + required :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # + # @return [Float, nil] + required :fixed_price_quantity, Float, nil?: true + + # @!attribute invoicing_cycle_configuration + # + # @return [Orb::Models::BillingCycleConfiguration, nil] + required :invoicing_cycle_configuration, -> { Orb::BillingCycleConfiguration }, nil?: true + + # @!attribute item + # + # @return [Orb::Models::ItemSlim] + required :item, -> { Orb::ItemSlim } + + # @!attribute maximum + # @deprecated + # + # @return [Orb::Models::Maximum, nil] + required :maximum, -> { Orb::Maximum }, nil?: true + + # @!attribute maximum_amount + # @deprecated + # + # @return [String, nil] + required :maximum_amount, String, nil?: true + + # @!attribute metadata + # User specified key-value pairs for the resource. If not present, this defaults + # to an empty dictionary. Individual keys can be removed by setting the value to + # `null`, and the entire metadata mapping can be cleared by setting `metadata` to + # `null`. + # + # @return [Hash{Symbol=>String}] + required :metadata, Orb::Internal::Type::HashOf[String] + + # @!attribute minimum + # @deprecated + # + # @return [Orb::Models::Minimum, nil] + required :minimum, -> { Orb::Minimum }, nil?: true + + # @!attribute minimum_amount + # @deprecated + # + # @return [String, nil] + required :minimum_amount, String, nil?: true + + # @!attribute minimum_config + # + # @return [Orb::Models::Price::Minimum::MinimumConfig] + required :minimum_config, -> { Orb::Price::Minimum::MinimumConfig } + + # @!attribute model_type + # + # @return [Symbol, :minimum] + required :model_type, const: :minimum + + # @!attribute name + # + # @return [String] + required :name, String + + # @!attribute plan_phase_order + # + # @return [Integer, nil] + required :plan_phase_order, Integer, nil?: true + + # @!attribute price_type + # + # @return [Symbol, Orb::Models::Price::Minimum::PriceType] + required :price_type, enum: -> { Orb::Price::Minimum::PriceType } + + # @!attribute replaces_price_id + # The price id this price replaces. This price will take the place of the replaced + # price in plan version migrations. + # + # @return [String, nil] + required :replaces_price_id, String, nil?: true + + # @!attribute dimensional_price_configuration + # + # @return [Orb::Models::DimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true + + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, minimum_config:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :minimum) + # Some parameter documentations has been truncated, see + # {Orb::Models::Price::Minimum} for more details. + # + # @param id [String] + # + # @param billable_metric [Orb::Models::BillableMetricTiny, nil] + # + # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] + # + # @param cadence [Symbol, Orb::Models::Price::Minimum::Cadence] + # + # @param composite_price_filters [Array, nil] + # + # @param conversion_rate [Float, nil] + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + # + # @param created_at [Time] + # + # @param credit_allocation [Orb::Models::Allocation, nil] + # + # @param currency [String] + # + # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + # + # @param external_price_id [String, nil] + # + # @param fixed_price_quantity [Float, nil] + # + # @param invoicing_cycle_configuration [Orb::Models::BillingCycleConfiguration, nil] + # + # @param item [Orb::Models::ItemSlim] + # + # @param maximum [Orb::Models::Maximum, nil] + # + # @param maximum_amount [String, nil] + # + # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t + # + # @param minimum [Orb::Models::Minimum, nil] + # + # @param minimum_amount [String, nil] + # + # @param minimum_config [Orb::Models::Price::Minimum::MinimumConfig] + # + # @param name [String] + # + # @param plan_phase_order [Integer, nil] + # + # @param price_type [Symbol, Orb::Models::Price::Minimum::PriceType] + # + # @param replaces_price_id [String, nil] The price id this price replaces. This price will take the place of the replaced + # + # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] + # + # @param model_type [Symbol, :minimum] + + # @see Orb::Models::Price::Minimum#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ONE_TIME = :one_time + MONTHLY = :monthly + QUARTERLY = :quarterly + SEMI_ANNUAL = :semi_annual + ANNUAL = :annual + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + + # @see Orb::Models::Price::Minimum#minimum_config + class MinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute minimum_amount + # The minimum amount to apply + # + # @return [String] + required :minimum_amount, String + + # @!attribute prorated + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + # + # @return [Boolean, nil] + optional :prorated, Orb::Internal::Type::Boolean, nil?: true + + # @!method initialize(minimum_amount:, prorated: nil) + # Some parameter documentations has been truncated, see + # {Orb::Models::Price::Minimum::MinimumConfig} for more details. + # + # @param minimum_amount [String] The minimum amount to apply + # + # @param prorated [Boolean, nil] By default, subtotals from minimum composite prices are prorated based on the se + end + + # @see Orb::Models::Price::Minimum#price_type + module PriceType + extend Orb::Internal::Type::Enum + + USAGE_PRICE = :usage_price + FIXED_PRICE = :fixed_price + + # @!method self.values + # @return [Array] + end + end + # @!method self.variants - # @return [Array(Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBPS, Orb::Models::Price::BPS, Orb::Models::Price::BulkBPS, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds)] + # @return [Array(Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::Minimum)] end end end diff --git a/lib/orb/models/price_create_params.rb b/lib/orb/models/price_create_params.rb index 153473e4..1ca45f4f 100644 --- a/lib/orb/models/price_create_params.rb +++ b/lib/orb/models/price_create_params.rb @@ -134,21 +134,6 @@ class PriceCreateParams < Orb::Internal::Type::BaseModel # @return [Orb::Models::TieredConfig] required :tiered_config, -> { Orb::TieredConfig } - # @!attribute tiered_bps_config - # - # @return [Orb::Models::TieredBPSConfig] - required :tiered_bps_config, -> { Orb::TieredBPSConfig } - - # @!attribute bps_config - # - # @return [Orb::Models::BPSConfig] - required :bps_config, -> { Orb::BPSConfig } - - # @!attribute bulk_bps_config - # - # @return [Orb::Models::BulkBPSConfig] - required :bulk_bps_config, -> { Orb::BulkBPSConfig } - # @!attribute bulk_config # # @return [Orb::Models::BulkConfig] @@ -251,7 +236,18 @@ class PriceCreateParams < Orb::Internal::Type::BaseModel # @return [Hash{Symbol=>Object}] required :cumulative_grouped_bulk_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] - # @!method initialize(cadence:, currency:, item_id:, model_type:, name:, unit_config:, package_config:, matrix_config:, matrix_with_allocation_config:, tiered_config:, tiered_bps_config:, bps_config:, bulk_bps_config:, bulk_config:, threshold_total_amount_config:, tiered_package_config:, grouped_tiered_config:, max_group_tiered_package_config:, tiered_with_minimum_config:, package_with_allocation_config:, tiered_package_with_minimum_config:, unit_with_percent_config:, tiered_with_proration_config:, unit_with_proration_config:, grouped_allocation_config:, grouped_with_prorated_minimum_config:, grouped_with_metered_minimum_config:, matrix_with_display_name_config:, bulk_with_proration_config:, grouped_tiered_package_config:, scalable_matrix_with_unit_pricing_config:, scalable_matrix_with_tiered_pricing_config:, cumulative_grouped_bulk_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, request_options: {}) + # @!attribute grouped_with_min_max_thresholds_config + # + # @return [Hash{Symbol=>Object}] + required :grouped_with_min_max_thresholds_config, + Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + + # @!attribute minimum_config + # + # @return [Orb::Models::PriceCreateParams::MinimumConfig] + required :minimum_config, -> { Orb::PriceCreateParams::MinimumConfig } + + # @!method initialize(cadence:, currency:, item_id:, model_type:, name:, unit_config:, package_config:, matrix_config:, matrix_with_allocation_config:, tiered_config:, bulk_config:, threshold_total_amount_config:, tiered_package_config:, grouped_tiered_config:, max_group_tiered_package_config:, tiered_with_minimum_config:, package_with_allocation_config:, tiered_package_with_minimum_config:, unit_with_percent_config:, tiered_with_proration_config:, unit_with_proration_config:, grouped_allocation_config:, grouped_with_prorated_minimum_config:, grouped_with_metered_minimum_config:, matrix_with_display_name_config:, bulk_with_proration_config:, grouped_tiered_package_config:, scalable_matrix_with_unit_pricing_config:, scalable_matrix_with_tiered_pricing_config:, cumulative_grouped_bulk_config:, grouped_with_min_max_thresholds_config:, minimum_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Orb::Models::PriceCreateParams} for more details. # @@ -275,12 +271,6 @@ class PriceCreateParams < Orb::Internal::Type::BaseModel # # @param tiered_config [Orb::Models::TieredConfig] # - # @param tiered_bps_config [Orb::Models::TieredBPSConfig] - # - # @param bps_config [Orb::Models::BPSConfig] - # - # @param bulk_bps_config [Orb::Models::BulkBPSConfig] - # # @param bulk_config [Orb::Models::BulkConfig] # # @param threshold_total_amount_config [Hash{Symbol=>Object}] @@ -321,6 +311,10 @@ class PriceCreateParams < Orb::Internal::Type::BaseModel # # @param cumulative_grouped_bulk_config [Hash{Symbol=>Object}] # + # @param grouped_with_min_max_thresholds_config [Hash{Symbol=>Object}] + # + # @param minimum_config [Orb::Models::PriceCreateParams::MinimumConfig] + # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi @@ -363,11 +357,34 @@ module Cadence module ModelType extend Orb::Internal::Type::Enum - CUMULATIVE_GROUPED_BULK = :cumulative_grouped_bulk + MINIMUM = :minimum # @!method self.values # @return [Array] end + + class MinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute minimum_amount + # The minimum amount to apply + # + # @return [String] + required :minimum_amount, String + + # @!attribute prorated + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + # + # @return [Boolean, nil] + optional :prorated, Orb::Internal::Type::Boolean, nil?: true + + # @!method initialize(minimum_amount:, prorated: nil) + # Some parameter documentations has been truncated, see + # {Orb::Models::PriceCreateParams::MinimumConfig} for more details. + # + # @param minimum_amount [String] The minimum amount to apply + # + # @param prorated [Boolean, nil] By default, subtotals from minimum composite prices are prorated based on the se + end end end end diff --git a/lib/orb/models/price_evaluate_multiple_params.rb b/lib/orb/models/price_evaluate_multiple_params.rb index 4670fb80..33955729 100644 --- a/lib/orb/models/price_evaluate_multiple_params.rb +++ b/lib/orb/models/price_evaluate_multiple_params.rb @@ -78,7 +78,7 @@ class PriceEvaluation < Orb::Internal::Type::BaseModel # An inline price definition to evaluate, allowing you to test price # configurations before adding them to Orb. # - # @return [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingTieredBPSPrice, Orb::Models::NewFloatingBPSPrice, Orb::Models::NewFloatingBulkBPSPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, nil] + # @return [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum, nil] optional :price, union: -> { Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price }, nil?: true # @!attribute price_id @@ -97,7 +97,7 @@ class PriceEvaluation < Orb::Internal::Type::BaseModel # # @param grouping_keys [Array] Properties (or [computed properties](/extensibility/advanced-metrics#computed-pr # - # @param price [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingTieredBPSPrice, Orb::Models::NewFloatingBPSPrice, Orb::Models::NewFloatingBulkBPSPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, nil] An inline price definition to evaluate, allowing you to test price configuration + # @param price [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum, nil] An inline price definition to evaluate, allowing you to test price configuration # # @param price_id [String, nil] The ID of a price to evaluate that exists in your Orb account. @@ -120,12 +120,6 @@ module Price variant :tiered, -> { Orb::NewFloatingTieredPrice } - variant :tiered_bps, -> { Orb::NewFloatingTieredBPSPrice } - - variant :bps, -> { Orb::NewFloatingBPSPrice } - - variant :bulk_bps, -> { Orb::NewFloatingBulkBPSPrice } - variant :bulk, -> { Orb::NewFloatingBulkPrice } variant :threshold_total_amount, -> { Orb::NewFloatingThresholdTotalAmountPrice } @@ -166,8 +160,387 @@ module Price variant :cumulative_grouped_bulk, -> { Orb::NewFloatingCumulativeGroupedBulkPrice } + variant :grouped_with_min_max_thresholds, + -> { Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds } + + variant :minimum, -> { Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum } + + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::Cadence] + required :cadence, + enum: -> { Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::Cadence } + + # @!attribute currency + # An ISO 4217 currency string for which this price is billed in. + # + # @return [String] + required :currency, String + + # @!attribute grouped_with_min_max_thresholds_config + # + # @return [Hash{Symbol=>Object}] + required :grouped_with_min_max_thresholds_config, + Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String + + # @!attribute model_type + # + # @return [Symbol, :grouped_with_min_max_thresholds] + required :model_type, const: :grouped_with_min_max_thresholds + + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String + + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true + + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent112 + }, + nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, + -> { + Orb::NewDimensionalPriceConfiguration + }, + nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!method initialize(cadence:, currency:, grouped_with_min_max_thresholds_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :grouped_with_min_max_thresholds) + # Some parameter documentations has been truncated, see + # {Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds} + # for more details. + # + # @param cadence [Symbol, Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::Cadence] The cadence to bill for this price on. + # + # @param currency [String] An ISO 4217 currency string for which this price is billed in. + # + # @param grouped_with_min_max_thresholds_config [Hash{Symbol=>Object}] + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param name [String] The name of the price. + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param model_type [Symbol, :grouped_with_min_max_thresholds] + + # The cadence to bill for this price on. + # + # @see Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + end + + class Minimum < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::Cadence] + required :cadence, enum: -> { Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::Cadence } + + # @!attribute currency + # An ISO 4217 currency string for which this price is billed in. + # + # @return [String] + required :currency, String + + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String + + # @!attribute minimum_config + # + # @return [Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::MinimumConfig] + required :minimum_config, + -> { Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::MinimumConfig } + + # @!attribute model_type + # + # @return [Symbol, :minimum] + required :model_type, const: :minimum + + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String + + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true + + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::UnnamedTypeWithobjectParent113 + }, + nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, + -> { + Orb::NewDimensionalPriceConfiguration + }, + nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!method initialize(cadence:, currency:, item_id:, minimum_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :minimum) + # Some parameter documentations has been truncated, see + # {Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum} for + # more details. + # + # @param cadence [Symbol, Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::Cadence] The cadence to bill for this price on. + # + # @param currency [String] An ISO 4217 currency string for which this price is billed in. + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param minimum_config [Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::MinimumConfig] + # + # @param name [String] The name of the price. + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param model_type [Symbol, :minimum] + + # The cadence to bill for this price on. + # + # @see Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + + # @see Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum#minimum_config + class MinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute minimum_amount + # The minimum amount to apply + # + # @return [String] + required :minimum_amount, String + + # @!attribute prorated + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + # + # @return [Boolean, nil] + optional :prorated, Orb::Internal::Type::Boolean, nil?: true + + # @!method initialize(minimum_amount:, prorated: nil) + # Some parameter documentations has been truncated, see + # {Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::MinimumConfig} + # for more details. + # + # @param minimum_amount [String] The minimum amount to apply + # + # @param prorated [Boolean, nil] By default, subtotals from minimum composite prices are prorated based on the se + end + end + # @!method self.variants - # @return [Array(Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingTieredBPSPrice, Orb::Models::NewFloatingBPSPrice, Orb::Models::NewFloatingBulkBPSPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice)] + # @return [Array(Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum)] end end end diff --git a/lib/orb/models/price_evaluate_preview_events_params.rb b/lib/orb/models/price_evaluate_preview_events_params.rb index 79a173cf..cc881d8c 100644 --- a/lib/orb/models/price_evaluate_preview_events_params.rb +++ b/lib/orb/models/price_evaluate_preview_events_params.rb @@ -136,7 +136,7 @@ class PriceEvaluation < Orb::Internal::Type::BaseModel # An inline price definition to evaluate, allowing you to test price # configurations before adding them to Orb. # - # @return [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingTieredBPSPrice, Orb::Models::NewFloatingBPSPrice, Orb::Models::NewFloatingBulkBPSPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, nil] + # @return [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum, nil] optional :price, union: -> { Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price @@ -160,7 +160,7 @@ class PriceEvaluation < Orb::Internal::Type::BaseModel # # @param grouping_keys [Array] Properties (or [computed properties](/extensibility/advanced-metrics#computed-pr # - # @param price [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingTieredBPSPrice, Orb::Models::NewFloatingBPSPrice, Orb::Models::NewFloatingBulkBPSPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, nil] An inline price definition to evaluate, allowing you to test price configuration + # @param price [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum, nil] An inline price definition to evaluate, allowing you to test price configuration # # @param price_id [String, nil] The ID of a price to evaluate that exists in your Orb account. @@ -183,12 +183,6 @@ module Price variant :tiered, -> { Orb::NewFloatingTieredPrice } - variant :tiered_bps, -> { Orb::NewFloatingTieredBPSPrice } - - variant :bps, -> { Orb::NewFloatingBPSPrice } - - variant :bulk_bps, -> { Orb::NewFloatingBulkBPSPrice } - variant :bulk, -> { Orb::NewFloatingBulkPrice } variant :threshold_total_amount, -> { Orb::NewFloatingThresholdTotalAmountPrice } @@ -229,8 +223,388 @@ module Price variant :cumulative_grouped_bulk, -> { Orb::NewFloatingCumulativeGroupedBulkPrice } + variant :grouped_with_min_max_thresholds, + -> { Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds } + + variant :minimum, -> { Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum } + + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::Cadence] + required :cadence, + enum: -> { Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::Cadence } + + # @!attribute currency + # An ISO 4217 currency string for which this price is billed in. + # + # @return [String] + required :currency, String + + # @!attribute grouped_with_min_max_thresholds_config + # + # @return [Hash{Symbol=>Object}] + required :grouped_with_min_max_thresholds_config, + Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String + + # @!attribute model_type + # + # @return [Symbol, :grouped_with_min_max_thresholds] + required :model_type, const: :grouped_with_min_max_thresholds + + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String + + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true + + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent114 + }, + nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, + -> { + Orb::NewDimensionalPriceConfiguration + }, + nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!method initialize(cadence:, currency:, grouped_with_min_max_thresholds_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :grouped_with_min_max_thresholds) + # Some parameter documentations has been truncated, see + # {Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds} + # for more details. + # + # @param cadence [Symbol, Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::Cadence] The cadence to bill for this price on. + # + # @param currency [String] An ISO 4217 currency string for which this price is billed in. + # + # @param grouped_with_min_max_thresholds_config [Hash{Symbol=>Object}] + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param name [String] The name of the price. + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param model_type [Symbol, :grouped_with_min_max_thresholds] + + # The cadence to bill for this price on. + # + # @see Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + end + + class Minimum < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::Cadence] + required :cadence, + enum: -> { Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::Cadence } + + # @!attribute currency + # An ISO 4217 currency string for which this price is billed in. + # + # @return [String] + required :currency, String + + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String + + # @!attribute minimum_config + # + # @return [Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::MinimumConfig] + required :minimum_config, + -> { Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::MinimumConfig } + + # @!attribute model_type + # + # @return [Symbol, :minimum] + required :model_type, const: :minimum + + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String + + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true + + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::UnnamedTypeWithobjectParent115 + }, + nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, + -> { + Orb::NewDimensionalPriceConfiguration + }, + nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!method initialize(cadence:, currency:, item_id:, minimum_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :minimum) + # Some parameter documentations has been truncated, see + # {Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum} + # for more details. + # + # @param cadence [Symbol, Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::Cadence] The cadence to bill for this price on. + # + # @param currency [String] An ISO 4217 currency string for which this price is billed in. + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param minimum_config [Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::MinimumConfig] + # + # @param name [String] The name of the price. + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param model_type [Symbol, :minimum] + + # The cadence to bill for this price on. + # + # @see Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + + # @see Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum#minimum_config + class MinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute minimum_amount + # The minimum amount to apply + # + # @return [String] + required :minimum_amount, String + + # @!attribute prorated + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + # + # @return [Boolean, nil] + optional :prorated, Orb::Internal::Type::Boolean, nil?: true + + # @!method initialize(minimum_amount:, prorated: nil) + # Some parameter documentations has been truncated, see + # {Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::MinimumConfig} + # for more details. + # + # @param minimum_amount [String] The minimum amount to apply + # + # @param prorated [Boolean, nil] By default, subtotals from minimum composite prices are prorated based on the se + end + end + # @!method self.variants - # @return [Array(Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingTieredBPSPrice, Orb::Models::NewFloatingBPSPrice, Orb::Models::NewFloatingBulkBPSPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice)] + # @return [Array(Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum)] end end end diff --git a/lib/orb/models/price_interval.rb b/lib/orb/models/price_interval.rb index 3ba3f270..e7804ff4 100644 --- a/lib/orb/models/price_interval.rb +++ b/lib/orb/models/price_interval.rb @@ -64,7 +64,7 @@ class PriceInterval < Orb::Internal::Type::BaseModel # For more on the types of prices, see # [the core concepts documentation](/core-concepts#plan-and-price) # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBPS, Orb::Models::Price::BPS, Orb::Models::Price::BulkBPS, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds] + # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::Minimum] required :price, union: -> { Orb::Price } # @!attribute start_date @@ -103,7 +103,7 @@ class PriceInterval < Orb::Internal::Type::BaseModel # # @param fixed_fee_quantity_transitions [Array, nil] The fixed fee quantity transitions for this price interval. This is only relevan # - # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBPS, Orb::Models::Price::BPS, Orb::Models::Price::BulkBPS, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds] The Price resource represents a price that can be billed on a subscription, resu + # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::Minimum] The Price resource represents a price that can be billed on a subscription, resu # # @param start_date [Time] The start date of the price interval. This is the date that Orb starts billing f # diff --git a/lib/orb/models/subscription_create_params.rb b/lib/orb/models/subscription_create_params.rb index 877037fa..150ce449 100644 --- a/lib/orb/models/subscription_create_params.rb +++ b/lib/orb/models/subscription_create_params.rb @@ -440,7 +440,7 @@ class AddPrice < Orb::Internal::Type::BaseModel # @!attribute price # The definition of a new price to create and add to the subscription. # - # @return [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionTieredBPSPrice, Orb::Models::NewSubscriptionBPSPrice, Orb::Models::NewSubscriptionBulkBPSPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, nil] + # @return [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum, nil] optional :price, union: -> { Orb::SubscriptionCreateParams::AddPrice::Price }, nil?: true # @!attribute price_id @@ -475,7 +475,7 @@ class AddPrice < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] The phase to add this price to. # - # @param price [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionTieredBPSPrice, Orb::Models::NewSubscriptionBPSPrice, Orb::Models::NewSubscriptionBulkBPSPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, nil] The definition of a new price to create and add to the subscription. + # @param price [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum, nil] The definition of a new price to create and add to the subscription. # # @param price_id [String, nil] The id of the price to add to the subscription. # @@ -497,12 +497,6 @@ module Price variant :tiered, -> { Orb::NewSubscriptionTieredPrice } - variant :tiered_bps, -> { Orb::NewSubscriptionTieredBPSPrice } - - variant :bps, -> { Orb::NewSubscriptionBPSPrice } - - variant :bulk_bps, -> { Orb::NewSubscriptionBulkBPSPrice } - variant :bulk, -> { Orb::NewSubscriptionBulkPrice } variant :threshold_total_amount, -> { Orb::NewSubscriptionThresholdTotalAmountPrice } @@ -546,8 +540,406 @@ module Price variant :grouped_tiered, -> { Orb::NewSubscriptionGroupedTieredPrice } + variant :grouped_with_min_max_thresholds, + -> { Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds } + + variant :minimum, -> { Orb::SubscriptionCreateParams::AddPrice::Price::Minimum } + + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence] + required :cadence, + enum: -> { Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence } + + # @!attribute grouped_with_min_max_thresholds_config + # + # @return [Hash{Symbol=>Object}] + required :grouped_with_min_max_thresholds_config, + Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String + + # @!attribute model_type + # + # @return [Symbol, :grouped_with_min_max_thresholds] + required :model_type, const: :grouped_with_min_max_thresholds + + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String + + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true + + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent116 + }, + nil?: true + + # @!attribute currency + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + # + # @return [String, nil] + optional :currency, String, nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, + -> { + Orb::NewDimensionalPriceConfiguration + }, + nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!attribute reference_id + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + # + # @return [String, nil] + optional :reference_id, String, nil?: true + + # @!method initialize(cadence:, grouped_with_min_max_thresholds_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :grouped_with_min_max_thresholds) + # Some parameter documentations has been truncated, see + # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds} + # for more details. + # + # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence] The cadence to bill for this price on. + # + # @param grouped_with_min_max_thresholds_config [Hash{Symbol=>Object}] + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param name [String] The name of the price. + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments + # + # @param model_type [Symbol, :grouped_with_min_max_thresholds] + + # The cadence to bill for this price on. + # + # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + end + + class Minimum < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum::Cadence] + required :cadence, enum: -> { Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::Cadence } + + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String + + # @!attribute minimum_config + # + # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum::MinimumConfig] + required :minimum_config, -> { Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::MinimumConfig } + + # @!attribute model_type + # + # @return [Symbol, :minimum] + required :model_type, const: :minimum + + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String + + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true + + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::UnnamedTypeWithobjectParent117 + }, + nil?: true + + # @!attribute currency + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + # + # @return [String, nil] + optional :currency, String, nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, + -> { + Orb::NewDimensionalPriceConfiguration + }, + nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!attribute reference_id + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + # + # @return [String, nil] + optional :reference_id, String, nil?: true + + # @!method initialize(cadence:, item_id:, minimum_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :minimum) + # Some parameter documentations has been truncated, see + # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum} for more + # details. + # + # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum::Cadence] The cadence to bill for this price on. + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param minimum_config [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum::MinimumConfig] + # + # @param name [String] The name of the price. + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments + # + # @param model_type [Symbol, :minimum] + + # The cadence to bill for this price on. + # + # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + + # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum#minimum_config + class MinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute minimum_amount + # The minimum amount to apply + # + # @return [String] + required :minimum_amount, String + + # @!attribute prorated + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + # + # @return [Boolean, nil] + optional :prorated, Orb::Internal::Type::Boolean, nil?: true + + # @!method initialize(minimum_amount:, prorated: nil) + # Some parameter documentations has been truncated, see + # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum::MinimumConfig} + # for more details. + # + # @param minimum_amount [String] The minimum amount to apply + # + # @param prorated [Boolean, nil] By default, subtotals from minimum composite prices are prorated based on the se + end + end + # @!method self.variants - # @return [Array(Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionTieredBPSPrice, Orb::Models::NewSubscriptionBPSPrice, Orb::Models::NewSubscriptionBulkBPSPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice)] + # @return [Array(Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum)] end end @@ -689,7 +1081,7 @@ class ReplacePrice < Orb::Internal::Type::BaseModel # @!attribute price # The definition of a new price to create and add to the subscription. # - # @return [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionTieredBPSPrice, Orb::Models::NewSubscriptionBPSPrice, Orb::Models::NewSubscriptionBulkBPSPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, nil] + # @return [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum, nil] optional :price, union: -> { Orb::SubscriptionCreateParams::ReplacePrice::Price }, nil?: true # @!attribute price_id @@ -716,7 +1108,7 @@ class ReplacePrice < Orb::Internal::Type::BaseModel # # @param minimum_amount [String, nil] [DEPRECATED] Use add_adjustments instead. The subscription's minimum amount for # - # @param price [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionTieredBPSPrice, Orb::Models::NewSubscriptionBPSPrice, Orb::Models::NewSubscriptionBulkBPSPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, nil] The definition of a new price to create and add to the subscription. + # @param price [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum, nil] The definition of a new price to create and add to the subscription. # # @param price_id [String, nil] The id of the price to add to the subscription. @@ -736,12 +1128,6 @@ module Price variant :tiered, -> { Orb::NewSubscriptionTieredPrice } - variant :tiered_bps, -> { Orb::NewSubscriptionTieredBPSPrice } - - variant :bps, -> { Orb::NewSubscriptionBPSPrice } - - variant :bulk_bps, -> { Orb::NewSubscriptionBulkBPSPrice } - variant :bulk, -> { Orb::NewSubscriptionBulkPrice } variant :threshold_total_amount, -> { Orb::NewSubscriptionThresholdTotalAmountPrice } @@ -785,8 +1171,407 @@ module Price variant :grouped_tiered, -> { Orb::NewSubscriptionGroupedTieredPrice } + variant :grouped_with_min_max_thresholds, + -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds } + + variant :minimum, -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum } + + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence] + required :cadence, + enum: -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence } + + # @!attribute grouped_with_min_max_thresholds_config + # + # @return [Hash{Symbol=>Object}] + required :grouped_with_min_max_thresholds_config, + Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String + + # @!attribute model_type + # + # @return [Symbol, :grouped_with_min_max_thresholds] + required :model_type, const: :grouped_with_min_max_thresholds + + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String + + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true + + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent118 + }, + nil?: true + + # @!attribute currency + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + # + # @return [String, nil] + optional :currency, String, nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, + -> { + Orb::NewDimensionalPriceConfiguration + }, + nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!attribute reference_id + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + # + # @return [String, nil] + optional :reference_id, String, nil?: true + + # @!method initialize(cadence:, grouped_with_min_max_thresholds_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :grouped_with_min_max_thresholds) + # Some parameter documentations has been truncated, see + # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds} + # for more details. + # + # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence] The cadence to bill for this price on. + # + # @param grouped_with_min_max_thresholds_config [Hash{Symbol=>Object}] + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param name [String] The name of the price. + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments + # + # @param model_type [Symbol, :grouped_with_min_max_thresholds] + + # The cadence to bill for this price on. + # + # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + end + + class Minimum < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum::Cadence] + required :cadence, enum: -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::Cadence } + + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String + + # @!attribute minimum_config + # + # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum::MinimumConfig] + required :minimum_config, + -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::MinimumConfig } + + # @!attribute model_type + # + # @return [Symbol, :minimum] + required :model_type, const: :minimum + + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String + + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true + + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::UnnamedTypeWithobjectParent119 + }, + nil?: true + + # @!attribute currency + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + # + # @return [String, nil] + optional :currency, String, nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, + -> { + Orb::NewDimensionalPriceConfiguration + }, + nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!attribute reference_id + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + # + # @return [String, nil] + optional :reference_id, String, nil?: true + + # @!method initialize(cadence:, item_id:, minimum_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :minimum) + # Some parameter documentations has been truncated, see + # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum} for more + # details. + # + # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum::Cadence] The cadence to bill for this price on. + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param minimum_config [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum::MinimumConfig] + # + # @param name [String] The name of the price. + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments + # + # @param model_type [Symbol, :minimum] + + # The cadence to bill for this price on. + # + # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + + # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum#minimum_config + class MinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute minimum_amount + # The minimum amount to apply + # + # @return [String] + required :minimum_amount, String + + # @!attribute prorated + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + # + # @return [Boolean, nil] + optional :prorated, Orb::Internal::Type::Boolean, nil?: true + + # @!method initialize(minimum_amount:, prorated: nil) + # Some parameter documentations has been truncated, see + # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum::MinimumConfig} + # for more details. + # + # @param minimum_amount [String] The minimum amount to apply + # + # @param prorated [Boolean, nil] By default, subtotals from minimum composite prices are prorated based on the se + end + end + # @!method self.variants - # @return [Array(Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionTieredBPSPrice, Orb::Models::NewSubscriptionBPSPrice, Orb::Models::NewSubscriptionBulkBPSPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice)] + # @return [Array(Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum)] end end end diff --git a/lib/orb/models/subscription_price_intervals_params.rb b/lib/orb/models/subscription_price_intervals_params.rb index 22229a7f..d56aa4b6 100644 --- a/lib/orb/models/subscription_price_intervals_params.rb +++ b/lib/orb/models/subscription_price_intervals_params.rb @@ -130,7 +130,7 @@ class Add < Orb::Internal::Type::BaseModel # @!attribute price # The definition of a new price to create and add to the subscription. # - # @return [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingTieredBPSPrice, Orb::Models::NewFloatingBPSPrice, Orb::Models::NewFloatingBulkBPSPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, nil] + # @return [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum, nil] optional :price, union: -> { Orb::SubscriptionPriceIntervalsParams::Add::Price }, nil?: true # @!attribute price_id @@ -172,7 +172,7 @@ class Add < Orb::Internal::Type::BaseModel # # @param minimum_amount [Float, nil] The minimum amount that will be billed for this price interval for a given billi # - # @param price [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingTieredBPSPrice, Orb::Models::NewFloatingBPSPrice, Orb::Models::NewFloatingBulkBPSPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, nil] The definition of a new price to create and add to the subscription. + # @param price [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum, nil] The definition of a new price to create and add to the subscription. # # @param price_id [String, nil] The id of the price to add to the subscription. # @@ -324,12 +324,6 @@ module Price variant :tiered, -> { Orb::NewFloatingTieredPrice } - variant :tiered_bps, -> { Orb::NewFloatingTieredBPSPrice } - - variant :bps, -> { Orb::NewFloatingBPSPrice } - - variant :bulk_bps, -> { Orb::NewFloatingBulkBPSPrice } - variant :bulk, -> { Orb::NewFloatingBulkPrice } variant :threshold_total_amount, -> { Orb::NewFloatingThresholdTotalAmountPrice } @@ -370,18 +364,390 @@ module Price variant :cumulative_grouped_bulk, -> { Orb::NewFloatingCumulativeGroupedBulkPrice } + variant :grouped_with_min_max_thresholds, + -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds } + + variant :minimum, -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum } + + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::Cadence] + required :cadence, + enum: -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::Cadence } + + # @!attribute currency + # An ISO 4217 currency string for which this price is billed in. + # + # @return [String] + required :currency, String + + # @!attribute grouped_with_min_max_thresholds_config + # + # @return [Hash{Symbol=>Object}] + required :grouped_with_min_max_thresholds_config, + Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String + + # @!attribute model_type + # + # @return [Symbol, :grouped_with_min_max_thresholds] + required :model_type, const: :grouped_with_min_max_thresholds + + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String + + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true + + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent120 + }, + nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, + -> { + Orb::NewDimensionalPriceConfiguration + }, + nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!method initialize(cadence:, currency:, grouped_with_min_max_thresholds_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :grouped_with_min_max_thresholds) + # Some parameter documentations has been truncated, see + # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds} + # for more details. + # + # @param cadence [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::Cadence] The cadence to bill for this price on. + # + # @param currency [String] An ISO 4217 currency string for which this price is billed in. + # + # @param grouped_with_min_max_thresholds_config [Hash{Symbol=>Object}] + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param name [String] The name of the price. + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param model_type [Symbol, :grouped_with_min_max_thresholds] + + # The cadence to bill for this price on. + # + # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + end + + class Minimum < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum::Cadence] + required :cadence, enum: -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::Cadence } + + # @!attribute currency + # An ISO 4217 currency string for which this price is billed in. + # + # @return [String] + required :currency, String + + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String + + # @!attribute minimum_config + # + # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum::MinimumConfig] + required :minimum_config, -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::MinimumConfig } + + # @!attribute model_type + # + # @return [Symbol, :minimum] + required :model_type, const: :minimum + + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String + + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true + + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { + Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::UnnamedTypeWithobjectParent121 + }, + nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, + -> { + Orb::NewDimensionalPriceConfiguration + }, + nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!method initialize(cadence:, currency:, item_id:, minimum_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :minimum) + # Some parameter documentations has been truncated, see + # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum} for more + # details. + # + # @param cadence [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum::Cadence] The cadence to bill for this price on. + # + # @param currency [String] An ISO 4217 currency string for which this price is billed in. + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param minimum_config [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum::MinimumConfig] + # + # @param name [String] The name of the price. + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param model_type [Symbol, :minimum] + + # The cadence to bill for this price on. + # + # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + + # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum#minimum_config + class MinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute minimum_amount + # The minimum amount to apply + # + # @return [String] + required :minimum_amount, String + + # @!attribute prorated + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + # + # @return [Boolean, nil] + optional :prorated, Orb::Internal::Type::Boolean, nil?: true + + # @!method initialize(minimum_amount:, prorated: nil) + # Some parameter documentations has been truncated, see + # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum::MinimumConfig} + # for more details. + # + # @param minimum_amount [String] The minimum amount to apply + # + # @param prorated [Boolean, nil] By default, subtotals from minimum composite prices are prorated based on the se + end + end + # @!method self.variants - # @return [Array(Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingTieredBPSPrice, Orb::Models::NewFloatingBPSPrice, Orb::Models::NewFloatingBulkBPSPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice)] + # @return [Array(Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum)] end end class AddAdjustment < Orb::Internal::Type::BaseModel - # @!attribute adjustment - # The definition of a new adjustment to create and add to the subscription. - # - # @return [Orb::Models::NewPercentageDiscount, Orb::Models::NewUsageDiscount, Orb::Models::NewAmountDiscount, Orb::Models::NewMinimum, Orb::Models::NewMaximum] - required :adjustment, union: -> { Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment } - # @!attribute start_date # The start date of the adjustment interval. This is the date that the adjustment # will start affecting prices on the subscription. The adjustment will apply to @@ -391,6 +757,22 @@ class AddAdjustment < Orb::Internal::Type::BaseModel # @return [Time, Symbol, Orb::Models::BillingCycleRelativeDate] required :start_date, union: -> { Orb::SubscriptionPriceIntervalsParams::AddAdjustment::StartDate } + # @!attribute adjustment + # The definition of a new adjustment to create and add to the subscription. + # + # @return [Orb::Models::NewPercentageDiscount, Orb::Models::NewUsageDiscount, Orb::Models::NewAmountDiscount, Orb::Models::NewMinimum, Orb::Models::NewMaximum, nil] + optional :adjustment, + union: -> { Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment }, + nil?: true + + # @!attribute adjustment_id + # The ID of the adjustment to add to the subscription. Adjustment IDs can be + # re-used from existing subscriptions or plans, but adjustments associated with + # coupon redemptions cannot be re-used. + # + # @return [String, nil] + optional :adjustment_id, String, nil?: true + # @!attribute end_date # The end date of the adjustment interval. This is the date that the adjustment # will stop affecting prices on the subscription. The adjustment will apply to @@ -402,16 +784,35 @@ class AddAdjustment < Orb::Internal::Type::BaseModel union: -> { Orb::SubscriptionPriceIntervalsParams::AddAdjustment::EndDate }, nil?: true - # @!method initialize(adjustment:, start_date:, end_date: nil) + # @!method initialize(start_date:, adjustment: nil, adjustment_id: nil, end_date: nil) # Some parameter documentations has been truncated, see # {Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment} for more details. # - # @param adjustment [Orb::Models::NewPercentageDiscount, Orb::Models::NewUsageDiscount, Orb::Models::NewAmountDiscount, Orb::Models::NewMinimum, Orb::Models::NewMaximum] The definition of a new adjustment to create and add to the subscription. - # # @param start_date [Time, Symbol, Orb::Models::BillingCycleRelativeDate] The start date of the adjustment interval. This is the date that the adjustment # + # @param adjustment [Orb::Models::NewPercentageDiscount, Orb::Models::NewUsageDiscount, Orb::Models::NewAmountDiscount, Orb::Models::NewMinimum, Orb::Models::NewMaximum, nil] The definition of a new adjustment to create and add to the subscription. + # + # @param adjustment_id [String, nil] The ID of the adjustment to add to the subscription. Adjustment IDs can be re-us + # # @param end_date [Time, Symbol, Orb::Models::BillingCycleRelativeDate, nil] The end date of the adjustment interval. This is the date that the adjustment wi + # The start date of the adjustment interval. This is the date that the adjustment + # will start affecting prices on the subscription. The adjustment will apply to + # invoice dates that overlap with this `start_date`. This `start_date` is treated + # as inclusive for in-advance prices, and exclusive for in-arrears prices. + # + # @see Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment#start_date + module StartDate + extend Orb::Internal::Type::Union + + variant Time + + variant enum: -> { Orb::BillingCycleRelativeDate } + + # @!method self.variants + # @return [Array(Time, Symbol, Orb::Models::BillingCycleRelativeDate)] + end + # The definition of a new adjustment to create and add to the subscription. # # @see Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment#adjustment @@ -434,23 +835,6 @@ module Adjustment # @return [Array(Orb::Models::NewPercentageDiscount, Orb::Models::NewUsageDiscount, Orb::Models::NewAmountDiscount, Orb::Models::NewMinimum, Orb::Models::NewMaximum)] end - # The start date of the adjustment interval. This is the date that the adjustment - # will start affecting prices on the subscription. The adjustment will apply to - # invoice dates that overlap with this `start_date`. This `start_date` is treated - # as inclusive for in-advance prices, and exclusive for in-arrears prices. - # - # @see Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment#start_date - module StartDate - extend Orb::Internal::Type::Union - - variant Time - - variant enum: -> { Orb::BillingCycleRelativeDate } - - # @!method self.variants - # @return [Array(Time, Symbol, Orb::Models::BillingCycleRelativeDate)] - end - # The end date of the adjustment interval. This is the date that the adjustment # will stop affecting prices on the subscription. The adjustment will apply to # invoice dates that overlap with this `end_date`.This `end_date` is treated as diff --git a/lib/orb/models/subscription_schedule_plan_change_params.rb b/lib/orb/models/subscription_schedule_plan_change_params.rb index c65da79b..b0e39115 100644 --- a/lib/orb/models/subscription_schedule_plan_change_params.rb +++ b/lib/orb/models/subscription_schedule_plan_change_params.rb @@ -405,7 +405,7 @@ class AddPrice < Orb::Internal::Type::BaseModel # @!attribute price # The definition of a new price to create and add to the subscription. # - # @return [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionTieredBPSPrice, Orb::Models::NewSubscriptionBPSPrice, Orb::Models::NewSubscriptionBulkBPSPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, nil] + # @return [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum, nil] optional :price, union: -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price }, nil?: true # @!attribute price_id @@ -440,7 +440,7 @@ class AddPrice < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] The phase to add this price to. # - # @param price [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionTieredBPSPrice, Orb::Models::NewSubscriptionBPSPrice, Orb::Models::NewSubscriptionBulkBPSPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, nil] The definition of a new price to create and add to the subscription. + # @param price [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum, nil] The definition of a new price to create and add to the subscription. # # @param price_id [String, nil] The id of the price to add to the subscription. # @@ -462,12 +462,6 @@ module Price variant :tiered, -> { Orb::NewSubscriptionTieredPrice } - variant :tiered_bps, -> { Orb::NewSubscriptionTieredBPSPrice } - - variant :bps, -> { Orb::NewSubscriptionBPSPrice } - - variant :bulk_bps, -> { Orb::NewSubscriptionBulkBPSPrice } - variant :bulk, -> { Orb::NewSubscriptionBulkPrice } variant :threshold_total_amount, -> { Orb::NewSubscriptionThresholdTotalAmountPrice } @@ -511,8 +505,408 @@ module Price variant :grouped_tiered, -> { Orb::NewSubscriptionGroupedTieredPrice } + variant :grouped_with_min_max_thresholds, + -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds } + + variant :minimum, -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum } + + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence] + required :cadence, + enum: -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence } + + # @!attribute grouped_with_min_max_thresholds_config + # + # @return [Hash{Symbol=>Object}] + required :grouped_with_min_max_thresholds_config, + Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String + + # @!attribute model_type + # + # @return [Symbol, :grouped_with_min_max_thresholds] + required :model_type, const: :grouped_with_min_max_thresholds + + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String + + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true + + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent122 + }, + nil?: true + + # @!attribute currency + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + # + # @return [String, nil] + optional :currency, String, nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, + -> { + Orb::NewDimensionalPriceConfiguration + }, + nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!attribute reference_id + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + # + # @return [String, nil] + optional :reference_id, String, nil?: true + + # @!method initialize(cadence:, grouped_with_min_max_thresholds_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :grouped_with_min_max_thresholds) + # Some parameter documentations has been truncated, see + # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds} + # for more details. + # + # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence] The cadence to bill for this price on. + # + # @param grouped_with_min_max_thresholds_config [Hash{Symbol=>Object}] + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param name [String] The name of the price. + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments + # + # @param model_type [Symbol, :grouped_with_min_max_thresholds] + + # The cadence to bill for this price on. + # + # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + end + + class Minimum < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::Cadence] + required :cadence, + enum: -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::Cadence } + + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String + + # @!attribute minimum_config + # + # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::MinimumConfig] + required :minimum_config, + -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::MinimumConfig } + + # @!attribute model_type + # + # @return [Symbol, :minimum] + required :model_type, const: :minimum + + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String + + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true + + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::UnnamedTypeWithobjectParent123 + }, + nil?: true + + # @!attribute currency + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + # + # @return [String, nil] + optional :currency, String, nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, + -> { + Orb::NewDimensionalPriceConfiguration + }, + nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!attribute reference_id + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + # + # @return [String, nil] + optional :reference_id, String, nil?: true + + # @!method initialize(cadence:, item_id:, minimum_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :minimum) + # Some parameter documentations has been truncated, see + # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum} + # for more details. + # + # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::Cadence] The cadence to bill for this price on. + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param minimum_config [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::MinimumConfig] + # + # @param name [String] The name of the price. + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments + # + # @param model_type [Symbol, :minimum] + + # The cadence to bill for this price on. + # + # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + + # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum#minimum_config + class MinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute minimum_amount + # The minimum amount to apply + # + # @return [String] + required :minimum_amount, String + + # @!attribute prorated + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + # + # @return [Boolean, nil] + optional :prorated, Orb::Internal::Type::Boolean, nil?: true + + # @!method initialize(minimum_amount:, prorated: nil) + # Some parameter documentations has been truncated, see + # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::MinimumConfig} + # for more details. + # + # @param minimum_amount [String] The minimum amount to apply + # + # @param prorated [Boolean, nil] By default, subtotals from minimum composite prices are prorated based on the se + end + end + # @!method self.variants - # @return [Array(Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionTieredBPSPrice, Orb::Models::NewSubscriptionBPSPrice, Orb::Models::NewSubscriptionBulkBPSPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice)] + # @return [Array(Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum)] end end @@ -657,7 +1051,7 @@ class ReplacePrice < Orb::Internal::Type::BaseModel # @!attribute price # The definition of a new price to create and add to the subscription. # - # @return [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionTieredBPSPrice, Orb::Models::NewSubscriptionBPSPrice, Orb::Models::NewSubscriptionBulkBPSPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, nil] + # @return [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum, nil] optional :price, union: -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price @@ -689,7 +1083,7 @@ class ReplacePrice < Orb::Internal::Type::BaseModel # # @param minimum_amount [String, nil] [DEPRECATED] Use add_adjustments instead. The subscription's minimum amount for # - # @param price [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionTieredBPSPrice, Orb::Models::NewSubscriptionBPSPrice, Orb::Models::NewSubscriptionBulkBPSPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, nil] The definition of a new price to create and add to the subscription. + # @param price [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum, nil] The definition of a new price to create and add to the subscription. # # @param price_id [String, nil] The id of the price to add to the subscription. @@ -709,12 +1103,6 @@ module Price variant :tiered, -> { Orb::NewSubscriptionTieredPrice } - variant :tiered_bps, -> { Orb::NewSubscriptionTieredBPSPrice } - - variant :bps, -> { Orb::NewSubscriptionBPSPrice } - - variant :bulk_bps, -> { Orb::NewSubscriptionBulkBPSPrice } - variant :bulk, -> { Orb::NewSubscriptionBulkPrice } variant :threshold_total_amount, -> { Orb::NewSubscriptionThresholdTotalAmountPrice } @@ -758,8 +1146,408 @@ module Price variant :grouped_tiered, -> { Orb::NewSubscriptionGroupedTieredPrice } + variant :grouped_with_min_max_thresholds, + -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds } + + variant :minimum, -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum } + + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence] + required :cadence, + enum: -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence } + + # @!attribute grouped_with_min_max_thresholds_config + # + # @return [Hash{Symbol=>Object}] + required :grouped_with_min_max_thresholds_config, + Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String + + # @!attribute model_type + # + # @return [Symbol, :grouped_with_min_max_thresholds] + required :model_type, const: :grouped_with_min_max_thresholds + + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String + + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true + + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent124 + }, + nil?: true + + # @!attribute currency + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + # + # @return [String, nil] + optional :currency, String, nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, + -> { + Orb::NewDimensionalPriceConfiguration + }, + nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!attribute reference_id + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + # + # @return [String, nil] + optional :reference_id, String, nil?: true + + # @!method initialize(cadence:, grouped_with_min_max_thresholds_config:, item_id:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :grouped_with_min_max_thresholds) + # Some parameter documentations has been truncated, see + # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds} + # for more details. + # + # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence] The cadence to bill for this price on. + # + # @param grouped_with_min_max_thresholds_config [Hash{Symbol=>Object}] + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param name [String] The name of the price. + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments + # + # @param model_type [Symbol, :grouped_with_min_max_thresholds] + + # The cadence to bill for this price on. + # + # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + end + + class Minimum < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::Cadence] + required :cadence, + enum: -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::Cadence } + + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String + + # @!attribute minimum_config + # + # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::MinimumConfig] + required :minimum_config, + -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::MinimumConfig } + + # @!attribute model_type + # + # @return [Symbol, :minimum] + required :model_type, const: :minimum + + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String + + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true + + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::UnnamedTypeWithobjectParent125 + }, + nil?: true + + # @!attribute currency + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + # + # @return [String, nil] + optional :currency, String, nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, + -> { + Orb::NewDimensionalPriceConfiguration + }, + nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!attribute reference_id + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + # + # @return [String, nil] + optional :reference_id, String, nil?: true + + # @!method initialize(cadence:, item_id:, minimum_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :minimum) + # Some parameter documentations has been truncated, see + # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum} + # for more details. + # + # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::Cadence] The cadence to bill for this price on. + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param minimum_config [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::MinimumConfig] + # + # @param name [String] The name of the price. + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments + # + # @param model_type [Symbol, :minimum] + + # The cadence to bill for this price on. + # + # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + + # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum#minimum_config + class MinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute minimum_amount + # The minimum amount to apply + # + # @return [String] + required :minimum_amount, String + + # @!attribute prorated + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + # + # @return [Boolean, nil] + optional :prorated, Orb::Internal::Type::Boolean, nil?: true + + # @!method initialize(minimum_amount:, prorated: nil) + # Some parameter documentations has been truncated, see + # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::MinimumConfig} + # for more details. + # + # @param minimum_amount [String] The minimum amount to apply + # + # @param prorated [Boolean, nil] By default, subtotals from minimum composite prices are prorated based on the se + end + end + # @!method self.variants - # @return [Array(Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionTieredBPSPrice, Orb::Models::NewSubscriptionBPSPrice, Orb::Models::NewSubscriptionBulkBPSPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice)] + # @return [Array(Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum)] end end end diff --git a/lib/orb/models/tiered_bps_config.rb b/lib/orb/models/tiered_bps_config.rb deleted file mode 100644 index 46086138..00000000 --- a/lib/orb/models/tiered_bps_config.rb +++ /dev/null @@ -1,20 +0,0 @@ -# frozen_string_literal: true - -module Orb - module Models - class TieredBPSConfig < Orb::Internal::Type::BaseModel - # @!attribute tiers - # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified - # tiers - # - # @return [Array] - required :tiers, -> { Orb::Internal::Type::ArrayOf[Orb::BPSTier] } - - # @!method initialize(tiers:) - # Some parameter documentations has been truncated, see - # {Orb::Models::TieredBPSConfig} for more details. - # - # @param tiers [Array] Tiers for a Graduated BPS pricing model, where usage is bucketed into specified - end - end -end diff --git a/lib/orb/resources/alerts.rb b/lib/orb/resources/alerts.rb index d2536302..a8a2400e 100644 --- a/lib/orb/resources/alerts.rb +++ b/lib/orb/resources/alerts.rb @@ -54,7 +54,7 @@ def update(alert_configuration_id, params) # The request must specify one of `customer_id`, `external_customer_id`, or # `subscription_id`. # - # If querying by subscripion_id, the endpoint will return the subscription level + # If querying by subscription_id, the endpoint will return the subscription level # alerts as well as the plan level alerts associated with the subscription. # # The list of alerts is ordered starting from the most recently created alert. diff --git a/lib/orb/resources/customers.rb b/lib/orb/resources/customers.rb index 3a80be05..7ff3bd05 100644 --- a/lib/orb/resources/customers.rb +++ b/lib/orb/resources/customers.rb @@ -28,7 +28,7 @@ class Customers # - [Timezone localization](/essentials/timezones) can be configured on a # per-customer basis by setting the `timezone` parameter # - # @overload create(email:, name:, accounting_sync_configuration: nil, additional_emails: nil, auto_collection: nil, billing_address: nil, currency: nil, email_delivery: nil, external_customer_id: nil, hierarchy: nil, metadata: nil, payment_provider: nil, payment_provider_id: nil, reporting_configuration: nil, shipping_address: nil, tax_configuration: nil, tax_id: nil, timezone: nil, request_options: {}) + # @overload create(email:, name:, accounting_sync_configuration: nil, additional_emails: nil, auto_collection: nil, auto_issuance: nil, billing_address: nil, currency: nil, email_delivery: nil, external_customer_id: nil, hierarchy: nil, metadata: nil, payment_provider: nil, payment_provider_id: nil, reporting_configuration: nil, shipping_address: nil, tax_configuration: nil, tax_id: nil, timezone: nil, request_options: {}) # # @param email [String] A valid customer email, to be used for notifications. When Orb triggers payment # @@ -40,6 +40,8 @@ class Customers # # @param auto_collection [Boolean, nil] Used to determine if invoices for this customer will automatically attempt to ch # + # @param auto_issuance [Boolean, nil] Used to determine if invoices for this customer will be automatically issued. If + # # @param billing_address [Orb::Models::AddressInput, nil] # # @param currency [String, nil] An ISO 4217 currency string used for the customer's invoices and balance. If not @@ -91,7 +93,7 @@ def create(params) # `additional_emails` of an existing customer. Other fields on a customer are # currently immutable. # - # @overload update(customer_id, accounting_sync_configuration: nil, additional_emails: nil, auto_collection: nil, billing_address: nil, currency: nil, email: nil, email_delivery: nil, external_customer_id: nil, hierarchy: nil, metadata: nil, name: nil, payment_provider: nil, payment_provider_id: nil, reporting_configuration: nil, shipping_address: nil, tax_configuration: nil, tax_id: nil, request_options: {}) + # @overload update(customer_id, accounting_sync_configuration: nil, additional_emails: nil, auto_collection: nil, auto_issuance: nil, billing_address: nil, currency: nil, email: nil, email_delivery: nil, external_customer_id: nil, hierarchy: nil, metadata: nil, name: nil, payment_provider: nil, payment_provider_id: nil, reporting_configuration: nil, shipping_address: nil, tax_configuration: nil, tax_id: nil, request_options: {}) # # @param customer_id [String] # @@ -101,6 +103,8 @@ def create(params) # # @param auto_collection [Boolean, nil] Used to determine if invoices for this customer will automatically attempt to ch # + # @param auto_issuance [Boolean, nil] Used to determine if invoices for this customer will be automatically issued. If + # # @param billing_address [Orb::Models::AddressInput, nil] # # @param currency [String, nil] An ISO 4217 currency string used for the customer's invoices and balance. If not @@ -327,7 +331,7 @@ def sync_payment_methods_from_gateway_by_external_customer_id(external_customer_ # resource and semantics of this endpoint exactly mirror # [Update Customer](update-customer). # - # @overload update_by_external_id(id, accounting_sync_configuration: nil, additional_emails: nil, auto_collection: nil, billing_address: nil, currency: nil, email: nil, email_delivery: nil, external_customer_id: nil, hierarchy: nil, metadata: nil, name: nil, payment_provider: nil, payment_provider_id: nil, reporting_configuration: nil, shipping_address: nil, tax_configuration: nil, tax_id: nil, request_options: {}) + # @overload update_by_external_id(id, accounting_sync_configuration: nil, additional_emails: nil, auto_collection: nil, auto_issuance: nil, billing_address: nil, currency: nil, email: nil, email_delivery: nil, external_customer_id: nil, hierarchy: nil, metadata: nil, name: nil, payment_provider: nil, payment_provider_id: nil, reporting_configuration: nil, shipping_address: nil, tax_configuration: nil, tax_id: nil, request_options: {}) # # @param id [String] # @@ -337,6 +341,8 @@ def sync_payment_methods_from_gateway_by_external_customer_id(external_customer_ # # @param auto_collection [Boolean, nil] Used to determine if invoices for this customer will automatically attempt to ch # + # @param auto_issuance [Boolean, nil] Used to determine if invoices for this customer will be automatically issued. If + # # @param billing_address [Orb::Models::AddressInput, nil] # # @param currency [String, nil] An ISO 4217 currency string used for the customer's invoices and balance. If not diff --git a/lib/orb/resources/customers/credits/ledger.rb b/lib/orb/resources/customers/credits/ledger.rb index ac631fcd..0ff7d5b6 100644 --- a/lib/orb/resources/customers/credits/ledger.rb +++ b/lib/orb/resources/customers/credits/ledger.rb @@ -65,7 +65,7 @@ class Ledger # Note that for this entry type, `starting_balance` will equal `ending_balance`, # and the `amount` represents the balance transferred. The credit block linked to # the ledger entry is the source credit block from which there was an expiration - # change + # change. # # ## Credits expiry # @@ -514,7 +514,7 @@ def create_entry_by_external_id(external_customer_id, params) # Note that for this entry type, `starting_balance` will equal `ending_balance`, # and the `amount` represents the balance transferred. The credit block linked to # the ledger entry is the source credit block from which there was an expiration - # change + # change. # # ## Credits expiry # diff --git a/lib/orb/resources/dimensional_price_groups.rb b/lib/orb/resources/dimensional_price_groups.rb index 1c4b151b..c2741d78 100644 --- a/lib/orb/resources/dimensional_price_groups.rb +++ b/lib/orb/resources/dimensional_price_groups.rb @@ -10,7 +10,7 @@ class DimensionalPriceGroups # {Orb::Models::DimensionalPriceGroupCreateParams} for more details. # # A dimensional price group is used to partition the result of a billable metric - # by a set of dimensions. Prices in a price group must specify the parition used + # by a set of dimensions. Prices in a price group must specify the partition used # to derive their usage. # # For example, suppose we have a billable metric that measures the number of diff --git a/lib/orb/resources/events/backfills.rb b/lib/orb/resources/events/backfills.rb index 3e979fb7..98afe235 100644 --- a/lib/orb/resources/events/backfills.rb +++ b/lib/orb/resources/events/backfills.rb @@ -39,8 +39,8 @@ class Backfills # # When `replace_existing_events` is `true`, this indicates that existing events in # the timeframe should no longer be counted towards invoiced usage. In this - # scenario, the parameter `filter` can be optionally added which enables filtering - # using + # scenario, the parameter `deprecation_filter` can be optionally added which + # enables filtering using # [computed properties](/extensibility/advanced-metrics#computed-properties). The # expressiveness of computed properties allows you to deprecate existing events # based on both a period of time and specific property values. diff --git a/lib/orb/resources/invoices.rb b/lib/orb/resources/invoices.rb index 23664a8b..92425233 100644 --- a/lib/orb/resources/invoices.rb +++ b/lib/orb/resources/invoices.rb @@ -8,7 +8,7 @@ class Invoices # # This endpoint is used to create a one-off invoice for a customer. # - # @overload create(currency:, invoice_date:, line_items:, customer_id: nil, discount: nil, external_customer_id: nil, memo: nil, metadata: nil, net_terms: nil, will_auto_issue: nil, request_options: {}) + # @overload create(currency:, invoice_date:, line_items:, customer_id: nil, discount: nil, due_date: nil, external_customer_id: nil, memo: nil, metadata: nil, net_terms: nil, will_auto_issue: nil, request_options: {}) # # @param currency [String] An ISO 4217 currency string. Must be the same as the customer's currency if it i # @@ -20,13 +20,15 @@ class Invoices # # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] An optional discount to attach to the invoice. # + # @param due_date [Date, Time, nil] An optional custom due date for the invoice. If not set, the due date will be ca + # # @param external_customer_id [String, nil] The `external_customer_id` of the `Customer` to create this invoice for. One of # - # @param memo [String, nil] An optional memo to attach to the invoice. + # @param memo [String, nil] An optional memo to attach to the invoice. If no memo is provided, we will attac # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed # - # @param net_terms [Integer, nil] Determines the difference between the invoice issue date for subscription invoic + # @param net_terms [Integer, nil] The net terms determines the due date of the invoice. Due date is calculated bas # # @param will_auto_issue [Boolean] When true, this invoice will be submitted for issuance upon creation. When false # @@ -50,12 +52,16 @@ def create(params) # `metadata` can be modified regardless of invoice state. `net_terms` and # `due_date` can only be modified if the invoice is in a `draft` state. # - # @overload update(invoice_id, metadata: nil, request_options: {}) + # @overload update(invoice_id, due_date: nil, metadata: nil, net_terms: nil, request_options: {}) # # @param invoice_id [String] # + # @param due_date [Date, Time, nil] An optional custom due date for the invoice. If not set, the due date will be ca + # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed # + # @param net_terms [Integer, nil] The net terms determines the due date of the invoice. Due date is calculated bas + # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # # @return [Orb::Models::Invoice] @@ -230,8 +236,8 @@ def issue(invoice_id, params = {}) ) end - # This endpoint allows an invoice's status to be set the `paid` status. This can - # only be done to invoices that are in the `issued` status. + # This endpoint allows an invoice's status to be set to the `paid` status. This + # can only be done to invoices that are in the `issued` or `synced` status. # # @overload mark_paid(invoice_id, payment_received_date:, external_id: nil, notes: nil, request_options: {}) # @@ -279,8 +285,8 @@ def pay(invoice_id, params = {}) ) end - # This endpoint allows an invoice's status to be set the `void` status. This can - # only be done to invoices that are in the `issued` status. + # This endpoint allows an invoice's status to be set to the `void` status. This + # can only be done to invoices that are in the `issued` status. # # If the associated invoice has used the customer balance to change the amount # due, the customer balance operation will be reverted. For example, if the diff --git a/lib/orb/resources/prices.rb b/lib/orb/resources/prices.rb index f3f4b836..f19dd4ee 100644 --- a/lib/orb/resources/prices.rb +++ b/lib/orb/resources/prices.rb @@ -20,7 +20,7 @@ class Prices # See the [Price resource](/product-catalog/price-configuration) for the # specification of different price model configurations possible in this endpoint. # - # @overload create(cadence:, currency:, item_id:, model_type:, name:, unit_config:, package_config:, matrix_config:, matrix_with_allocation_config:, tiered_config:, tiered_bps_config:, bps_config:, bulk_bps_config:, bulk_config:, threshold_total_amount_config:, tiered_package_config:, grouped_tiered_config:, max_group_tiered_package_config:, tiered_with_minimum_config:, package_with_allocation_config:, tiered_package_with_minimum_config:, unit_with_percent_config:, tiered_with_proration_config:, unit_with_proration_config:, grouped_allocation_config:, grouped_with_prorated_minimum_config:, grouped_with_metered_minimum_config:, matrix_with_display_name_config:, bulk_with_proration_config:, grouped_tiered_package_config:, scalable_matrix_with_unit_pricing_config:, scalable_matrix_with_tiered_pricing_config:, cumulative_grouped_bulk_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, request_options: {}) + # @overload create(cadence:, currency:, item_id:, model_type:, name:, unit_config:, package_config:, matrix_config:, matrix_with_allocation_config:, tiered_config:, bulk_config:, threshold_total_amount_config:, tiered_package_config:, grouped_tiered_config:, max_group_tiered_package_config:, tiered_with_minimum_config:, package_with_allocation_config:, tiered_package_with_minimum_config:, unit_with_percent_config:, tiered_with_proration_config:, unit_with_proration_config:, grouped_allocation_config:, grouped_with_prorated_minimum_config:, grouped_with_metered_minimum_config:, matrix_with_display_name_config:, bulk_with_proration_config:, grouped_tiered_package_config:, scalable_matrix_with_unit_pricing_config:, scalable_matrix_with_tiered_pricing_config:, cumulative_grouped_bulk_config:, grouped_with_min_max_thresholds_config:, minimum_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, request_options: {}) # # @param cadence [Symbol, Orb::Models::PriceCreateParams::Cadence] The cadence to bill for this price on. # @@ -42,12 +42,6 @@ class Prices # # @param tiered_config [Orb::Models::TieredConfig] # - # @param tiered_bps_config [Orb::Models::TieredBPSConfig] - # - # @param bps_config [Orb::Models::BPSConfig] - # - # @param bulk_bps_config [Orb::Models::BulkBPSConfig] - # # @param bulk_config [Orb::Models::BulkConfig] # # @param threshold_total_amount_config [Hash{Symbol=>Object}] @@ -88,6 +82,10 @@ class Prices # # @param cumulative_grouped_bulk_config [Hash{Symbol=>Object}] # + # @param grouped_with_min_max_thresholds_config [Hash{Symbol=>Object}] + # + # @param minimum_config [Orb::Models::PriceCreateParams::MinimumConfig] + # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi @@ -112,7 +110,7 @@ class Prices # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBPS, Orb::Models::Price::BPS, Orb::Models::Price::BulkBPS, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds] + # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::Minimum] # # @see Orb::Models::PriceCreateParams def create(params) @@ -135,7 +133,7 @@ def create(params) # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBPS, Orb::Models::Price::BPS, Orb::Models::Price::BulkBPS, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds] + # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::Minimum] # # @see Orb::Models::PriceUpdateParams def update(price_id, params = {}) @@ -163,7 +161,7 @@ def update(price_id, params = {}) # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Internal::Page] + # @return [Orb::Internal::Page] # # @see Orb::Models::PriceListParams def list(params = {}) @@ -353,7 +351,7 @@ def evaluate_preview_events(params) # @param price_id [String] # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBPS, Orb::Models::Price::BPS, Orb::Models::Price::BulkBPS, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds] + # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::Minimum] # # @see Orb::Models::PriceFetchParams def fetch(price_id, params = {}) diff --git a/lib/orb/resources/prices/external_price_id.rb b/lib/orb/resources/prices/external_price_id.rb index 12369843..58a64dd5 100644 --- a/lib/orb/resources/prices/external_price_id.rb +++ b/lib/orb/resources/prices/external_price_id.rb @@ -19,7 +19,7 @@ class ExternalPriceID # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBPS, Orb::Models::Price::BPS, Orb::Models::Price::BulkBPS, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds] + # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::Minimum] # # @see Orb::Models::Prices::ExternalPriceIDUpdateParams def update(external_price_id, params = {}) @@ -42,7 +42,7 @@ def update(external_price_id, params = {}) # @param external_price_id [String] # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::TieredBPS, Orb::Models::Price::BPS, Orb::Models::Price::BulkBPS, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds] + # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::Minimum] # # @see Orb::Models::Prices::ExternalPriceIDFetchParams def fetch(external_price_id, params = {}) diff --git a/lib/orb/resources/subscriptions.rb b/lib/orb/resources/subscriptions.rb index c2783e92..b7ae55a9 100644 --- a/lib/orb/resources/subscriptions.rb +++ b/lib/orb/resources/subscriptions.rb @@ -1023,7 +1023,7 @@ def redeem_coupon(subscription_id, params) # This endpoint can be used to change an existing subscription's plan. It returns # the serialized updated subscription object. # - # The body parameter `change_option` determines when the plan change occurrs. Orb + # The body parameter `change_option` determines when the plan change occurs. Orb # supports three options: # # - `end_of_subscription_term`: changes the plan at the end of the existing plan's diff --git a/rbi/orb/models.rbi b/rbi/orb/models.rbi index 0787925b..e365456d 100644 --- a/rbi/orb/models.rbi +++ b/rbi/orb/models.rbi @@ -55,14 +55,6 @@ module Orb BillingCycleRelativeDate = Orb::Models::BillingCycleRelativeDate - BPSConfig = Orb::Models::BPSConfig - - BPSTier = Orb::Models::BPSTier - - BulkBPSConfig = Orb::Models::BulkBPSConfig - - BulkBPSTier = Orb::Models::BulkBPSTier - BulkConfig = Orb::Models::BulkConfig BulkTier = Orb::Models::BulkTier @@ -262,10 +254,6 @@ module Orb NewDimensionalPriceConfiguration = Orb::Models::NewDimensionalPriceConfiguration - NewFloatingBPSPrice = Orb::Models::NewFloatingBPSPrice - - NewFloatingBulkBPSPrice = Orb::Models::NewFloatingBulkBPSPrice - NewFloatingBulkPrice = Orb::Models::NewFloatingBulkPrice NewFloatingBulkWithProrationPrice = @@ -313,8 +301,6 @@ module Orb NewFloatingThresholdTotalAmountPrice = Orb::Models::NewFloatingThresholdTotalAmountPrice - NewFloatingTieredBPSPrice = Orb::Models::NewFloatingTieredBPSPrice - NewFloatingTieredPackagePrice = Orb::Models::NewFloatingTieredPackagePrice NewFloatingTieredPackageWithMinimumPrice = @@ -341,10 +327,6 @@ module Orb NewPercentageDiscount = Orb::Models::NewPercentageDiscount - NewPlanBPSPrice = Orb::Models::NewPlanBPSPrice - - NewPlanBulkBPSPrice = Orb::Models::NewPlanBulkBPSPrice - NewPlanBulkPrice = Orb::Models::NewPlanBulkPrice NewPlanBulkWithProrationPrice = Orb::Models::NewPlanBulkWithProrationPrice @@ -390,8 +372,6 @@ module Orb NewPlanThresholdTotalAmountPrice = Orb::Models::NewPlanThresholdTotalAmountPrice - NewPlanTieredBPSPrice = Orb::Models::NewPlanTieredBPSPrice - NewPlanTieredPackagePrice = Orb::Models::NewPlanTieredPackagePrice NewPlanTieredPackageWithMinimumPrice = @@ -413,10 +393,6 @@ module Orb NewSphereConfiguration = Orb::Models::NewSphereConfiguration - NewSubscriptionBPSPrice = Orb::Models::NewSubscriptionBPSPrice - - NewSubscriptionBulkBPSPrice = Orb::Models::NewSubscriptionBulkBPSPrice - NewSubscriptionBulkPrice = Orb::Models::NewSubscriptionBulkPrice NewSubscriptionBulkWithProrationPrice = @@ -465,8 +441,6 @@ module Orb NewSubscriptionThresholdTotalAmountPrice = Orb::Models::NewSubscriptionThresholdTotalAmountPrice - NewSubscriptionTieredBPSPrice = Orb::Models::NewSubscriptionTieredBPSPrice - NewSubscriptionTieredPackagePrice = Orb::Models::NewSubscriptionTieredPackagePrice @@ -626,8 +600,6 @@ module Orb TierConfig = Orb::Models::TierConfig - TieredBPSConfig = Orb::Models::TieredBPSConfig - TieredConfig = Orb::Models::TieredConfig TieredConversionRateConfig = Orb::Models::TieredConversionRateConfig diff --git a/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi b/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi index 15768c4b..ebb0a301 100644 --- a/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi +++ b/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi @@ -333,9 +333,6 @@ module Orb Orb::NewPlanPackagePrice, Orb::NewPlanMatrixPrice, Orb::NewPlanTieredPrice, - Orb::NewPlanTieredBPSPrice, - Orb::NewPlanBPSPrice, - Orb::NewPlanBulkBPSPrice, Orb::NewPlanBulkPrice, Orb::NewPlanThresholdTotalAmountPrice, Orb::NewPlanTieredPackagePrice, @@ -347,6 +344,7 @@ module Orb Orb::NewPlanGroupedAllocationPrice, Orb::NewPlanGroupedWithProratedMinimumPrice, Orb::NewPlanGroupedWithMeteredMinimumPrice, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::NewPlanMatrixWithDisplayNamePrice, Orb::NewPlanBulkWithProrationPrice, Orb::NewPlanGroupedTieredPackagePrice, @@ -356,7 +354,8 @@ module Orb Orb::NewPlanCumulativeGroupedBulkPrice, Orb::NewPlanTieredPackageWithMinimumPrice, Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice + Orb::NewPlanGroupedTieredPrice, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum ) ) ) @@ -374,9 +373,6 @@ module Orb Orb::NewPlanPackagePrice::OrHash, Orb::NewPlanMatrixPrice::OrHash, Orb::NewPlanTieredPrice::OrHash, - Orb::NewPlanTieredBPSPrice::OrHash, - Orb::NewPlanBPSPrice::OrHash, - Orb::NewPlanBulkBPSPrice::OrHash, Orb::NewPlanBulkPrice::OrHash, Orb::NewPlanThresholdTotalAmountPrice::OrHash, Orb::NewPlanTieredPackagePrice::OrHash, @@ -388,6 +384,7 @@ module Orb Orb::NewPlanGroupedAllocationPrice::OrHash, Orb::NewPlanGroupedWithProratedMinimumPrice::OrHash, Orb::NewPlanGroupedWithMeteredMinimumPrice::OrHash, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::OrHash, Orb::NewPlanMatrixWithDisplayNamePrice::OrHash, Orb::NewPlanBulkWithProrationPrice::OrHash, Orb::NewPlanGroupedTieredPackagePrice::OrHash, @@ -397,7 +394,8 @@ module Orb Orb::NewPlanCumulativeGroupedBulkPrice::OrHash, Orb::NewPlanTieredPackageWithMinimumPrice::OrHash, Orb::NewPlanMatrixWithAllocationPrice::OrHash, - Orb::NewPlanGroupedTieredPrice::OrHash + Orb::NewPlanGroupedTieredPrice::OrHash, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::OrHash ) ) ).returns(T.attached_class) @@ -424,9 +422,6 @@ module Orb Orb::NewPlanPackagePrice, Orb::NewPlanMatrixPrice, Orb::NewPlanTieredPrice, - Orb::NewPlanTieredBPSPrice, - Orb::NewPlanBPSPrice, - Orb::NewPlanBulkBPSPrice, Orb::NewPlanBulkPrice, Orb::NewPlanThresholdTotalAmountPrice, Orb::NewPlanTieredPackagePrice, @@ -438,6 +433,7 @@ module Orb Orb::NewPlanGroupedAllocationPrice, Orb::NewPlanGroupedWithProratedMinimumPrice, Orb::NewPlanGroupedWithMeteredMinimumPrice, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::NewPlanMatrixWithDisplayNamePrice, Orb::NewPlanBulkWithProrationPrice, Orb::NewPlanGroupedTieredPackagePrice, @@ -447,7 +443,8 @@ module Orb Orb::NewPlanCumulativeGroupedBulkPrice, Orb::NewPlanTieredPackageWithMinimumPrice, Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice + Orb::NewPlanGroupedTieredPrice, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum ) ) } @@ -467,9 +464,6 @@ module Orb Orb::NewPlanPackagePrice, Orb::NewPlanMatrixPrice, Orb::NewPlanTieredPrice, - Orb::NewPlanTieredBPSPrice, - Orb::NewPlanBPSPrice, - Orb::NewPlanBulkBPSPrice, Orb::NewPlanBulkPrice, Orb::NewPlanThresholdTotalAmountPrice, Orb::NewPlanTieredPackagePrice, @@ -481,6 +475,7 @@ module Orb Orb::NewPlanGroupedAllocationPrice, Orb::NewPlanGroupedWithProratedMinimumPrice, Orb::NewPlanGroupedWithMeteredMinimumPrice, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::NewPlanMatrixWithDisplayNamePrice, Orb::NewPlanBulkWithProrationPrice, Orb::NewPlanGroupedTieredPackagePrice, @@ -490,10 +485,663 @@ module Orb Orb::NewPlanCumulativeGroupedBulkPrice, Orb::NewPlanTieredPackageWithMinimumPrice, Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice + Orb::NewPlanGroupedTieredPrice, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum ) end + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, + Orb::Internal::AnyHash + ) + end + + # The cadence to bill for this price on. + sig do + returns( + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol + ) + end + attr_accessor :cadence + + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :grouped_with_min_max_thresholds_config + + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id + + sig { returns(Symbol) } + attr_accessor :model_type + + # The name of the price. + sig { returns(String) } + attr_accessor :name + + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id + + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance + + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration + + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) + ) + end + attr_accessor :conversion_rate_config + + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + sig { returns(T.nilable(String)) } + attr_accessor :currency + + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration + + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + sig { returns(T.nilable(String)) } + attr_accessor :reference_id + + sig do + params( + cadence: + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + grouped_with_min_max_thresholds_config: + T::Hash[Symbol, T.anything], + item_id: String, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String), + model_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + grouped_with_min_max_thresholds_config:, + # The id of the item the price will be associated with. + item_id:, + # The name of the price. + name:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + currency: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + reference_id: nil, + model_type: :grouped_with_min_max_thresholds + ) + end + + sig do + override.returns( + { + cadence: + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + grouped_with_min_max_thresholds_config: + T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Minimum < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum, + Orb::Internal::AnyHash + ) + end + + # The cadence to bill for this price on. + sig do + returns( + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::OrSymbol + ) + end + attr_accessor :cadence + + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id + + sig do + returns( + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig + ) + end + attr_reader :minimum_config + + sig do + params( + minimum_config: + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig::OrHash + ).void + end + attr_writer :minimum_config + + sig { returns(Symbol) } + attr_accessor :model_type + + # The name of the price. + sig { returns(String) } + attr_accessor :name + + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id + + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance + + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration + + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) + ) + end + attr_accessor :conversion_rate_config + + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + sig { returns(T.nilable(String)) } + attr_accessor :currency + + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration + + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + sig { returns(T.nilable(String)) } + attr_accessor :reference_id + + sig do + params( + cadence: + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::OrSymbol, + item_id: String, + minimum_config: + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig::OrHash, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String), + model_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + # The id of the item the price will be associated with. + item_id:, + minimum_config:, + # The name of the price. + name:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + currency: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + reference_id: nil, + model_type: :minimum + ) + end + + sig do + override.returns( + { + cadence: + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::OrSymbol, + item_id: String, + minimum_config: + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end + + class MinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig, + Orb::Internal::AnyHash + ) + end + + # The minimum amount to apply + sig { returns(String) } + attr_accessor :minimum_amount + + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :prorated + + sig do + params( + minimum_amount: String, + prorated: T.nilable(T::Boolean) + ).returns(T.attached_class) + end + def self.new( + # The minimum amount to apply + minimum_amount:, + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + prorated: nil + ) + end + + sig do + override.returns( + { minimum_amount: String, prorated: T.nilable(T::Boolean) } + ) + end + def to_hash + end + end + end + sig do override.returns( T::Array[ @@ -724,9 +1372,6 @@ module Orb Orb::NewPlanPackagePrice, Orb::NewPlanMatrixPrice, Orb::NewPlanTieredPrice, - Orb::NewPlanTieredBPSPrice, - Orb::NewPlanBPSPrice, - Orb::NewPlanBulkBPSPrice, Orb::NewPlanBulkPrice, Orb::NewPlanThresholdTotalAmountPrice, Orb::NewPlanTieredPackagePrice, @@ -738,6 +1383,7 @@ module Orb Orb::NewPlanGroupedAllocationPrice, Orb::NewPlanGroupedWithProratedMinimumPrice, Orb::NewPlanGroupedWithMeteredMinimumPrice, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::NewPlanMatrixWithDisplayNamePrice, Orb::NewPlanBulkWithProrationPrice, Orb::NewPlanGroupedTieredPackagePrice, @@ -747,7 +1393,8 @@ module Orb Orb::NewPlanCumulativeGroupedBulkPrice, Orb::NewPlanTieredPackageWithMinimumPrice, Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice + Orb::NewPlanGroupedTieredPrice, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum ) ) ) @@ -766,9 +1413,6 @@ module Orb Orb::NewPlanPackagePrice::OrHash, Orb::NewPlanMatrixPrice::OrHash, Orb::NewPlanTieredPrice::OrHash, - Orb::NewPlanTieredBPSPrice::OrHash, - Orb::NewPlanBPSPrice::OrHash, - Orb::NewPlanBulkBPSPrice::OrHash, Orb::NewPlanBulkPrice::OrHash, Orb::NewPlanThresholdTotalAmountPrice::OrHash, Orb::NewPlanTieredPackagePrice::OrHash, @@ -780,6 +1424,7 @@ module Orb Orb::NewPlanGroupedAllocationPrice::OrHash, Orb::NewPlanGroupedWithProratedMinimumPrice::OrHash, Orb::NewPlanGroupedWithMeteredMinimumPrice::OrHash, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::OrHash, Orb::NewPlanMatrixWithDisplayNamePrice::OrHash, Orb::NewPlanBulkWithProrationPrice::OrHash, Orb::NewPlanGroupedTieredPackagePrice::OrHash, @@ -789,7 +1434,8 @@ module Orb Orb::NewPlanCumulativeGroupedBulkPrice::OrHash, Orb::NewPlanTieredPackageWithMinimumPrice::OrHash, Orb::NewPlanMatrixWithAllocationPrice::OrHash, - Orb::NewPlanGroupedTieredPrice::OrHash + Orb::NewPlanGroupedTieredPrice::OrHash, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::OrHash ) ) ).returns(T.attached_class) @@ -819,9 +1465,6 @@ module Orb Orb::NewPlanPackagePrice, Orb::NewPlanMatrixPrice, Orb::NewPlanTieredPrice, - Orb::NewPlanTieredBPSPrice, - Orb::NewPlanBPSPrice, - Orb::NewPlanBulkBPSPrice, Orb::NewPlanBulkPrice, Orb::NewPlanThresholdTotalAmountPrice, Orb::NewPlanTieredPackagePrice, @@ -833,6 +1476,7 @@ module Orb Orb::NewPlanGroupedAllocationPrice, Orb::NewPlanGroupedWithProratedMinimumPrice, Orb::NewPlanGroupedWithMeteredMinimumPrice, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::NewPlanMatrixWithDisplayNamePrice, Orb::NewPlanBulkWithProrationPrice, Orb::NewPlanGroupedTieredPackagePrice, @@ -842,7 +1486,8 @@ module Orb Orb::NewPlanCumulativeGroupedBulkPrice, Orb::NewPlanTieredPackageWithMinimumPrice, Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice + Orb::NewPlanGroupedTieredPrice, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum ) ) } @@ -862,9 +1507,6 @@ module Orb Orb::NewPlanPackagePrice, Orb::NewPlanMatrixPrice, Orb::NewPlanTieredPrice, - Orb::NewPlanTieredBPSPrice, - Orb::NewPlanBPSPrice, - Orb::NewPlanBulkBPSPrice, Orb::NewPlanBulkPrice, Orb::NewPlanThresholdTotalAmountPrice, Orb::NewPlanTieredPackagePrice, @@ -876,6 +1518,7 @@ module Orb Orb::NewPlanGroupedAllocationPrice, Orb::NewPlanGroupedWithProratedMinimumPrice, Orb::NewPlanGroupedWithMeteredMinimumPrice, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::NewPlanMatrixWithDisplayNamePrice, Orb::NewPlanBulkWithProrationPrice, Orb::NewPlanGroupedTieredPackagePrice, @@ -885,10 +1528,663 @@ module Orb Orb::NewPlanCumulativeGroupedBulkPrice, Orb::NewPlanTieredPackageWithMinimumPrice, Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice + Orb::NewPlanGroupedTieredPrice, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum ) end + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, + Orb::Internal::AnyHash + ) + end + + # The cadence to bill for this price on. + sig do + returns( + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol + ) + end + attr_accessor :cadence + + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :grouped_with_min_max_thresholds_config + + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id + + sig { returns(Symbol) } + attr_accessor :model_type + + # The name of the price. + sig { returns(String) } + attr_accessor :name + + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id + + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance + + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration + + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) + ) + end + attr_accessor :conversion_rate_config + + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + sig { returns(T.nilable(String)) } + attr_accessor :currency + + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration + + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + sig { returns(T.nilable(String)) } + attr_accessor :reference_id + + sig do + params( + cadence: + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + grouped_with_min_max_thresholds_config: + T::Hash[Symbol, T.anything], + item_id: String, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String), + model_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + grouped_with_min_max_thresholds_config:, + # The id of the item the price will be associated with. + item_id:, + # The name of the price. + name:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + currency: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + reference_id: nil, + model_type: :grouped_with_min_max_thresholds + ) + end + + sig do + override.returns( + { + cadence: + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + grouped_with_min_max_thresholds_config: + T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Minimum < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum, + Orb::Internal::AnyHash + ) + end + + # The cadence to bill for this price on. + sig do + returns( + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::OrSymbol + ) + end + attr_accessor :cadence + + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id + + sig do + returns( + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig + ) + end + attr_reader :minimum_config + + sig do + params( + minimum_config: + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig::OrHash + ).void + end + attr_writer :minimum_config + + sig { returns(Symbol) } + attr_accessor :model_type + + # The name of the price. + sig { returns(String) } + attr_accessor :name + + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id + + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance + + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration + + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) + ) + end + attr_accessor :conversion_rate_config + + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + sig { returns(T.nilable(String)) } + attr_accessor :currency + + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration + + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + sig { returns(T.nilable(String)) } + attr_accessor :reference_id + + sig do + params( + cadence: + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::OrSymbol, + item_id: String, + minimum_config: + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig::OrHash, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String), + model_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + # The id of the item the price will be associated with. + item_id:, + minimum_config:, + # The name of the price. + name:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + currency: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + reference_id: nil, + model_type: :minimum + ) + end + + sig do + override.returns( + { + cadence: + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::OrSymbol, + item_id: String, + minimum_config: + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end + + class MinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig, + Orb::Internal::AnyHash + ) + end + + # The minimum amount to apply + sig { returns(String) } + attr_accessor :minimum_amount + + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :prorated + + sig do + params( + minimum_amount: String, + prorated: T.nilable(T::Boolean) + ).returns(T.attached_class) + end + def self.new( + # The minimum amount to apply + minimum_amount:, + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + prorated: nil + ) + end + + sig do + override.returns( + { minimum_amount: String, prorated: T.nilable(T::Boolean) } + ) + end + def to_hash + end + end + end + sig do override.returns( T::Array[ diff --git a/rbi/orb/models/beta_create_plan_version_params.rbi b/rbi/orb/models/beta_create_plan_version_params.rbi index 884982ef..3af94aca 100644 --- a/rbi/orb/models/beta_create_plan_version_params.rbi +++ b/rbi/orb/models/beta_create_plan_version_params.rbi @@ -285,9 +285,6 @@ module Orb Orb::NewPlanPackagePrice, Orb::NewPlanMatrixPrice, Orb::NewPlanTieredPrice, - Orb::NewPlanTieredBPSPrice, - Orb::NewPlanBPSPrice, - Orb::NewPlanBulkBPSPrice, Orb::NewPlanBulkPrice, Orb::NewPlanThresholdTotalAmountPrice, Orb::NewPlanTieredPackagePrice, @@ -299,6 +296,7 @@ module Orb Orb::NewPlanGroupedAllocationPrice, Orb::NewPlanGroupedWithProratedMinimumPrice, Orb::NewPlanGroupedWithMeteredMinimumPrice, + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::NewPlanMatrixWithDisplayNamePrice, Orb::NewPlanBulkWithProrationPrice, Orb::NewPlanGroupedTieredPackagePrice, @@ -308,7 +306,8 @@ module Orb Orb::NewPlanCumulativeGroupedBulkPrice, Orb::NewPlanTieredPackageWithMinimumPrice, Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice + Orb::NewPlanGroupedTieredPrice, + Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum ) ) ) @@ -326,9 +325,6 @@ module Orb Orb::NewPlanPackagePrice::OrHash, Orb::NewPlanMatrixPrice::OrHash, Orb::NewPlanTieredPrice::OrHash, - Orb::NewPlanTieredBPSPrice::OrHash, - Orb::NewPlanBPSPrice::OrHash, - Orb::NewPlanBulkBPSPrice::OrHash, Orb::NewPlanBulkPrice::OrHash, Orb::NewPlanThresholdTotalAmountPrice::OrHash, Orb::NewPlanTieredPackagePrice::OrHash, @@ -340,6 +336,7 @@ module Orb Orb::NewPlanGroupedAllocationPrice::OrHash, Orb::NewPlanGroupedWithProratedMinimumPrice::OrHash, Orb::NewPlanGroupedWithMeteredMinimumPrice::OrHash, + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::OrHash, Orb::NewPlanMatrixWithDisplayNamePrice::OrHash, Orb::NewPlanBulkWithProrationPrice::OrHash, Orb::NewPlanGroupedTieredPackagePrice::OrHash, @@ -349,7 +346,8 @@ module Orb Orb::NewPlanCumulativeGroupedBulkPrice::OrHash, Orb::NewPlanTieredPackageWithMinimumPrice::OrHash, Orb::NewPlanMatrixWithAllocationPrice::OrHash, - Orb::NewPlanGroupedTieredPrice::OrHash + Orb::NewPlanGroupedTieredPrice::OrHash, + Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::OrHash ) ) ).returns(T.attached_class) @@ -376,9 +374,6 @@ module Orb Orb::NewPlanPackagePrice, Orb::NewPlanMatrixPrice, Orb::NewPlanTieredPrice, - Orb::NewPlanTieredBPSPrice, - Orb::NewPlanBPSPrice, - Orb::NewPlanBulkBPSPrice, Orb::NewPlanBulkPrice, Orb::NewPlanThresholdTotalAmountPrice, Orb::NewPlanTieredPackagePrice, @@ -390,6 +385,7 @@ module Orb Orb::NewPlanGroupedAllocationPrice, Orb::NewPlanGroupedWithProratedMinimumPrice, Orb::NewPlanGroupedWithMeteredMinimumPrice, + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::NewPlanMatrixWithDisplayNamePrice, Orb::NewPlanBulkWithProrationPrice, Orb::NewPlanGroupedTieredPackagePrice, @@ -399,7 +395,8 @@ module Orb Orb::NewPlanCumulativeGroupedBulkPrice, Orb::NewPlanTieredPackageWithMinimumPrice, Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice + Orb::NewPlanGroupedTieredPrice, + Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum ) ) } @@ -419,9 +416,6 @@ module Orb Orb::NewPlanPackagePrice, Orb::NewPlanMatrixPrice, Orb::NewPlanTieredPrice, - Orb::NewPlanTieredBPSPrice, - Orb::NewPlanBPSPrice, - Orb::NewPlanBulkBPSPrice, Orb::NewPlanBulkPrice, Orb::NewPlanThresholdTotalAmountPrice, Orb::NewPlanTieredPackagePrice, @@ -433,6 +427,7 @@ module Orb Orb::NewPlanGroupedAllocationPrice, Orb::NewPlanGroupedWithProratedMinimumPrice, Orb::NewPlanGroupedWithMeteredMinimumPrice, + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::NewPlanMatrixWithDisplayNamePrice, Orb::NewPlanBulkWithProrationPrice, Orb::NewPlanGroupedTieredPackagePrice, @@ -442,10 +437,663 @@ module Orb Orb::NewPlanCumulativeGroupedBulkPrice, Orb::NewPlanTieredPackageWithMinimumPrice, Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice + Orb::NewPlanGroupedTieredPrice, + Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum ) end + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, + Orb::Internal::AnyHash + ) + end + + # The cadence to bill for this price on. + sig do + returns( + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol + ) + end + attr_accessor :cadence + + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :grouped_with_min_max_thresholds_config + + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id + + sig { returns(Symbol) } + attr_accessor :model_type + + # The name of the price. + sig { returns(String) } + attr_accessor :name + + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id + + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance + + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration + + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) + ) + end + attr_accessor :conversion_rate_config + + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + sig { returns(T.nilable(String)) } + attr_accessor :currency + + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration + + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + sig { returns(T.nilable(String)) } + attr_accessor :reference_id + + sig do + params( + cadence: + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + grouped_with_min_max_thresholds_config: + T::Hash[Symbol, T.anything], + item_id: String, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String), + model_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + grouped_with_min_max_thresholds_config:, + # The id of the item the price will be associated with. + item_id:, + # The name of the price. + name:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + currency: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + reference_id: nil, + model_type: :grouped_with_min_max_thresholds + ) + end + + sig do + override.returns( + { + cadence: + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + grouped_with_min_max_thresholds_config: + T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Minimum < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum, + Orb::Internal::AnyHash + ) + end + + # The cadence to bill for this price on. + sig do + returns( + Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::OrSymbol + ) + end + attr_accessor :cadence + + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id + + sig do + returns( + Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig + ) + end + attr_reader :minimum_config + + sig do + params( + minimum_config: + Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig::OrHash + ).void + end + attr_writer :minimum_config + + sig { returns(Symbol) } + attr_accessor :model_type + + # The name of the price. + sig { returns(String) } + attr_accessor :name + + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id + + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance + + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration + + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) + ) + end + attr_accessor :conversion_rate_config + + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + sig { returns(T.nilable(String)) } + attr_accessor :currency + + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration + + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + sig { returns(T.nilable(String)) } + attr_accessor :reference_id + + sig do + params( + cadence: + Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::OrSymbol, + item_id: String, + minimum_config: + Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig::OrHash, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String), + model_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + # The id of the item the price will be associated with. + item_id:, + minimum_config:, + # The name of the price. + name:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + currency: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + reference_id: nil, + model_type: :minimum + ) + end + + sig do + override.returns( + { + cadence: + Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::OrSymbol, + item_id: String, + minimum_config: + Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end + + class MinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig, + Orb::Internal::AnyHash + ) + end + + # The minimum amount to apply + sig { returns(String) } + attr_accessor :minimum_amount + + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :prorated + + sig do + params( + minimum_amount: String, + prorated: T.nilable(T::Boolean) + ).returns(T.attached_class) + end + def self.new( + # The minimum amount to apply + minimum_amount:, + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + prorated: nil + ) + end + + sig do + override.returns( + { minimum_amount: String, prorated: T.nilable(T::Boolean) } + ) + end + def to_hash + end + end + end + sig do override.returns( T::Array[ @@ -676,9 +1324,6 @@ module Orb Orb::NewPlanPackagePrice, Orb::NewPlanMatrixPrice, Orb::NewPlanTieredPrice, - Orb::NewPlanTieredBPSPrice, - Orb::NewPlanBPSPrice, - Orb::NewPlanBulkBPSPrice, Orb::NewPlanBulkPrice, Orb::NewPlanThresholdTotalAmountPrice, Orb::NewPlanTieredPackagePrice, @@ -690,6 +1335,7 @@ module Orb Orb::NewPlanGroupedAllocationPrice, Orb::NewPlanGroupedWithProratedMinimumPrice, Orb::NewPlanGroupedWithMeteredMinimumPrice, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::NewPlanMatrixWithDisplayNamePrice, Orb::NewPlanBulkWithProrationPrice, Orb::NewPlanGroupedTieredPackagePrice, @@ -699,7 +1345,8 @@ module Orb Orb::NewPlanCumulativeGroupedBulkPrice, Orb::NewPlanTieredPackageWithMinimumPrice, Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice + Orb::NewPlanGroupedTieredPrice, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum ) ) ) @@ -718,9 +1365,6 @@ module Orb Orb::NewPlanPackagePrice::OrHash, Orb::NewPlanMatrixPrice::OrHash, Orb::NewPlanTieredPrice::OrHash, - Orb::NewPlanTieredBPSPrice::OrHash, - Orb::NewPlanBPSPrice::OrHash, - Orb::NewPlanBulkBPSPrice::OrHash, Orb::NewPlanBulkPrice::OrHash, Orb::NewPlanThresholdTotalAmountPrice::OrHash, Orb::NewPlanTieredPackagePrice::OrHash, @@ -732,6 +1376,7 @@ module Orb Orb::NewPlanGroupedAllocationPrice::OrHash, Orb::NewPlanGroupedWithProratedMinimumPrice::OrHash, Orb::NewPlanGroupedWithMeteredMinimumPrice::OrHash, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::OrHash, Orb::NewPlanMatrixWithDisplayNamePrice::OrHash, Orb::NewPlanBulkWithProrationPrice::OrHash, Orb::NewPlanGroupedTieredPackagePrice::OrHash, @@ -741,7 +1386,8 @@ module Orb Orb::NewPlanCumulativeGroupedBulkPrice::OrHash, Orb::NewPlanTieredPackageWithMinimumPrice::OrHash, Orb::NewPlanMatrixWithAllocationPrice::OrHash, - Orb::NewPlanGroupedTieredPrice::OrHash + Orb::NewPlanGroupedTieredPrice::OrHash, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::OrHash ) ) ).returns(T.attached_class) @@ -771,9 +1417,6 @@ module Orb Orb::NewPlanPackagePrice, Orb::NewPlanMatrixPrice, Orb::NewPlanTieredPrice, - Orb::NewPlanTieredBPSPrice, - Orb::NewPlanBPSPrice, - Orb::NewPlanBulkBPSPrice, Orb::NewPlanBulkPrice, Orb::NewPlanThresholdTotalAmountPrice, Orb::NewPlanTieredPackagePrice, @@ -785,6 +1428,7 @@ module Orb Orb::NewPlanGroupedAllocationPrice, Orb::NewPlanGroupedWithProratedMinimumPrice, Orb::NewPlanGroupedWithMeteredMinimumPrice, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::NewPlanMatrixWithDisplayNamePrice, Orb::NewPlanBulkWithProrationPrice, Orb::NewPlanGroupedTieredPackagePrice, @@ -794,7 +1438,8 @@ module Orb Orb::NewPlanCumulativeGroupedBulkPrice, Orb::NewPlanTieredPackageWithMinimumPrice, Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice + Orb::NewPlanGroupedTieredPrice, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum ) ) } @@ -814,9 +1459,6 @@ module Orb Orb::NewPlanPackagePrice, Orb::NewPlanMatrixPrice, Orb::NewPlanTieredPrice, - Orb::NewPlanTieredBPSPrice, - Orb::NewPlanBPSPrice, - Orb::NewPlanBulkBPSPrice, Orb::NewPlanBulkPrice, Orb::NewPlanThresholdTotalAmountPrice, Orb::NewPlanTieredPackagePrice, @@ -828,6 +1470,7 @@ module Orb Orb::NewPlanGroupedAllocationPrice, Orb::NewPlanGroupedWithProratedMinimumPrice, Orb::NewPlanGroupedWithMeteredMinimumPrice, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::NewPlanMatrixWithDisplayNamePrice, Orb::NewPlanBulkWithProrationPrice, Orb::NewPlanGroupedTieredPackagePrice, @@ -837,10 +1480,663 @@ module Orb Orb::NewPlanCumulativeGroupedBulkPrice, Orb::NewPlanTieredPackageWithMinimumPrice, Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice + Orb::NewPlanGroupedTieredPrice, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum ) end + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, + Orb::Internal::AnyHash + ) + end + + # The cadence to bill for this price on. + sig do + returns( + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol + ) + end + attr_accessor :cadence + + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :grouped_with_min_max_thresholds_config + + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id + + sig { returns(Symbol) } + attr_accessor :model_type + + # The name of the price. + sig { returns(String) } + attr_accessor :name + + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id + + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance + + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration + + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) + ) + end + attr_accessor :conversion_rate_config + + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + sig { returns(T.nilable(String)) } + attr_accessor :currency + + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration + + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + sig { returns(T.nilable(String)) } + attr_accessor :reference_id + + sig do + params( + cadence: + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + grouped_with_min_max_thresholds_config: + T::Hash[Symbol, T.anything], + item_id: String, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String), + model_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + grouped_with_min_max_thresholds_config:, + # The id of the item the price will be associated with. + item_id:, + # The name of the price. + name:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + currency: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + reference_id: nil, + model_type: :grouped_with_min_max_thresholds + ) + end + + sig do + override.returns( + { + cadence: + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + grouped_with_min_max_thresholds_config: + T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Minimum < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum, + Orb::Internal::AnyHash + ) + end + + # The cadence to bill for this price on. + sig do + returns( + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::OrSymbol + ) + end + attr_accessor :cadence + + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id + + sig do + returns( + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig + ) + end + attr_reader :minimum_config + + sig do + params( + minimum_config: + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig::OrHash + ).void + end + attr_writer :minimum_config + + sig { returns(Symbol) } + attr_accessor :model_type + + # The name of the price. + sig { returns(String) } + attr_accessor :name + + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id + + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance + + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration + + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) + ) + end + attr_accessor :conversion_rate_config + + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + sig { returns(T.nilable(String)) } + attr_accessor :currency + + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration + + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + sig { returns(T.nilable(String)) } + attr_accessor :reference_id + + sig do + params( + cadence: + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::OrSymbol, + item_id: String, + minimum_config: + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig::OrHash, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String), + model_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + # The id of the item the price will be associated with. + item_id:, + minimum_config:, + # The name of the price. + name:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + currency: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + reference_id: nil, + model_type: :minimum + ) + end + + sig do + override.returns( + { + cadence: + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::OrSymbol, + item_id: String, + minimum_config: + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end + + class MinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig, + Orb::Internal::AnyHash + ) + end + + # The minimum amount to apply + sig { returns(String) } + attr_accessor :minimum_amount + + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :prorated + + sig do + params( + minimum_amount: String, + prorated: T.nilable(T::Boolean) + ).returns(T.attached_class) + end + def self.new( + # The minimum amount to apply + minimum_amount:, + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + prorated: nil + ) + end + + sig do + override.returns( + { minimum_amount: String, prorated: T.nilable(T::Boolean) } + ) + end + def to_hash + end + end + end + sig do override.returns( T::Array[ diff --git a/rbi/orb/models/bps_config.rbi b/rbi/orb/models/bps_config.rbi deleted file mode 100644 index 109aa7b2..00000000 --- a/rbi/orb/models/bps_config.rbi +++ /dev/null @@ -1,36 +0,0 @@ -# typed: strong - -module Orb - module Models - class BPSConfig < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(Orb::BPSConfig, Orb::Internal::AnyHash) } - - # Basis point take rate per event - sig { returns(Float) } - attr_accessor :bps - - # Optional currency amount maximum to cap spend per event - sig { returns(T.nilable(String)) } - attr_accessor :per_unit_maximum - - sig do - params(bps: Float, per_unit_maximum: T.nilable(String)).returns( - T.attached_class - ) - end - def self.new( - # Basis point take rate per event - bps:, - # Optional currency amount maximum to cap spend per event - per_unit_maximum: nil - ) - end - - sig do - override.returns({ bps: Float, per_unit_maximum: T.nilable(String) }) - end - def to_hash - end - end - end -end diff --git a/rbi/orb/models/bps_tier.rbi b/rbi/orb/models/bps_tier.rbi deleted file mode 100644 index 549accda..00000000 --- a/rbi/orb/models/bps_tier.rbi +++ /dev/null @@ -1,58 +0,0 @@ -# typed: strong - -module Orb - module Models - class BPSTier < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(Orb::BPSTier, Orb::Internal::AnyHash) } - - # Per-event basis point rate - sig { returns(Float) } - attr_accessor :bps - - # Exclusive tier starting value - sig { returns(String) } - attr_accessor :minimum_amount - - # Inclusive tier ending value - sig { returns(T.nilable(String)) } - attr_accessor :maximum_amount - - # Per unit maximum to charge - sig { returns(T.nilable(String)) } - attr_accessor :per_unit_maximum - - sig do - params( - bps: Float, - minimum_amount: String, - maximum_amount: T.nilable(String), - per_unit_maximum: T.nilable(String) - ).returns(T.attached_class) - end - def self.new( - # Per-event basis point rate - bps:, - # Exclusive tier starting value - minimum_amount:, - # Inclusive tier ending value - maximum_amount: nil, - # Per unit maximum to charge - per_unit_maximum: nil - ) - end - - sig do - override.returns( - { - bps: Float, - minimum_amount: String, - maximum_amount: T.nilable(String), - per_unit_maximum: T.nilable(String) - } - ) - end - def to_hash - end - end - end -end diff --git a/rbi/orb/models/bulk_bps_config.rbi b/rbi/orb/models/bulk_bps_config.rbi deleted file mode 100644 index c5bcf704..00000000 --- a/rbi/orb/models/bulk_bps_config.rbi +++ /dev/null @@ -1,31 +0,0 @@ -# typed: strong - -module Orb - module Models - class BulkBPSConfig < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias { T.any(Orb::BulkBPSConfig, Orb::Internal::AnyHash) } - - # Tiers for a bulk BPS pricing model where all usage is aggregated to a single - # tier based on total volume - sig { returns(T::Array[Orb::BulkBPSTier]) } - attr_accessor :tiers - - sig do - params(tiers: T::Array[Orb::BulkBPSTier::OrHash]).returns( - T.attached_class - ) - end - def self.new( - # Tiers for a bulk BPS pricing model where all usage is aggregated to a single - # tier based on total volume - tiers: - ) - end - - sig { override.returns({ tiers: T::Array[Orb::BulkBPSTier] }) } - def to_hash - end - end - end -end diff --git a/rbi/orb/models/bulk_bps_tier.rbi b/rbi/orb/models/bulk_bps_tier.rbi deleted file mode 100644 index 3501a3a8..00000000 --- a/rbi/orb/models/bulk_bps_tier.rbi +++ /dev/null @@ -1,50 +0,0 @@ -# typed: strong - -module Orb - module Models - class BulkBPSTier < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(Orb::BulkBPSTier, Orb::Internal::AnyHash) } - - # Basis points to rate on - sig { returns(Float) } - attr_accessor :bps - - # Upper bound for tier - sig { returns(T.nilable(String)) } - attr_accessor :maximum_amount - - # The maximum amount to charge for any one event - sig { returns(T.nilable(String)) } - attr_accessor :per_unit_maximum - - sig do - params( - bps: Float, - maximum_amount: T.nilable(String), - per_unit_maximum: T.nilable(String) - ).returns(T.attached_class) - end - def self.new( - # Basis points to rate on - bps:, - # Upper bound for tier - maximum_amount: nil, - # The maximum amount to charge for any one event - per_unit_maximum: nil - ) - end - - sig do - override.returns( - { - bps: Float, - maximum_amount: T.nilable(String), - per_unit_maximum: T.nilable(String) - } - ) - end - def to_hash - end - end - end -end diff --git a/rbi/orb/models/customer.rbi b/rbi/orb/models/customer.rbi index 5387981f..9432c5a6 100644 --- a/rbi/orb/models/customer.rbi +++ b/rbi/orb/models/customer.rbi @@ -14,6 +14,12 @@ module Orb sig { returns(T::Boolean) } attr_accessor :auto_collection + # Whether invoices for this customer should be automatically issued. If true, + # invoices will be automatically issued. If false, invoices will require manual + # approval. If null, inherits the account-level setting. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :auto_issuance + # The customer's current balance in their currency. sig { returns(String) } attr_accessor :balance @@ -287,6 +293,7 @@ module Orb id: String, additional_emails: T::Array[String], auto_collection: T::Boolean, + auto_issuance: T.nilable(T::Boolean), balance: String, billing_address: T.nilable(Orb::Address::OrHash), created_at: Time, @@ -314,6 +321,10 @@ module Orb id:, additional_emails:, auto_collection:, + # Whether invoices for this customer should be automatically issued. If true, + # invoices will be automatically issued. If false, invoices will require manual + # approval. If null, inherits the account-level setting. + auto_issuance:, # The customer's current balance in their currency. balance:, billing_address:, @@ -507,6 +518,7 @@ module Orb id: String, additional_emails: T::Array[String], auto_collection: T::Boolean, + auto_issuance: T.nilable(T::Boolean), balance: String, billing_address: T.nilable(Orb::Address), created_at: Time, diff --git a/rbi/orb/models/customer_create_params.rbi b/rbi/orb/models/customer_create_params.rbi index a7f996cd..8c6589e3 100644 --- a/rbi/orb/models/customer_create_params.rbi +++ b/rbi/orb/models/customer_create_params.rbi @@ -43,6 +43,13 @@ module Orb sig { returns(T.nilable(T::Boolean)) } attr_accessor :auto_collection + # Used to determine if invoices for this customer will be automatically issued. If + # true, invoices will be automatically issued. If false, invoices will require + # manual approval. If `null` is specified, the customer's auto issuance setting + # will be inherited from the account-level setting. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :auto_issuance + sig { returns(T.nilable(Orb::AddressInput)) } attr_reader :billing_address @@ -287,6 +294,7 @@ module Orb T.nilable(Orb::NewAccountingSyncConfiguration::OrHash), additional_emails: T.nilable(T::Array[String]), auto_collection: T.nilable(T::Boolean), + auto_issuance: T.nilable(T::Boolean), billing_address: T.nilable(Orb::AddressInput::OrHash), currency: T.nilable(String), email_delivery: T.nilable(T::Boolean), @@ -327,6 +335,11 @@ module Orb # charge a saved payment method, if available. This parameter defaults to `True` # when a payment provider is provided on customer creation. auto_collection: nil, + # Used to determine if invoices for this customer will be automatically issued. If + # true, invoices will be automatically issued. If false, invoices will require + # manual approval. If `null` is specified, the customer's auto issuance setting + # will be inherited from the account-level setting. + auto_issuance: nil, billing_address: nil, # An ISO 4217 currency string used for the customer's invoices and balance. If not # set at creation time, will be set at subscription creation time. @@ -514,6 +527,7 @@ module Orb T.nilable(Orb::NewAccountingSyncConfiguration), additional_emails: T.nilable(T::Array[String]), auto_collection: T.nilable(T::Boolean), + auto_issuance: T.nilable(T::Boolean), billing_address: T.nilable(Orb::AddressInput), currency: T.nilable(String), email_delivery: T.nilable(T::Boolean), diff --git a/rbi/orb/models/customer_update_by_external_id_params.rbi b/rbi/orb/models/customer_update_by_external_id_params.rbi index c909ced2..f7351261 100644 --- a/rbi/orb/models/customer_update_by_external_id_params.rbi +++ b/rbi/orb/models/customer_update_by_external_id_params.rbi @@ -33,6 +33,13 @@ module Orb sig { returns(T.nilable(T::Boolean)) } attr_accessor :auto_collection + # Used to determine if invoices for this customer will be automatically issued. If + # true, invoices will be automatically issued. If false, invoices will require + # manual approval.If `null` is specified, the customer's auto issuance setting + # will be inherited from the account-level setting. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :auto_issuance + sig { returns(T.nilable(Orb::AddressInput)) } attr_reader :billing_address @@ -287,6 +294,7 @@ module Orb T.nilable(Orb::NewAccountingSyncConfiguration::OrHash), additional_emails: T.nilable(T::Array[String]), auto_collection: T.nilable(T::Boolean), + auto_issuance: T.nilable(T::Boolean), billing_address: T.nilable(Orb::AddressInput::OrHash), currency: T.nilable(String), email: T.nilable(String), @@ -324,6 +332,11 @@ module Orb # charge a saved payment method, if available. This parameter defaults to `True` # when a payment provider is provided on customer creation. auto_collection: nil, + # Used to determine if invoices for this customer will be automatically issued. If + # true, invoices will be automatically issued. If false, invoices will require + # manual approval.If `null` is specified, the customer's auto issuance setting + # will be inherited from the account-level setting. + auto_issuance: nil, billing_address: nil, # An ISO 4217 currency string used for the customer's invoices and balance. If not # set at creation time, will be set at subscription creation time. @@ -515,6 +528,7 @@ module Orb T.nilable(Orb::NewAccountingSyncConfiguration), additional_emails: T.nilable(T::Array[String]), auto_collection: T.nilable(T::Boolean), + auto_issuance: T.nilable(T::Boolean), billing_address: T.nilable(Orb::AddressInput), currency: T.nilable(String), email: T.nilable(String), diff --git a/rbi/orb/models/customer_update_params.rbi b/rbi/orb/models/customer_update_params.rbi index eead558d..eba586fe 100644 --- a/rbi/orb/models/customer_update_params.rbi +++ b/rbi/orb/models/customer_update_params.rbi @@ -33,6 +33,13 @@ module Orb sig { returns(T.nilable(T::Boolean)) } attr_accessor :auto_collection + # Used to determine if invoices for this customer will be automatically issued. If + # true, invoices will be automatically issued. If false, invoices will require + # manual approval.If `null` is specified, the customer's auto issuance setting + # will be inherited from the account-level setting. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :auto_issuance + sig { returns(T.nilable(Orb::AddressInput)) } attr_reader :billing_address @@ -283,6 +290,7 @@ module Orb T.nilable(Orb::NewAccountingSyncConfiguration::OrHash), additional_emails: T.nilable(T::Array[String]), auto_collection: T.nilable(T::Boolean), + auto_issuance: T.nilable(T::Boolean), billing_address: T.nilable(Orb::AddressInput::OrHash), currency: T.nilable(String), email: T.nilable(String), @@ -318,6 +326,11 @@ module Orb # charge a saved payment method, if available. This parameter defaults to `True` # when a payment provider is provided on customer creation. auto_collection: nil, + # Used to determine if invoices for this customer will be automatically issued. If + # true, invoices will be automatically issued. If false, invoices will require + # manual approval.If `null` is specified, the customer's auto issuance setting + # will be inherited from the account-level setting. + auto_issuance: nil, billing_address: nil, # An ISO 4217 currency string used for the customer's invoices and balance. If not # set at creation time, will be set at subscription creation time. @@ -509,6 +522,7 @@ module Orb T.nilable(Orb::NewAccountingSyncConfiguration), additional_emails: T.nilable(T::Array[String]), auto_collection: T.nilable(T::Boolean), + auto_issuance: T.nilable(T::Boolean), billing_address: T.nilable(Orb::AddressInput), currency: T.nilable(String), email: T.nilable(String), diff --git a/rbi/orb/models/customers/balance_transaction_create_response.rbi b/rbi/orb/models/customers/balance_transaction_create_response.rbi index f9b26f55..4f21fcee 100644 --- a/rbi/orb/models/customers/balance_transaction_create_response.rbi +++ b/rbi/orb/models/customers/balance_transaction_create_response.rbi @@ -180,6 +180,11 @@ module Orb :external_payment, Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol ) + SMALL_INVOICE_CARRYOVER = + T.let( + :small_invoice_carryover, + Orb::Models::Customers::BalanceTransactionCreateResponse::Action::TaggedSymbol + ) sig do override.returns( diff --git a/rbi/orb/models/customers/balance_transaction_list_response.rbi b/rbi/orb/models/customers/balance_transaction_list_response.rbi index 81da95c7..92bfa7ac 100644 --- a/rbi/orb/models/customers/balance_transaction_list_response.rbi +++ b/rbi/orb/models/customers/balance_transaction_list_response.rbi @@ -180,6 +180,11 @@ module Orb :external_payment, Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol ) + SMALL_INVOICE_CARRYOVER = + T.let( + :small_invoice_carryover, + Orb::Models::Customers::BalanceTransactionListResponse::Action::TaggedSymbol + ) sig do override.returns( diff --git a/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi b/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi index fdb8e0c7..83001c9d 100644 --- a/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi +++ b/rbi/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbi @@ -239,12 +239,25 @@ module Orb sig { returns(T::Boolean) } attr_accessor :auto_collection - # The net terms determines the difference between the invoice date and the issue - # date for the invoice. If you intend the invoice to be due on issue, set this - # to 0. + # The net terms determines the due date of the invoice. Due date is calculated + # based on the invoice or issuance date, depending on the account's configured due + # date calculation method. A value of '0' here represents that the invoice is due + # on issue, whereas a value of '30' represents that the customer has 30 days to + # pay the invoice. Do not set this field if you want to set a custom due date. sig { returns(T.nilable(Integer)) } attr_accessor :net_terms + # An optional custom due date for the invoice. If not set, the due date will be + # calculated based on the `net_terms` value. + sig do + returns( + T.nilable( + Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::CustomDueDate::Variants + ) + ) + end + attr_accessor :custom_due_date + # An ISO 8601 format date that denotes when this invoice should be dated in the # customer's timezone. If not provided, the invoice date will default to the # credit block's effective date. @@ -277,6 +290,10 @@ module Orb params( auto_collection: T::Boolean, net_terms: T.nilable(Integer), + custom_due_date: + T.nilable( + Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::CustomDueDate::Variants + ), invoice_date: T.nilable( Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::InvoiceDate::Variants @@ -289,10 +306,15 @@ module Orb # Whether the credits purchase invoice should auto collect with the customer's # saved payment method. auto_collection:, - # The net terms determines the difference between the invoice date and the issue - # date for the invoice. If you intend the invoice to be due on issue, set this - # to 0. + # The net terms determines the due date of the invoice. Due date is calculated + # based on the invoice or issuance date, depending on the account's configured due + # date calculation method. A value of '0' here represents that the invoice is due + # on issue, whereas a value of '30' represents that the customer has 30 days to + # pay the invoice. Do not set this field if you want to set a custom due date. net_terms:, + # An optional custom due date for the invoice. If not set, the due date will be + # calculated based on the `net_terms` value. + custom_due_date: nil, # An ISO 8601 format date that denotes when this invoice should be dated in the # customer's timezone. If not provided, the invoice date will default to the # credit block's effective date. @@ -310,6 +332,10 @@ module Orb { auto_collection: T::Boolean, net_terms: T.nilable(Integer), + custom_due_date: + T.nilable( + Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::CustomDueDate::Variants + ), invoice_date: T.nilable( Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::InvoiceDate::Variants @@ -322,6 +348,24 @@ module Orb def to_hash end + # An optional custom due date for the invoice. If not set, the due date will be + # calculated based on the `net_terms` value. + module CustomDueDate + extend Orb::Internal::Type::Union + + Variants = T.type_alias { T.any(Date, Time) } + + sig do + override.returns( + T::Array[ + Orb::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::CustomDueDate::Variants + ] + ) + end + def self.variants + end + end + # An ISO 8601 format date that denotes when this invoice should be dated in the # customer's timezone. If not provided, the invoice date will default to the # credit block's effective date. diff --git a/rbi/orb/models/customers/credits/ledger_create_entry_params.rbi b/rbi/orb/models/customers/credits/ledger_create_entry_params.rbi index f293dae6..f6c14b4d 100644 --- a/rbi/orb/models/customers/credits/ledger_create_entry_params.rbi +++ b/rbi/orb/models/customers/credits/ledger_create_entry_params.rbi @@ -239,12 +239,25 @@ module Orb sig { returns(T::Boolean) } attr_accessor :auto_collection - # The net terms determines the difference between the invoice date and the issue - # date for the invoice. If you intend the invoice to be due on issue, set this - # to 0. + # The net terms determines the due date of the invoice. Due date is calculated + # based on the invoice or issuance date, depending on the account's configured due + # date calculation method. A value of '0' here represents that the invoice is due + # on issue, whereas a value of '30' represents that the customer has 30 days to + # pay the invoice. Do not set this field if you want to set a custom due date. sig { returns(T.nilable(Integer)) } attr_accessor :net_terms + # An optional custom due date for the invoice. If not set, the due date will be + # calculated based on the `net_terms` value. + sig do + returns( + T.nilable( + Orb::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::CustomDueDate::Variants + ) + ) + end + attr_accessor :custom_due_date + # An ISO 8601 format date that denotes when this invoice should be dated in the # customer's timezone. If not provided, the invoice date will default to the # credit block's effective date. @@ -277,6 +290,10 @@ module Orb params( auto_collection: T::Boolean, net_terms: T.nilable(Integer), + custom_due_date: + T.nilable( + Orb::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::CustomDueDate::Variants + ), invoice_date: T.nilable( Orb::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::InvoiceDate::Variants @@ -289,10 +306,15 @@ module Orb # Whether the credits purchase invoice should auto collect with the customer's # saved payment method. auto_collection:, - # The net terms determines the difference between the invoice date and the issue - # date for the invoice. If you intend the invoice to be due on issue, set this - # to 0. + # The net terms determines the due date of the invoice. Due date is calculated + # based on the invoice or issuance date, depending on the account's configured due + # date calculation method. A value of '0' here represents that the invoice is due + # on issue, whereas a value of '30' represents that the customer has 30 days to + # pay the invoice. Do not set this field if you want to set a custom due date. net_terms:, + # An optional custom due date for the invoice. If not set, the due date will be + # calculated based on the `net_terms` value. + custom_due_date: nil, # An ISO 8601 format date that denotes when this invoice should be dated in the # customer's timezone. If not provided, the invoice date will default to the # credit block's effective date. @@ -310,6 +332,10 @@ module Orb { auto_collection: T::Boolean, net_terms: T.nilable(Integer), + custom_due_date: + T.nilable( + Orb::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::CustomDueDate::Variants + ), invoice_date: T.nilable( Orb::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::InvoiceDate::Variants @@ -322,6 +348,24 @@ module Orb def to_hash end + # An optional custom due date for the invoice. If not set, the due date will be + # calculated based on the `net_terms` value. + module CustomDueDate + extend Orb::Internal::Type::Union + + Variants = T.type_alias { T.any(Date, Time) } + + sig do + override.returns( + T::Array[ + Orb::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::CustomDueDate::Variants + ] + ) + end + def self.variants + end + end + # An ISO 8601 format date that denotes when this invoice should be dated in the # customer's timezone. If not provided, the invoice date will default to the # credit block's effective date. diff --git a/rbi/orb/models/invoice.rbi b/rbi/orb/models/invoice.rbi index d65d788d..e123e74e 100644 --- a/rbi/orb/models/invoice.rbi +++ b/rbi/orb/models/invoice.rbi @@ -1007,6 +1007,11 @@ module Orb :external_payment, Orb::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol ) + SMALL_INVOICE_CARRYOVER = + T.let( + :small_invoice_carryover, + Orb::Invoice::CustomerBalanceTransaction::Action::TaggedSymbol + ) sig do override.returns( @@ -1172,7 +1177,7 @@ module Orb sig { returns(T::Array[Orb::Invoice::LineItem::SubLineItem::Variants]) } attr_accessor :sub_line_items - # The line amount before before any adjustments. + # The line amount before any adjustments. sig { returns(String) } attr_accessor :subtotal @@ -1225,9 +1230,6 @@ module Orb Orb::Price::Package::OrHash, Orb::Price::Matrix::OrHash, Orb::Price::Tiered::OrHash, - Orb::Price::TieredBPS::OrHash, - Orb::Price::BPS::OrHash, - Orb::Price::BulkBPS::OrHash, Orb::Price::Bulk::OrHash, Orb::Price::ThresholdTotalAmount::OrHash, Orb::Price::TieredPackage::OrHash, @@ -1249,7 +1251,8 @@ module Orb Orb::Price::ScalableMatrixWithUnitPricing::OrHash, Orb::Price::ScalableMatrixWithTieredPricing::OrHash, Orb::Price::CumulativeGroupedBulk::OrHash, - Orb::Price::GroupedWithMinMaxThresholds::OrHash + Orb::Price::GroupedWithMinMaxThresholds::OrHash, + Orb::Price::Minimum::OrHash ), quantity: Float, start_date: Time, @@ -1321,7 +1324,7 @@ module Orb # For complex pricing structures, the line item can be broken down further in # `sub_line_items`. sub_line_items:, - # The line amount before before any adjustments. + # The line amount before any adjustments. subtotal:, # An array of tax rates and their incurred tax amounts. Empty if no tax # integration is configured. @@ -1441,6 +1444,11 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :payment_provider_id + # URL to the downloadable PDF version of the receipt. This field will be `null` + # for payment attempts that did not succeed. + sig { returns(T.nilable(String)) } + attr_accessor :receipt_pdf + # Whether the payment attempt succeeded. sig { returns(T::Boolean) } attr_accessor :succeeded @@ -1455,6 +1463,7 @@ module Orb Orb::Invoice::PaymentAttempt::PaymentProvider::OrSymbol ), payment_provider_id: T.nilable(String), + receipt_pdf: T.nilable(String), succeeded: T::Boolean ).returns(T.attached_class) end @@ -1469,6 +1478,9 @@ module Orb payment_provider:, # The ID of the payment attempt in the payment provider. payment_provider_id:, + # URL to the downloadable PDF version of the receipt. This field will be `null` + # for payment attempts that did not succeed. + receipt_pdf:, # Whether the payment attempt succeeded. succeeded: ) @@ -1485,6 +1497,7 @@ module Orb Orb::Invoice::PaymentAttempt::PaymentProvider::TaggedSymbol ), payment_provider_id: T.nilable(String), + receipt_pdf: T.nilable(String), succeeded: T::Boolean } ) diff --git a/rbi/orb/models/invoice_create_params.rbi b/rbi/orb/models/invoice_create_params.rbi index 9de3ac5d..b6da09bb 100644 --- a/rbi/orb/models/invoice_create_params.rbi +++ b/rbi/orb/models/invoice_create_params.rbi @@ -42,12 +42,18 @@ module Orb end attr_accessor :discount + # An optional custom due date for the invoice. If not set, the due date will be + # calculated based on the `net_terms` value. + sig { returns(T.nilable(Orb::InvoiceCreateParams::DueDate::Variants)) } + attr_accessor :due_date + # The `external_customer_id` of the `Customer` to create this invoice for. One of # `customer_id` and `external_customer_id` are required. sig { returns(T.nilable(String)) } attr_accessor :external_customer_id - # An optional memo to attach to the invoice. + # An optional memo to attach to the invoice. If no memo is provided, we will + # attach the default memo sig { returns(T.nilable(String)) } attr_accessor :memo @@ -57,10 +63,11 @@ module Orb sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } attr_accessor :metadata - # Determines the difference between the invoice issue date for subscription - # invoices as the date that they are due. A value of '0' here represents that the - # invoice is due on issue, whereas a value of 30 represents that the customer has - # 30 days to pay the invoice. + # The net terms determines the due date of the invoice. Due date is calculated + # based on the invoice or issuance date, depending on the account's configured due + # date calculation method. A value of '0' here represents that the invoice is due + # on issue, whereas a value of '30' represents that the customer has 30 days to + # pay the invoice. Do not set this field if you want to set a custom due date. sig { returns(T.nilable(Integer)) } attr_accessor :net_terms @@ -88,6 +95,7 @@ module Orb Orb::AmountDiscount::OrHash ) ), + due_date: T.nilable(Orb::InvoiceCreateParams::DueDate::Variants), external_customer_id: T.nilable(String), memo: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), @@ -109,19 +117,24 @@ module Orb customer_id: nil, # An optional discount to attach to the invoice. discount: nil, + # An optional custom due date for the invoice. If not set, the due date will be + # calculated based on the `net_terms` value. + due_date: nil, # The `external_customer_id` of the `Customer` to create this invoice for. One of # `customer_id` and `external_customer_id` are required. external_customer_id: nil, - # An optional memo to attach to the invoice. + # An optional memo to attach to the invoice. If no memo is provided, we will + # attach the default memo memo: nil, # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. metadata: nil, - # Determines the difference between the invoice issue date for subscription - # invoices as the date that they are due. A value of '0' here represents that the - # invoice is due on issue, whereas a value of 30 represents that the customer has - # 30 days to pay the invoice. + # The net terms determines the due date of the invoice. Due date is calculated + # based on the invoice or issuance date, depending on the account's configured due + # date calculation method. A value of '0' here represents that the invoice is due + # on issue, whereas a value of '30' represents that the customer has 30 days to + # pay the invoice. Do not set this field if you want to set a custom due date. net_terms: nil, # When true, this invoice will be submitted for issuance upon creation. When # false, the resulting invoice will require manual review to issue. Defaulted to @@ -147,6 +160,7 @@ module Orb Orb::AmountDiscount ) ), + due_date: T.nilable(Orb::InvoiceCreateParams::DueDate::Variants), external_customer_id: T.nilable(String), memo: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), @@ -262,6 +276,22 @@ module Orb end end end + + # An optional custom due date for the invoice. If not set, the due date will be + # calculated based on the `net_terms` value. + module DueDate + extend Orb::Internal::Type::Union + + Variants = T.type_alias { T.any(Date, Time) } + + sig do + override.returns( + T::Array[Orb::InvoiceCreateParams::DueDate::Variants] + ) + end + def self.variants + end + end end end end diff --git a/rbi/orb/models/invoice_fetch_upcoming_response.rbi b/rbi/orb/models/invoice_fetch_upcoming_response.rbi index 8f204996..23ba4533 100644 --- a/rbi/orb/models/invoice_fetch_upcoming_response.rbi +++ b/rbi/orb/models/invoice_fetch_upcoming_response.rbi @@ -1070,6 +1070,11 @@ module Orb :external_payment, Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol ) + SMALL_INVOICE_CARRYOVER = + T.let( + :small_invoice_carryover, + Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::Action::TaggedSymbol + ) sig do override.returns( @@ -1275,7 +1280,7 @@ module Orb end attr_accessor :sub_line_items - # The line amount before before any adjustments. + # The line amount before any adjustments. sig { returns(String) } attr_accessor :subtotal @@ -1328,9 +1333,6 @@ module Orb Orb::Price::Package::OrHash, Orb::Price::Matrix::OrHash, Orb::Price::Tiered::OrHash, - Orb::Price::TieredBPS::OrHash, - Orb::Price::BPS::OrHash, - Orb::Price::BulkBPS::OrHash, Orb::Price::Bulk::OrHash, Orb::Price::ThresholdTotalAmount::OrHash, Orb::Price::TieredPackage::OrHash, @@ -1352,7 +1354,8 @@ module Orb Orb::Price::ScalableMatrixWithUnitPricing::OrHash, Orb::Price::ScalableMatrixWithTieredPricing::OrHash, Orb::Price::CumulativeGroupedBulk::OrHash, - Orb::Price::GroupedWithMinMaxThresholds::OrHash + Orb::Price::GroupedWithMinMaxThresholds::OrHash, + Orb::Price::Minimum::OrHash ), quantity: Float, start_date: Time, @@ -1424,7 +1427,7 @@ module Orb # For complex pricing structures, the line item can be broken down further in # `sub_line_items`. sub_line_items:, - # The line amount before before any adjustments. + # The line amount before any adjustments. subtotal:, # An array of tax rates and their incurred tax amounts. Empty if no tax # integration is configured. @@ -1555,6 +1558,11 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :payment_provider_id + # URL to the downloadable PDF version of the receipt. This field will be `null` + # for payment attempts that did not succeed. + sig { returns(T.nilable(String)) } + attr_accessor :receipt_pdf + # Whether the payment attempt succeeded. sig { returns(T::Boolean) } attr_accessor :succeeded @@ -1569,6 +1577,7 @@ module Orb Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider::OrSymbol ), payment_provider_id: T.nilable(String), + receipt_pdf: T.nilable(String), succeeded: T::Boolean ).returns(T.attached_class) end @@ -1583,6 +1592,9 @@ module Orb payment_provider:, # The ID of the payment attempt in the payment provider. payment_provider_id:, + # URL to the downloadable PDF version of the receipt. This field will be `null` + # for payment attempts that did not succeed. + receipt_pdf:, # Whether the payment attempt succeeded. succeeded: ) @@ -1599,6 +1611,7 @@ module Orb Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::PaymentProvider::TaggedSymbol ), payment_provider_id: T.nilable(String), + receipt_pdf: T.nilable(String), succeeded: T::Boolean } ) diff --git a/rbi/orb/models/invoice_line_item_create_response.rbi b/rbi/orb/models/invoice_line_item_create_response.rbi index a73a00fa..718ff017 100644 --- a/rbi/orb/models/invoice_line_item_create_response.rbi +++ b/rbi/orb/models/invoice_line_item_create_response.rbi @@ -121,7 +121,7 @@ module Orb end attr_accessor :sub_line_items - # The line amount before before any adjustments. + # The line amount before any adjustments. sig { returns(String) } attr_accessor :subtotal @@ -174,9 +174,6 @@ module Orb Orb::Price::Package::OrHash, Orb::Price::Matrix::OrHash, Orb::Price::Tiered::OrHash, - Orb::Price::TieredBPS::OrHash, - Orb::Price::BPS::OrHash, - Orb::Price::BulkBPS::OrHash, Orb::Price::Bulk::OrHash, Orb::Price::ThresholdTotalAmount::OrHash, Orb::Price::TieredPackage::OrHash, @@ -198,7 +195,8 @@ module Orb Orb::Price::ScalableMatrixWithUnitPricing::OrHash, Orb::Price::ScalableMatrixWithTieredPricing::OrHash, Orb::Price::CumulativeGroupedBulk::OrHash, - Orb::Price::GroupedWithMinMaxThresholds::OrHash + Orb::Price::GroupedWithMinMaxThresholds::OrHash, + Orb::Price::Minimum::OrHash ), quantity: Float, start_date: Time, @@ -270,7 +268,7 @@ module Orb # For complex pricing structures, the line item can be broken down further in # `sub_line_items`. sub_line_items:, - # The line amount before before any adjustments. + # The line amount before any adjustments. subtotal:, # An array of tax rates and their incurred tax amounts. Empty if no tax # integration is configured. diff --git a/rbi/orb/models/invoice_update_params.rbi b/rbi/orb/models/invoice_update_params.rbi index b3bd0979..05d0793d 100644 --- a/rbi/orb/models/invoice_update_params.rbi +++ b/rbi/orb/models/invoice_update_params.rbi @@ -9,23 +9,47 @@ module Orb OrHash = T.type_alias { T.any(Orb::InvoiceUpdateParams, Orb::Internal::AnyHash) } + # An optional custom due date for the invoice. If not set, the due date will be + # calculated based on the `net_terms` value. + sig { returns(T.nilable(Orb::InvoiceUpdateParams::DueDate::Variants)) } + attr_accessor :due_date + # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } attr_accessor :metadata + # The net terms determines the due date of the invoice. Due date is calculated + # based on the invoice or issuance date, depending on the account's configured due + # date calculation method. A value of '0' here represents that the invoice is due + # on issue, whereas a value of '30' represents that the customer has 30 days to + # pay the invoice. Do not set this field if you want to set a custom due date. + sig { returns(T.nilable(Integer)) } + attr_accessor :net_terms + sig do params( + due_date: T.nilable(Orb::InvoiceUpdateParams::DueDate::Variants), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + net_terms: T.nilable(Integer), request_options: Orb::RequestOptions::OrHash ).returns(T.attached_class) end def self.new( + # An optional custom due date for the invoice. If not set, the due date will be + # calculated based on the `net_terms` value. + due_date: nil, # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. metadata: nil, + # The net terms determines the due date of the invoice. Due date is calculated + # based on the invoice or issuance date, depending on the account's configured due + # date calculation method. A value of '0' here represents that the invoice is due + # on issue, whereas a value of '30' represents that the customer has 30 days to + # pay the invoice. Do not set this field if you want to set a custom due date. + net_terms: nil, request_options: {} ) end @@ -33,13 +57,31 @@ module Orb sig do override.returns( { + due_date: T.nilable(Orb::InvoiceUpdateParams::DueDate::Variants), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + net_terms: T.nilable(Integer), request_options: Orb::RequestOptions } ) end def to_hash end + + # An optional custom due date for the invoice. If not set, the due date will be + # calculated based on the `net_terms` value. + module DueDate + extend Orb::Internal::Type::Union + + Variants = T.type_alias { T.any(Date, Time) } + + sig do + override.returns( + T::Array[Orb::InvoiceUpdateParams::DueDate::Variants] + ) + end + def self.variants + end + end end end end diff --git a/rbi/orb/models/monetary_amount_discount_adjustment.rbi b/rbi/orb/models/monetary_amount_discount_adjustment.rbi index af0235f3..2910c311 100644 --- a/rbi/orb/models/monetary_amount_discount_adjustment.rbi +++ b/rbi/orb/models/monetary_amount_discount_adjustment.rbi @@ -35,8 +35,8 @@ module Orb sig { returns(T::Array[Orb::TransformPriceFilter]) } attr_accessor :filters - # True for adjustments that apply to an entire invocice, false for adjustments - # that apply to only one price. + # True for adjustments that apply to an entire invoice, false for adjustments that + # apply to only one price. sig { returns(T::Boolean) } attr_accessor :is_invoice_level @@ -75,8 +75,8 @@ module Orb applies_to_price_ids:, # The filters that determine which prices to apply this adjustment to. filters:, - # True for adjustments that apply to an entire invocice, false for adjustments - # that apply to only one price. + # True for adjustments that apply to an entire invoice, false for adjustments that + # apply to only one price. is_invoice_level:, # The reason for the adjustment. reason:, diff --git a/rbi/orb/models/monetary_maximum_adjustment.rbi b/rbi/orb/models/monetary_maximum_adjustment.rbi index fb0e6795..06be8e03 100644 --- a/rbi/orb/models/monetary_maximum_adjustment.rbi +++ b/rbi/orb/models/monetary_maximum_adjustment.rbi @@ -28,8 +28,8 @@ module Orb sig { returns(T::Array[Orb::TransformPriceFilter]) } attr_accessor :filters - # True for adjustments that apply to an entire invocice, false for adjustments - # that apply to only one price. + # True for adjustments that apply to an entire invoice, false for adjustments that + # apply to only one price. sig { returns(T::Boolean) } attr_accessor :is_invoice_level @@ -70,8 +70,8 @@ module Orb applies_to_price_ids:, # The filters that determine which prices to apply this adjustment to. filters:, - # True for adjustments that apply to an entire invocice, false for adjustments - # that apply to only one price. + # True for adjustments that apply to an entire invoice, false for adjustments that + # apply to only one price. is_invoice_level:, # The maximum amount to charge in a given billing period for the prices this # adjustment applies to. diff --git a/rbi/orb/models/monetary_minimum_adjustment.rbi b/rbi/orb/models/monetary_minimum_adjustment.rbi index b339765f..c47ff203 100644 --- a/rbi/orb/models/monetary_minimum_adjustment.rbi +++ b/rbi/orb/models/monetary_minimum_adjustment.rbi @@ -28,8 +28,8 @@ module Orb sig { returns(T::Array[Orb::TransformPriceFilter]) } attr_accessor :filters - # True for adjustments that apply to an entire invocice, false for adjustments - # that apply to only one price. + # True for adjustments that apply to an entire invoice, false for adjustments that + # apply to only one price. sig { returns(T::Boolean) } attr_accessor :is_invoice_level @@ -75,8 +75,8 @@ module Orb applies_to_price_ids:, # The filters that determine which prices to apply this adjustment to. filters:, - # True for adjustments that apply to an entire invocice, false for adjustments - # that apply to only one price. + # True for adjustments that apply to an entire invoice, false for adjustments that + # apply to only one price. is_invoice_level:, # The item ID that revenue from this minimum will be attributed to. item_id:, diff --git a/rbi/orb/models/monetary_percentage_discount_adjustment.rbi b/rbi/orb/models/monetary_percentage_discount_adjustment.rbi index b5260f87..f1bfcf96 100644 --- a/rbi/orb/models/monetary_percentage_discount_adjustment.rbi +++ b/rbi/orb/models/monetary_percentage_discount_adjustment.rbi @@ -33,8 +33,8 @@ module Orb sig { returns(T::Array[Orb::TransformPriceFilter]) } attr_accessor :filters - # True for adjustments that apply to an entire invocice, false for adjustments - # that apply to only one price. + # True for adjustments that apply to an entire invoice, false for adjustments that + # apply to only one price. sig { returns(T::Boolean) } attr_accessor :is_invoice_level @@ -75,8 +75,8 @@ module Orb applies_to_price_ids:, # The filters that determine which prices to apply this adjustment to. filters:, - # True for adjustments that apply to an entire invocice, false for adjustments - # that apply to only one price. + # True for adjustments that apply to an entire invoice, false for adjustments that + # apply to only one price. is_invoice_level:, # The percentage (as a value between 0 and 1) by which to discount the price # intervals this adjustment applies to in a given billing period. diff --git a/rbi/orb/models/monetary_usage_discount_adjustment.rbi b/rbi/orb/models/monetary_usage_discount_adjustment.rbi index 6ae5273e..3064d7ae 100644 --- a/rbi/orb/models/monetary_usage_discount_adjustment.rbi +++ b/rbi/orb/models/monetary_usage_discount_adjustment.rbi @@ -30,8 +30,8 @@ module Orb sig { returns(T::Array[Orb::TransformPriceFilter]) } attr_accessor :filters - # True for adjustments that apply to an entire invocice, false for adjustments - # that apply to only one price. + # True for adjustments that apply to an entire invoice, false for adjustments that + # apply to only one price. sig { returns(T::Boolean) } attr_accessor :is_invoice_level @@ -72,8 +72,8 @@ module Orb applies_to_price_ids:, # The filters that determine which prices to apply this adjustment to. filters:, - # True for adjustments that apply to an entire invocice, false for adjustments - # that apply to only one price. + # True for adjustments that apply to an entire invoice, false for adjustments that + # apply to only one price. is_invoice_level:, # The reason for the adjustment. reason:, diff --git a/rbi/orb/models/new_floating_bps_price.rbi b/rbi/orb/models/new_floating_bps_price.rbi deleted file mode 100644 index 15a0c7d2..00000000 --- a/rbi/orb/models/new_floating_bps_price.rbi +++ /dev/null @@ -1,273 +0,0 @@ -# typed: strong - -module Orb - module Models - class NewFloatingBPSPrice < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias { T.any(Orb::NewFloatingBPSPrice, Orb::Internal::AnyHash) } - - sig { returns(Orb::BPSConfig) } - attr_reader :bps_config - - sig { params(bps_config: Orb::BPSConfig::OrHash).void } - attr_writer :bps_config - - # The cadence to bill for this price on. - sig { returns(Orb::NewFloatingBPSPrice::Cadence::OrSymbol) } - attr_accessor :cadence - - # An ISO 4217 currency string for which this price is billed in. - sig { returns(String) } - attr_accessor :currency - - # The id of the item the price will be associated with. - sig { returns(String) } - attr_accessor :item_id - - sig { returns(Orb::NewFloatingBPSPrice::ModelType::OrSymbol) } - attr_accessor :model_type - - # The name of the price. - sig { returns(String) } - attr_accessor :name - - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - sig { returns(T.nilable(String)) } - attr_accessor :billable_metric_id - - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :billed_in_advance - - # For custom cadence: specifies the duration of the billing period in days or - # months. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :billing_cycle_configuration - - sig do - params( - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :billing_cycle_configuration - - # The per unit conversion rate of the price currency to the invoicing currency. - sig { returns(T.nilable(Float)) } - attr_accessor :conversion_rate - - # The configuration for the rate of the price currency to the invoicing currency. - sig do - returns( - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ) - ) - end - attr_accessor :conversion_rate_config - - # For dimensional price: specifies a price group and dimension values - sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } - attr_reader :dimensional_price_configuration - - sig do - params( - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) - ).void - end - attr_writer :dimensional_price_configuration - - # An alias for the price. - sig { returns(T.nilable(String)) } - attr_accessor :external_price_id - - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - sig { returns(T.nilable(Float)) } - attr_accessor :fixed_price_quantity - - # The property used to group this price on an invoice - sig { returns(T.nilable(String)) } - attr_accessor :invoice_grouping_key - - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :invoicing_cycle_configuration - - sig do - params( - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :invoicing_cycle_configuration - - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - attr_accessor :metadata - - sig do - params( - bps_config: Orb::BPSConfig::OrHash, - cadence: Orb::NewFloatingBPSPrice::Cadence::OrSymbol, - currency: String, - item_id: String, - model_type: Orb::NewFloatingBPSPrice::ModelType::OrSymbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig::OrHash, - Orb::TieredConversionRateConfig::OrHash - ) - ), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - ).returns(T.attached_class) - end - def self.new( - bps_config:, - # The cadence to bill for this price on. - cadence:, - # An ISO 4217 currency string for which this price is billed in. - currency:, - # The id of the item the price will be associated with. - item_id:, - model_type:, - # The name of the price. - name:, - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - billable_metric_id: nil, - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - billed_in_advance: nil, - # For custom cadence: specifies the duration of the billing period in days or - # months. - billing_cycle_configuration: nil, - # The per unit conversion rate of the price currency to the invoicing currency. - conversion_rate: nil, - # The configuration for the rate of the price currency to the invoicing currency. - conversion_rate_config: nil, - # For dimensional price: specifies a price group and dimension values - dimensional_price_configuration: nil, - # An alias for the price. - external_price_id: nil, - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - fixed_price_quantity: nil, - # The property used to group this price on an invoice - invoice_grouping_key: nil, - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - invoicing_cycle_configuration: nil, - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - metadata: nil - ) - end - - sig do - override.returns( - { - bps_config: Orb::BPSConfig, - cadence: Orb::NewFloatingBPSPrice::Cadence::OrSymbol, - currency: String, - item_id: String, - model_type: Orb::NewFloatingBPSPrice::ModelType::OrSymbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) - end - def to_hash - end - - # The cadence to bill for this price on. - module Cadence - extend Orb::Internal::Type::Enum - - TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::NewFloatingBPSPrice::Cadence) } - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ANNUAL = T.let(:annual, Orb::NewFloatingBPSPrice::Cadence::TaggedSymbol) - SEMI_ANNUAL = - T.let(:semi_annual, Orb::NewFloatingBPSPrice::Cadence::TaggedSymbol) - MONTHLY = - T.let(:monthly, Orb::NewFloatingBPSPrice::Cadence::TaggedSymbol) - QUARTERLY = - T.let(:quarterly, Orb::NewFloatingBPSPrice::Cadence::TaggedSymbol) - ONE_TIME = - T.let(:one_time, Orb::NewFloatingBPSPrice::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::NewFloatingBPSPrice::Cadence::TaggedSymbol) - - sig do - override.returns( - T::Array[Orb::NewFloatingBPSPrice::Cadence::TaggedSymbol] - ) - end - def self.values - end - end - - module ModelType - extend Orb::Internal::Type::Enum - - TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::NewFloatingBPSPrice::ModelType) } - OrSymbol = T.type_alias { T.any(Symbol, String) } - - BPS = T.let(:bps, Orb::NewFloatingBPSPrice::ModelType::TaggedSymbol) - - sig do - override.returns( - T::Array[Orb::NewFloatingBPSPrice::ModelType::TaggedSymbol] - ) - end - def self.values - end - end - end - end -end diff --git a/rbi/orb/models/new_floating_bulk_bps_price.rbi b/rbi/orb/models/new_floating_bulk_bps_price.rbi deleted file mode 100644 index be204eed..00000000 --- a/rbi/orb/models/new_floating_bulk_bps_price.rbi +++ /dev/null @@ -1,286 +0,0 @@ -# typed: strong - -module Orb - module Models - class NewFloatingBulkBPSPrice < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any(Orb::NewFloatingBulkBPSPrice, Orb::Internal::AnyHash) - end - - sig { returns(Orb::BulkBPSConfig) } - attr_reader :bulk_bps_config - - sig { params(bulk_bps_config: Orb::BulkBPSConfig::OrHash).void } - attr_writer :bulk_bps_config - - # The cadence to bill for this price on. - sig { returns(Orb::NewFloatingBulkBPSPrice::Cadence::OrSymbol) } - attr_accessor :cadence - - # An ISO 4217 currency string for which this price is billed in. - sig { returns(String) } - attr_accessor :currency - - # The id of the item the price will be associated with. - sig { returns(String) } - attr_accessor :item_id - - sig { returns(Orb::NewFloatingBulkBPSPrice::ModelType::OrSymbol) } - attr_accessor :model_type - - # The name of the price. - sig { returns(String) } - attr_accessor :name - - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - sig { returns(T.nilable(String)) } - attr_accessor :billable_metric_id - - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :billed_in_advance - - # For custom cadence: specifies the duration of the billing period in days or - # months. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :billing_cycle_configuration - - sig do - params( - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :billing_cycle_configuration - - # The per unit conversion rate of the price currency to the invoicing currency. - sig { returns(T.nilable(Float)) } - attr_accessor :conversion_rate - - # The configuration for the rate of the price currency to the invoicing currency. - sig do - returns( - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ) - ) - end - attr_accessor :conversion_rate_config - - # For dimensional price: specifies a price group and dimension values - sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } - attr_reader :dimensional_price_configuration - - sig do - params( - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) - ).void - end - attr_writer :dimensional_price_configuration - - # An alias for the price. - sig { returns(T.nilable(String)) } - attr_accessor :external_price_id - - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - sig { returns(T.nilable(Float)) } - attr_accessor :fixed_price_quantity - - # The property used to group this price on an invoice - sig { returns(T.nilable(String)) } - attr_accessor :invoice_grouping_key - - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :invoicing_cycle_configuration - - sig do - params( - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :invoicing_cycle_configuration - - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - attr_accessor :metadata - - sig do - params( - bulk_bps_config: Orb::BulkBPSConfig::OrHash, - cadence: Orb::NewFloatingBulkBPSPrice::Cadence::OrSymbol, - currency: String, - item_id: String, - model_type: Orb::NewFloatingBulkBPSPrice::ModelType::OrSymbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig::OrHash, - Orb::TieredConversionRateConfig::OrHash - ) - ), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - ).returns(T.attached_class) - end - def self.new( - bulk_bps_config:, - # The cadence to bill for this price on. - cadence:, - # An ISO 4217 currency string for which this price is billed in. - currency:, - # The id of the item the price will be associated with. - item_id:, - model_type:, - # The name of the price. - name:, - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - billable_metric_id: nil, - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - billed_in_advance: nil, - # For custom cadence: specifies the duration of the billing period in days or - # months. - billing_cycle_configuration: nil, - # The per unit conversion rate of the price currency to the invoicing currency. - conversion_rate: nil, - # The configuration for the rate of the price currency to the invoicing currency. - conversion_rate_config: nil, - # For dimensional price: specifies a price group and dimension values - dimensional_price_configuration: nil, - # An alias for the price. - external_price_id: nil, - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - fixed_price_quantity: nil, - # The property used to group this price on an invoice - invoice_grouping_key: nil, - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - invoicing_cycle_configuration: nil, - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - metadata: nil - ) - end - - sig do - override.returns( - { - bulk_bps_config: Orb::BulkBPSConfig, - cadence: Orb::NewFloatingBulkBPSPrice::Cadence::OrSymbol, - currency: String, - item_id: String, - model_type: Orb::NewFloatingBulkBPSPrice::ModelType::OrSymbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) - end - def to_hash - end - - # The cadence to bill for this price on. - module Cadence - extend Orb::Internal::Type::Enum - - TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::NewFloatingBulkBPSPrice::Cadence) } - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ANNUAL = - T.let(:annual, Orb::NewFloatingBulkBPSPrice::Cadence::TaggedSymbol) - SEMI_ANNUAL = - T.let( - :semi_annual, - Orb::NewFloatingBulkBPSPrice::Cadence::TaggedSymbol - ) - MONTHLY = - T.let(:monthly, Orb::NewFloatingBulkBPSPrice::Cadence::TaggedSymbol) - QUARTERLY = - T.let(:quarterly, Orb::NewFloatingBulkBPSPrice::Cadence::TaggedSymbol) - ONE_TIME = - T.let(:one_time, Orb::NewFloatingBulkBPSPrice::Cadence::TaggedSymbol) - CUSTOM = - T.let(:custom, Orb::NewFloatingBulkBPSPrice::Cadence::TaggedSymbol) - - sig do - override.returns( - T::Array[Orb::NewFloatingBulkBPSPrice::Cadence::TaggedSymbol] - ) - end - def self.values - end - end - - module ModelType - extend Orb::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, Orb::NewFloatingBulkBPSPrice::ModelType) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - BULK_BPS = - T.let( - :bulk_bps, - Orb::NewFloatingBulkBPSPrice::ModelType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[Orb::NewFloatingBulkBPSPrice::ModelType::TaggedSymbol] - ) - end - def self.values - end - end - end - end -end diff --git a/rbi/orb/models/new_floating_tiered_bps_price.rbi b/rbi/orb/models/new_floating_tiered_bps_price.rbi deleted file mode 100644 index 5e8913e5..00000000 --- a/rbi/orb/models/new_floating_tiered_bps_price.rbi +++ /dev/null @@ -1,294 +0,0 @@ -# typed: strong - -module Orb - module Models - class NewFloatingTieredBPSPrice < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any(Orb::NewFloatingTieredBPSPrice, Orb::Internal::AnyHash) - end - - # The cadence to bill for this price on. - sig { returns(Orb::NewFloatingTieredBPSPrice::Cadence::OrSymbol) } - attr_accessor :cadence - - # An ISO 4217 currency string for which this price is billed in. - sig { returns(String) } - attr_accessor :currency - - # The id of the item the price will be associated with. - sig { returns(String) } - attr_accessor :item_id - - sig { returns(Orb::NewFloatingTieredBPSPrice::ModelType::OrSymbol) } - attr_accessor :model_type - - # The name of the price. - sig { returns(String) } - attr_accessor :name - - sig { returns(Orb::TieredBPSConfig) } - attr_reader :tiered_bps_config - - sig { params(tiered_bps_config: Orb::TieredBPSConfig::OrHash).void } - attr_writer :tiered_bps_config - - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - sig { returns(T.nilable(String)) } - attr_accessor :billable_metric_id - - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :billed_in_advance - - # For custom cadence: specifies the duration of the billing period in days or - # months. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :billing_cycle_configuration - - sig do - params( - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :billing_cycle_configuration - - # The per unit conversion rate of the price currency to the invoicing currency. - sig { returns(T.nilable(Float)) } - attr_accessor :conversion_rate - - # The configuration for the rate of the price currency to the invoicing currency. - sig do - returns( - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ) - ) - end - attr_accessor :conversion_rate_config - - # For dimensional price: specifies a price group and dimension values - sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } - attr_reader :dimensional_price_configuration - - sig do - params( - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) - ).void - end - attr_writer :dimensional_price_configuration - - # An alias for the price. - sig { returns(T.nilable(String)) } - attr_accessor :external_price_id - - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - sig { returns(T.nilable(Float)) } - attr_accessor :fixed_price_quantity - - # The property used to group this price on an invoice - sig { returns(T.nilable(String)) } - attr_accessor :invoice_grouping_key - - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :invoicing_cycle_configuration - - sig do - params( - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :invoicing_cycle_configuration - - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - attr_accessor :metadata - - sig do - params( - cadence: Orb::NewFloatingTieredBPSPrice::Cadence::OrSymbol, - currency: String, - item_id: String, - model_type: Orb::NewFloatingTieredBPSPrice::ModelType::OrSymbol, - name: String, - tiered_bps_config: Orb::TieredBPSConfig::OrHash, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig::OrHash, - Orb::TieredConversionRateConfig::OrHash - ) - ), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - ).returns(T.attached_class) - end - def self.new( - # The cadence to bill for this price on. - cadence:, - # An ISO 4217 currency string for which this price is billed in. - currency:, - # The id of the item the price will be associated with. - item_id:, - model_type:, - # The name of the price. - name:, - tiered_bps_config:, - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - billable_metric_id: nil, - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - billed_in_advance: nil, - # For custom cadence: specifies the duration of the billing period in days or - # months. - billing_cycle_configuration: nil, - # The per unit conversion rate of the price currency to the invoicing currency. - conversion_rate: nil, - # The configuration for the rate of the price currency to the invoicing currency. - conversion_rate_config: nil, - # For dimensional price: specifies a price group and dimension values - dimensional_price_configuration: nil, - # An alias for the price. - external_price_id: nil, - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - fixed_price_quantity: nil, - # The property used to group this price on an invoice - invoice_grouping_key: nil, - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - invoicing_cycle_configuration: nil, - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - metadata: nil - ) - end - - sig do - override.returns( - { - cadence: Orb::NewFloatingTieredBPSPrice::Cadence::OrSymbol, - currency: String, - item_id: String, - model_type: Orb::NewFloatingTieredBPSPrice::ModelType::OrSymbol, - name: String, - tiered_bps_config: Orb::TieredBPSConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) - end - def to_hash - end - - # The cadence to bill for this price on. - module Cadence - extend Orb::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, Orb::NewFloatingTieredBPSPrice::Cadence) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ANNUAL = - T.let(:annual, Orb::NewFloatingTieredBPSPrice::Cadence::TaggedSymbol) - SEMI_ANNUAL = - T.let( - :semi_annual, - Orb::NewFloatingTieredBPSPrice::Cadence::TaggedSymbol - ) - MONTHLY = - T.let(:monthly, Orb::NewFloatingTieredBPSPrice::Cadence::TaggedSymbol) - QUARTERLY = - T.let( - :quarterly, - Orb::NewFloatingTieredBPSPrice::Cadence::TaggedSymbol - ) - ONE_TIME = - T.let( - :one_time, - Orb::NewFloatingTieredBPSPrice::Cadence::TaggedSymbol - ) - CUSTOM = - T.let(:custom, Orb::NewFloatingTieredBPSPrice::Cadence::TaggedSymbol) - - sig do - override.returns( - T::Array[Orb::NewFloatingTieredBPSPrice::Cadence::TaggedSymbol] - ) - end - def self.values - end - end - - module ModelType - extend Orb::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, Orb::NewFloatingTieredBPSPrice::ModelType) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - TIERED_BPS = - T.let( - :tiered_bps, - Orb::NewFloatingTieredBPSPrice::ModelType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[Orb::NewFloatingTieredBPSPrice::ModelType::TaggedSymbol] - ) - end - def self.values - end - end - end - end -end diff --git a/rbi/orb/models/new_plan_bps_price.rbi b/rbi/orb/models/new_plan_bps_price.rbi deleted file mode 100644 index 3f4428d2..00000000 --- a/rbi/orb/models/new_plan_bps_price.rbi +++ /dev/null @@ -1,283 +0,0 @@ -# typed: strong - -module Orb - module Models - class NewPlanBPSPrice < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias { T.any(Orb::NewPlanBPSPrice, Orb::Internal::AnyHash) } - - sig { returns(Orb::BPSConfig) } - attr_reader :bps_config - - sig { params(bps_config: Orb::BPSConfig::OrHash).void } - attr_writer :bps_config - - # The cadence to bill for this price on. - sig { returns(Orb::NewPlanBPSPrice::Cadence::OrSymbol) } - attr_accessor :cadence - - # The id of the item the price will be associated with. - sig { returns(String) } - attr_accessor :item_id - - sig { returns(Orb::NewPlanBPSPrice::ModelType::OrSymbol) } - attr_accessor :model_type - - # The name of the price. - sig { returns(String) } - attr_accessor :name - - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - sig { returns(T.nilable(String)) } - attr_accessor :billable_metric_id - - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :billed_in_advance - - # For custom cadence: specifies the duration of the billing period in days or - # months. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :billing_cycle_configuration - - sig do - params( - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :billing_cycle_configuration - - # The per unit conversion rate of the price currency to the invoicing currency. - sig { returns(T.nilable(Float)) } - attr_accessor :conversion_rate - - # The configuration for the rate of the price currency to the invoicing currency. - sig do - returns( - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ) - ) - end - attr_accessor :conversion_rate_config - - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - sig { returns(T.nilable(String)) } - attr_accessor :currency - - # For dimensional price: specifies a price group and dimension values - sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } - attr_reader :dimensional_price_configuration - - sig do - params( - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) - ).void - end - attr_writer :dimensional_price_configuration - - # An alias for the price. - sig { returns(T.nilable(String)) } - attr_accessor :external_price_id - - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - sig { returns(T.nilable(Float)) } - attr_accessor :fixed_price_quantity - - # The property used to group this price on an invoice - sig { returns(T.nilable(String)) } - attr_accessor :invoice_grouping_key - - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :invoicing_cycle_configuration - - sig do - params( - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :invoicing_cycle_configuration - - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - attr_accessor :metadata - - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - sig { returns(T.nilable(String)) } - attr_accessor :reference_id - - sig do - params( - bps_config: Orb::BPSConfig::OrHash, - cadence: Orb::NewPlanBPSPrice::Cadence::OrSymbol, - item_id: String, - model_type: Orb::NewPlanBPSPrice::ModelType::OrSymbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig::OrHash, - Orb::TieredConversionRateConfig::OrHash - ) - ), - currency: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - ).returns(T.attached_class) - end - def self.new( - bps_config:, - # The cadence to bill for this price on. - cadence:, - # The id of the item the price will be associated with. - item_id:, - model_type:, - # The name of the price. - name:, - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - billable_metric_id: nil, - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - billed_in_advance: nil, - # For custom cadence: specifies the duration of the billing period in days or - # months. - billing_cycle_configuration: nil, - # The per unit conversion rate of the price currency to the invoicing currency. - conversion_rate: nil, - # The configuration for the rate of the price currency to the invoicing currency. - conversion_rate_config: nil, - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - currency: nil, - # For dimensional price: specifies a price group and dimension values - dimensional_price_configuration: nil, - # An alias for the price. - external_price_id: nil, - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - fixed_price_quantity: nil, - # The property used to group this price on an invoice - invoice_grouping_key: nil, - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - invoicing_cycle_configuration: nil, - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - metadata: nil, - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - reference_id: nil - ) - end - - sig do - override.returns( - { - bps_config: Orb::BPSConfig, - cadence: Orb::NewPlanBPSPrice::Cadence::OrSymbol, - item_id: String, - model_type: Orb::NewPlanBPSPrice::ModelType::OrSymbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ), - currency: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) - end - def to_hash - end - - # The cadence to bill for this price on. - module Cadence - extend Orb::Internal::Type::Enum - - TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::NewPlanBPSPrice::Cadence) } - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ANNUAL = T.let(:annual, Orb::NewPlanBPSPrice::Cadence::TaggedSymbol) - SEMI_ANNUAL = - T.let(:semi_annual, Orb::NewPlanBPSPrice::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::NewPlanBPSPrice::Cadence::TaggedSymbol) - QUARTERLY = - T.let(:quarterly, Orb::NewPlanBPSPrice::Cadence::TaggedSymbol) - ONE_TIME = T.let(:one_time, Orb::NewPlanBPSPrice::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::NewPlanBPSPrice::Cadence::TaggedSymbol) - - sig do - override.returns( - T::Array[Orb::NewPlanBPSPrice::Cadence::TaggedSymbol] - ) - end - def self.values - end - end - - module ModelType - extend Orb::Internal::Type::Enum - - TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::NewPlanBPSPrice::ModelType) } - OrSymbol = T.type_alias { T.any(Symbol, String) } - - BPS = T.let(:bps, Orb::NewPlanBPSPrice::ModelType::TaggedSymbol) - - sig do - override.returns( - T::Array[Orb::NewPlanBPSPrice::ModelType::TaggedSymbol] - ) - end - def self.values - end - end - end - end -end diff --git a/rbi/orb/models/new_plan_bulk_bps_price.rbi b/rbi/orb/models/new_plan_bulk_bps_price.rbi deleted file mode 100644 index d9cbb569..00000000 --- a/rbi/orb/models/new_plan_bulk_bps_price.rbi +++ /dev/null @@ -1,286 +0,0 @@ -# typed: strong - -module Orb - module Models - class NewPlanBulkBPSPrice < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias { T.any(Orb::NewPlanBulkBPSPrice, Orb::Internal::AnyHash) } - - sig { returns(Orb::BulkBPSConfig) } - attr_reader :bulk_bps_config - - sig { params(bulk_bps_config: Orb::BulkBPSConfig::OrHash).void } - attr_writer :bulk_bps_config - - # The cadence to bill for this price on. - sig { returns(Orb::NewPlanBulkBPSPrice::Cadence::OrSymbol) } - attr_accessor :cadence - - # The id of the item the price will be associated with. - sig { returns(String) } - attr_accessor :item_id - - sig { returns(Orb::NewPlanBulkBPSPrice::ModelType::OrSymbol) } - attr_accessor :model_type - - # The name of the price. - sig { returns(String) } - attr_accessor :name - - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - sig { returns(T.nilable(String)) } - attr_accessor :billable_metric_id - - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :billed_in_advance - - # For custom cadence: specifies the duration of the billing period in days or - # months. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :billing_cycle_configuration - - sig do - params( - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :billing_cycle_configuration - - # The per unit conversion rate of the price currency to the invoicing currency. - sig { returns(T.nilable(Float)) } - attr_accessor :conversion_rate - - # The configuration for the rate of the price currency to the invoicing currency. - sig do - returns( - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ) - ) - end - attr_accessor :conversion_rate_config - - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - sig { returns(T.nilable(String)) } - attr_accessor :currency - - # For dimensional price: specifies a price group and dimension values - sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } - attr_reader :dimensional_price_configuration - - sig do - params( - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) - ).void - end - attr_writer :dimensional_price_configuration - - # An alias for the price. - sig { returns(T.nilable(String)) } - attr_accessor :external_price_id - - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - sig { returns(T.nilable(Float)) } - attr_accessor :fixed_price_quantity - - # The property used to group this price on an invoice - sig { returns(T.nilable(String)) } - attr_accessor :invoice_grouping_key - - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :invoicing_cycle_configuration - - sig do - params( - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :invoicing_cycle_configuration - - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - attr_accessor :metadata - - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - sig { returns(T.nilable(String)) } - attr_accessor :reference_id - - sig do - params( - bulk_bps_config: Orb::BulkBPSConfig::OrHash, - cadence: Orb::NewPlanBulkBPSPrice::Cadence::OrSymbol, - item_id: String, - model_type: Orb::NewPlanBulkBPSPrice::ModelType::OrSymbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig::OrHash, - Orb::TieredConversionRateConfig::OrHash - ) - ), - currency: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - ).returns(T.attached_class) - end - def self.new( - bulk_bps_config:, - # The cadence to bill for this price on. - cadence:, - # The id of the item the price will be associated with. - item_id:, - model_type:, - # The name of the price. - name:, - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - billable_metric_id: nil, - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - billed_in_advance: nil, - # For custom cadence: specifies the duration of the billing period in days or - # months. - billing_cycle_configuration: nil, - # The per unit conversion rate of the price currency to the invoicing currency. - conversion_rate: nil, - # The configuration for the rate of the price currency to the invoicing currency. - conversion_rate_config: nil, - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - currency: nil, - # For dimensional price: specifies a price group and dimension values - dimensional_price_configuration: nil, - # An alias for the price. - external_price_id: nil, - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - fixed_price_quantity: nil, - # The property used to group this price on an invoice - invoice_grouping_key: nil, - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - invoicing_cycle_configuration: nil, - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - metadata: nil, - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - reference_id: nil - ) - end - - sig do - override.returns( - { - bulk_bps_config: Orb::BulkBPSConfig, - cadence: Orb::NewPlanBulkBPSPrice::Cadence::OrSymbol, - item_id: String, - model_type: Orb::NewPlanBulkBPSPrice::ModelType::OrSymbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ), - currency: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) - end - def to_hash - end - - # The cadence to bill for this price on. - module Cadence - extend Orb::Internal::Type::Enum - - TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::NewPlanBulkBPSPrice::Cadence) } - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ANNUAL = T.let(:annual, Orb::NewPlanBulkBPSPrice::Cadence::TaggedSymbol) - SEMI_ANNUAL = - T.let(:semi_annual, Orb::NewPlanBulkBPSPrice::Cadence::TaggedSymbol) - MONTHLY = - T.let(:monthly, Orb::NewPlanBulkBPSPrice::Cadence::TaggedSymbol) - QUARTERLY = - T.let(:quarterly, Orb::NewPlanBulkBPSPrice::Cadence::TaggedSymbol) - ONE_TIME = - T.let(:one_time, Orb::NewPlanBulkBPSPrice::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::NewPlanBulkBPSPrice::Cadence::TaggedSymbol) - - sig do - override.returns( - T::Array[Orb::NewPlanBulkBPSPrice::Cadence::TaggedSymbol] - ) - end - def self.values - end - end - - module ModelType - extend Orb::Internal::Type::Enum - - TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::NewPlanBulkBPSPrice::ModelType) } - OrSymbol = T.type_alias { T.any(Symbol, String) } - - BULK_BPS = - T.let(:bulk_bps, Orb::NewPlanBulkBPSPrice::ModelType::TaggedSymbol) - - sig do - override.returns( - T::Array[Orb::NewPlanBulkBPSPrice::ModelType::TaggedSymbol] - ) - end - def self.values - end - end - end - end -end diff --git a/rbi/orb/models/new_plan_tiered_bps_price.rbi b/rbi/orb/models/new_plan_tiered_bps_price.rbi deleted file mode 100644 index 26cd5afb..00000000 --- a/rbi/orb/models/new_plan_tiered_bps_price.rbi +++ /dev/null @@ -1,293 +0,0 @@ -# typed: strong - -module Orb - module Models - class NewPlanTieredBPSPrice < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any(Orb::NewPlanTieredBPSPrice, Orb::Internal::AnyHash) - end - - # The cadence to bill for this price on. - sig { returns(Orb::NewPlanTieredBPSPrice::Cadence::OrSymbol) } - attr_accessor :cadence - - # The id of the item the price will be associated with. - sig { returns(String) } - attr_accessor :item_id - - sig { returns(Orb::NewPlanTieredBPSPrice::ModelType::OrSymbol) } - attr_accessor :model_type - - # The name of the price. - sig { returns(String) } - attr_accessor :name - - sig { returns(Orb::TieredBPSConfig) } - attr_reader :tiered_bps_config - - sig { params(tiered_bps_config: Orb::TieredBPSConfig::OrHash).void } - attr_writer :tiered_bps_config - - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - sig { returns(T.nilable(String)) } - attr_accessor :billable_metric_id - - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :billed_in_advance - - # For custom cadence: specifies the duration of the billing period in days or - # months. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :billing_cycle_configuration - - sig do - params( - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :billing_cycle_configuration - - # The per unit conversion rate of the price currency to the invoicing currency. - sig { returns(T.nilable(Float)) } - attr_accessor :conversion_rate - - # The configuration for the rate of the price currency to the invoicing currency. - sig do - returns( - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ) - ) - end - attr_accessor :conversion_rate_config - - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - sig { returns(T.nilable(String)) } - attr_accessor :currency - - # For dimensional price: specifies a price group and dimension values - sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } - attr_reader :dimensional_price_configuration - - sig do - params( - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) - ).void - end - attr_writer :dimensional_price_configuration - - # An alias for the price. - sig { returns(T.nilable(String)) } - attr_accessor :external_price_id - - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - sig { returns(T.nilable(Float)) } - attr_accessor :fixed_price_quantity - - # The property used to group this price on an invoice - sig { returns(T.nilable(String)) } - attr_accessor :invoice_grouping_key - - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :invoicing_cycle_configuration - - sig do - params( - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :invoicing_cycle_configuration - - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - attr_accessor :metadata - - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - sig { returns(T.nilable(String)) } - attr_accessor :reference_id - - sig do - params( - cadence: Orb::NewPlanTieredBPSPrice::Cadence::OrSymbol, - item_id: String, - model_type: Orb::NewPlanTieredBPSPrice::ModelType::OrSymbol, - name: String, - tiered_bps_config: Orb::TieredBPSConfig::OrHash, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig::OrHash, - Orb::TieredConversionRateConfig::OrHash - ) - ), - currency: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - ).returns(T.attached_class) - end - def self.new( - # The cadence to bill for this price on. - cadence:, - # The id of the item the price will be associated with. - item_id:, - model_type:, - # The name of the price. - name:, - tiered_bps_config:, - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - billable_metric_id: nil, - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - billed_in_advance: nil, - # For custom cadence: specifies the duration of the billing period in days or - # months. - billing_cycle_configuration: nil, - # The per unit conversion rate of the price currency to the invoicing currency. - conversion_rate: nil, - # The configuration for the rate of the price currency to the invoicing currency. - conversion_rate_config: nil, - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - currency: nil, - # For dimensional price: specifies a price group and dimension values - dimensional_price_configuration: nil, - # An alias for the price. - external_price_id: nil, - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - fixed_price_quantity: nil, - # The property used to group this price on an invoice - invoice_grouping_key: nil, - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - invoicing_cycle_configuration: nil, - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - metadata: nil, - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - reference_id: nil - ) - end - - sig do - override.returns( - { - cadence: Orb::NewPlanTieredBPSPrice::Cadence::OrSymbol, - item_id: String, - model_type: Orb::NewPlanTieredBPSPrice::ModelType::OrSymbol, - name: String, - tiered_bps_config: Orb::TieredBPSConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ), - currency: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) - end - def to_hash - end - - # The cadence to bill for this price on. - module Cadence - extend Orb::Internal::Type::Enum - - TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::NewPlanTieredBPSPrice::Cadence) } - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ANNUAL = - T.let(:annual, Orb::NewPlanTieredBPSPrice::Cadence::TaggedSymbol) - SEMI_ANNUAL = - T.let(:semi_annual, Orb::NewPlanTieredBPSPrice::Cadence::TaggedSymbol) - MONTHLY = - T.let(:monthly, Orb::NewPlanTieredBPSPrice::Cadence::TaggedSymbol) - QUARTERLY = - T.let(:quarterly, Orb::NewPlanTieredBPSPrice::Cadence::TaggedSymbol) - ONE_TIME = - T.let(:one_time, Orb::NewPlanTieredBPSPrice::Cadence::TaggedSymbol) - CUSTOM = - T.let(:custom, Orb::NewPlanTieredBPSPrice::Cadence::TaggedSymbol) - - sig do - override.returns( - T::Array[Orb::NewPlanTieredBPSPrice::Cadence::TaggedSymbol] - ) - end - def self.values - end - end - - module ModelType - extend Orb::Internal::Type::Enum - - TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::NewPlanTieredBPSPrice::ModelType) } - OrSymbol = T.type_alias { T.any(Symbol, String) } - - TIERED_BPS = - T.let( - :tiered_bps, - Orb::NewPlanTieredBPSPrice::ModelType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[Orb::NewPlanTieredBPSPrice::ModelType::TaggedSymbol] - ) - end - def self.values - end - end - end - end -end diff --git a/rbi/orb/models/new_subscription_bps_price.rbi b/rbi/orb/models/new_subscription_bps_price.rbi deleted file mode 100644 index 7e1a8488..00000000 --- a/rbi/orb/models/new_subscription_bps_price.rbi +++ /dev/null @@ -1,294 +0,0 @@ -# typed: strong - -module Orb - module Models - class NewSubscriptionBPSPrice < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any(Orb::NewSubscriptionBPSPrice, Orb::Internal::AnyHash) - end - - sig { returns(Orb::BPSConfig) } - attr_reader :bps_config - - sig { params(bps_config: Orb::BPSConfig::OrHash).void } - attr_writer :bps_config - - # The cadence to bill for this price on. - sig { returns(Orb::NewSubscriptionBPSPrice::Cadence::OrSymbol) } - attr_accessor :cadence - - # The id of the item the price will be associated with. - sig { returns(String) } - attr_accessor :item_id - - sig { returns(Orb::NewSubscriptionBPSPrice::ModelType::OrSymbol) } - attr_accessor :model_type - - # The name of the price. - sig { returns(String) } - attr_accessor :name - - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - sig { returns(T.nilable(String)) } - attr_accessor :billable_metric_id - - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :billed_in_advance - - # For custom cadence: specifies the duration of the billing period in days or - # months. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :billing_cycle_configuration - - sig do - params( - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :billing_cycle_configuration - - # The per unit conversion rate of the price currency to the invoicing currency. - sig { returns(T.nilable(Float)) } - attr_accessor :conversion_rate - - # The configuration for the rate of the price currency to the invoicing currency. - sig do - returns( - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ) - ) - end - attr_accessor :conversion_rate_config - - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - sig { returns(T.nilable(String)) } - attr_accessor :currency - - # For dimensional price: specifies a price group and dimension values - sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } - attr_reader :dimensional_price_configuration - - sig do - params( - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) - ).void - end - attr_writer :dimensional_price_configuration - - # An alias for the price. - sig { returns(T.nilable(String)) } - attr_accessor :external_price_id - - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - sig { returns(T.nilable(Float)) } - attr_accessor :fixed_price_quantity - - # The property used to group this price on an invoice - sig { returns(T.nilable(String)) } - attr_accessor :invoice_grouping_key - - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :invoicing_cycle_configuration - - sig do - params( - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :invoicing_cycle_configuration - - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - attr_accessor :metadata - - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - sig { returns(T.nilable(String)) } - attr_accessor :reference_id - - sig do - params( - bps_config: Orb::BPSConfig::OrHash, - cadence: Orb::NewSubscriptionBPSPrice::Cadence::OrSymbol, - item_id: String, - model_type: Orb::NewSubscriptionBPSPrice::ModelType::OrSymbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig::OrHash, - Orb::TieredConversionRateConfig::OrHash - ) - ), - currency: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - ).returns(T.attached_class) - end - def self.new( - bps_config:, - # The cadence to bill for this price on. - cadence:, - # The id of the item the price will be associated with. - item_id:, - model_type:, - # The name of the price. - name:, - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - billable_metric_id: nil, - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - billed_in_advance: nil, - # For custom cadence: specifies the duration of the billing period in days or - # months. - billing_cycle_configuration: nil, - # The per unit conversion rate of the price currency to the invoicing currency. - conversion_rate: nil, - # The configuration for the rate of the price currency to the invoicing currency. - conversion_rate_config: nil, - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - currency: nil, - # For dimensional price: specifies a price group and dimension values - dimensional_price_configuration: nil, - # An alias for the price. - external_price_id: nil, - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - fixed_price_quantity: nil, - # The property used to group this price on an invoice - invoice_grouping_key: nil, - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - invoicing_cycle_configuration: nil, - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - metadata: nil, - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - reference_id: nil - ) - end - - sig do - override.returns( - { - bps_config: Orb::BPSConfig, - cadence: Orb::NewSubscriptionBPSPrice::Cadence::OrSymbol, - item_id: String, - model_type: Orb::NewSubscriptionBPSPrice::ModelType::OrSymbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ), - currency: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) - end - def to_hash - end - - # The cadence to bill for this price on. - module Cadence - extend Orb::Internal::Type::Enum - - TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::NewSubscriptionBPSPrice::Cadence) } - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ANNUAL = - T.let(:annual, Orb::NewSubscriptionBPSPrice::Cadence::TaggedSymbol) - SEMI_ANNUAL = - T.let( - :semi_annual, - Orb::NewSubscriptionBPSPrice::Cadence::TaggedSymbol - ) - MONTHLY = - T.let(:monthly, Orb::NewSubscriptionBPSPrice::Cadence::TaggedSymbol) - QUARTERLY = - T.let(:quarterly, Orb::NewSubscriptionBPSPrice::Cadence::TaggedSymbol) - ONE_TIME = - T.let(:one_time, Orb::NewSubscriptionBPSPrice::Cadence::TaggedSymbol) - CUSTOM = - T.let(:custom, Orb::NewSubscriptionBPSPrice::Cadence::TaggedSymbol) - - sig do - override.returns( - T::Array[Orb::NewSubscriptionBPSPrice::Cadence::TaggedSymbol] - ) - end - def self.values - end - end - - module ModelType - extend Orb::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, Orb::NewSubscriptionBPSPrice::ModelType) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - BPS = T.let(:bps, Orb::NewSubscriptionBPSPrice::ModelType::TaggedSymbol) - - sig do - override.returns( - T::Array[Orb::NewSubscriptionBPSPrice::ModelType::TaggedSymbol] - ) - end - def self.values - end - end - end - end -end diff --git a/rbi/orb/models/new_subscription_bulk_bps_price.rbi b/rbi/orb/models/new_subscription_bulk_bps_price.rbi deleted file mode 100644 index 4f32fecc..00000000 --- a/rbi/orb/models/new_subscription_bulk_bps_price.rbi +++ /dev/null @@ -1,315 +0,0 @@ -# typed: strong - -module Orb - module Models - class NewSubscriptionBulkBPSPrice < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any(Orb::NewSubscriptionBulkBPSPrice, Orb::Internal::AnyHash) - end - - sig { returns(Orb::BulkBPSConfig) } - attr_reader :bulk_bps_config - - sig { params(bulk_bps_config: Orb::BulkBPSConfig::OrHash).void } - attr_writer :bulk_bps_config - - # The cadence to bill for this price on. - sig { returns(Orb::NewSubscriptionBulkBPSPrice::Cadence::OrSymbol) } - attr_accessor :cadence - - # The id of the item the price will be associated with. - sig { returns(String) } - attr_accessor :item_id - - sig { returns(Orb::NewSubscriptionBulkBPSPrice::ModelType::OrSymbol) } - attr_accessor :model_type - - # The name of the price. - sig { returns(String) } - attr_accessor :name - - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - sig { returns(T.nilable(String)) } - attr_accessor :billable_metric_id - - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :billed_in_advance - - # For custom cadence: specifies the duration of the billing period in days or - # months. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :billing_cycle_configuration - - sig do - params( - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :billing_cycle_configuration - - # The per unit conversion rate of the price currency to the invoicing currency. - sig { returns(T.nilable(Float)) } - attr_accessor :conversion_rate - - # The configuration for the rate of the price currency to the invoicing currency. - sig do - returns( - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ) - ) - end - attr_accessor :conversion_rate_config - - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - sig { returns(T.nilable(String)) } - attr_accessor :currency - - # For dimensional price: specifies a price group and dimension values - sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } - attr_reader :dimensional_price_configuration - - sig do - params( - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) - ).void - end - attr_writer :dimensional_price_configuration - - # An alias for the price. - sig { returns(T.nilable(String)) } - attr_accessor :external_price_id - - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - sig { returns(T.nilable(Float)) } - attr_accessor :fixed_price_quantity - - # The property used to group this price on an invoice - sig { returns(T.nilable(String)) } - attr_accessor :invoice_grouping_key - - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :invoicing_cycle_configuration - - sig do - params( - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :invoicing_cycle_configuration - - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - attr_accessor :metadata - - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - sig { returns(T.nilable(String)) } - attr_accessor :reference_id - - sig do - params( - bulk_bps_config: Orb::BulkBPSConfig::OrHash, - cadence: Orb::NewSubscriptionBulkBPSPrice::Cadence::OrSymbol, - item_id: String, - model_type: Orb::NewSubscriptionBulkBPSPrice::ModelType::OrSymbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig::OrHash, - Orb::TieredConversionRateConfig::OrHash - ) - ), - currency: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - ).returns(T.attached_class) - end - def self.new( - bulk_bps_config:, - # The cadence to bill for this price on. - cadence:, - # The id of the item the price will be associated with. - item_id:, - model_type:, - # The name of the price. - name:, - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - billable_metric_id: nil, - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - billed_in_advance: nil, - # For custom cadence: specifies the duration of the billing period in days or - # months. - billing_cycle_configuration: nil, - # The per unit conversion rate of the price currency to the invoicing currency. - conversion_rate: nil, - # The configuration for the rate of the price currency to the invoicing currency. - conversion_rate_config: nil, - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - currency: nil, - # For dimensional price: specifies a price group and dimension values - dimensional_price_configuration: nil, - # An alias for the price. - external_price_id: nil, - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - fixed_price_quantity: nil, - # The property used to group this price on an invoice - invoice_grouping_key: nil, - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - invoicing_cycle_configuration: nil, - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - metadata: nil, - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - reference_id: nil - ) - end - - sig do - override.returns( - { - bulk_bps_config: Orb::BulkBPSConfig, - cadence: Orb::NewSubscriptionBulkBPSPrice::Cadence::OrSymbol, - item_id: String, - model_type: Orb::NewSubscriptionBulkBPSPrice::ModelType::OrSymbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ), - currency: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) - end - def to_hash - end - - # The cadence to bill for this price on. - module Cadence - extend Orb::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, Orb::NewSubscriptionBulkBPSPrice::Cadence) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ANNUAL = - T.let( - :annual, - Orb::NewSubscriptionBulkBPSPrice::Cadence::TaggedSymbol - ) - SEMI_ANNUAL = - T.let( - :semi_annual, - Orb::NewSubscriptionBulkBPSPrice::Cadence::TaggedSymbol - ) - MONTHLY = - T.let( - :monthly, - Orb::NewSubscriptionBulkBPSPrice::Cadence::TaggedSymbol - ) - QUARTERLY = - T.let( - :quarterly, - Orb::NewSubscriptionBulkBPSPrice::Cadence::TaggedSymbol - ) - ONE_TIME = - T.let( - :one_time, - Orb::NewSubscriptionBulkBPSPrice::Cadence::TaggedSymbol - ) - CUSTOM = - T.let( - :custom, - Orb::NewSubscriptionBulkBPSPrice::Cadence::TaggedSymbol - ) - - sig do - override.returns( - T::Array[Orb::NewSubscriptionBulkBPSPrice::Cadence::TaggedSymbol] - ) - end - def self.values - end - end - - module ModelType - extend Orb::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, Orb::NewSubscriptionBulkBPSPrice::ModelType) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - BULK_BPS = - T.let( - :bulk_bps, - Orb::NewSubscriptionBulkBPSPrice::ModelType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[Orb::NewSubscriptionBulkBPSPrice::ModelType::TaggedSymbol] - ) - end - def self.values - end - end - end - end -end diff --git a/rbi/orb/models/new_subscription_tiered_bps_price.rbi b/rbi/orb/models/new_subscription_tiered_bps_price.rbi deleted file mode 100644 index d1c2c736..00000000 --- a/rbi/orb/models/new_subscription_tiered_bps_price.rbi +++ /dev/null @@ -1,317 +0,0 @@ -# typed: strong - -module Orb - module Models - class NewSubscriptionTieredBPSPrice < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any(Orb::NewSubscriptionTieredBPSPrice, Orb::Internal::AnyHash) - end - - # The cadence to bill for this price on. - sig { returns(Orb::NewSubscriptionTieredBPSPrice::Cadence::OrSymbol) } - attr_accessor :cadence - - # The id of the item the price will be associated with. - sig { returns(String) } - attr_accessor :item_id - - sig { returns(Orb::NewSubscriptionTieredBPSPrice::ModelType::OrSymbol) } - attr_accessor :model_type - - # The name of the price. - sig { returns(String) } - attr_accessor :name - - sig { returns(Orb::TieredBPSConfig) } - attr_reader :tiered_bps_config - - sig { params(tiered_bps_config: Orb::TieredBPSConfig::OrHash).void } - attr_writer :tiered_bps_config - - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - sig { returns(T.nilable(String)) } - attr_accessor :billable_metric_id - - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :billed_in_advance - - # For custom cadence: specifies the duration of the billing period in days or - # months. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :billing_cycle_configuration - - sig do - params( - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :billing_cycle_configuration - - # The per unit conversion rate of the price currency to the invoicing currency. - sig { returns(T.nilable(Float)) } - attr_accessor :conversion_rate - - # The configuration for the rate of the price currency to the invoicing currency. - sig do - returns( - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ) - ) - end - attr_accessor :conversion_rate_config - - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - sig { returns(T.nilable(String)) } - attr_accessor :currency - - # For dimensional price: specifies a price group and dimension values - sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } - attr_reader :dimensional_price_configuration - - sig do - params( - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) - ).void - end - attr_writer :dimensional_price_configuration - - # An alias for the price. - sig { returns(T.nilable(String)) } - attr_accessor :external_price_id - - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - sig { returns(T.nilable(Float)) } - attr_accessor :fixed_price_quantity - - # The property used to group this price on an invoice - sig { returns(T.nilable(String)) } - attr_accessor :invoice_grouping_key - - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :invoicing_cycle_configuration - - sig do - params( - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :invoicing_cycle_configuration - - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - attr_accessor :metadata - - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - sig { returns(T.nilable(String)) } - attr_accessor :reference_id - - sig do - params( - cadence: Orb::NewSubscriptionTieredBPSPrice::Cadence::OrSymbol, - item_id: String, - model_type: Orb::NewSubscriptionTieredBPSPrice::ModelType::OrSymbol, - name: String, - tiered_bps_config: Orb::TieredBPSConfig::OrHash, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig::OrHash, - Orb::TieredConversionRateConfig::OrHash - ) - ), - currency: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - ).returns(T.attached_class) - end - def self.new( - # The cadence to bill for this price on. - cadence:, - # The id of the item the price will be associated with. - item_id:, - model_type:, - # The name of the price. - name:, - tiered_bps_config:, - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - billable_metric_id: nil, - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - billed_in_advance: nil, - # For custom cadence: specifies the duration of the billing period in days or - # months. - billing_cycle_configuration: nil, - # The per unit conversion rate of the price currency to the invoicing currency. - conversion_rate: nil, - # The configuration for the rate of the price currency to the invoicing currency. - conversion_rate_config: nil, - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - currency: nil, - # For dimensional price: specifies a price group and dimension values - dimensional_price_configuration: nil, - # An alias for the price. - external_price_id: nil, - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - fixed_price_quantity: nil, - # The property used to group this price on an invoice - invoice_grouping_key: nil, - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - invoicing_cycle_configuration: nil, - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - metadata: nil, - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - reference_id: nil - ) - end - - sig do - override.returns( - { - cadence: Orb::NewSubscriptionTieredBPSPrice::Cadence::OrSymbol, - item_id: String, - model_type: Orb::NewSubscriptionTieredBPSPrice::ModelType::OrSymbol, - name: String, - tiered_bps_config: Orb::TieredBPSConfig, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ), - currency: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) - end - def to_hash - end - - # The cadence to bill for this price on. - module Cadence - extend Orb::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, Orb::NewSubscriptionTieredBPSPrice::Cadence) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ANNUAL = - T.let( - :annual, - Orb::NewSubscriptionTieredBPSPrice::Cadence::TaggedSymbol - ) - SEMI_ANNUAL = - T.let( - :semi_annual, - Orb::NewSubscriptionTieredBPSPrice::Cadence::TaggedSymbol - ) - MONTHLY = - T.let( - :monthly, - Orb::NewSubscriptionTieredBPSPrice::Cadence::TaggedSymbol - ) - QUARTERLY = - T.let( - :quarterly, - Orb::NewSubscriptionTieredBPSPrice::Cadence::TaggedSymbol - ) - ONE_TIME = - T.let( - :one_time, - Orb::NewSubscriptionTieredBPSPrice::Cadence::TaggedSymbol - ) - CUSTOM = - T.let( - :custom, - Orb::NewSubscriptionTieredBPSPrice::Cadence::TaggedSymbol - ) - - sig do - override.returns( - T::Array[Orb::NewSubscriptionTieredBPSPrice::Cadence::TaggedSymbol] - ) - end - def self.values - end - end - - module ModelType - extend Orb::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, Orb::NewSubscriptionTieredBPSPrice::ModelType) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - TIERED_BPS = - T.let( - :tiered_bps, - Orb::NewSubscriptionTieredBPSPrice::ModelType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Orb::NewSubscriptionTieredBPSPrice::ModelType::TaggedSymbol - ] - ) - end - def self.values - end - end - end - end -end diff --git a/rbi/orb/models/per_price_cost.rbi b/rbi/orb/models/per_price_cost.rbi index 03b378d7..62afc7a5 100644 --- a/rbi/orb/models/per_price_cost.rbi +++ b/rbi/orb/models/per_price_cost.rbi @@ -33,9 +33,6 @@ module Orb Orb::Price::Package::OrHash, Orb::Price::Matrix::OrHash, Orb::Price::Tiered::OrHash, - Orb::Price::TieredBPS::OrHash, - Orb::Price::BPS::OrHash, - Orb::Price::BulkBPS::OrHash, Orb::Price::Bulk::OrHash, Orb::Price::ThresholdTotalAmount::OrHash, Orb::Price::TieredPackage::OrHash, @@ -57,7 +54,8 @@ module Orb Orb::Price::ScalableMatrixWithUnitPricing::OrHash, Orb::Price::ScalableMatrixWithTieredPricing::OrHash, Orb::Price::CumulativeGroupedBulk::OrHash, - Orb::Price::GroupedWithMinMaxThresholds::OrHash + Orb::Price::GroupedWithMinMaxThresholds::OrHash, + Orb::Price::Minimum::OrHash ), price_id: String, subtotal: String, diff --git a/rbi/orb/models/plan.rbi b/rbi/orb/models/plan.rbi index 813e07cf..a541bc29 100644 --- a/rbi/orb/models/plan.rbi +++ b/rbi/orb/models/plan.rbi @@ -165,9 +165,6 @@ module Orb Orb::Price::Package::OrHash, Orb::Price::Matrix::OrHash, Orb::Price::Tiered::OrHash, - Orb::Price::TieredBPS::OrHash, - Orb::Price::BPS::OrHash, - Orb::Price::BulkBPS::OrHash, Orb::Price::Bulk::OrHash, Orb::Price::ThresholdTotalAmount::OrHash, Orb::Price::TieredPackage::OrHash, @@ -189,7 +186,8 @@ module Orb Orb::Price::ScalableMatrixWithUnitPricing::OrHash, Orb::Price::ScalableMatrixWithTieredPricing::OrHash, Orb::Price::CumulativeGroupedBulk::OrHash, - Orb::Price::GroupedWithMinMaxThresholds::OrHash + Orb::Price::GroupedWithMinMaxThresholds::OrHash, + Orb::Price::Minimum::OrHash ) ], product: Orb::Plan::Product::OrHash, diff --git a/rbi/orb/models/plan_create_params.rbi b/rbi/orb/models/plan_create_params.rbi index 41bc20f7..bebdac04 100644 --- a/rbi/orb/models/plan_create_params.rbi +++ b/rbi/orb/models/plan_create_params.rbi @@ -158,9 +158,6 @@ module Orb Orb::NewPlanPackagePrice, Orb::NewPlanMatrixPrice, Orb::NewPlanTieredPrice, - Orb::NewPlanTieredBPSPrice, - Orb::NewPlanBPSPrice, - Orb::NewPlanBulkBPSPrice, Orb::NewPlanBulkPrice, Orb::NewPlanThresholdTotalAmountPrice, Orb::NewPlanTieredPackagePrice, @@ -172,6 +169,7 @@ module Orb Orb::NewPlanGroupedAllocationPrice, Orb::NewPlanGroupedWithProratedMinimumPrice, Orb::NewPlanGroupedWithMeteredMinimumPrice, + Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds, Orb::NewPlanMatrixWithDisplayNamePrice, Orb::NewPlanBulkWithProrationPrice, Orb::NewPlanGroupedTieredPackagePrice, @@ -181,7 +179,8 @@ module Orb Orb::NewPlanCumulativeGroupedBulkPrice, Orb::NewPlanTieredPackageWithMinimumPrice, Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice + Orb::NewPlanGroupedTieredPrice, + Orb::PlanCreateParams::Price::Price::Minimum ) ) ) @@ -199,9 +198,6 @@ module Orb Orb::NewPlanPackagePrice::OrHash, Orb::NewPlanMatrixPrice::OrHash, Orb::NewPlanTieredPrice::OrHash, - Orb::NewPlanTieredBPSPrice::OrHash, - Orb::NewPlanBPSPrice::OrHash, - Orb::NewPlanBulkBPSPrice::OrHash, Orb::NewPlanBulkPrice::OrHash, Orb::NewPlanThresholdTotalAmountPrice::OrHash, Orb::NewPlanTieredPackagePrice::OrHash, @@ -213,6 +209,7 @@ module Orb Orb::NewPlanGroupedAllocationPrice::OrHash, Orb::NewPlanGroupedWithProratedMinimumPrice::OrHash, Orb::NewPlanGroupedWithMeteredMinimumPrice::OrHash, + Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::OrHash, Orb::NewPlanMatrixWithDisplayNamePrice::OrHash, Orb::NewPlanBulkWithProrationPrice::OrHash, Orb::NewPlanGroupedTieredPackagePrice::OrHash, @@ -222,7 +219,8 @@ module Orb Orb::NewPlanCumulativeGroupedBulkPrice::OrHash, Orb::NewPlanTieredPackageWithMinimumPrice::OrHash, Orb::NewPlanMatrixWithAllocationPrice::OrHash, - Orb::NewPlanGroupedTieredPrice::OrHash + Orb::NewPlanGroupedTieredPrice::OrHash, + Orb::PlanCreateParams::Price::Price::Minimum::OrHash ) ) ).returns(T.attached_class) @@ -249,9 +247,6 @@ module Orb Orb::NewPlanPackagePrice, Orb::NewPlanMatrixPrice, Orb::NewPlanTieredPrice, - Orb::NewPlanTieredBPSPrice, - Orb::NewPlanBPSPrice, - Orb::NewPlanBulkBPSPrice, Orb::NewPlanBulkPrice, Orb::NewPlanThresholdTotalAmountPrice, Orb::NewPlanTieredPackagePrice, @@ -263,6 +258,7 @@ module Orb Orb::NewPlanGroupedAllocationPrice, Orb::NewPlanGroupedWithProratedMinimumPrice, Orb::NewPlanGroupedWithMeteredMinimumPrice, + Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds, Orb::NewPlanMatrixWithDisplayNamePrice, Orb::NewPlanBulkWithProrationPrice, Orb::NewPlanGroupedTieredPackagePrice, @@ -272,7 +268,8 @@ module Orb Orb::NewPlanCumulativeGroupedBulkPrice, Orb::NewPlanTieredPackageWithMinimumPrice, Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice + Orb::NewPlanGroupedTieredPrice, + Orb::PlanCreateParams::Price::Price::Minimum ) ) } @@ -292,9 +289,6 @@ module Orb Orb::NewPlanPackagePrice, Orb::NewPlanMatrixPrice, Orb::NewPlanTieredPrice, - Orb::NewPlanTieredBPSPrice, - Orb::NewPlanBPSPrice, - Orb::NewPlanBulkBPSPrice, Orb::NewPlanBulkPrice, Orb::NewPlanThresholdTotalAmountPrice, Orb::NewPlanTieredPackagePrice, @@ -306,6 +300,7 @@ module Orb Orb::NewPlanGroupedAllocationPrice, Orb::NewPlanGroupedWithProratedMinimumPrice, Orb::NewPlanGroupedWithMeteredMinimumPrice, + Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds, Orb::NewPlanMatrixWithDisplayNamePrice, Orb::NewPlanBulkWithProrationPrice, Orb::NewPlanGroupedTieredPackagePrice, @@ -315,10 +310,663 @@ module Orb Orb::NewPlanCumulativeGroupedBulkPrice, Orb::NewPlanTieredPackageWithMinimumPrice, Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice + Orb::NewPlanGroupedTieredPrice, + Orb::PlanCreateParams::Price::Price::Minimum ) end + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds, + Orb::Internal::AnyHash + ) + end + + # The cadence to bill for this price on. + sig do + returns( + Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol + ) + end + attr_accessor :cadence + + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :grouped_with_min_max_thresholds_config + + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id + + sig { returns(Symbol) } + attr_accessor :model_type + + # The name of the price. + sig { returns(String) } + attr_accessor :name + + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id + + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance + + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration + + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) + ) + end + attr_accessor :conversion_rate_config + + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + sig { returns(T.nilable(String)) } + attr_accessor :currency + + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration + + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + sig { returns(T.nilable(String)) } + attr_accessor :reference_id + + sig do + params( + cadence: + Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + grouped_with_min_max_thresholds_config: + T::Hash[Symbol, T.anything], + item_id: String, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String), + model_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + grouped_with_min_max_thresholds_config:, + # The id of the item the price will be associated with. + item_id:, + # The name of the price. + name:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + currency: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + reference_id: nil, + model_type: :grouped_with_min_max_thresholds + ) + end + + sig do + override.returns( + { + cadence: + Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + grouped_with_min_max_thresholds_config: + T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::Cadence + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Minimum < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::Price::Minimum, + Orb::Internal::AnyHash + ) + end + + # The cadence to bill for this price on. + sig do + returns( + Orb::PlanCreateParams::Price::Price::Minimum::Cadence::OrSymbol + ) + end + attr_accessor :cadence + + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id + + sig do + returns( + Orb::PlanCreateParams::Price::Price::Minimum::MinimumConfig + ) + end + attr_reader :minimum_config + + sig do + params( + minimum_config: + Orb::PlanCreateParams::Price::Price::Minimum::MinimumConfig::OrHash + ).void + end + attr_writer :minimum_config + + sig { returns(Symbol) } + attr_accessor :model_type + + # The name of the price. + sig { returns(String) } + attr_accessor :name + + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id + + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance + + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration + + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) + ) + end + attr_accessor :conversion_rate_config + + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + sig { returns(T.nilable(String)) } + attr_accessor :currency + + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration + + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + sig { returns(T.nilable(String)) } + attr_accessor :reference_id + + sig do + params( + cadence: + Orb::PlanCreateParams::Price::Price::Minimum::Cadence::OrSymbol, + item_id: String, + minimum_config: + Orb::PlanCreateParams::Price::Price::Minimum::MinimumConfig::OrHash, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String), + model_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + # The id of the item the price will be associated with. + item_id:, + minimum_config:, + # The name of the price. + name:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + currency: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + reference_id: nil, + model_type: :minimum + ) + end + + sig do + override.returns( + { + cadence: + Orb::PlanCreateParams::Price::Price::Minimum::Cadence::OrSymbol, + item_id: String, + minimum_config: + Orb::PlanCreateParams::Price::Price::Minimum::MinimumConfig, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::Price::Minimum::Cadence + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::PlanCreateParams::Price::Price::Minimum::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::PlanCreateParams::Price::Price::Minimum::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::PlanCreateParams::Price::Price::Minimum::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::PlanCreateParams::Price::Price::Minimum::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::PlanCreateParams::Price::Price::Minimum::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::PlanCreateParams::Price::Price::Minimum::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::Price::Minimum::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end + + class MinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::Price::Minimum::MinimumConfig, + Orb::Internal::AnyHash + ) + end + + # The minimum amount to apply + sig { returns(String) } + attr_accessor :minimum_amount + + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :prorated + + sig do + params( + minimum_amount: String, + prorated: T.nilable(T::Boolean) + ).returns(T.attached_class) + end + def self.new( + # The minimum amount to apply + minimum_amount:, + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + prorated: nil + ) + end + + sig do + override.returns( + { minimum_amount: String, prorated: T.nilable(T::Boolean) } + ) + end + def to_hash + end + end + end + sig do override.returns( T::Array[Orb::PlanCreateParams::Price::Price::Variants] diff --git a/rbi/orb/models/plan_phase_amount_discount_adjustment.rbi b/rbi/orb/models/plan_phase_amount_discount_adjustment.rbi index aec1b182..8d8b89eb 100644 --- a/rbi/orb/models/plan_phase_amount_discount_adjustment.rbi +++ b/rbi/orb/models/plan_phase_amount_discount_adjustment.rbi @@ -31,8 +31,8 @@ module Orb sig { returns(T::Array[Orb::TransformPriceFilter]) } attr_accessor :filters - # True for adjustments that apply to an entire invocice, false for adjustments - # that apply to only one price. + # True for adjustments that apply to an entire invoice, false for adjustments that + # apply to only one price. sig { returns(T::Boolean) } attr_accessor :is_invoice_level @@ -73,8 +73,8 @@ module Orb applies_to_price_ids:, # The filters that determine which prices to apply this adjustment to. filters:, - # True for adjustments that apply to an entire invocice, false for adjustments - # that apply to only one price. + # True for adjustments that apply to an entire invoice, false for adjustments that + # apply to only one price. is_invoice_level:, # The plan phase in which this adjustment is active. plan_phase_order:, diff --git a/rbi/orb/models/plan_phase_maximum_adjustment.rbi b/rbi/orb/models/plan_phase_maximum_adjustment.rbi index b52c8ea2..6afeaea2 100644 --- a/rbi/orb/models/plan_phase_maximum_adjustment.rbi +++ b/rbi/orb/models/plan_phase_maximum_adjustment.rbi @@ -24,8 +24,8 @@ module Orb sig { returns(T::Array[Orb::TransformPriceFilter]) } attr_accessor :filters - # True for adjustments that apply to an entire invocice, false for adjustments - # that apply to only one price. + # True for adjustments that apply to an entire invoice, false for adjustments that + # apply to only one price. sig { returns(T::Boolean) } attr_accessor :is_invoice_level @@ -68,8 +68,8 @@ module Orb applies_to_price_ids:, # The filters that determine which prices to apply this adjustment to. filters:, - # True for adjustments that apply to an entire invocice, false for adjustments - # that apply to only one price. + # True for adjustments that apply to an entire invoice, false for adjustments that + # apply to only one price. is_invoice_level:, # The maximum amount to charge in a given billing period for the prices this # adjustment applies to. diff --git a/rbi/orb/models/plan_phase_minimum_adjustment.rbi b/rbi/orb/models/plan_phase_minimum_adjustment.rbi index b47b8ee3..05aec852 100644 --- a/rbi/orb/models/plan_phase_minimum_adjustment.rbi +++ b/rbi/orb/models/plan_phase_minimum_adjustment.rbi @@ -24,8 +24,8 @@ module Orb sig { returns(T::Array[Orb::TransformPriceFilter]) } attr_accessor :filters - # True for adjustments that apply to an entire invocice, false for adjustments - # that apply to only one price. + # True for adjustments that apply to an entire invoice, false for adjustments that + # apply to only one price. sig { returns(T::Boolean) } attr_accessor :is_invoice_level @@ -73,8 +73,8 @@ module Orb applies_to_price_ids:, # The filters that determine which prices to apply this adjustment to. filters:, - # True for adjustments that apply to an entire invocice, false for adjustments - # that apply to only one price. + # True for adjustments that apply to an entire invoice, false for adjustments that + # apply to only one price. is_invoice_level:, # The item ID that revenue from this minimum will be attributed to. item_id:, diff --git a/rbi/orb/models/plan_phase_percentage_discount_adjustment.rbi b/rbi/orb/models/plan_phase_percentage_discount_adjustment.rbi index fb768d57..5a330bbc 100644 --- a/rbi/orb/models/plan_phase_percentage_discount_adjustment.rbi +++ b/rbi/orb/models/plan_phase_percentage_discount_adjustment.rbi @@ -29,8 +29,8 @@ module Orb sig { returns(T::Array[Orb::TransformPriceFilter]) } attr_accessor :filters - # True for adjustments that apply to an entire invocice, false for adjustments - # that apply to only one price. + # True for adjustments that apply to an entire invoice, false for adjustments that + # apply to only one price. sig { returns(T::Boolean) } attr_accessor :is_invoice_level @@ -73,8 +73,8 @@ module Orb applies_to_price_ids:, # The filters that determine which prices to apply this adjustment to. filters:, - # True for adjustments that apply to an entire invocice, false for adjustments - # that apply to only one price. + # True for adjustments that apply to an entire invoice, false for adjustments that + # apply to only one price. is_invoice_level:, # The percentage (as a value between 0 and 1) by which to discount the price # intervals this adjustment applies to in a given billing period. diff --git a/rbi/orb/models/plan_phase_usage_discount_adjustment.rbi b/rbi/orb/models/plan_phase_usage_discount_adjustment.rbi index 55e320a9..a6a44369 100644 --- a/rbi/orb/models/plan_phase_usage_discount_adjustment.rbi +++ b/rbi/orb/models/plan_phase_usage_discount_adjustment.rbi @@ -26,8 +26,8 @@ module Orb sig { returns(T::Array[Orb::TransformPriceFilter]) } attr_accessor :filters - # True for adjustments that apply to an entire invocice, false for adjustments - # that apply to only one price. + # True for adjustments that apply to an entire invoice, false for adjustments that + # apply to only one price. sig { returns(T::Boolean) } attr_accessor :is_invoice_level @@ -70,8 +70,8 @@ module Orb applies_to_price_ids:, # The filters that determine which prices to apply this adjustment to. filters:, - # True for adjustments that apply to an entire invocice, false for adjustments - # that apply to only one price. + # True for adjustments that apply to an entire invoice, false for adjustments that + # apply to only one price. is_invoice_level:, # The plan phase in which this adjustment is active. plan_phase_order:, diff --git a/rbi/orb/models/plan_version.rbi b/rbi/orb/models/plan_version.rbi index 20ef976e..a60e22bd 100644 --- a/rbi/orb/models/plan_version.rbi +++ b/rbi/orb/models/plan_version.rbi @@ -47,9 +47,6 @@ module Orb Orb::Price::Package::OrHash, Orb::Price::Matrix::OrHash, Orb::Price::Tiered::OrHash, - Orb::Price::TieredBPS::OrHash, - Orb::Price::BPS::OrHash, - Orb::Price::BulkBPS::OrHash, Orb::Price::Bulk::OrHash, Orb::Price::ThresholdTotalAmount::OrHash, Orb::Price::TieredPackage::OrHash, @@ -71,7 +68,8 @@ module Orb Orb::Price::ScalableMatrixWithUnitPricing::OrHash, Orb::Price::ScalableMatrixWithTieredPricing::OrHash, Orb::Price::CumulativeGroupedBulk::OrHash, - Orb::Price::GroupedWithMinMaxThresholds::OrHash + Orb::Price::GroupedWithMinMaxThresholds::OrHash, + Orb::Price::Minimum::OrHash ) ], version: Integer diff --git a/rbi/orb/models/price.rbi b/rbi/orb/models/price.rbi index 0bba9e1f..132b0e47 100644 --- a/rbi/orb/models/price.rbi +++ b/rbi/orb/models/price.rbi @@ -22,9 +22,6 @@ module Orb Orb::Price::Package, Orb::Price::Matrix, Orb::Price::Tiered, - Orb::Price::TieredBPS, - Orb::Price::BPS, - Orb::Price::BulkBPS, Orb::Price::Bulk, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, @@ -46,7 +43,8 @@ module Orb Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk, - Orb::Price::GroupedWithMinMaxThresholds + Orb::Price::GroupedWithMinMaxThresholds, + Orb::Price::Minimum ) end @@ -80,12 +78,15 @@ module Orb sig { returns(Orb::Price::Unit::Cadence::TaggedSymbol) } attr_accessor :cadence + sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } + attr_accessor :composite_price_filters + sig { returns(T.nilable(Float)) } attr_accessor :conversion_rate sig do returns( - T.nilable(Orb::Price::Unit::UnnamedTypeWithobjectParent84::Variants) + T.nilable(Orb::Price::Unit::UnnamedTypeWithobjectParent85::Variants) ) end attr_accessor :conversion_rate_config @@ -195,6 +196,8 @@ module Orb billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, cadence: Orb::Price::Unit::Cadence::OrSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( @@ -240,6 +243,7 @@ module Orb billable_metric:, billing_cycle_configuration:, cadence:, + composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, @@ -278,10 +282,12 @@ module Orb billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Unit::Cadence::TaggedSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::Unit::UnnamedTypeWithobjectParent84::Variants + Orb::Price::Unit::UnnamedTypeWithobjectParent85::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -385,13 +391,16 @@ module Orb sig { returns(Orb::Price::Package::Cadence::TaggedSymbol) } attr_accessor :cadence + sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } + attr_accessor :composite_price_filters + sig { returns(T.nilable(Float)) } attr_accessor :conversion_rate sig do returns( T.nilable( - Orb::Price::Package::UnnamedTypeWithobjectParent85::Variants + Orb::Price::Package::UnnamedTypeWithobjectParent86::Variants ) ) end @@ -502,6 +511,8 @@ module Orb billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, cadence: Orb::Price::Package::Cadence::OrSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( @@ -547,6 +558,7 @@ module Orb billable_metric:, billing_cycle_configuration:, cadence:, + composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, @@ -585,10 +597,12 @@ module Orb billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Package::Cadence::TaggedSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::Package::UnnamedTypeWithobjectParent85::Variants + Orb::Price::Package::UnnamedTypeWithobjectParent86::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -696,13 +710,16 @@ module Orb sig { returns(Orb::Price::Matrix::Cadence::TaggedSymbol) } attr_accessor :cadence + sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } + attr_accessor :composite_price_filters + sig { returns(T.nilable(Float)) } attr_accessor :conversion_rate sig do returns( T.nilable( - Orb::Price::Matrix::UnnamedTypeWithobjectParent86::Variants + Orb::Price::Matrix::UnnamedTypeWithobjectParent87::Variants ) ) end @@ -813,6 +830,8 @@ module Orb billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, cadence: Orb::Price::Matrix::Cadence::OrSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( @@ -858,6 +877,7 @@ module Orb billable_metric:, billing_cycle_configuration:, cadence:, + composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, @@ -896,10 +916,12 @@ module Orb billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Matrix::Cadence::TaggedSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::Matrix::UnnamedTypeWithobjectParent86::Variants + Orb::Price::Matrix::UnnamedTypeWithobjectParent87::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -1006,13 +1028,16 @@ module Orb sig { returns(Orb::Price::Tiered::Cadence::TaggedSymbol) } attr_accessor :cadence + sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } + attr_accessor :composite_price_filters + sig { returns(T.nilable(Float)) } attr_accessor :conversion_rate sig do returns( T.nilable( - Orb::Price::Tiered::UnnamedTypeWithobjectParent87::Variants + Orb::Price::Tiered::UnnamedTypeWithobjectParent88::Variants ) ) end @@ -1123,6 +1148,8 @@ module Orb billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, cadence: Orb::Price::Tiered::Cadence::OrSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( @@ -1168,6 +1195,7 @@ module Orb billable_metric:, billing_cycle_configuration:, cadence:, + composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, @@ -1206,10 +1234,12 @@ module Orb billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Tiered::Cadence::TaggedSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::Tiered::UnnamedTypeWithobjectParent87::Variants + Orb::Price::Tiered::UnnamedTypeWithobjectParent88::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -1286,9 +1316,9 @@ module Orb end end - class TieredBPS < Orb::Internal::Type::BaseModel + class Bulk < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(Orb::Price::TieredBPS, Orb::Internal::AnyHash) } + T.type_alias { T.any(Orb::Price::Bulk, Orb::Internal::AnyHash) } sig { returns(String) } attr_accessor :id @@ -1313,17 +1343,24 @@ module Orb end attr_writer :billing_cycle_configuration - sig { returns(Orb::Price::TieredBPS::Cadence::TaggedSymbol) } + sig { returns(Orb::BulkConfig) } + attr_reader :bulk_config + + sig { params(bulk_config: Orb::BulkConfig::OrHash).void } + attr_writer :bulk_config + + sig { returns(Orb::Price::Bulk::Cadence::TaggedSymbol) } attr_accessor :cadence + sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } + attr_accessor :composite_price_filters + sig { returns(T.nilable(Float)) } attr_accessor :conversion_rate sig do returns( - T.nilable( - Orb::Price::TieredBPS::UnnamedTypeWithobjectParent88::Variants - ) + T.nilable(Orb::Price::Bulk::UnnamedTypeWithobjectParent89::Variants) ) end attr_accessor :conversion_rate_config @@ -1402,7 +1439,7 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Price::TieredBPS::PriceType::TaggedSymbol) } + sig { returns(Orb::Price::Bulk::PriceType::TaggedSymbol) } attr_accessor :price_type # The price id this price replaces. This price will take the place of the replaced @@ -1410,12 +1447,6 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :replaces_price_id - sig { returns(Orb::TieredBPSConfig) } - attr_reader :tiered_bps_config - - sig { params(tiered_bps_config: Orb::TieredBPSConfig::OrHash).void } - attr_writer :tiered_bps_config - sig { returns(T.nilable(Orb::DimensionalPriceConfiguration)) } attr_reader :dimensional_price_configuration @@ -1432,7 +1463,10 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - cadence: Orb::Price::TieredBPS::Cadence::OrSymbol, + bulk_config: Orb::BulkConfig::OrHash, + cadence: Orb::Price::Bulk::Cadence::OrSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( @@ -1465,9 +1499,8 @@ module Orb minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::TieredBPS::PriceType::OrSymbol, + price_type: Orb::Price::Bulk::PriceType::OrSymbol, replaces_price_id: T.nilable(String), - tiered_bps_config: Orb::TieredBPSConfig::OrHash, dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), model_type: Symbol @@ -1477,7 +1510,9 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, + bulk_config:, cadence:, + composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, @@ -1503,9 +1538,8 @@ module Orb # The price id this price replaces. This price will take the place of the replaced # price in plan version migrations. replaces_price_id:, - tiered_bps_config:, dimensional_price_configuration: nil, - model_type: :tiered_bps + model_type: :bulk ) end @@ -1515,11 +1549,14 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::TieredBPS::Cadence::TaggedSymbol, + bulk_config: Orb::BulkConfig, + cadence: Orb::Price::Bulk::Cadence::TaggedSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::TieredBPS::UnnamedTypeWithobjectParent88::Variants + Orb::Price::Bulk::UnnamedTypeWithobjectParent89::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -1538,9 +1575,8 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::TieredBPS::PriceType::TaggedSymbol, + price_type: Orb::Price::Bulk::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), - tiered_bps_config: Orb::TieredBPSConfig, dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) } @@ -1553,24 +1589,19 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Price::TieredBPS::Cadence) } + T.type_alias { T.all(Symbol, Orb::Price::Bulk::Cadence) } OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = - T.let(:one_time, Orb::Price::TieredBPS::Cadence::TaggedSymbol) - MONTHLY = - T.let(:monthly, Orb::Price::TieredBPS::Cadence::TaggedSymbol) - QUARTERLY = - T.let(:quarterly, Orb::Price::TieredBPS::Cadence::TaggedSymbol) + ONE_TIME = T.let(:one_time, Orb::Price::Bulk::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Price::Bulk::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Price::Bulk::Cadence::TaggedSymbol) SEMI_ANNUAL = - T.let(:semi_annual, Orb::Price::TieredBPS::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Price::TieredBPS::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Price::TieredBPS::Cadence::TaggedSymbol) + T.let(:semi_annual, Orb::Price::Bulk::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Price::Bulk::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Price::Bulk::Cadence::TaggedSymbol) sig do - override.returns( - T::Array[Orb::Price::TieredBPS::Cadence::TaggedSymbol] - ) + override.returns(T::Array[Orb::Price::Bulk::Cadence::TaggedSymbol]) end def self.values end @@ -1580,17 +1611,17 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Price::TieredBPS::PriceType) } + T.type_alias { T.all(Symbol, Orb::Price::Bulk::PriceType) } OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = - T.let(:usage_price, Orb::Price::TieredBPS::PriceType::TaggedSymbol) + T.let(:usage_price, Orb::Price::Bulk::PriceType::TaggedSymbol) FIXED_PRICE = - T.let(:fixed_price, Orb::Price::TieredBPS::PriceType::TaggedSymbol) + T.let(:fixed_price, Orb::Price::Bulk::PriceType::TaggedSymbol) sig do override.returns( - T::Array[Orb::Price::TieredBPS::PriceType::TaggedSymbol] + T::Array[Orb::Price::Bulk::PriceType::TaggedSymbol] ) end def self.values @@ -1598,8 +1629,11 @@ module Orb end end - class BPS < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(Orb::Price::BPS, Orb::Internal::AnyHash) } + class ThresholdTotalAmount < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any(Orb::Price::ThresholdTotalAmount, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -1624,21 +1658,20 @@ module Orb end attr_writer :billing_cycle_configuration - sig { returns(Orb::BPSConfig) } - attr_reader :bps_config - - sig { params(bps_config: Orb::BPSConfig::OrHash).void } - attr_writer :bps_config - - sig { returns(Orb::Price::BPS::Cadence::TaggedSymbol) } + sig { returns(Orb::Price::ThresholdTotalAmount::Cadence::TaggedSymbol) } attr_accessor :cadence + sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } + attr_accessor :composite_price_filters + sig { returns(T.nilable(Float)) } attr_accessor :conversion_rate sig do returns( - T.nilable(Orb::Price::BPS::UnnamedTypeWithobjectParent89::Variants) + T.nilable( + Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent90::Variants + ) ) end attr_accessor :conversion_rate_config @@ -1717,7 +1750,9 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Price::BPS::PriceType::TaggedSymbol) } + sig do + returns(Orb::Price::ThresholdTotalAmount::PriceType::TaggedSymbol) + end attr_accessor :price_type # The price id this price replaces. This price will take the place of the replaced @@ -1725,6 +1760,9 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :replaces_price_id + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :threshold_total_amount_config + sig { returns(T.nilable(Orb::DimensionalPriceConfiguration)) } attr_reader :dimensional_price_configuration @@ -1741,8 +1779,9 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - bps_config: Orb::BPSConfig::OrHash, - cadence: Orb::Price::BPS::Cadence::OrSymbol, + cadence: Orb::Price::ThresholdTotalAmount::Cadence::OrSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( @@ -1775,8 +1814,9 @@ module Orb minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::BPS::PriceType::OrSymbol, + price_type: Orb::Price::ThresholdTotalAmount::PriceType::OrSymbol, replaces_price_id: T.nilable(String), + threshold_total_amount_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), model_type: Symbol @@ -1786,8 +1826,8 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, - bps_config:, cadence:, + composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, @@ -1813,8 +1853,9 @@ module Orb # The price id this price replaces. This price will take the place of the replaced # price in plan version migrations. replaces_price_id:, + threshold_total_amount_config:, dimensional_price_configuration: nil, - model_type: :bps + model_type: :threshold_total_amount ) end @@ -1824,12 +1865,13 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - bps_config: Orb::BPSConfig, - cadence: Orb::Price::BPS::Cadence::TaggedSymbol, + cadence: Orb::Price::ThresholdTotalAmount::Cadence::TaggedSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::BPS::UnnamedTypeWithobjectParent89::Variants + Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent90::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -1848,8 +1890,10 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::BPS::PriceType::TaggedSymbol, + price_type: + Orb::Price::ThresholdTotalAmount::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), + threshold_total_amount_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) } @@ -1862,19 +1906,46 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Price::BPS::Cadence) } + T.type_alias do + T.all(Symbol, Orb::Price::ThresholdTotalAmount::Cadence) + end OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = T.let(:one_time, Orb::Price::BPS::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Price::BPS::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Price::BPS::Cadence::TaggedSymbol) + ONE_TIME = + T.let( + :one_time, + Orb::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + ) SEMI_ANNUAL = - T.let(:semi_annual, Orb::Price::BPS::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Price::BPS::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Price::BPS::Cadence::TaggedSymbol) + T.let( + :semi_annual, + Orb::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + ) + ANNUAL = + T.let( + :annual, + Orb::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + ) sig do - override.returns(T::Array[Orb::Price::BPS::Cadence::TaggedSymbol]) + override.returns( + T::Array[Orb::Price::ThresholdTotalAmount::Cadence::TaggedSymbol] + ) end def self.values end @@ -1884,25 +1955,39 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Price::BPS::PriceType) } + T.type_alias do + T.all(Symbol, Orb::Price::ThresholdTotalAmount::PriceType) + end OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = - T.let(:usage_price, Orb::Price::BPS::PriceType::TaggedSymbol) + T.let( + :usage_price, + Orb::Price::ThresholdTotalAmount::PriceType::TaggedSymbol + ) FIXED_PRICE = - T.let(:fixed_price, Orb::Price::BPS::PriceType::TaggedSymbol) + T.let( + :fixed_price, + Orb::Price::ThresholdTotalAmount::PriceType::TaggedSymbol + ) sig do - override.returns(T::Array[Orb::Price::BPS::PriceType::TaggedSymbol]) + override.returns( + T::Array[ + Orb::Price::ThresholdTotalAmount::PriceType::TaggedSymbol + ] + ) end def self.values end end end - class BulkBPS < Orb::Internal::Type::BaseModel + class TieredPackage < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(Orb::Price::BulkBPS, Orb::Internal::AnyHash) } + T.type_alias do + T.any(Orb::Price::TieredPackage, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -1927,22 +2012,19 @@ module Orb end attr_writer :billing_cycle_configuration - sig { returns(Orb::BulkBPSConfig) } - attr_reader :bulk_bps_config - - sig { params(bulk_bps_config: Orb::BulkBPSConfig::OrHash).void } - attr_writer :bulk_bps_config - - sig { returns(Orb::Price::BulkBPS::Cadence::TaggedSymbol) } + sig { returns(Orb::Price::TieredPackage::Cadence::TaggedSymbol) } attr_accessor :cadence + sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } + attr_accessor :composite_price_filters + sig { returns(T.nilable(Float)) } attr_accessor :conversion_rate sig do returns( T.nilable( - Orb::Price::BulkBPS::UnnamedTypeWithobjectParent90::Variants + Orb::Price::TieredPackage::UnnamedTypeWithobjectParent91::Variants ) ) end @@ -2022,7 +2104,7 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Price::BulkBPS::PriceType::TaggedSymbol) } + sig { returns(Orb::Price::TieredPackage::PriceType::TaggedSymbol) } attr_accessor :price_type # The price id this price replaces. This price will take the place of the replaced @@ -2030,6 +2112,9 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :replaces_price_id + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :tiered_package_config + sig { returns(T.nilable(Orb::DimensionalPriceConfiguration)) } attr_reader :dimensional_price_configuration @@ -2046,8 +2131,9 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - bulk_bps_config: Orb::BulkBPSConfig::OrHash, - cadence: Orb::Price::BulkBPS::Cadence::OrSymbol, + cadence: Orb::Price::TieredPackage::Cadence::OrSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( @@ -2080,8 +2166,9 @@ module Orb minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::BulkBPS::PriceType::OrSymbol, + price_type: Orb::Price::TieredPackage::PriceType::OrSymbol, replaces_price_id: T.nilable(String), + tiered_package_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), model_type: Symbol @@ -2091,8 +2178,8 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, - bulk_bps_config:, cadence:, + composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, @@ -2118,8 +2205,9 @@ module Orb # The price id this price replaces. This price will take the place of the replaced # price in plan version migrations. replaces_price_id:, + tiered_package_config:, dimensional_price_configuration: nil, - model_type: :bulk_bps + model_type: :tiered_package ) end @@ -2129,12 +2217,13 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - bulk_bps_config: Orb::BulkBPSConfig, - cadence: Orb::Price::BulkBPS::Cadence::TaggedSymbol, + cadence: Orb::Price::TieredPackage::Cadence::TaggedSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::BulkBPS::UnnamedTypeWithobjectParent90::Variants + Orb::Price::TieredPackage::UnnamedTypeWithobjectParent91::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -2153,8 +2242,9 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::BulkBPS::PriceType::TaggedSymbol, + price_type: Orb::Price::TieredPackage::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), + tiered_package_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) } @@ -2167,22 +2257,28 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Price::BulkBPS::Cadence) } + T.type_alias { T.all(Symbol, Orb::Price::TieredPackage::Cadence) } OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = - T.let(:one_time, Orb::Price::BulkBPS::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Price::BulkBPS::Cadence::TaggedSymbol) + T.let(:one_time, Orb::Price::TieredPackage::Cadence::TaggedSymbol) + MONTHLY = + T.let(:monthly, Orb::Price::TieredPackage::Cadence::TaggedSymbol) QUARTERLY = - T.let(:quarterly, Orb::Price::BulkBPS::Cadence::TaggedSymbol) + T.let(:quarterly, Orb::Price::TieredPackage::Cadence::TaggedSymbol) SEMI_ANNUAL = - T.let(:semi_annual, Orb::Price::BulkBPS::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Price::BulkBPS::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Price::BulkBPS::Cadence::TaggedSymbol) + T.let( + :semi_annual, + Orb::Price::TieredPackage::Cadence::TaggedSymbol + ) + ANNUAL = + T.let(:annual, Orb::Price::TieredPackage::Cadence::TaggedSymbol) + CUSTOM = + T.let(:custom, Orb::Price::TieredPackage::Cadence::TaggedSymbol) sig do override.returns( - T::Array[Orb::Price::BulkBPS::Cadence::TaggedSymbol] + T::Array[Orb::Price::TieredPackage::Cadence::TaggedSymbol] ) end def self.values @@ -2193,17 +2289,23 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Price::BulkBPS::PriceType) } + T.type_alias { T.all(Symbol, Orb::Price::TieredPackage::PriceType) } OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = - T.let(:usage_price, Orb::Price::BulkBPS::PriceType::TaggedSymbol) + T.let( + :usage_price, + Orb::Price::TieredPackage::PriceType::TaggedSymbol + ) FIXED_PRICE = - T.let(:fixed_price, Orb::Price::BulkBPS::PriceType::TaggedSymbol) + T.let( + :fixed_price, + Orb::Price::TieredPackage::PriceType::TaggedSymbol + ) sig do override.returns( - T::Array[Orb::Price::BulkBPS::PriceType::TaggedSymbol] + T::Array[Orb::Price::TieredPackage::PriceType::TaggedSymbol] ) end def self.values @@ -2211,9 +2313,11 @@ module Orb end end - class Bulk < Orb::Internal::Type::BaseModel + class GroupedTiered < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(Orb::Price::Bulk, Orb::Internal::AnyHash) } + T.type_alias do + T.any(Orb::Price::GroupedTiered, Orb::Internal::AnyHash) + end sig { returns(String) } attr_accessor :id @@ -2238,21 +2342,20 @@ module Orb end attr_writer :billing_cycle_configuration - sig { returns(Orb::BulkConfig) } - attr_reader :bulk_config - - sig { params(bulk_config: Orb::BulkConfig::OrHash).void } - attr_writer :bulk_config - - sig { returns(Orb::Price::Bulk::Cadence::TaggedSymbol) } + sig { returns(Orb::Price::GroupedTiered::Cadence::TaggedSymbol) } attr_accessor :cadence + sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } + attr_accessor :composite_price_filters + sig { returns(T.nilable(Float)) } attr_accessor :conversion_rate sig do returns( - T.nilable(Orb::Price::Bulk::UnnamedTypeWithobjectParent91::Variants) + T.nilable( + Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent92::Variants + ) ) end attr_accessor :conversion_rate_config @@ -2280,6 +2383,9 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :grouped_tiered_config + sig { returns(T.nilable(Orb::BillingCycleConfiguration)) } attr_reader :invoicing_cycle_configuration @@ -2331,7 +2437,7 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Price::Bulk::PriceType::TaggedSymbol) } + sig { returns(Orb::Price::GroupedTiered::PriceType::TaggedSymbol) } attr_accessor :price_type # The price id this price replaces. This price will take the place of the replaced @@ -2355,8 +2461,9 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - bulk_config: Orb::BulkConfig::OrHash, - cadence: Orb::Price::Bulk::Cadence::OrSymbol, + cadence: Orb::Price::GroupedTiered::Cadence::OrSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( @@ -2379,6 +2486,7 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), + grouped_tiered_config: T::Hash[Symbol, T.anything], invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration::OrHash), item: Orb::ItemSlim::OrHash, @@ -2389,7 +2497,7 @@ module Orb minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::Bulk::PriceType::OrSymbol, + price_type: Orb::Price::GroupedTiered::PriceType::OrSymbol, replaces_price_id: T.nilable(String), dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), @@ -2400,8 +2508,8 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, - bulk_config:, cadence:, + composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, @@ -2410,6 +2518,7 @@ module Orb discount:, external_price_id:, fixed_price_quantity:, + grouped_tiered_config:, invoicing_cycle_configuration:, item:, maximum:, @@ -2428,7 +2537,7 @@ module Orb # price in plan version migrations. replaces_price_id:, dimensional_price_configuration: nil, - model_type: :bulk + model_type: :grouped_tiered ) end @@ -2438,12 +2547,13 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - bulk_config: Orb::BulkConfig, - cadence: Orb::Price::Bulk::Cadence::TaggedSymbol, + cadence: Orb::Price::GroupedTiered::Cadence::TaggedSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::Bulk::UnnamedTypeWithobjectParent91::Variants + Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent92::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -2451,6 +2561,7 @@ module Orb discount: T.nilable(Orb::Discount::Variants), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), + grouped_tiered_config: T::Hash[Symbol, T.anything], invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration), item: Orb::ItemSlim, @@ -2462,7 +2573,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::Bulk::PriceType::TaggedSymbol, + price_type: Orb::Price::GroupedTiered::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) @@ -2476,19 +2587,29 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Price::Bulk::Cadence) } + T.type_alias { T.all(Symbol, Orb::Price::GroupedTiered::Cadence) } OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = T.let(:one_time, Orb::Price::Bulk::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Price::Bulk::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Price::Bulk::Cadence::TaggedSymbol) + ONE_TIME = + T.let(:one_time, Orb::Price::GroupedTiered::Cadence::TaggedSymbol) + MONTHLY = + T.let(:monthly, Orb::Price::GroupedTiered::Cadence::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::Price::GroupedTiered::Cadence::TaggedSymbol) SEMI_ANNUAL = - T.let(:semi_annual, Orb::Price::Bulk::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Price::Bulk::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Price::Bulk::Cadence::TaggedSymbol) + T.let( + :semi_annual, + Orb::Price::GroupedTiered::Cadence::TaggedSymbol + ) + ANNUAL = + T.let(:annual, Orb::Price::GroupedTiered::Cadence::TaggedSymbol) + CUSTOM = + T.let(:custom, Orb::Price::GroupedTiered::Cadence::TaggedSymbol) sig do - override.returns(T::Array[Orb::Price::Bulk::Cadence::TaggedSymbol]) + override.returns( + T::Array[Orb::Price::GroupedTiered::Cadence::TaggedSymbol] + ) end def self.values end @@ -2498,17 +2619,23 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Price::Bulk::PriceType) } + T.type_alias { T.all(Symbol, Orb::Price::GroupedTiered::PriceType) } OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = - T.let(:usage_price, Orb::Price::Bulk::PriceType::TaggedSymbol) + T.let( + :usage_price, + Orb::Price::GroupedTiered::PriceType::TaggedSymbol + ) FIXED_PRICE = - T.let(:fixed_price, Orb::Price::Bulk::PriceType::TaggedSymbol) + T.let( + :fixed_price, + Orb::Price::GroupedTiered::PriceType::TaggedSymbol + ) sig do override.returns( - T::Array[Orb::Price::Bulk::PriceType::TaggedSymbol] + T::Array[Orb::Price::GroupedTiered::PriceType::TaggedSymbol] ) end def self.values @@ -2516,10 +2643,10 @@ module Orb end end - class ThresholdTotalAmount < Orb::Internal::Type::BaseModel + class TieredWithMinimum < Orb::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(Orb::Price::ThresholdTotalAmount, Orb::Internal::AnyHash) + T.any(Orb::Price::TieredWithMinimum, Orb::Internal::AnyHash) end sig { returns(String) } @@ -2545,16 +2672,19 @@ module Orb end attr_writer :billing_cycle_configuration - sig { returns(Orb::Price::ThresholdTotalAmount::Cadence::TaggedSymbol) } + sig { returns(Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol) } attr_accessor :cadence + sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } + attr_accessor :composite_price_filters + sig { returns(T.nilable(Float)) } attr_accessor :conversion_rate sig do returns( T.nilable( - Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent92::Variants + Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent93::Variants ) ) end @@ -2634,9 +2764,7 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig do - returns(Orb::Price::ThresholdTotalAmount::PriceType::TaggedSymbol) - end + sig { returns(Orb::Price::TieredWithMinimum::PriceType::TaggedSymbol) } attr_accessor :price_type # The price id this price replaces. This price will take the place of the replaced @@ -2645,7 +2773,7 @@ module Orb attr_accessor :replaces_price_id sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :threshold_total_amount_config + attr_accessor :tiered_with_minimum_config sig { returns(T.nilable(Orb::DimensionalPriceConfiguration)) } attr_reader :dimensional_price_configuration @@ -2663,7 +2791,9 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - cadence: Orb::Price::ThresholdTotalAmount::Cadence::OrSymbol, + cadence: Orb::Price::TieredWithMinimum::Cadence::OrSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( @@ -2696,9 +2826,9 @@ module Orb minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::ThresholdTotalAmount::PriceType::OrSymbol, + price_type: Orb::Price::TieredWithMinimum::PriceType::OrSymbol, replaces_price_id: T.nilable(String), - threshold_total_amount_config: T::Hash[Symbol, T.anything], + tiered_with_minimum_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), model_type: Symbol @@ -2709,6 +2839,7 @@ module Orb billable_metric:, billing_cycle_configuration:, cadence:, + composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, @@ -2734,9 +2865,9 @@ module Orb # The price id this price replaces. This price will take the place of the replaced # price in plan version migrations. replaces_price_id:, - threshold_total_amount_config:, + tiered_with_minimum_config:, dimensional_price_configuration: nil, - model_type: :threshold_total_amount + model_type: :tiered_with_minimum ) end @@ -2746,11 +2877,13 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::ThresholdTotalAmount::Cadence::TaggedSymbol, + cadence: Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent92::Variants + Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent93::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -2770,9 +2903,9 @@ module Orb name: String, plan_phase_order: T.nilable(Integer), price_type: - Orb::Price::ThresholdTotalAmount::PriceType::TaggedSymbol, + Orb::Price::TieredWithMinimum::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), - threshold_total_amount_config: T::Hash[Symbol, T.anything], + tiered_with_minimum_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) } @@ -2786,44 +2919,38 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::ThresholdTotalAmount::Cadence) + T.all(Symbol, Orb::Price::TieredWithMinimum::Cadence) end OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = T.let( :one_time, - Orb::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Price::ThresholdTotalAmount::Cadence::TaggedSymbol + Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol ) ANNUAL = - T.let( - :annual, - Orb::Price::ThresholdTotalAmount::Cadence::TaggedSymbol - ) + T.let(:annual, Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol) CUSTOM = - T.let( - :custom, - Orb::Price::ThresholdTotalAmount::Cadence::TaggedSymbol - ) + T.let(:custom, Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol) sig do override.returns( - T::Array[Orb::Price::ThresholdTotalAmount::Cadence::TaggedSymbol] + T::Array[Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol] ) end def self.values @@ -2835,26 +2962,24 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::ThresholdTotalAmount::PriceType) + T.all(Symbol, Orb::Price::TieredWithMinimum::PriceType) end OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = T.let( :usage_price, - Orb::Price::ThresholdTotalAmount::PriceType::TaggedSymbol + Orb::Price::TieredWithMinimum::PriceType::TaggedSymbol ) FIXED_PRICE = T.let( :fixed_price, - Orb::Price::ThresholdTotalAmount::PriceType::TaggedSymbol + Orb::Price::TieredWithMinimum::PriceType::TaggedSymbol ) sig do override.returns( - T::Array[ - Orb::Price::ThresholdTotalAmount::PriceType::TaggedSymbol - ] + T::Array[Orb::Price::TieredWithMinimum::PriceType::TaggedSymbol] ) end def self.values @@ -2862,10 +2987,10 @@ module Orb end end - class TieredPackage < Orb::Internal::Type::BaseModel + class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(Orb::Price::TieredPackage, Orb::Internal::AnyHash) + T.any(Orb::Price::TieredPackageWithMinimum, Orb::Internal::AnyHash) end sig { returns(String) } @@ -2891,16 +3016,21 @@ module Orb end attr_writer :billing_cycle_configuration - sig { returns(Orb::Price::TieredPackage::Cadence::TaggedSymbol) } + sig do + returns(Orb::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol) + end attr_accessor :cadence + sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } + attr_accessor :composite_price_filters + sig { returns(T.nilable(Float)) } attr_accessor :conversion_rate sig do returns( T.nilable( - Orb::Price::TieredPackage::UnnamedTypeWithobjectParent93::Variants + Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent94::Variants ) ) end @@ -2980,7 +3110,9 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Price::TieredPackage::PriceType::TaggedSymbol) } + sig do + returns(Orb::Price::TieredPackageWithMinimum::PriceType::TaggedSymbol) + end attr_accessor :price_type # The price id this price replaces. This price will take the place of the replaced @@ -2989,7 +3121,7 @@ module Orb attr_accessor :replaces_price_id sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :tiered_package_config + attr_accessor :tiered_package_with_minimum_config sig { returns(T.nilable(Orb::DimensionalPriceConfiguration)) } attr_reader :dimensional_price_configuration @@ -3007,7 +3139,9 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - cadence: Orb::Price::TieredPackage::Cadence::OrSymbol, + cadence: Orb::Price::TieredPackageWithMinimum::Cadence::OrSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( @@ -3040,9 +3174,10 @@ module Orb minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::TieredPackage::PriceType::OrSymbol, + price_type: + Orb::Price::TieredPackageWithMinimum::PriceType::OrSymbol, replaces_price_id: T.nilable(String), - tiered_package_config: T::Hash[Symbol, T.anything], + tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), model_type: Symbol @@ -3053,6 +3188,7 @@ module Orb billable_metric:, billing_cycle_configuration:, cadence:, + composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, @@ -3078,9 +3214,9 @@ module Orb # The price id this price replaces. This price will take the place of the replaced # price in plan version migrations. replaces_price_id:, - tiered_package_config:, + tiered_package_with_minimum_config:, dimensional_price_configuration: nil, - model_type: :tiered_package + model_type: :tiered_package_with_minimum ) end @@ -3090,11 +3226,14 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::TieredPackage::Cadence::TaggedSymbol, + cadence: + Orb::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::TieredPackage::UnnamedTypeWithobjectParent93::Variants + Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent94::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -3113,9 +3252,10 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::TieredPackage::PriceType::TaggedSymbol, + price_type: + Orb::Price::TieredPackageWithMinimum::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), - tiered_package_config: T::Hash[Symbol, T.anything], + tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) } @@ -3128,28 +3268,47 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Price::TieredPackage::Cadence) } + T.type_alias do + T.all(Symbol, Orb::Price::TieredPackageWithMinimum::Cadence) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = - T.let(:one_time, Orb::Price::TieredPackage::Cadence::TaggedSymbol) + T.let( + :one_time, + Orb::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol + ) MONTHLY = - T.let(:monthly, Orb::Price::TieredPackage::Cadence::TaggedSymbol) + T.let( + :monthly, + Orb::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol + ) QUARTERLY = - T.let(:quarterly, Orb::Price::TieredPackage::Cadence::TaggedSymbol) + T.let( + :quarterly, + Orb::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol + ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Price::TieredPackage::Cadence::TaggedSymbol + Orb::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol ) ANNUAL = - T.let(:annual, Orb::Price::TieredPackage::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol + ) CUSTOM = - T.let(:custom, Orb::Price::TieredPackage::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol + ) sig do override.returns( - T::Array[Orb::Price::TieredPackage::Cadence::TaggedSymbol] + T::Array[ + Orb::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol + ] ) end def self.values @@ -3160,23 +3319,27 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Price::TieredPackage::PriceType) } + T.type_alias do + T.all(Symbol, Orb::Price::TieredPackageWithMinimum::PriceType) + end OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = T.let( :usage_price, - Orb::Price::TieredPackage::PriceType::TaggedSymbol + Orb::Price::TieredPackageWithMinimum::PriceType::TaggedSymbol ) FIXED_PRICE = T.let( :fixed_price, - Orb::Price::TieredPackage::PriceType::TaggedSymbol + Orb::Price::TieredPackageWithMinimum::PriceType::TaggedSymbol ) sig do override.returns( - T::Array[Orb::Price::TieredPackage::PriceType::TaggedSymbol] + T::Array[ + Orb::Price::TieredPackageWithMinimum::PriceType::TaggedSymbol + ] ) end def self.values @@ -3184,10 +3347,10 @@ module Orb end end - class GroupedTiered < Orb::Internal::Type::BaseModel + class PackageWithAllocation < Orb::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(Orb::Price::GroupedTiered, Orb::Internal::AnyHash) + T.any(Orb::Price::PackageWithAllocation, Orb::Internal::AnyHash) end sig { returns(String) } @@ -3213,16 +3376,21 @@ module Orb end attr_writer :billing_cycle_configuration - sig { returns(Orb::Price::GroupedTiered::Cadence::TaggedSymbol) } + sig do + returns(Orb::Price::PackageWithAllocation::Cadence::TaggedSymbol) + end attr_accessor :cadence + sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } + attr_accessor :composite_price_filters + sig { returns(T.nilable(Float)) } attr_accessor :conversion_rate sig do returns( T.nilable( - Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent94::Variants + Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent95::Variants ) ) end @@ -3251,9 +3419,6 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_tiered_config - sig { returns(T.nilable(Orb::BillingCycleConfiguration)) } attr_reader :invoicing_cycle_configuration @@ -3302,10 +3467,15 @@ module Orb sig { returns(String) } attr_accessor :name + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :package_with_allocation_config + sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Price::GroupedTiered::PriceType::TaggedSymbol) } + sig do + returns(Orb::Price::PackageWithAllocation::PriceType::TaggedSymbol) + end attr_accessor :price_type # The price id this price replaces. This price will take the place of the replaced @@ -3329,7 +3499,9 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - cadence: Orb::Price::GroupedTiered::Cadence::OrSymbol, + cadence: Orb::Price::PackageWithAllocation::Cadence::OrSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( @@ -3352,7 +3524,6 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - grouped_tiered_config: T::Hash[Symbol, T.anything], invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration::OrHash), item: Orb::ItemSlim::OrHash, @@ -3362,8 +3533,9 @@ module Orb minimum: T.nilable(Orb::Minimum::OrHash), minimum_amount: T.nilable(String), name: String, + package_with_allocation_config: T::Hash[Symbol, T.anything], plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::GroupedTiered::PriceType::OrSymbol, + price_type: Orb::Price::PackageWithAllocation::PriceType::OrSymbol, replaces_price_id: T.nilable(String), dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), @@ -3375,6 +3547,7 @@ module Orb billable_metric:, billing_cycle_configuration:, cadence:, + composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, @@ -3383,7 +3556,6 @@ module Orb discount:, external_price_id:, fixed_price_quantity:, - grouped_tiered_config:, invoicing_cycle_configuration:, item:, maximum:, @@ -3396,13 +3568,14 @@ module Orb minimum:, minimum_amount:, name:, + package_with_allocation_config:, plan_phase_order:, price_type:, # The price id this price replaces. This price will take the place of the replaced # price in plan version migrations. replaces_price_id:, dimensional_price_configuration: nil, - model_type: :grouped_tiered + model_type: :package_with_allocation ) end @@ -3412,11 +3585,13 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::GroupedTiered::Cadence::TaggedSymbol, + cadence: Orb::Price::PackageWithAllocation::Cadence::TaggedSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent94::Variants + Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent95::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -3424,7 +3599,6 @@ module Orb discount: T.nilable(Orb::Discount::Variants), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - grouped_tiered_config: T::Hash[Symbol, T.anything], invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration), item: Orb::ItemSlim, @@ -3435,8 +3609,10 @@ module Orb minimum_amount: T.nilable(String), model_type: Symbol, name: String, + package_with_allocation_config: T::Hash[Symbol, T.anything], plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::GroupedTiered::PriceType::TaggedSymbol, + price_type: + Orb::Price::PackageWithAllocation::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) @@ -3450,28 +3626,45 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Price::GroupedTiered::Cadence) } + T.type_alias do + T.all(Symbol, Orb::Price::PackageWithAllocation::Cadence) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = - T.let(:one_time, Orb::Price::GroupedTiered::Cadence::TaggedSymbol) + T.let( + :one_time, + Orb::Price::PackageWithAllocation::Cadence::TaggedSymbol + ) MONTHLY = - T.let(:monthly, Orb::Price::GroupedTiered::Cadence::TaggedSymbol) + T.let( + :monthly, + Orb::Price::PackageWithAllocation::Cadence::TaggedSymbol + ) QUARTERLY = - T.let(:quarterly, Orb::Price::GroupedTiered::Cadence::TaggedSymbol) + T.let( + :quarterly, + Orb::Price::PackageWithAllocation::Cadence::TaggedSymbol + ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Price::GroupedTiered::Cadence::TaggedSymbol + Orb::Price::PackageWithAllocation::Cadence::TaggedSymbol ) ANNUAL = - T.let(:annual, Orb::Price::GroupedTiered::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::Price::PackageWithAllocation::Cadence::TaggedSymbol + ) CUSTOM = - T.let(:custom, Orb::Price::GroupedTiered::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::Price::PackageWithAllocation::Cadence::TaggedSymbol + ) sig do override.returns( - T::Array[Orb::Price::GroupedTiered::Cadence::TaggedSymbol] + T::Array[Orb::Price::PackageWithAllocation::Cadence::TaggedSymbol] ) end def self.values @@ -3482,23 +3675,27 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Price::GroupedTiered::PriceType) } + T.type_alias do + T.all(Symbol, Orb::Price::PackageWithAllocation::PriceType) + end OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = T.let( :usage_price, - Orb::Price::GroupedTiered::PriceType::TaggedSymbol + Orb::Price::PackageWithAllocation::PriceType::TaggedSymbol ) FIXED_PRICE = T.let( :fixed_price, - Orb::Price::GroupedTiered::PriceType::TaggedSymbol + Orb::Price::PackageWithAllocation::PriceType::TaggedSymbol ) sig do override.returns( - T::Array[Orb::Price::GroupedTiered::PriceType::TaggedSymbol] + T::Array[ + Orb::Price::PackageWithAllocation::PriceType::TaggedSymbol + ] ) end def self.values @@ -3506,10 +3703,10 @@ module Orb end end - class TieredWithMinimum < Orb::Internal::Type::BaseModel + class UnitWithPercent < Orb::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(Orb::Price::TieredWithMinimum, Orb::Internal::AnyHash) + T.any(Orb::Price::UnitWithPercent, Orb::Internal::AnyHash) end sig { returns(String) } @@ -3535,16 +3732,19 @@ module Orb end attr_writer :billing_cycle_configuration - sig { returns(Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol) } + sig { returns(Orb::Price::UnitWithPercent::Cadence::TaggedSymbol) } attr_accessor :cadence + sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } + attr_accessor :composite_price_filters + sig { returns(T.nilable(Float)) } attr_accessor :conversion_rate sig do returns( T.nilable( - Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent95::Variants + Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent96::Variants ) ) end @@ -3624,7 +3824,7 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Price::TieredWithMinimum::PriceType::TaggedSymbol) } + sig { returns(Orb::Price::UnitWithPercent::PriceType::TaggedSymbol) } attr_accessor :price_type # The price id this price replaces. This price will take the place of the replaced @@ -3633,7 +3833,7 @@ module Orb attr_accessor :replaces_price_id sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :tiered_with_minimum_config + attr_accessor :unit_with_percent_config sig { returns(T.nilable(Orb::DimensionalPriceConfiguration)) } attr_reader :dimensional_price_configuration @@ -3651,7 +3851,9 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - cadence: Orb::Price::TieredWithMinimum::Cadence::OrSymbol, + cadence: Orb::Price::UnitWithPercent::Cadence::OrSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( @@ -3684,9 +3886,9 @@ module Orb minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::TieredWithMinimum::PriceType::OrSymbol, + price_type: Orb::Price::UnitWithPercent::PriceType::OrSymbol, replaces_price_id: T.nilable(String), - tiered_with_minimum_config: T::Hash[Symbol, T.anything], + unit_with_percent_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), model_type: Symbol @@ -3697,6 +3899,7 @@ module Orb billable_metric:, billing_cycle_configuration:, cadence:, + composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, @@ -3722,9 +3925,9 @@ module Orb # The price id this price replaces. This price will take the place of the replaced # price in plan version migrations. replaces_price_id:, - tiered_with_minimum_config:, + unit_with_percent_config:, dimensional_price_configuration: nil, - model_type: :tiered_with_minimum + model_type: :unit_with_percent ) end @@ -3734,11 +3937,13 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol, + cadence: Orb::Price::UnitWithPercent::Cadence::TaggedSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent95::Variants + Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent96::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -3757,10 +3962,9 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: - Orb::Price::TieredWithMinimum::PriceType::TaggedSymbol, + price_type: Orb::Price::UnitWithPercent::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), - tiered_with_minimum_config: T::Hash[Symbol, T.anything], + unit_with_percent_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) } @@ -3773,39 +3977,31 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias do - T.all(Symbol, Orb::Price::TieredWithMinimum::Cadence) - end + T.type_alias { T.all(Symbol, Orb::Price::UnitWithPercent::Cadence) } OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = - T.let( - :one_time, - Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol - ) + T.let(:one_time, Orb::Price::UnitWithPercent::Cadence::TaggedSymbol) MONTHLY = - T.let( - :monthly, - Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol - ) + T.let(:monthly, Orb::Price::UnitWithPercent::Cadence::TaggedSymbol) QUARTERLY = T.let( :quarterly, - Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol + Orb::Price::UnitWithPercent::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol + Orb::Price::UnitWithPercent::Cadence::TaggedSymbol ) ANNUAL = - T.let(:annual, Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol) + T.let(:annual, Orb::Price::UnitWithPercent::Cadence::TaggedSymbol) CUSTOM = - T.let(:custom, Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol) + T.let(:custom, Orb::Price::UnitWithPercent::Cadence::TaggedSymbol) sig do override.returns( - T::Array[Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol] + T::Array[Orb::Price::UnitWithPercent::Cadence::TaggedSymbol] ) end def self.values @@ -3817,24 +4013,24 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::TieredWithMinimum::PriceType) + T.all(Symbol, Orb::Price::UnitWithPercent::PriceType) end OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = T.let( :usage_price, - Orb::Price::TieredWithMinimum::PriceType::TaggedSymbol + Orb::Price::UnitWithPercent::PriceType::TaggedSymbol ) FIXED_PRICE = T.let( :fixed_price, - Orb::Price::TieredWithMinimum::PriceType::TaggedSymbol + Orb::Price::UnitWithPercent::PriceType::TaggedSymbol ) sig do override.returns( - T::Array[Orb::Price::TieredWithMinimum::PriceType::TaggedSymbol] + T::Array[Orb::Price::UnitWithPercent::PriceType::TaggedSymbol] ) end def self.values @@ -3842,10 +4038,10 @@ module Orb end end - class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel + class MatrixWithAllocation < Orb::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(Orb::Price::TieredPackageWithMinimum, Orb::Internal::AnyHash) + T.any(Orb::Price::MatrixWithAllocation, Orb::Internal::AnyHash) end sig { returns(String) } @@ -3871,18 +4067,19 @@ module Orb end attr_writer :billing_cycle_configuration - sig do - returns(Orb::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol) - end + sig { returns(Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol) } attr_accessor :cadence + sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } + attr_accessor :composite_price_filters + sig { returns(T.nilable(Float)) } attr_accessor :conversion_rate sig do returns( T.nilable( - Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent96::Variants + Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent97::Variants ) ) end @@ -3928,6 +4125,17 @@ module Orb sig { params(item: Orb::ItemSlim::OrHash).void } attr_writer :item + sig { returns(Orb::MatrixWithAllocationConfig) } + attr_reader :matrix_with_allocation_config + + sig do + params( + matrix_with_allocation_config: + Orb::MatrixWithAllocationConfig::OrHash + ).void + end + attr_writer :matrix_with_allocation_config + sig { returns(T.nilable(Orb::Maximum)) } attr_reader :maximum @@ -3963,7 +4171,7 @@ module Orb attr_accessor :plan_phase_order sig do - returns(Orb::Price::TieredPackageWithMinimum::PriceType::TaggedSymbol) + returns(Orb::Price::MatrixWithAllocation::PriceType::TaggedSymbol) end attr_accessor :price_type @@ -3972,9 +4180,6 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :replaces_price_id - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :tiered_package_with_minimum_config - sig { returns(T.nilable(Orb::DimensionalPriceConfiguration)) } attr_reader :dimensional_price_configuration @@ -3991,7 +4196,9 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - cadence: Orb::Price::TieredPackageWithMinimum::Cadence::OrSymbol, + cadence: Orb::Price::MatrixWithAllocation::Cadence::OrSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( @@ -4017,6 +4224,8 @@ module Orb invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration::OrHash), item: Orb::ItemSlim::OrHash, + matrix_with_allocation_config: + Orb::MatrixWithAllocationConfig::OrHash, maximum: T.nilable(Orb::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], @@ -4024,10 +4233,8 @@ module Orb minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: - Orb::Price::TieredPackageWithMinimum::PriceType::OrSymbol, + price_type: Orb::Price::MatrixWithAllocation::PriceType::OrSymbol, replaces_price_id: T.nilable(String), - tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), model_type: Symbol @@ -4038,6 +4245,7 @@ module Orb billable_metric:, billing_cycle_configuration:, cadence:, + composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, @@ -4048,6 +4256,7 @@ module Orb fixed_price_quantity:, invoicing_cycle_configuration:, item:, + matrix_with_allocation_config:, maximum:, maximum_amount:, # User specified key-value pairs for the resource. If not present, this defaults @@ -4063,9 +4272,8 @@ module Orb # The price id this price replaces. This price will take the place of the replaced # price in plan version migrations. replaces_price_id:, - tiered_package_with_minimum_config:, dimensional_price_configuration: nil, - model_type: :tiered_package_with_minimum + model_type: :matrix_with_allocation ) end @@ -4075,12 +4283,13 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: - Orb::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol, + cadence: Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent96::Variants + Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent97::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -4091,6 +4300,7 @@ module Orb invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration), item: Orb::ItemSlim, + matrix_with_allocation_config: Orb::MatrixWithAllocationConfig, maximum: T.nilable(Orb::Maximum), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], @@ -4100,9 +4310,8 @@ module Orb name: String, plan_phase_order: T.nilable(Integer), price_type: - Orb::Price::TieredPackageWithMinimum::PriceType::TaggedSymbol, + Orb::Price::MatrixWithAllocation::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), - tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) } @@ -4116,46 +4325,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::TieredPackageWithMinimum::Cadence) + T.all(Symbol, Orb::Price::MatrixWithAllocation::Cadence) end OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = T.let( :one_time, - Orb::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol + Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol + Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol + Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol + Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol ) ANNUAL = T.let( :annual, - Orb::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol + Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol + Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol ) sig do override.returns( - T::Array[ - Orb::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol - ] + T::Array[Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol] ) end def self.values @@ -4167,25 +4374,25 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::TieredPackageWithMinimum::PriceType) + T.all(Symbol, Orb::Price::MatrixWithAllocation::PriceType) end OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = T.let( :usage_price, - Orb::Price::TieredPackageWithMinimum::PriceType::TaggedSymbol + Orb::Price::MatrixWithAllocation::PriceType::TaggedSymbol ) FIXED_PRICE = T.let( :fixed_price, - Orb::Price::TieredPackageWithMinimum::PriceType::TaggedSymbol + Orb::Price::MatrixWithAllocation::PriceType::TaggedSymbol ) sig do override.returns( T::Array[ - Orb::Price::TieredPackageWithMinimum::PriceType::TaggedSymbol + Orb::Price::MatrixWithAllocation::PriceType::TaggedSymbol ] ) end @@ -4194,10 +4401,10 @@ module Orb end end - class PackageWithAllocation < Orb::Internal::Type::BaseModel + class TieredWithProration < Orb::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(Orb::Price::PackageWithAllocation, Orb::Internal::AnyHash) + T.any(Orb::Price::TieredWithProration, Orb::Internal::AnyHash) end sig { returns(String) } @@ -4223,18 +4430,19 @@ module Orb end attr_writer :billing_cycle_configuration - sig do - returns(Orb::Price::PackageWithAllocation::Cadence::TaggedSymbol) - end + sig { returns(Orb::Price::TieredWithProration::Cadence::TaggedSymbol) } attr_accessor :cadence + sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } + attr_accessor :composite_price_filters + sig { returns(T.nilable(Float)) } attr_accessor :conversion_rate sig do returns( T.nilable( - Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent97::Variants + Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent98::Variants ) ) end @@ -4311,14 +4519,11 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :package_with_allocation_config - sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order sig do - returns(Orb::Price::PackageWithAllocation::PriceType::TaggedSymbol) + returns(Orb::Price::TieredWithProration::PriceType::TaggedSymbol) end attr_accessor :price_type @@ -4327,6 +4532,9 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :replaces_price_id + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :tiered_with_proration_config + sig { returns(T.nilable(Orb::DimensionalPriceConfiguration)) } attr_reader :dimensional_price_configuration @@ -4343,7 +4551,9 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - cadence: Orb::Price::PackageWithAllocation::Cadence::OrSymbol, + cadence: Orb::Price::TieredWithProration::Cadence::OrSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( @@ -4375,10 +4585,10 @@ module Orb minimum: T.nilable(Orb::Minimum::OrHash), minimum_amount: T.nilable(String), name: String, - package_with_allocation_config: T::Hash[Symbol, T.anything], plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::PackageWithAllocation::PriceType::OrSymbol, + price_type: Orb::Price::TieredWithProration::PriceType::OrSymbol, replaces_price_id: T.nilable(String), + tiered_with_proration_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), model_type: Symbol @@ -4389,6 +4599,7 @@ module Orb billable_metric:, billing_cycle_configuration:, cadence:, + composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, @@ -4409,14 +4620,14 @@ module Orb minimum:, minimum_amount:, name:, - package_with_allocation_config:, plan_phase_order:, price_type:, # The price id this price replaces. This price will take the place of the replaced # price in plan version migrations. replaces_price_id:, + tiered_with_proration_config:, dimensional_price_configuration: nil, - model_type: :package_with_allocation + model_type: :tiered_with_proration ) end @@ -4426,11 +4637,13 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::PackageWithAllocation::Cadence::TaggedSymbol, + cadence: Orb::Price::TieredWithProration::Cadence::TaggedSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent97::Variants + Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent98::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -4448,11 +4661,11 @@ module Orb minimum_amount: T.nilable(String), model_type: Symbol, name: String, - package_with_allocation_config: T::Hash[Symbol, T.anything], plan_phase_order: T.nilable(Integer), price_type: - Orb::Price::PackageWithAllocation::PriceType::TaggedSymbol, + Orb::Price::TieredWithProration::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), + tiered_with_proration_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) } @@ -4466,44 +4679,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::PackageWithAllocation::Cadence) + T.all(Symbol, Orb::Price::TieredWithProration::Cadence) end OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = T.let( :one_time, - Orb::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::Price::TieredWithProration::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::Price::TieredWithProration::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::Price::TieredWithProration::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::Price::TieredWithProration::Cadence::TaggedSymbol ) ANNUAL = T.let( :annual, - Orb::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::Price::TieredWithProration::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Price::PackageWithAllocation::Cadence::TaggedSymbol + Orb::Price::TieredWithProration::Cadence::TaggedSymbol ) sig do override.returns( - T::Array[Orb::Price::PackageWithAllocation::Cadence::TaggedSymbol] + T::Array[Orb::Price::TieredWithProration::Cadence::TaggedSymbol] ) end def self.values @@ -4515,26 +4728,24 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::PackageWithAllocation::PriceType) + T.all(Symbol, Orb::Price::TieredWithProration::PriceType) end OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = T.let( :usage_price, - Orb::Price::PackageWithAllocation::PriceType::TaggedSymbol + Orb::Price::TieredWithProration::PriceType::TaggedSymbol ) FIXED_PRICE = T.let( :fixed_price, - Orb::Price::PackageWithAllocation::PriceType::TaggedSymbol + Orb::Price::TieredWithProration::PriceType::TaggedSymbol ) sig do override.returns( - T::Array[ - Orb::Price::PackageWithAllocation::PriceType::TaggedSymbol - ] + T::Array[Orb::Price::TieredWithProration::PriceType::TaggedSymbol] ) end def self.values @@ -4542,10 +4753,10 @@ module Orb end end - class UnitWithPercent < Orb::Internal::Type::BaseModel + class UnitWithProration < Orb::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(Orb::Price::UnitWithPercent, Orb::Internal::AnyHash) + T.any(Orb::Price::UnitWithProration, Orb::Internal::AnyHash) end sig { returns(String) } @@ -4571,16 +4782,19 @@ module Orb end attr_writer :billing_cycle_configuration - sig { returns(Orb::Price::UnitWithPercent::Cadence::TaggedSymbol) } + sig { returns(Orb::Price::UnitWithProration::Cadence::TaggedSymbol) } attr_accessor :cadence + sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } + attr_accessor :composite_price_filters + sig { returns(T.nilable(Float)) } attr_accessor :conversion_rate sig do returns( T.nilable( - Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent98::Variants + Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent99::Variants ) ) end @@ -4660,7 +4874,7 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Price::UnitWithPercent::PriceType::TaggedSymbol) } + sig { returns(Orb::Price::UnitWithProration::PriceType::TaggedSymbol) } attr_accessor :price_type # The price id this price replaces. This price will take the place of the replaced @@ -4669,7 +4883,7 @@ module Orb attr_accessor :replaces_price_id sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :unit_with_percent_config + attr_accessor :unit_with_proration_config sig { returns(T.nilable(Orb::DimensionalPriceConfiguration)) } attr_reader :dimensional_price_configuration @@ -4687,7 +4901,9 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - cadence: Orb::Price::UnitWithPercent::Cadence::OrSymbol, + cadence: Orb::Price::UnitWithProration::Cadence::OrSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( @@ -4720,9 +4936,9 @@ module Orb minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::UnitWithPercent::PriceType::OrSymbol, + price_type: Orb::Price::UnitWithProration::PriceType::OrSymbol, replaces_price_id: T.nilable(String), - unit_with_percent_config: T::Hash[Symbol, T.anything], + unit_with_proration_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), model_type: Symbol @@ -4733,6 +4949,7 @@ module Orb billable_metric:, billing_cycle_configuration:, cadence:, + composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, @@ -4758,9 +4975,9 @@ module Orb # The price id this price replaces. This price will take the place of the replaced # price in plan version migrations. replaces_price_id:, - unit_with_percent_config:, + unit_with_proration_config:, dimensional_price_configuration: nil, - model_type: :unit_with_percent + model_type: :unit_with_proration ) end @@ -4770,11 +4987,13 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::UnitWithPercent::Cadence::TaggedSymbol, + cadence: Orb::Price::UnitWithProration::Cadence::TaggedSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent98::Variants + Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent99::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -4793,9 +5012,10 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::UnitWithPercent::PriceType::TaggedSymbol, + price_type: + Orb::Price::UnitWithProration::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), - unit_with_percent_config: T::Hash[Symbol, T.anything], + unit_with_proration_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) } @@ -4808,31 +5028,39 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Price::UnitWithPercent::Cadence) } + T.type_alias do + T.all(Symbol, Orb::Price::UnitWithProration::Cadence) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = - T.let(:one_time, Orb::Price::UnitWithPercent::Cadence::TaggedSymbol) + T.let( + :one_time, + Orb::Price::UnitWithProration::Cadence::TaggedSymbol + ) MONTHLY = - T.let(:monthly, Orb::Price::UnitWithPercent::Cadence::TaggedSymbol) + T.let( + :monthly, + Orb::Price::UnitWithProration::Cadence::TaggedSymbol + ) QUARTERLY = T.let( :quarterly, - Orb::Price::UnitWithPercent::Cadence::TaggedSymbol + Orb::Price::UnitWithProration::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Price::UnitWithPercent::Cadence::TaggedSymbol + Orb::Price::UnitWithProration::Cadence::TaggedSymbol ) ANNUAL = - T.let(:annual, Orb::Price::UnitWithPercent::Cadence::TaggedSymbol) + T.let(:annual, Orb::Price::UnitWithProration::Cadence::TaggedSymbol) CUSTOM = - T.let(:custom, Orb::Price::UnitWithPercent::Cadence::TaggedSymbol) + T.let(:custom, Orb::Price::UnitWithProration::Cadence::TaggedSymbol) sig do override.returns( - T::Array[Orb::Price::UnitWithPercent::Cadence::TaggedSymbol] + T::Array[Orb::Price::UnitWithProration::Cadence::TaggedSymbol] ) end def self.values @@ -4844,24 +5072,24 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::UnitWithPercent::PriceType) + T.all(Symbol, Orb::Price::UnitWithProration::PriceType) end OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = T.let( :usage_price, - Orb::Price::UnitWithPercent::PriceType::TaggedSymbol + Orb::Price::UnitWithProration::PriceType::TaggedSymbol ) FIXED_PRICE = T.let( :fixed_price, - Orb::Price::UnitWithPercent::PriceType::TaggedSymbol + Orb::Price::UnitWithProration::PriceType::TaggedSymbol ) sig do override.returns( - T::Array[Orb::Price::UnitWithPercent::PriceType::TaggedSymbol] + T::Array[Orb::Price::UnitWithProration::PriceType::TaggedSymbol] ) end def self.values @@ -4869,10 +5097,10 @@ module Orb end end - class MatrixWithAllocation < Orb::Internal::Type::BaseModel + class GroupedAllocation < Orb::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(Orb::Price::MatrixWithAllocation, Orb::Internal::AnyHash) + T.any(Orb::Price::GroupedAllocation, Orb::Internal::AnyHash) end sig { returns(String) } @@ -4898,16 +5126,19 @@ module Orb end attr_writer :billing_cycle_configuration - sig { returns(Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol) } + sig { returns(Orb::Price::GroupedAllocation::Cadence::TaggedSymbol) } attr_accessor :cadence + sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } + attr_accessor :composite_price_filters + sig { returns(T.nilable(Float)) } attr_accessor :conversion_rate sig do returns( T.nilable( - Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent99::Variants + Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent100::Variants ) ) end @@ -4936,6 +5167,9 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :grouped_allocation_config + sig { returns(T.nilable(Orb::BillingCycleConfiguration)) } attr_reader :invoicing_cycle_configuration @@ -4953,17 +5187,6 @@ module Orb sig { params(item: Orb::ItemSlim::OrHash).void } attr_writer :item - sig { returns(Orb::MatrixWithAllocationConfig) } - attr_reader :matrix_with_allocation_config - - sig do - params( - matrix_with_allocation_config: - Orb::MatrixWithAllocationConfig::OrHash - ).void - end - attr_writer :matrix_with_allocation_config - sig { returns(T.nilable(Orb::Maximum)) } attr_reader :maximum @@ -4998,9 +5221,7 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig do - returns(Orb::Price::MatrixWithAllocation::PriceType::TaggedSymbol) - end + sig { returns(Orb::Price::GroupedAllocation::PriceType::TaggedSymbol) } attr_accessor :price_type # The price id this price replaces. This price will take the place of the replaced @@ -5024,7 +5245,9 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - cadence: Orb::Price::MatrixWithAllocation::Cadence::OrSymbol, + cadence: Orb::Price::GroupedAllocation::Cadence::OrSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( @@ -5047,11 +5270,10 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), + grouped_allocation_config: T::Hash[Symbol, T.anything], invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration::OrHash), item: Orb::ItemSlim::OrHash, - matrix_with_allocation_config: - Orb::MatrixWithAllocationConfig::OrHash, maximum: T.nilable(Orb::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], @@ -5059,7 +5281,7 @@ module Orb minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::MatrixWithAllocation::PriceType::OrSymbol, + price_type: Orb::Price::GroupedAllocation::PriceType::OrSymbol, replaces_price_id: T.nilable(String), dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), @@ -5071,6 +5293,7 @@ module Orb billable_metric:, billing_cycle_configuration:, cadence:, + composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, @@ -5079,9 +5302,9 @@ module Orb discount:, external_price_id:, fixed_price_quantity:, + grouped_allocation_config:, invoicing_cycle_configuration:, item:, - matrix_with_allocation_config:, maximum:, maximum_amount:, # User specified key-value pairs for the resource. If not present, this defaults @@ -5098,7 +5321,7 @@ module Orb # price in plan version migrations. replaces_price_id:, dimensional_price_configuration: nil, - model_type: :matrix_with_allocation + model_type: :grouped_allocation ) end @@ -5108,11 +5331,13 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol, + cadence: Orb::Price::GroupedAllocation::Cadence::TaggedSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent99::Variants + Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent100::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -5120,10 +5345,10 @@ module Orb discount: T.nilable(Orb::Discount::Variants), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), + grouped_allocation_config: T::Hash[Symbol, T.anything], invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration), item: Orb::ItemSlim, - matrix_with_allocation_config: Orb::MatrixWithAllocationConfig, maximum: T.nilable(Orb::Maximum), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], @@ -5133,7 +5358,7 @@ module Orb name: String, plan_phase_order: T.nilable(Integer), price_type: - Orb::Price::MatrixWithAllocation::PriceType::TaggedSymbol, + Orb::Price::GroupedAllocation::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) @@ -5148,44 +5373,38 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::MatrixWithAllocation::Cadence) + T.all(Symbol, Orb::Price::GroupedAllocation::Cadence) end OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = T.let( :one_time, - Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol + Orb::Price::GroupedAllocation::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol + Orb::Price::GroupedAllocation::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol + Orb::Price::GroupedAllocation::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol + Orb::Price::GroupedAllocation::Cadence::TaggedSymbol ) ANNUAL = - T.let( - :annual, - Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol - ) + T.let(:annual, Orb::Price::GroupedAllocation::Cadence::TaggedSymbol) CUSTOM = - T.let( - :custom, - Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol - ) + T.let(:custom, Orb::Price::GroupedAllocation::Cadence::TaggedSymbol) sig do override.returns( - T::Array[Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol] + T::Array[Orb::Price::GroupedAllocation::Cadence::TaggedSymbol] ) end def self.values @@ -5197,26 +5416,24 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::MatrixWithAllocation::PriceType) + T.all(Symbol, Orb::Price::GroupedAllocation::PriceType) end OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = T.let( :usage_price, - Orb::Price::MatrixWithAllocation::PriceType::TaggedSymbol + Orb::Price::GroupedAllocation::PriceType::TaggedSymbol ) FIXED_PRICE = T.let( :fixed_price, - Orb::Price::MatrixWithAllocation::PriceType::TaggedSymbol + Orb::Price::GroupedAllocation::PriceType::TaggedSymbol ) sig do override.returns( - T::Array[ - Orb::Price::MatrixWithAllocation::PriceType::TaggedSymbol - ] + T::Array[Orb::Price::GroupedAllocation::PriceType::TaggedSymbol] ) end def self.values @@ -5224,10 +5441,13 @@ module Orb end end - class TieredWithProration < Orb::Internal::Type::BaseModel + class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(Orb::Price::TieredWithProration, Orb::Internal::AnyHash) + T.any( + Orb::Price::GroupedWithProratedMinimum, + Orb::Internal::AnyHash + ) end sig { returns(String) } @@ -5253,16 +5473,21 @@ module Orb end attr_writer :billing_cycle_configuration - sig { returns(Orb::Price::TieredWithProration::Cadence::TaggedSymbol) } + sig do + returns(Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol) + end attr_accessor :cadence + sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } + attr_accessor :composite_price_filters + sig { returns(T.nilable(Float)) } attr_accessor :conversion_rate sig do returns( T.nilable( - Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent100::Variants + Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent101::Variants ) ) end @@ -5291,6 +5516,9 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :grouped_with_prorated_minimum_config + sig { returns(T.nilable(Orb::BillingCycleConfiguration)) } attr_reader :invoicing_cycle_configuration @@ -5343,7 +5571,9 @@ module Orb attr_accessor :plan_phase_order sig do - returns(Orb::Price::TieredWithProration::PriceType::TaggedSymbol) + returns( + Orb::Price::GroupedWithProratedMinimum::PriceType::TaggedSymbol + ) end attr_accessor :price_type @@ -5352,9 +5582,6 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :replaces_price_id - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :tiered_with_proration_config - sig { returns(T.nilable(Orb::DimensionalPriceConfiguration)) } attr_reader :dimensional_price_configuration @@ -5371,7 +5598,9 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - cadence: Orb::Price::TieredWithProration::Cadence::OrSymbol, + cadence: Orb::Price::GroupedWithProratedMinimum::Cadence::OrSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( @@ -5394,6 +5623,7 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), + grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration::OrHash), item: Orb::ItemSlim::OrHash, @@ -5404,9 +5634,9 @@ module Orb minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::TieredWithProration::PriceType::OrSymbol, + price_type: + Orb::Price::GroupedWithProratedMinimum::PriceType::OrSymbol, replaces_price_id: T.nilable(String), - tiered_with_proration_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), model_type: Symbol @@ -5417,6 +5647,7 @@ module Orb billable_metric:, billing_cycle_configuration:, cadence:, + composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, @@ -5425,6 +5656,7 @@ module Orb discount:, external_price_id:, fixed_price_quantity:, + grouped_with_prorated_minimum_config:, invoicing_cycle_configuration:, item:, maximum:, @@ -5442,9 +5674,8 @@ module Orb # The price id this price replaces. This price will take the place of the replaced # price in plan version migrations. replaces_price_id:, - tiered_with_proration_config:, dimensional_price_configuration: nil, - model_type: :tiered_with_proration + model_type: :grouped_with_prorated_minimum ) end @@ -5454,11 +5685,14 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::TieredWithProration::Cadence::TaggedSymbol, + cadence: + Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent100::Variants + Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent101::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -5466,6 +5700,7 @@ module Orb discount: T.nilable(Orb::Discount::Variants), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), + grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration), item: Orb::ItemSlim, @@ -5478,9 +5713,8 @@ module Orb name: String, plan_phase_order: T.nilable(Integer), price_type: - Orb::Price::TieredWithProration::PriceType::TaggedSymbol, + Orb::Price::GroupedWithProratedMinimum::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), - tiered_with_proration_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) } @@ -5494,44 +5728,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::TieredWithProration::Cadence) + T.all(Symbol, Orb::Price::GroupedWithProratedMinimum::Cadence) end OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = T.let( :one_time, - Orb::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) ANNUAL = T.let( :annual, - Orb::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Price::TieredWithProration::Cadence::TaggedSymbol + Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) sig do override.returns( - T::Array[Orb::Price::TieredWithProration::Cadence::TaggedSymbol] + T::Array[ + Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + ] ) end def self.values @@ -5543,24 +5779,26 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::TieredWithProration::PriceType) + T.all(Symbol, Orb::Price::GroupedWithProratedMinimum::PriceType) end OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = T.let( :usage_price, - Orb::Price::TieredWithProration::PriceType::TaggedSymbol + Orb::Price::GroupedWithProratedMinimum::PriceType::TaggedSymbol ) FIXED_PRICE = T.let( :fixed_price, - Orb::Price::TieredWithProration::PriceType::TaggedSymbol + Orb::Price::GroupedWithProratedMinimum::PriceType::TaggedSymbol ) sig do override.returns( - T::Array[Orb::Price::TieredWithProration::PriceType::TaggedSymbol] + T::Array[ + Orb::Price::GroupedWithProratedMinimum::PriceType::TaggedSymbol + ] ) end def self.values @@ -5568,10 +5806,10 @@ module Orb end end - class UnitWithProration < Orb::Internal::Type::BaseModel + class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(Orb::Price::UnitWithProration, Orb::Internal::AnyHash) + T.any(Orb::Price::GroupedWithMeteredMinimum, Orb::Internal::AnyHash) end sig { returns(String) } @@ -5597,16 +5835,21 @@ module Orb end attr_writer :billing_cycle_configuration - sig { returns(Orb::Price::UnitWithProration::Cadence::TaggedSymbol) } + sig do + returns(Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol) + end attr_accessor :cadence + sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } + attr_accessor :composite_price_filters + sig { returns(T.nilable(Float)) } attr_accessor :conversion_rate sig do returns( T.nilable( - Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent101::Variants + Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent102::Variants ) ) end @@ -5635,6 +5878,9 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :grouped_with_metered_minimum_config + sig { returns(T.nilable(Orb::BillingCycleConfiguration)) } attr_reader :invoicing_cycle_configuration @@ -5686,7 +5932,11 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Price::UnitWithProration::PriceType::TaggedSymbol) } + sig do + returns( + Orb::Price::GroupedWithMeteredMinimum::PriceType::TaggedSymbol + ) + end attr_accessor :price_type # The price id this price replaces. This price will take the place of the replaced @@ -5694,9 +5944,6 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :replaces_price_id - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :unit_with_proration_config - sig { returns(T.nilable(Orb::DimensionalPriceConfiguration)) } attr_reader :dimensional_price_configuration @@ -5713,7 +5960,9 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - cadence: Orb::Price::UnitWithProration::Cadence::OrSymbol, + cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( @@ -5736,6 +5985,7 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), + grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration::OrHash), item: Orb::ItemSlim::OrHash, @@ -5746,9 +5996,9 @@ module Orb minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::UnitWithProration::PriceType::OrSymbol, + price_type: + Orb::Price::GroupedWithMeteredMinimum::PriceType::OrSymbol, replaces_price_id: T.nilable(String), - unit_with_proration_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), model_type: Symbol @@ -5759,6 +6009,7 @@ module Orb billable_metric:, billing_cycle_configuration:, cadence:, + composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, @@ -5767,6 +6018,7 @@ module Orb discount:, external_price_id:, fixed_price_quantity:, + grouped_with_metered_minimum_config:, invoicing_cycle_configuration:, item:, maximum:, @@ -5784,9 +6036,8 @@ module Orb # The price id this price replaces. This price will take the place of the replaced # price in plan version migrations. replaces_price_id:, - unit_with_proration_config:, dimensional_price_configuration: nil, - model_type: :unit_with_proration + model_type: :grouped_with_metered_minimum ) end @@ -5796,11 +6047,14 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::UnitWithProration::Cadence::TaggedSymbol, + cadence: + Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent101::Variants + Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent102::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -5808,6 +6062,7 @@ module Orb discount: T.nilable(Orb::Discount::Variants), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), + grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration), item: Orb::ItemSlim, @@ -5820,9 +6075,8 @@ module Orb name: String, plan_phase_order: T.nilable(Integer), price_type: - Orb::Price::UnitWithProration::PriceType::TaggedSymbol, + Orb::Price::GroupedWithMeteredMinimum::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), - unit_with_proration_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) } @@ -5836,38 +6090,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::UnitWithProration::Cadence) + T.all(Symbol, Orb::Price::GroupedWithMeteredMinimum::Cadence) end OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = T.let( :one_time, - Orb::Price::UnitWithProration::Cadence::TaggedSymbol + Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Price::UnitWithProration::Cadence::TaggedSymbol + Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Price::UnitWithProration::Cadence::TaggedSymbol + Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Price::UnitWithProration::Cadence::TaggedSymbol + Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) ANNUAL = - T.let(:annual, Orb::Price::UnitWithProration::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + ) CUSTOM = - T.let(:custom, Orb::Price::UnitWithProration::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + ) sig do override.returns( - T::Array[Orb::Price::UnitWithProration::Cadence::TaggedSymbol] + T::Array[ + Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + ] ) end def self.values @@ -5879,24 +6141,26 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::UnitWithProration::PriceType) + T.all(Symbol, Orb::Price::GroupedWithMeteredMinimum::PriceType) end OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = T.let( :usage_price, - Orb::Price::UnitWithProration::PriceType::TaggedSymbol + Orb::Price::GroupedWithMeteredMinimum::PriceType::TaggedSymbol ) FIXED_PRICE = T.let( :fixed_price, - Orb::Price::UnitWithProration::PriceType::TaggedSymbol + Orb::Price::GroupedWithMeteredMinimum::PriceType::TaggedSymbol ) sig do override.returns( - T::Array[Orb::Price::UnitWithProration::PriceType::TaggedSymbol] + T::Array[ + Orb::Price::GroupedWithMeteredMinimum::PriceType::TaggedSymbol + ] ) end def self.values @@ -5904,10 +6168,10 @@ module Orb end end - class GroupedAllocation < Orb::Internal::Type::BaseModel + class MatrixWithDisplayName < Orb::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(Orb::Price::GroupedAllocation, Orb::Internal::AnyHash) + T.any(Orb::Price::MatrixWithDisplayName, Orb::Internal::AnyHash) end sig { returns(String) } @@ -5933,16 +6197,21 @@ module Orb end attr_writer :billing_cycle_configuration - sig { returns(Orb::Price::GroupedAllocation::Cadence::TaggedSymbol) } + sig do + returns(Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol) + end attr_accessor :cadence + sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } + attr_accessor :composite_price_filters + sig { returns(T.nilable(Float)) } attr_accessor :conversion_rate sig do returns( T.nilable( - Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent102::Variants + Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent103::Variants ) ) end @@ -5971,9 +6240,6 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_allocation_config - sig { returns(T.nilable(Orb::BillingCycleConfiguration)) } attr_reader :invoicing_cycle_configuration @@ -5991,6 +6257,9 @@ module Orb sig { params(item: Orb::ItemSlim::OrHash).void } attr_writer :item + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :matrix_with_display_name_config + sig { returns(T.nilable(Orb::Maximum)) } attr_reader :maximum @@ -6025,7 +6294,9 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Price::GroupedAllocation::PriceType::TaggedSymbol) } + sig do + returns(Orb::Price::MatrixWithDisplayName::PriceType::TaggedSymbol) + end attr_accessor :price_type # The price id this price replaces. This price will take the place of the replaced @@ -6049,7 +6320,9 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - cadence: Orb::Price::GroupedAllocation::Cadence::OrSymbol, + cadence: Orb::Price::MatrixWithDisplayName::Cadence::OrSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( @@ -6072,10 +6345,10 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - grouped_allocation_config: T::Hash[Symbol, T.anything], invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration::OrHash), item: Orb::ItemSlim::OrHash, + matrix_with_display_name_config: T::Hash[Symbol, T.anything], maximum: T.nilable(Orb::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], @@ -6083,7 +6356,7 @@ module Orb minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::GroupedAllocation::PriceType::OrSymbol, + price_type: Orb::Price::MatrixWithDisplayName::PriceType::OrSymbol, replaces_price_id: T.nilable(String), dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), @@ -6095,6 +6368,7 @@ module Orb billable_metric:, billing_cycle_configuration:, cadence:, + composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, @@ -6103,9 +6377,9 @@ module Orb discount:, external_price_id:, fixed_price_quantity:, - grouped_allocation_config:, invoicing_cycle_configuration:, item:, + matrix_with_display_name_config:, maximum:, maximum_amount:, # User specified key-value pairs for the resource. If not present, this defaults @@ -6122,7 +6396,7 @@ module Orb # price in plan version migrations. replaces_price_id:, dimensional_price_configuration: nil, - model_type: :grouped_allocation + model_type: :matrix_with_display_name ) end @@ -6132,11 +6406,13 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::GroupedAllocation::Cadence::TaggedSymbol, + cadence: Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent102::Variants + Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent103::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -6144,10 +6420,10 @@ module Orb discount: T.nilable(Orb::Discount::Variants), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - grouped_allocation_config: T::Hash[Symbol, T.anything], invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration), item: Orb::ItemSlim, + matrix_with_display_name_config: T::Hash[Symbol, T.anything], maximum: T.nilable(Orb::Maximum), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], @@ -6157,7 +6433,7 @@ module Orb name: String, plan_phase_order: T.nilable(Integer), price_type: - Orb::Price::GroupedAllocation::PriceType::TaggedSymbol, + Orb::Price::MatrixWithDisplayName::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) @@ -6172,38 +6448,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::GroupedAllocation::Cadence) + T.all(Symbol, Orb::Price::MatrixWithDisplayName::Cadence) end OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = T.let( :one_time, - Orb::Price::GroupedAllocation::Cadence::TaggedSymbol + Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Price::GroupedAllocation::Cadence::TaggedSymbol + Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Price::GroupedAllocation::Cadence::TaggedSymbol + Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Price::GroupedAllocation::Cadence::TaggedSymbol + Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) ANNUAL = - T.let(:annual, Orb::Price::GroupedAllocation::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + ) CUSTOM = - T.let(:custom, Orb::Price::GroupedAllocation::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + ) sig do override.returns( - T::Array[Orb::Price::GroupedAllocation::Cadence::TaggedSymbol] + T::Array[Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol] ) end def self.values @@ -6215,24 +6497,26 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::GroupedAllocation::PriceType) + T.all(Symbol, Orb::Price::MatrixWithDisplayName::PriceType) end OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = T.let( :usage_price, - Orb::Price::GroupedAllocation::PriceType::TaggedSymbol + Orb::Price::MatrixWithDisplayName::PriceType::TaggedSymbol ) FIXED_PRICE = T.let( :fixed_price, - Orb::Price::GroupedAllocation::PriceType::TaggedSymbol + Orb::Price::MatrixWithDisplayName::PriceType::TaggedSymbol ) sig do override.returns( - T::Array[Orb::Price::GroupedAllocation::PriceType::TaggedSymbol] + T::Array[ + Orb::Price::MatrixWithDisplayName::PriceType::TaggedSymbol + ] ) end def self.values @@ -6240,13 +6524,10 @@ module Orb end end - class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel + class BulkWithProration < Orb::Internal::Type::BaseModel OrHash = T.type_alias do - T.any( - Orb::Price::GroupedWithProratedMinimum, - Orb::Internal::AnyHash - ) + T.any(Orb::Price::BulkWithProration, Orb::Internal::AnyHash) end sig { returns(String) } @@ -6272,18 +6553,22 @@ module Orb end attr_writer :billing_cycle_configuration - sig do - returns(Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol) - end + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :bulk_with_proration_config + + sig { returns(Orb::Price::BulkWithProration::Cadence::TaggedSymbol) } attr_accessor :cadence + sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } + attr_accessor :composite_price_filters + sig { returns(T.nilable(Float)) } attr_accessor :conversion_rate sig do returns( T.nilable( - Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent103::Variants + Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent104::Variants ) ) end @@ -6312,9 +6597,6 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_with_prorated_minimum_config - sig { returns(T.nilable(Orb::BillingCycleConfiguration)) } attr_reader :invoicing_cycle_configuration @@ -6366,11 +6648,7 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig do - returns( - Orb::Price::GroupedWithProratedMinimum::PriceType::TaggedSymbol - ) - end + sig { returns(Orb::Price::BulkWithProration::PriceType::TaggedSymbol) } attr_accessor :price_type # The price id this price replaces. This price will take the place of the replaced @@ -6394,7 +6672,10 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - cadence: Orb::Price::GroupedWithProratedMinimum::Cadence::OrSymbol, + bulk_with_proration_config: T::Hash[Symbol, T.anything], + cadence: Orb::Price::BulkWithProration::Cadence::OrSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( @@ -6417,7 +6698,6 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration::OrHash), item: Orb::ItemSlim::OrHash, @@ -6428,8 +6708,7 @@ module Orb minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: - Orb::Price::GroupedWithProratedMinimum::PriceType::OrSymbol, + price_type: Orb::Price::BulkWithProration::PriceType::OrSymbol, replaces_price_id: T.nilable(String), dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), @@ -6440,7 +6719,9 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, + bulk_with_proration_config:, cadence:, + composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, @@ -6449,7 +6730,6 @@ module Orb discount:, external_price_id:, fixed_price_quantity:, - grouped_with_prorated_minimum_config:, invoicing_cycle_configuration:, item:, maximum:, @@ -6468,7 +6748,7 @@ module Orb # price in plan version migrations. replaces_price_id:, dimensional_price_configuration: nil, - model_type: :grouped_with_prorated_minimum + model_type: :bulk_with_proration ) end @@ -6478,12 +6758,14 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: - Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol, + bulk_with_proration_config: T::Hash[Symbol, T.anything], + cadence: Orb::Price::BulkWithProration::Cadence::TaggedSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent103::Variants + Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent104::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -6491,7 +6773,6 @@ module Orb discount: T.nilable(Orb::Discount::Variants), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration), item: Orb::ItemSlim, @@ -6504,7 +6785,7 @@ module Orb name: String, plan_phase_order: T.nilable(Integer), price_type: - Orb::Price::GroupedWithProratedMinimum::PriceType::TaggedSymbol, + Orb::Price::BulkWithProration::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) @@ -6519,46 +6800,38 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::GroupedWithProratedMinimum::Cadence) + T.all(Symbol, Orb::Price::BulkWithProration::Cadence) end OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = T.let( :one_time, - Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::Price::BulkWithProration::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::Price::BulkWithProration::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::Price::BulkWithProration::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::Price::BulkWithProration::Cadence::TaggedSymbol ) ANNUAL = - T.let( - :annual, - Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol - ) + T.let(:annual, Orb::Price::BulkWithProration::Cadence::TaggedSymbol) CUSTOM = - T.let( - :custom, - Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol - ) + T.let(:custom, Orb::Price::BulkWithProration::Cadence::TaggedSymbol) sig do override.returns( - T::Array[ - Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol - ] + T::Array[Orb::Price::BulkWithProration::Cadence::TaggedSymbol] ) end def self.values @@ -6570,26 +6843,24 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::GroupedWithProratedMinimum::PriceType) + T.all(Symbol, Orb::Price::BulkWithProration::PriceType) end OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = T.let( :usage_price, - Orb::Price::GroupedWithProratedMinimum::PriceType::TaggedSymbol + Orb::Price::BulkWithProration::PriceType::TaggedSymbol ) FIXED_PRICE = T.let( :fixed_price, - Orb::Price::GroupedWithProratedMinimum::PriceType::TaggedSymbol + Orb::Price::BulkWithProration::PriceType::TaggedSymbol ) sig do override.returns( - T::Array[ - Orb::Price::GroupedWithProratedMinimum::PriceType::TaggedSymbol - ] + T::Array[Orb::Price::BulkWithProration::PriceType::TaggedSymbol] ) end def self.values @@ -6597,10 +6868,10 @@ module Orb end end - class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel + class GroupedTieredPackage < Orb::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(Orb::Price::GroupedWithMeteredMinimum, Orb::Internal::AnyHash) + T.any(Orb::Price::GroupedTieredPackage, Orb::Internal::AnyHash) end sig { returns(String) } @@ -6626,18 +6897,19 @@ module Orb end attr_writer :billing_cycle_configuration - sig do - returns(Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol) - end + sig { returns(Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol) } attr_accessor :cadence + sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } + attr_accessor :composite_price_filters + sig { returns(T.nilable(Float)) } attr_accessor :conversion_rate sig do returns( T.nilable( - Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent104::Variants + Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent105::Variants ) ) end @@ -6667,7 +6939,7 @@ module Orb attr_accessor :fixed_price_quantity sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_with_metered_minimum_config + attr_accessor :grouped_tiered_package_config sig { returns(T.nilable(Orb::BillingCycleConfiguration)) } attr_reader :invoicing_cycle_configuration @@ -6721,9 +6993,7 @@ module Orb attr_accessor :plan_phase_order sig do - returns( - Orb::Price::GroupedWithMeteredMinimum::PriceType::TaggedSymbol - ) + returns(Orb::Price::GroupedTieredPackage::PriceType::TaggedSymbol) end attr_accessor :price_type @@ -6748,7 +7018,9 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol, + cadence: Orb::Price::GroupedTieredPackage::Cadence::OrSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( @@ -6771,7 +7043,7 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], + grouped_tiered_package_config: T::Hash[Symbol, T.anything], invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration::OrHash), item: Orb::ItemSlim::OrHash, @@ -6782,8 +7054,7 @@ module Orb minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: - Orb::Price::GroupedWithMeteredMinimum::PriceType::OrSymbol, + price_type: Orb::Price::GroupedTieredPackage::PriceType::OrSymbol, replaces_price_id: T.nilable(String), dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), @@ -6795,6 +7066,7 @@ module Orb billable_metric:, billing_cycle_configuration:, cadence:, + composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, @@ -6803,7 +7075,7 @@ module Orb discount:, external_price_id:, fixed_price_quantity:, - grouped_with_metered_minimum_config:, + grouped_tiered_package_config:, invoicing_cycle_configuration:, item:, maximum:, @@ -6822,7 +7094,7 @@ module Orb # price in plan version migrations. replaces_price_id:, dimensional_price_configuration: nil, - model_type: :grouped_with_metered_minimum + model_type: :grouped_tiered_package ) end @@ -6832,12 +7104,13 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: - Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol, + cadence: Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent104::Variants + Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent105::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -6845,7 +7118,7 @@ module Orb discount: T.nilable(Orb::Discount::Variants), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], + grouped_tiered_package_config: T::Hash[Symbol, T.anything], invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration), item: Orb::ItemSlim, @@ -6858,7 +7131,7 @@ module Orb name: String, plan_phase_order: T.nilable(Integer), price_type: - Orb::Price::GroupedWithMeteredMinimum::PriceType::TaggedSymbol, + Orb::Price::GroupedTieredPackage::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) @@ -6873,46 +7146,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::GroupedWithMeteredMinimum::Cadence) + T.all(Symbol, Orb::Price::GroupedTieredPackage::Cadence) end OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = T.let( :one_time, - Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) ANNUAL = T.let( :annual, - Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) sig do override.returns( - T::Array[ - Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol - ] + T::Array[Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol] ) end def self.values @@ -6924,25 +7195,25 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::GroupedWithMeteredMinimum::PriceType) + T.all(Symbol, Orb::Price::GroupedTieredPackage::PriceType) end OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = T.let( :usage_price, - Orb::Price::GroupedWithMeteredMinimum::PriceType::TaggedSymbol + Orb::Price::GroupedTieredPackage::PriceType::TaggedSymbol ) FIXED_PRICE = T.let( :fixed_price, - Orb::Price::GroupedWithMeteredMinimum::PriceType::TaggedSymbol + Orb::Price::GroupedTieredPackage::PriceType::TaggedSymbol ) sig do override.returns( T::Array[ - Orb::Price::GroupedWithMeteredMinimum::PriceType::TaggedSymbol + Orb::Price::GroupedTieredPackage::PriceType::TaggedSymbol ] ) end @@ -6951,10 +7222,10 @@ module Orb end end - class MatrixWithDisplayName < Orb::Internal::Type::BaseModel + class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(Orb::Price::MatrixWithDisplayName, Orb::Internal::AnyHash) + T.any(Orb::Price::MaxGroupTieredPackage, Orb::Internal::AnyHash) end sig { returns(String) } @@ -6981,17 +7252,20 @@ module Orb attr_writer :billing_cycle_configuration sig do - returns(Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol) + returns(Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol) end attr_accessor :cadence + sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } + attr_accessor :composite_price_filters + sig { returns(T.nilable(Float)) } attr_accessor :conversion_rate sig do returns( T.nilable( - Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent105::Variants + Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent106::Variants ) ) end @@ -7038,7 +7312,7 @@ module Orb attr_writer :item sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :matrix_with_display_name_config + attr_accessor :max_group_tiered_package_config sig { returns(T.nilable(Orb::Maximum)) } attr_reader :maximum @@ -7075,7 +7349,7 @@ module Orb attr_accessor :plan_phase_order sig do - returns(Orb::Price::MatrixWithDisplayName::PriceType::TaggedSymbol) + returns(Orb::Price::MaxGroupTieredPackage::PriceType::TaggedSymbol) end attr_accessor :price_type @@ -7100,7 +7374,9 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - cadence: Orb::Price::MatrixWithDisplayName::Cadence::OrSymbol, + cadence: Orb::Price::MaxGroupTieredPackage::Cadence::OrSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( @@ -7126,7 +7402,7 @@ module Orb invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration::OrHash), item: Orb::ItemSlim::OrHash, - matrix_with_display_name_config: T::Hash[Symbol, T.anything], + max_group_tiered_package_config: T::Hash[Symbol, T.anything], maximum: T.nilable(Orb::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], @@ -7134,7 +7410,7 @@ module Orb minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::MatrixWithDisplayName::PriceType::OrSymbol, + price_type: Orb::Price::MaxGroupTieredPackage::PriceType::OrSymbol, replaces_price_id: T.nilable(String), dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), @@ -7146,6 +7422,7 @@ module Orb billable_metric:, billing_cycle_configuration:, cadence:, + composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, @@ -7156,7 +7433,7 @@ module Orb fixed_price_quantity:, invoicing_cycle_configuration:, item:, - matrix_with_display_name_config:, + max_group_tiered_package_config:, maximum:, maximum_amount:, # User specified key-value pairs for the resource. If not present, this defaults @@ -7173,7 +7450,7 @@ module Orb # price in plan version migrations. replaces_price_id:, dimensional_price_configuration: nil, - model_type: :matrix_with_display_name + model_type: :max_group_tiered_package ) end @@ -7183,11 +7460,13 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol, + cadence: Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent105::Variants + Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent106::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -7198,7 +7477,7 @@ module Orb invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration), item: Orb::ItemSlim, - matrix_with_display_name_config: T::Hash[Symbol, T.anything], + max_group_tiered_package_config: T::Hash[Symbol, T.anything], maximum: T.nilable(Orb::Maximum), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], @@ -7208,7 +7487,7 @@ module Orb name: String, plan_phase_order: T.nilable(Integer), price_type: - Orb::Price::MatrixWithDisplayName::PriceType::TaggedSymbol, + Orb::Price::MaxGroupTieredPackage::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) @@ -7223,44 +7502,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::MatrixWithDisplayName::Cadence) + T.all(Symbol, Orb::Price::MaxGroupTieredPackage::Cadence) end OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = T.let( :one_time, - Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) ANNUAL = T.let( :annual, - Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) sig do override.returns( - T::Array[Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol] + T::Array[Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol] ) end def self.values @@ -7272,25 +7551,25 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::MatrixWithDisplayName::PriceType) + T.all(Symbol, Orb::Price::MaxGroupTieredPackage::PriceType) end OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = T.let( :usage_price, - Orb::Price::MatrixWithDisplayName::PriceType::TaggedSymbol + Orb::Price::MaxGroupTieredPackage::PriceType::TaggedSymbol ) FIXED_PRICE = T.let( :fixed_price, - Orb::Price::MatrixWithDisplayName::PriceType::TaggedSymbol + Orb::Price::MaxGroupTieredPackage::PriceType::TaggedSymbol ) sig do override.returns( T::Array[ - Orb::Price::MatrixWithDisplayName::PriceType::TaggedSymbol + Orb::Price::MaxGroupTieredPackage::PriceType::TaggedSymbol ] ) end @@ -7299,10 +7578,13 @@ module Orb end end - class BulkWithProration < Orb::Internal::Type::BaseModel + class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(Orb::Price::BulkWithProration, Orb::Internal::AnyHash) + T.any( + Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Internal::AnyHash + ) end sig { returns(String) } @@ -7328,19 +7610,23 @@ module Orb end attr_writer :billing_cycle_configuration - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :bulk_with_proration_config - - sig { returns(Orb::Price::BulkWithProration::Cadence::TaggedSymbol) } + sig do + returns( + Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + ) + end attr_accessor :cadence + sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } + attr_accessor :composite_price_filters + sig { returns(T.nilable(Float)) } attr_accessor :conversion_rate sig do returns( T.nilable( - Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent106::Variants + Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent107::Variants ) ) end @@ -7420,7 +7706,11 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Price::BulkWithProration::PriceType::TaggedSymbol) } + sig do + returns( + Orb::Price::ScalableMatrixWithUnitPricing::PriceType::TaggedSymbol + ) + end attr_accessor :price_type # The price id this price replaces. This price will take the place of the replaced @@ -7428,6 +7718,9 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :replaces_price_id + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :scalable_matrix_with_unit_pricing_config + sig { returns(T.nilable(Orb::DimensionalPriceConfiguration)) } attr_reader :dimensional_price_configuration @@ -7444,8 +7737,10 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Orb::Price::BulkWithProration::Cadence::OrSymbol, + cadence: + Orb::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( @@ -7478,8 +7773,11 @@ module Orb minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::BulkWithProration::PriceType::OrSymbol, + price_type: + Orb::Price::ScalableMatrixWithUnitPricing::PriceType::OrSymbol, replaces_price_id: T.nilable(String), + scalable_matrix_with_unit_pricing_config: + T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), model_type: Symbol @@ -7489,8 +7787,8 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, - bulk_with_proration_config:, cadence:, + composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, @@ -7516,8 +7814,9 @@ module Orb # The price id this price replaces. This price will take the place of the replaced # price in plan version migrations. replaces_price_id:, + scalable_matrix_with_unit_pricing_config:, dimensional_price_configuration: nil, - model_type: :bulk_with_proration + model_type: :scalable_matrix_with_unit_pricing ) end @@ -7527,12 +7826,14 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Orb::Price::BulkWithProration::Cadence::TaggedSymbol, + cadence: + Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent106::Variants + Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent107::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -7552,8 +7853,10 @@ module Orb name: String, plan_phase_order: T.nilable(Integer), price_type: - Orb::Price::BulkWithProration::PriceType::TaggedSymbol, + Orb::Price::ScalableMatrixWithUnitPricing::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), + scalable_matrix_with_unit_pricing_config: + T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) } @@ -7567,38 +7870,46 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::BulkWithProration::Cadence) + T.all(Symbol, Orb::Price::ScalableMatrixWithUnitPricing::Cadence) end OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = T.let( :one_time, - Orb::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) ANNUAL = - T.let(:annual, Orb::Price::BulkWithProration::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + ) CUSTOM = - T.let(:custom, Orb::Price::BulkWithProration::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + ) sig do override.returns( - T::Array[Orb::Price::BulkWithProration::Cadence::TaggedSymbol] + T::Array[ + Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + ] ) end def self.values @@ -7610,24 +7921,29 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::BulkWithProration::PriceType) + T.all( + Symbol, + Orb::Price::ScalableMatrixWithUnitPricing::PriceType + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = T.let( :usage_price, - Orb::Price::BulkWithProration::PriceType::TaggedSymbol + Orb::Price::ScalableMatrixWithUnitPricing::PriceType::TaggedSymbol ) FIXED_PRICE = T.let( :fixed_price, - Orb::Price::BulkWithProration::PriceType::TaggedSymbol + Orb::Price::ScalableMatrixWithUnitPricing::PriceType::TaggedSymbol ) sig do override.returns( - T::Array[Orb::Price::BulkWithProration::PriceType::TaggedSymbol] + T::Array[ + Orb::Price::ScalableMatrixWithUnitPricing::PriceType::TaggedSymbol + ] ) end def self.values @@ -7635,10 +7951,13 @@ module Orb end end - class GroupedTieredPackage < Orb::Internal::Type::BaseModel + class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(Orb::Price::GroupedTieredPackage, Orb::Internal::AnyHash) + T.any( + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Internal::AnyHash + ) end sig { returns(String) } @@ -7664,16 +7983,23 @@ module Orb end attr_writer :billing_cycle_configuration - sig { returns(Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol) } - attr_accessor :cadence - - sig { returns(T.nilable(Float)) } - attr_accessor :conversion_rate - + sig do + returns( + Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + ) + end + attr_accessor :cadence + + sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } + attr_accessor :composite_price_filters + + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + sig do returns( T.nilable( - Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent107::Variants + Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent108::Variants ) ) end @@ -7702,9 +8028,6 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_tiered_package_config - sig { returns(T.nilable(Orb::BillingCycleConfiguration)) } attr_reader :invoicing_cycle_configuration @@ -7757,7 +8080,9 @@ module Orb attr_accessor :plan_phase_order sig do - returns(Orb::Price::GroupedTieredPackage::PriceType::TaggedSymbol) + returns( + Orb::Price::ScalableMatrixWithTieredPricing::PriceType::TaggedSymbol + ) end attr_accessor :price_type @@ -7766,6 +8091,9 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :replaces_price_id + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :scalable_matrix_with_tiered_pricing_config + sig { returns(T.nilable(Orb::DimensionalPriceConfiguration)) } attr_reader :dimensional_price_configuration @@ -7782,7 +8110,10 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - cadence: Orb::Price::GroupedTieredPackage::Cadence::OrSymbol, + cadence: + Orb::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( @@ -7805,7 +8136,6 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - grouped_tiered_package_config: T::Hash[Symbol, T.anything], invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration::OrHash), item: Orb::ItemSlim::OrHash, @@ -7816,8 +8146,11 @@ module Orb minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::GroupedTieredPackage::PriceType::OrSymbol, + price_type: + Orb::Price::ScalableMatrixWithTieredPricing::PriceType::OrSymbol, replaces_price_id: T.nilable(String), + scalable_matrix_with_tiered_pricing_config: + T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), model_type: Symbol @@ -7828,6 +8161,7 @@ module Orb billable_metric:, billing_cycle_configuration:, cadence:, + composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, @@ -7836,7 +8170,6 @@ module Orb discount:, external_price_id:, fixed_price_quantity:, - grouped_tiered_package_config:, invoicing_cycle_configuration:, item:, maximum:, @@ -7854,8 +8187,9 @@ module Orb # The price id this price replaces. This price will take the place of the replaced # price in plan version migrations. replaces_price_id:, + scalable_matrix_with_tiered_pricing_config:, dimensional_price_configuration: nil, - model_type: :grouped_tiered_package + model_type: :scalable_matrix_with_tiered_pricing ) end @@ -7865,11 +8199,14 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol, + cadence: + Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent107::Variants + Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent108::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -7877,7 +8214,6 @@ module Orb discount: T.nilable(Orb::Discount::Variants), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - grouped_tiered_package_config: T::Hash[Symbol, T.anything], invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration), item: Orb::ItemSlim, @@ -7890,8 +8226,10 @@ module Orb name: String, plan_phase_order: T.nilable(Integer), price_type: - Orb::Price::GroupedTieredPackage::PriceType::TaggedSymbol, + Orb::Price::ScalableMatrixWithTieredPricing::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), + scalable_matrix_with_tiered_pricing_config: + T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) } @@ -7905,44 +8243,49 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::GroupedTieredPackage::Cadence) + T.all( + Symbol, + Orb::Price::ScalableMatrixWithTieredPricing::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = T.let( :one_time, - Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) ANNUAL = T.let( :annual, - Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) sig do override.returns( - T::Array[Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol] + T::Array[ + Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + ] ) end def self.values @@ -7954,25 +8297,28 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::GroupedTieredPackage::PriceType) + T.all( + Symbol, + Orb::Price::ScalableMatrixWithTieredPricing::PriceType + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = T.let( :usage_price, - Orb::Price::GroupedTieredPackage::PriceType::TaggedSymbol + Orb::Price::ScalableMatrixWithTieredPricing::PriceType::TaggedSymbol ) FIXED_PRICE = T.let( :fixed_price, - Orb::Price::GroupedTieredPackage::PriceType::TaggedSymbol + Orb::Price::ScalableMatrixWithTieredPricing::PriceType::TaggedSymbol ) sig do override.returns( T::Array[ - Orb::Price::GroupedTieredPackage::PriceType::TaggedSymbol + Orb::Price::ScalableMatrixWithTieredPricing::PriceType::TaggedSymbol ] ) end @@ -7981,10 +8327,10 @@ module Orb end end - class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel + class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(Orb::Price::MaxGroupTieredPackage, Orb::Internal::AnyHash) + T.any(Orb::Price::CumulativeGroupedBulk, Orb::Internal::AnyHash) end sig { returns(String) } @@ -8011,17 +8357,20 @@ module Orb attr_writer :billing_cycle_configuration sig do - returns(Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol) + returns(Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol) end attr_accessor :cadence + sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } + attr_accessor :composite_price_filters + sig { returns(T.nilable(Float)) } attr_accessor :conversion_rate sig do returns( T.nilable( - Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent108::Variants + Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent109::Variants ) ) end @@ -8038,6 +8387,9 @@ module Orb end attr_writer :credit_allocation + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :cumulative_grouped_bulk_config + sig { returns(String) } attr_accessor :currency @@ -8067,9 +8419,6 @@ module Orb sig { params(item: Orb::ItemSlim::OrHash).void } attr_writer :item - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :max_group_tiered_package_config - sig { returns(T.nilable(Orb::Maximum)) } attr_reader :maximum @@ -8105,7 +8454,7 @@ module Orb attr_accessor :plan_phase_order sig do - returns(Orb::Price::MaxGroupTieredPackage::PriceType::TaggedSymbol) + returns(Orb::Price::CumulativeGroupedBulk::PriceType::TaggedSymbol) end attr_accessor :price_type @@ -8130,7 +8479,9 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - cadence: Orb::Price::MaxGroupTieredPackage::Cadence::OrSymbol, + cadence: Orb::Price::CumulativeGroupedBulk::Cadence::OrSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( @@ -8141,6 +8492,7 @@ module Orb ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation::OrHash), + cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], currency: String, discount: T.nilable( @@ -8156,7 +8508,6 @@ module Orb invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration::OrHash), item: Orb::ItemSlim::OrHash, - max_group_tiered_package_config: T::Hash[Symbol, T.anything], maximum: T.nilable(Orb::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], @@ -8164,7 +8515,7 @@ module Orb minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::MaxGroupTieredPackage::PriceType::OrSymbol, + price_type: Orb::Price::CumulativeGroupedBulk::PriceType::OrSymbol, replaces_price_id: T.nilable(String), dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), @@ -8176,17 +8527,18 @@ module Orb billable_metric:, billing_cycle_configuration:, cadence:, + composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, + cumulative_grouped_bulk_config:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, - max_group_tiered_package_config:, maximum:, maximum_amount:, # User specified key-value pairs for the resource. If not present, this defaults @@ -8203,7 +8555,7 @@ module Orb # price in plan version migrations. replaces_price_id:, dimensional_price_configuration: nil, - model_type: :max_group_tiered_package + model_type: :cumulative_grouped_bulk ) end @@ -8213,14 +8565,17 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol, + cadence: Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent108::Variants + Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent109::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), + cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], currency: String, discount: T.nilable(Orb::Discount::Variants), external_price_id: T.nilable(String), @@ -8228,7 +8583,6 @@ module Orb invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration), item: Orb::ItemSlim, - max_group_tiered_package_config: T::Hash[Symbol, T.anything], maximum: T.nilable(Orb::Maximum), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], @@ -8238,7 +8592,7 @@ module Orb name: String, plan_phase_order: T.nilable(Integer), price_type: - Orb::Price::MaxGroupTieredPackage::PriceType::TaggedSymbol, + Orb::Price::CumulativeGroupedBulk::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) @@ -8253,44 +8607,44 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::MaxGroupTieredPackage::Cadence) + T.all(Symbol, Orb::Price::CumulativeGroupedBulk::Cadence) end OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = T.let( :one_time, - Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) ANNUAL = T.let( :annual, - Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) sig do override.returns( - T::Array[Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol] + T::Array[Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol] ) end def self.values @@ -8302,25 +8656,25 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::MaxGroupTieredPackage::PriceType) + T.all(Symbol, Orb::Price::CumulativeGroupedBulk::PriceType) end OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = T.let( :usage_price, - Orb::Price::MaxGroupTieredPackage::PriceType::TaggedSymbol + Orb::Price::CumulativeGroupedBulk::PriceType::TaggedSymbol ) FIXED_PRICE = T.let( :fixed_price, - Orb::Price::MaxGroupTieredPackage::PriceType::TaggedSymbol + Orb::Price::CumulativeGroupedBulk::PriceType::TaggedSymbol ) sig do override.returns( T::Array[ - Orb::Price::MaxGroupTieredPackage::PriceType::TaggedSymbol + Orb::Price::CumulativeGroupedBulk::PriceType::TaggedSymbol ] ) end @@ -8329,11 +8683,11 @@ module Orb end end - class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - Orb::Price::ScalableMatrixWithUnitPricing, + Orb::Price::GroupedWithMinMaxThresholds, Orb::Internal::AnyHash ) end @@ -8363,18 +8717,21 @@ module Orb sig do returns( - Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) end attr_accessor :cadence + sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } + attr_accessor :composite_price_filters + sig { returns(T.nilable(Float)) } attr_accessor :conversion_rate sig do returns( T.nilable( - Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent109::Variants + Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent110::Variants ) ) end @@ -8403,6 +8760,9 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :grouped_with_min_max_thresholds_config + sig { returns(T.nilable(Orb::BillingCycleConfiguration)) } attr_reader :invoicing_cycle_configuration @@ -8456,7 +8816,7 @@ module Orb sig do returns( - Orb::Price::ScalableMatrixWithUnitPricing::PriceType::TaggedSymbol + Orb::Price::GroupedWithMinMaxThresholds::PriceType::TaggedSymbol ) end attr_accessor :price_type @@ -8466,9 +8826,6 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :replaces_price_id - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :scalable_matrix_with_unit_pricing_config - sig { returns(T.nilable(Orb::DimensionalPriceConfiguration)) } attr_reader :dimensional_price_configuration @@ -8485,8 +8842,9 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - cadence: - Orb::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol, + cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( @@ -8509,6 +8867,7 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), + grouped_with_min_max_thresholds_config: T::Hash[Symbol, T.anything], invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration::OrHash), item: Orb::ItemSlim::OrHash, @@ -8520,10 +8879,8 @@ module Orb name: String, plan_phase_order: T.nilable(Integer), price_type: - Orb::Price::ScalableMatrixWithUnitPricing::PriceType::OrSymbol, + Orb::Price::GroupedWithMinMaxThresholds::PriceType::OrSymbol, replaces_price_id: T.nilable(String), - scalable_matrix_with_unit_pricing_config: - T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), model_type: Symbol @@ -8534,6 +8891,7 @@ module Orb billable_metric:, billing_cycle_configuration:, cadence:, + composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, @@ -8542,6 +8900,7 @@ module Orb discount:, external_price_id:, fixed_price_quantity:, + grouped_with_min_max_thresholds_config:, invoicing_cycle_configuration:, item:, maximum:, @@ -8559,9 +8918,8 @@ module Orb # The price id this price replaces. This price will take the place of the replaced # price in plan version migrations. replaces_price_id:, - scalable_matrix_with_unit_pricing_config:, dimensional_price_configuration: nil, - model_type: :scalable_matrix_with_unit_pricing + model_type: :grouped_with_min_max_thresholds ) end @@ -8572,11 +8930,13 @@ module Orb billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: - Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol, + Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent109::Variants + Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent110::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -8584,6 +8944,8 @@ module Orb discount: T.nilable(Orb::Discount::Variants), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), + grouped_with_min_max_thresholds_config: + T::Hash[Symbol, T.anything], invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration), item: Orb::ItemSlim, @@ -8596,10 +8958,8 @@ module Orb name: String, plan_phase_order: T.nilable(Integer), price_type: - Orb::Price::ScalableMatrixWithUnitPricing::PriceType::TaggedSymbol, + Orb::Price::GroupedWithMinMaxThresholds::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), - scalable_matrix_with_unit_pricing_config: - T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) } @@ -8613,45 +8973,45 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::ScalableMatrixWithUnitPricing::Cadence) + T.all(Symbol, Orb::Price::GroupedWithMinMaxThresholds::Cadence) end OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = T.let( :one_time, - Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) ANNUAL = T.let( :annual, - Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) sig do override.returns( T::Array[ - Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ] ) end @@ -8664,28 +9024,25 @@ module Orb TaggedSymbol = T.type_alias do - T.all( - Symbol, - Orb::Price::ScalableMatrixWithUnitPricing::PriceType - ) + T.all(Symbol, Orb::Price::GroupedWithMinMaxThresholds::PriceType) end OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = T.let( :usage_price, - Orb::Price::ScalableMatrixWithUnitPricing::PriceType::TaggedSymbol + Orb::Price::GroupedWithMinMaxThresholds::PriceType::TaggedSymbol ) FIXED_PRICE = T.let( :fixed_price, - Orb::Price::ScalableMatrixWithUnitPricing::PriceType::TaggedSymbol + Orb::Price::GroupedWithMinMaxThresholds::PriceType::TaggedSymbol ) sig do override.returns( T::Array[ - Orb::Price::ScalableMatrixWithUnitPricing::PriceType::TaggedSymbol + Orb::Price::GroupedWithMinMaxThresholds::PriceType::TaggedSymbol ] ) end @@ -8694,14 +9051,9 @@ module Orb end end - class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel + class Minimum < Orb::Internal::Type::BaseModel OrHash = - T.type_alias do - T.any( - Orb::Price::ScalableMatrixWithTieredPricing, - Orb::Internal::AnyHash - ) - end + T.type_alias { T.any(Orb::Price::Minimum, Orb::Internal::AnyHash) } sig { returns(String) } attr_accessor :id @@ -8726,20 +9078,19 @@ module Orb end attr_writer :billing_cycle_configuration - sig do - returns( - Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol - ) - end + sig { returns(Orb::Price::Minimum::Cadence::TaggedSymbol) } attr_accessor :cadence + sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } + attr_accessor :composite_price_filters + sig { returns(T.nilable(Float)) } attr_accessor :conversion_rate sig do returns( T.nilable( - Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent110::Variants + Orb::Price::Minimum::UnnamedTypeWithobjectParent111::Variants ) ) end @@ -8810,6 +9161,16 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :minimum_amount + sig { returns(Orb::Price::Minimum::MinimumConfig) } + attr_reader :minimum_config + + sig do + params( + minimum_config: Orb::Price::Minimum::MinimumConfig::OrHash + ).void + end + attr_writer :minimum_config + sig { returns(Symbol) } attr_accessor :model_type @@ -8819,11 +9180,7 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig do - returns( - Orb::Price::ScalableMatrixWithTieredPricing::PriceType::TaggedSymbol - ) - end + sig { returns(Orb::Price::Minimum::PriceType::TaggedSymbol) } attr_accessor :price_type # The price id this price replaces. This price will take the place of the replaced @@ -8831,9 +9188,6 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :replaces_price_id - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :scalable_matrix_with_tiered_pricing_config - sig { returns(T.nilable(Orb::DimensionalPriceConfiguration)) } attr_reader :dimensional_price_configuration @@ -8850,8 +9204,9 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - cadence: - Orb::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol, + cadence: Orb::Price::Minimum::Cadence::OrSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( @@ -8882,13 +9237,11 @@ module Orb metadata: T::Hash[Symbol, String], minimum: T.nilable(Orb::Minimum::OrHash), minimum_amount: T.nilable(String), + minimum_config: Orb::Price::Minimum::MinimumConfig::OrHash, name: String, plan_phase_order: T.nilable(Integer), - price_type: - Orb::Price::ScalableMatrixWithTieredPricing::PriceType::OrSymbol, + price_type: Orb::Price::Minimum::PriceType::OrSymbol, replaces_price_id: T.nilable(String), - scalable_matrix_with_tiered_pricing_config: - T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), model_type: Symbol @@ -8899,6 +9252,7 @@ module Orb billable_metric:, billing_cycle_configuration:, cadence:, + composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, @@ -8918,15 +9272,15 @@ module Orb metadata:, minimum:, minimum_amount:, + minimum_config:, name:, plan_phase_order:, price_type:, # The price id this price replaces. This price will take the place of the replaced # price in plan version migrations. replaces_price_id:, - scalable_matrix_with_tiered_pricing_config:, dimensional_price_configuration: nil, - model_type: :scalable_matrix_with_tiered_pricing + model_type: :minimum ) end @@ -8936,12 +9290,13 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: - Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol, + cadence: Orb::Price::Minimum::Cadence::TaggedSymbol, + composite_price_filters: + T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent110::Variants + Orb::Price::Minimum::UnnamedTypeWithobjectParent111::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -8957,14 +9312,12 @@ module Orb metadata: T::Hash[Symbol, String], minimum: T.nilable(Orb::Minimum), minimum_amount: T.nilable(String), + minimum_config: Orb::Price::Minimum::MinimumConfig, model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: - Orb::Price::ScalableMatrixWithTieredPricing::PriceType::TaggedSymbol, + price_type: Orb::Price::Minimum::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), - scalable_matrix_with_tiered_pricing_config: - T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) } @@ -8977,764 +9330,64 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Orb::Price::ScalableMatrixWithTieredPricing::Cadence - ) - end + T.type_alias { T.all(Symbol, Orb::Price::Minimum::Cadence) } OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = - T.let( - :one_time, - Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol - ) - MONTHLY = - T.let( - :monthly, - Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol - ) + T.let(:one_time, Orb::Price::Minimum::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Price::Minimum::Cadence::TaggedSymbol) QUARTERLY = - T.let( - :quarterly, - Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol - ) + T.let(:quarterly, Orb::Price::Minimum::Cadence::TaggedSymbol) SEMI_ANNUAL = - T.let( - :semi_annual, - Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol - ) - ANNUAL = - T.let( - :annual, - Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol - ) - CUSTOM = - T.let( - :custom, - Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol - ] - ) - end - def self.values - end - end - - module PriceType - extend Orb::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Orb::Price::ScalableMatrixWithTieredPricing::PriceType - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - USAGE_PRICE = - T.let( - :usage_price, - Orb::Price::ScalableMatrixWithTieredPricing::PriceType::TaggedSymbol - ) - FIXED_PRICE = - T.let( - :fixed_price, - Orb::Price::ScalableMatrixWithTieredPricing::PriceType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Orb::Price::ScalableMatrixWithTieredPricing::PriceType::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any(Orb::Price::CumulativeGroupedBulk, Orb::Internal::AnyHash) - end - - sig { returns(String) } - attr_accessor :id - - sig { returns(T.nilable(Orb::BillableMetricTiny)) } - attr_reader :billable_metric - - sig do - params( - billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash) - ).void - end - attr_writer :billable_metric - - sig { returns(Orb::BillingCycleConfiguration) } - attr_reader :billing_cycle_configuration - - sig do - params( - billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash - ).void - end - attr_writer :billing_cycle_configuration - - sig do - returns(Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol) - end - attr_accessor :cadence - - sig { returns(T.nilable(Float)) } - attr_accessor :conversion_rate - - sig do - returns( - T.nilable( - Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent111::Variants - ) - ) - end - attr_accessor :conversion_rate_config - - sig { returns(Time) } - attr_accessor :created_at - - sig { returns(T.nilable(Orb::Allocation)) } - attr_reader :credit_allocation - - sig do - params(credit_allocation: T.nilable(Orb::Allocation::OrHash)).void - end - attr_writer :credit_allocation - - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :cumulative_grouped_bulk_config - - sig { returns(String) } - attr_accessor :currency - - sig { returns(T.nilable(Orb::Discount::Variants)) } - attr_accessor :discount - - sig { returns(T.nilable(String)) } - attr_accessor :external_price_id - - sig { returns(T.nilable(Float)) } - attr_accessor :fixed_price_quantity - - sig { returns(T.nilable(Orb::BillingCycleConfiguration)) } - attr_reader :invoicing_cycle_configuration - - sig do - params( - invoicing_cycle_configuration: - T.nilable(Orb::BillingCycleConfiguration::OrHash) - ).void - end - attr_writer :invoicing_cycle_configuration - - sig { returns(Orb::ItemSlim) } - attr_reader :item - - sig { params(item: Orb::ItemSlim::OrHash).void } - attr_writer :item - - sig { returns(T.nilable(Orb::Maximum)) } - attr_reader :maximum - - sig { params(maximum: T.nilable(Orb::Maximum::OrHash)).void } - attr_writer :maximum - - sig { returns(T.nilable(String)) } - attr_accessor :maximum_amount - - # User specified key-value pairs for the resource. If not present, this defaults - # to an empty dictionary. Individual keys can be removed by setting the value to - # `null`, and the entire metadata mapping can be cleared by setting `metadata` to - # `null`. - sig { returns(T::Hash[Symbol, String]) } - attr_accessor :metadata - - sig { returns(T.nilable(Orb::Minimum)) } - attr_reader :minimum - - sig { params(minimum: T.nilable(Orb::Minimum::OrHash)).void } - attr_writer :minimum - - sig { returns(T.nilable(String)) } - attr_accessor :minimum_amount - - sig { returns(Symbol) } - attr_accessor :model_type - - sig { returns(String) } - attr_accessor :name - - sig { returns(T.nilable(Integer)) } - attr_accessor :plan_phase_order - - sig do - returns(Orb::Price::CumulativeGroupedBulk::PriceType::TaggedSymbol) - end - attr_accessor :price_type - - # The price id this price replaces. This price will take the place of the replaced - # price in plan version migrations. - sig { returns(T.nilable(String)) } - attr_accessor :replaces_price_id - - sig { returns(T.nilable(Orb::DimensionalPriceConfiguration)) } - attr_reader :dimensional_price_configuration - - sig do - params( - dimensional_price_configuration: - T.nilable(Orb::DimensionalPriceConfiguration::OrHash) - ).void - end - attr_writer :dimensional_price_configuration - - sig do - params( - id: String, - billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), - billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - cadence: Orb::Price::CumulativeGroupedBulk::Cadence::OrSymbol, - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig::OrHash, - Orb::TieredConversionRateConfig::OrHash - ) - ), - created_at: Time, - credit_allocation: T.nilable(Orb::Allocation::OrHash), - cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], - currency: String, - discount: - T.nilable( - T.any( - Orb::PercentageDiscount::OrHash, - Orb::TrialDiscount::OrHash, - Orb::UsageDiscount::OrHash, - Orb::AmountDiscount::OrHash - ) - ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: - T.nilable(Orb::BillingCycleConfiguration::OrHash), - item: Orb::ItemSlim::OrHash, - maximum: T.nilable(Orb::Maximum::OrHash), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Minimum::OrHash), - minimum_amount: T.nilable(String), - name: String, - plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::CumulativeGroupedBulk::PriceType::OrSymbol, - replaces_price_id: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::DimensionalPriceConfiguration::OrHash), - model_type: Symbol - ).returns(T.attached_class) - end - def self.new( - id:, - billable_metric:, - billing_cycle_configuration:, - cadence:, - conversion_rate:, - conversion_rate_config:, - created_at:, - credit_allocation:, - cumulative_grouped_bulk_config:, - currency:, - discount:, - external_price_id:, - fixed_price_quantity:, - invoicing_cycle_configuration:, - item:, - maximum:, - maximum_amount:, - # User specified key-value pairs for the resource. If not present, this defaults - # to an empty dictionary. Individual keys can be removed by setting the value to - # `null`, and the entire metadata mapping can be cleared by setting `metadata` to - # `null`. - metadata:, - minimum:, - minimum_amount:, - name:, - plan_phase_order:, - price_type:, - # The price id this price replaces. This price will take the place of the replaced - # price in plan version migrations. - replaces_price_id:, - dimensional_price_configuration: nil, - model_type: :cumulative_grouped_bulk - ) - end - - sig do - override.returns( - { - id: String, - billable_metric: T.nilable(Orb::BillableMetricTiny), - billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol, - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent111::Variants - ), - created_at: Time, - credit_allocation: T.nilable(Orb::Allocation), - cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], - currency: String, - discount: T.nilable(Orb::Discount::Variants), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoicing_cycle_configuration: - T.nilable(Orb::BillingCycleConfiguration), - item: Orb::ItemSlim, - maximum: T.nilable(Orb::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: - Orb::Price::CumulativeGroupedBulk::PriceType::TaggedSymbol, - replaces_price_id: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::DimensionalPriceConfiguration) - } - ) - end - def to_hash - end - - module Cadence - extend Orb::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, Orb::Price::CumulativeGroupedBulk::Cadence) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ONE_TIME = - T.let( - :one_time, - Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol - ) - MONTHLY = - T.let( - :monthly, - Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol - ) - QUARTERLY = - T.let( - :quarterly, - Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol - ) - SEMI_ANNUAL = - T.let( - :semi_annual, - Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol - ) - ANNUAL = - T.let( - :annual, - Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol - ) - CUSTOM = - T.let( - :custom, - Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol - ) - - sig do - override.returns( - T::Array[Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol] - ) - end - def self.values - end - end - - module PriceType - extend Orb::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, Orb::Price::CumulativeGroupedBulk::PriceType) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - USAGE_PRICE = - T.let( - :usage_price, - Orb::Price::CumulativeGroupedBulk::PriceType::TaggedSymbol - ) - FIXED_PRICE = - T.let( - :fixed_price, - Orb::Price::CumulativeGroupedBulk::PriceType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Orb::Price::CumulativeGroupedBulk::PriceType::TaggedSymbol - ] - ) - end - def self.values - end - end - end - - class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::Price::GroupedWithMinMaxThresholds, - Orb::Internal::AnyHash - ) - end - - sig { returns(String) } - attr_accessor :id - - sig { returns(T.nilable(Orb::BillableMetricTiny)) } - attr_reader :billable_metric - - sig do - params( - billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash) - ).void - end - attr_writer :billable_metric - - sig { returns(Orb::BillingCycleConfiguration) } - attr_reader :billing_cycle_configuration - - sig do - params( - billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash - ).void - end - attr_writer :billing_cycle_configuration - - sig do - returns( - Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ) - end - attr_accessor :cadence - - sig { returns(T.nilable(Float)) } - attr_accessor :conversion_rate - - sig do - returns( - T.nilable( - Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent112::Variants - ) - ) - end - attr_accessor :conversion_rate_config - - sig { returns(Time) } - attr_accessor :created_at - - sig { returns(T.nilable(Orb::Allocation)) } - attr_reader :credit_allocation - - sig do - params(credit_allocation: T.nilable(Orb::Allocation::OrHash)).void - end - attr_writer :credit_allocation - - sig { returns(String) } - attr_accessor :currency - - sig { returns(T.nilable(Orb::Discount::Variants)) } - attr_accessor :discount - - sig { returns(T.nilable(String)) } - attr_accessor :external_price_id - - sig { returns(T.nilable(Float)) } - attr_accessor :fixed_price_quantity - - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_with_min_max_thresholds_config - - sig { returns(T.nilable(Orb::BillingCycleConfiguration)) } - attr_reader :invoicing_cycle_configuration - - sig do - params( - invoicing_cycle_configuration: - T.nilable(Orb::BillingCycleConfiguration::OrHash) - ).void - end - attr_writer :invoicing_cycle_configuration - - sig { returns(Orb::ItemSlim) } - attr_reader :item - - sig { params(item: Orb::ItemSlim::OrHash).void } - attr_writer :item - - sig { returns(T.nilable(Orb::Maximum)) } - attr_reader :maximum - - sig { params(maximum: T.nilable(Orb::Maximum::OrHash)).void } - attr_writer :maximum - - sig { returns(T.nilable(String)) } - attr_accessor :maximum_amount - - # User specified key-value pairs for the resource. If not present, this defaults - # to an empty dictionary. Individual keys can be removed by setting the value to - # `null`, and the entire metadata mapping can be cleared by setting `metadata` to - # `null`. - sig { returns(T::Hash[Symbol, String]) } - attr_accessor :metadata - - sig { returns(T.nilable(Orb::Minimum)) } - attr_reader :minimum + T.let(:semi_annual, Orb::Price::Minimum::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Price::Minimum::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Price::Minimum::Cadence::TaggedSymbol) - sig { params(minimum: T.nilable(Orb::Minimum::OrHash)).void } - attr_writer :minimum - - sig { returns(T.nilable(String)) } - attr_accessor :minimum_amount - - sig { returns(Symbol) } - attr_accessor :model_type - - sig { returns(String) } - attr_accessor :name - - sig { returns(T.nilable(Integer)) } - attr_accessor :plan_phase_order - - sig do - returns( - Orb::Price::GroupedWithMinMaxThresholds::PriceType::TaggedSymbol - ) + sig do + override.returns( + T::Array[Orb::Price::Minimum::Cadence::TaggedSymbol] + ) + end + def self.values + end end - attr_accessor :price_type - - # The price id this price replaces. This price will take the place of the replaced - # price in plan version migrations. - sig { returns(T.nilable(String)) } - attr_accessor :replaces_price_id - sig { returns(T.nilable(Orb::DimensionalPriceConfiguration)) } - attr_reader :dimensional_price_configuration + class MinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any(Orb::Price::Minimum::MinimumConfig, Orb::Internal::AnyHash) + end - sig do - params( - dimensional_price_configuration: - T.nilable(Orb::DimensionalPriceConfiguration::OrHash) - ).void - end - attr_writer :dimensional_price_configuration + # The minimum amount to apply + sig { returns(String) } + attr_accessor :minimum_amount - sig do - params( - id: String, - billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), - billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig::OrHash, - Orb::TieredConversionRateConfig::OrHash - ) - ), - created_at: Time, - credit_allocation: T.nilable(Orb::Allocation::OrHash), - currency: String, - discount: - T.nilable( - T.any( - Orb::PercentageDiscount::OrHash, - Orb::TrialDiscount::OrHash, - Orb::UsageDiscount::OrHash, - Orb::AmountDiscount::OrHash - ) - ), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - grouped_with_min_max_thresholds_config: T::Hash[Symbol, T.anything], - invoicing_cycle_configuration: - T.nilable(Orb::BillingCycleConfiguration::OrHash), - item: Orb::ItemSlim::OrHash, - maximum: T.nilable(Orb::Maximum::OrHash), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Minimum::OrHash), - minimum_amount: T.nilable(String), - name: String, - plan_phase_order: T.nilable(Integer), - price_type: - Orb::Price::GroupedWithMinMaxThresholds::PriceType::OrSymbol, - replaces_price_id: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::DimensionalPriceConfiguration::OrHash), - model_type: Symbol - ).returns(T.attached_class) - end - def self.new( - id:, - billable_metric:, - billing_cycle_configuration:, - cadence:, - conversion_rate:, - conversion_rate_config:, - created_at:, - credit_allocation:, - currency:, - discount:, - external_price_id:, - fixed_price_quantity:, - grouped_with_min_max_thresholds_config:, - invoicing_cycle_configuration:, - item:, - maximum:, - maximum_amount:, - # User specified key-value pairs for the resource. If not present, this defaults - # to an empty dictionary. Individual keys can be removed by setting the value to - # `null`, and the entire metadata mapping can be cleared by setting `metadata` to - # `null`. - metadata:, - minimum:, - minimum_amount:, - name:, - plan_phase_order:, - price_type:, - # The price id this price replaces. This price will take the place of the replaced - # price in plan version migrations. - replaces_price_id:, - dimensional_price_configuration: nil, - model_type: :grouped_with_min_max_thresholds - ) - end + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :prorated - sig do - override.returns( - { - id: String, - billable_metric: T.nilable(Orb::BillableMetricTiny), - billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: - Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol, - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent112::Variants - ), - created_at: Time, - credit_allocation: T.nilable(Orb::Allocation), - currency: String, - discount: T.nilable(Orb::Discount::Variants), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - grouped_with_min_max_thresholds_config: - T::Hash[Symbol, T.anything], - invoicing_cycle_configuration: - T.nilable(Orb::BillingCycleConfiguration), - item: Orb::ItemSlim, - maximum: T.nilable(Orb::Maximum), - maximum_amount: T.nilable(String), - metadata: T::Hash[Symbol, String], - minimum: T.nilable(Orb::Minimum), - minimum_amount: T.nilable(String), - model_type: Symbol, - name: String, - plan_phase_order: T.nilable(Integer), - price_type: - Orb::Price::GroupedWithMinMaxThresholds::PriceType::TaggedSymbol, - replaces_price_id: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::DimensionalPriceConfiguration) - } + sig do + params( + minimum_amount: String, + prorated: T.nilable(T::Boolean) + ).returns(T.attached_class) + end + def self.new( + # The minimum amount to apply + minimum_amount:, + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + prorated: nil ) - end - def to_hash - end - - module Cadence - extend Orb::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, Orb::Price::GroupedWithMinMaxThresholds::Cadence) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ONE_TIME = - T.let( - :one_time, - Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ) - MONTHLY = - T.let( - :monthly, - Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ) - QUARTERLY = - T.let( - :quarterly, - Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ) - SEMI_ANNUAL = - T.let( - :semi_annual, - Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ) - ANNUAL = - T.let( - :annual, - Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ) - CUSTOM = - T.let( - :custom, - Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ) + end sig do override.returns( - T::Array[ - Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ] + { minimum_amount: String, prorated: T.nilable(T::Boolean) } ) end - def self.values + def to_hash end end @@ -9742,27 +9395,17 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias do - T.all(Symbol, Orb::Price::GroupedWithMinMaxThresholds::PriceType) - end + T.type_alias { T.all(Symbol, Orb::Price::Minimum::PriceType) } OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = - T.let( - :usage_price, - Orb::Price::GroupedWithMinMaxThresholds::PriceType::TaggedSymbol - ) + T.let(:usage_price, Orb::Price::Minimum::PriceType::TaggedSymbol) FIXED_PRICE = - T.let( - :fixed_price, - Orb::Price::GroupedWithMinMaxThresholds::PriceType::TaggedSymbol - ) + T.let(:fixed_price, Orb::Price::Minimum::PriceType::TaggedSymbol) sig do override.returns( - T::Array[ - Orb::Price::GroupedWithMinMaxThresholds::PriceType::TaggedSymbol - ] + T::Array[Orb::Price::Minimum::PriceType::TaggedSymbol] ) end def self.values diff --git a/rbi/orb/models/price_create_params.rbi b/rbi/orb/models/price_create_params.rbi index e74184b4..27b2e818 100644 --- a/rbi/orb/models/price_create_params.rbi +++ b/rbi/orb/models/price_create_params.rbi @@ -146,24 +146,6 @@ module Orb sig { params(tiered_config: Orb::TieredConfig::OrHash).void } attr_writer :tiered_config - sig { returns(Orb::TieredBPSConfig) } - attr_reader :tiered_bps_config - - sig { params(tiered_bps_config: Orb::TieredBPSConfig::OrHash).void } - attr_writer :tiered_bps_config - - sig { returns(Orb::BPSConfig) } - attr_reader :bps_config - - sig { params(bps_config: Orb::BPSConfig::OrHash).void } - attr_writer :bps_config - - sig { returns(Orb::BulkBPSConfig) } - attr_reader :bulk_bps_config - - sig { params(bulk_bps_config: Orb::BulkBPSConfig::OrHash).void } - attr_writer :bulk_bps_config - sig { returns(Orb::BulkConfig) } attr_reader :bulk_config @@ -227,6 +209,19 @@ module Orb sig { returns(T::Hash[Symbol, T.anything]) } attr_accessor :cumulative_grouped_bulk_config + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :grouped_with_min_max_thresholds_config + + sig { returns(Orb::PriceCreateParams::MinimumConfig) } + attr_reader :minimum_config + + sig do + params( + minimum_config: Orb::PriceCreateParams::MinimumConfig::OrHash + ).void + end + attr_writer :minimum_config + sig do params( cadence: Orb::PriceCreateParams::Cadence::OrSymbol, @@ -240,9 +235,6 @@ module Orb matrix_with_allocation_config: Orb::MatrixWithAllocationConfig::OrHash, tiered_config: Orb::TieredConfig::OrHash, - tiered_bps_config: Orb::TieredBPSConfig::OrHash, - bps_config: Orb::BPSConfig::OrHash, - bulk_bps_config: Orb::BulkBPSConfig::OrHash, bulk_config: Orb::BulkConfig::OrHash, threshold_total_amount_config: T::Hash[Symbol, T.anything], tiered_package_config: T::Hash[Symbol, T.anything], @@ -264,6 +256,8 @@ module Orb scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], + grouped_with_min_max_thresholds_config: T::Hash[Symbol, T.anything], + minimum_config: Orb::PriceCreateParams::MinimumConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -302,9 +296,6 @@ module Orb matrix_config:, matrix_with_allocation_config:, tiered_config:, - tiered_bps_config:, - bps_config:, - bulk_bps_config:, bulk_config:, threshold_total_amount_config:, tiered_package_config:, @@ -325,6 +316,8 @@ module Orb scalable_matrix_with_unit_pricing_config:, scalable_matrix_with_tiered_pricing_config:, cumulative_grouped_bulk_config:, + grouped_with_min_max_thresholds_config:, + minimum_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. billable_metric_id: nil, @@ -391,9 +384,6 @@ module Orb matrix_config: Orb::MatrixConfig, matrix_with_allocation_config: Orb::MatrixWithAllocationConfig, tiered_config: Orb::TieredConfig, - tiered_bps_config: Orb::TieredBPSConfig, - bps_config: Orb::BPSConfig, - bulk_bps_config: Orb::BulkBPSConfig, bulk_config: Orb::BulkConfig, threshold_total_amount_config: T::Hash[Symbol, T.anything], tiered_package_config: T::Hash[Symbol, T.anything], @@ -416,6 +406,8 @@ module Orb scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], + grouped_with_min_max_thresholds_config: T::Hash[Symbol, T.anything], + minimum_config: Orb::PriceCreateParams::MinimumConfig, request_options: Orb::RequestOptions } ) @@ -457,11 +449,8 @@ module Orb T.type_alias { T.all(Symbol, Orb::PriceCreateParams::ModelType) } OrSymbol = T.type_alias { T.any(Symbol, String) } - CUMULATIVE_GROUPED_BULK = - T.let( - :cumulative_grouped_bulk, - Orb::PriceCreateParams::ModelType::TaggedSymbol - ) + MINIMUM = + T.let(:minimum, Orb::PriceCreateParams::ModelType::TaggedSymbol) sig do override.returns( @@ -471,6 +460,45 @@ module Orb def self.values end end + + class MinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any(Orb::PriceCreateParams::MinimumConfig, Orb::Internal::AnyHash) + end + + # The minimum amount to apply + sig { returns(String) } + attr_accessor :minimum_amount + + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :prorated + + sig do + params( + minimum_amount: String, + prorated: T.nilable(T::Boolean) + ).returns(T.attached_class) + end + def self.new( + # The minimum amount to apply + minimum_amount:, + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + prorated: nil + ) + end + + sig do + override.returns( + { minimum_amount: String, prorated: T.nilable(T::Boolean) } + ) + end + def to_hash + end + end end end end diff --git a/rbi/orb/models/price_evaluate_multiple_params.rbi b/rbi/orb/models/price_evaluate_multiple_params.rbi index 3b9d57df..4b1faf70 100644 --- a/rbi/orb/models/price_evaluate_multiple_params.rbi +++ b/rbi/orb/models/price_evaluate_multiple_params.rbi @@ -124,9 +124,6 @@ module Orb Orb::NewFloatingMatrixPrice, Orb::NewFloatingMatrixWithAllocationPrice, Orb::NewFloatingTieredPrice, - Orb::NewFloatingTieredBPSPrice, - Orb::NewFloatingBPSPrice, - Orb::NewFloatingBulkBPSPrice, Orb::NewFloatingBulkPrice, Orb::NewFloatingThresholdTotalAmountPrice, Orb::NewFloatingTieredPackagePrice, @@ -146,7 +143,9 @@ module Orb Orb::NewFloatingGroupedTieredPackagePrice, Orb::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::NewFloatingScalableMatrixWithTieredPricingPrice, - Orb::NewFloatingCumulativeGroupedBulkPrice + Orb::NewFloatingCumulativeGroupedBulkPrice, + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum ) ) ) @@ -170,9 +169,6 @@ module Orb Orb::NewFloatingMatrixPrice::OrHash, Orb::NewFloatingMatrixWithAllocationPrice::OrHash, Orb::NewFloatingTieredPrice::OrHash, - Orb::NewFloatingTieredBPSPrice::OrHash, - Orb::NewFloatingBPSPrice::OrHash, - Orb::NewFloatingBulkBPSPrice::OrHash, Orb::NewFloatingBulkPrice::OrHash, Orb::NewFloatingThresholdTotalAmountPrice::OrHash, Orb::NewFloatingTieredPackagePrice::OrHash, @@ -192,7 +188,9 @@ module Orb Orb::NewFloatingGroupedTieredPackagePrice::OrHash, Orb::NewFloatingScalableMatrixWithUnitPricingPrice::OrHash, Orb::NewFloatingScalableMatrixWithTieredPricingPrice::OrHash, - Orb::NewFloatingCumulativeGroupedBulkPrice::OrHash + Orb::NewFloatingCumulativeGroupedBulkPrice::OrHash, + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::OrHash, + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::OrHash ) ), price_id: T.nilable(String) @@ -231,9 +229,6 @@ module Orb Orb::NewFloatingMatrixPrice, Orb::NewFloatingMatrixWithAllocationPrice, Orb::NewFloatingTieredPrice, - Orb::NewFloatingTieredBPSPrice, - Orb::NewFloatingBPSPrice, - Orb::NewFloatingBulkBPSPrice, Orb::NewFloatingBulkPrice, Orb::NewFloatingThresholdTotalAmountPrice, Orb::NewFloatingTieredPackagePrice, @@ -253,7 +248,9 @@ module Orb Orb::NewFloatingGroupedTieredPackagePrice, Orb::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::NewFloatingScalableMatrixWithTieredPricingPrice, - Orb::NewFloatingCumulativeGroupedBulkPrice + Orb::NewFloatingCumulativeGroupedBulkPrice, + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum ) ), price_id: T.nilable(String) @@ -276,9 +273,6 @@ module Orb Orb::NewFloatingMatrixPrice, Orb::NewFloatingMatrixWithAllocationPrice, Orb::NewFloatingTieredPrice, - Orb::NewFloatingTieredBPSPrice, - Orb::NewFloatingBPSPrice, - Orb::NewFloatingBulkBPSPrice, Orb::NewFloatingBulkPrice, Orb::NewFloatingThresholdTotalAmountPrice, Orb::NewFloatingTieredPackagePrice, @@ -298,10 +292,640 @@ module Orb Orb::NewFloatingGroupedTieredPackagePrice, Orb::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::NewFloatingScalableMatrixWithTieredPricingPrice, - Orb::NewFloatingCumulativeGroupedBulkPrice + Orb::NewFloatingCumulativeGroupedBulkPrice, + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum ) end + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, + Orb::Internal::AnyHash + ) + end + + # The cadence to bill for this price on. + sig do + returns( + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol + ) + end + attr_accessor :cadence + + # An ISO 4217 currency string for which this price is billed in. + sig { returns(String) } + attr_accessor :currency + + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :grouped_with_min_max_thresholds_config + + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id + + sig { returns(Symbol) } + attr_accessor :model_type + + # The name of the price. + sig { returns(String) } + attr_accessor :name + + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id + + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance + + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration + + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) + ) + end + attr_accessor :conversion_rate_config + + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration + + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + sig do + params( + cadence: + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + currency: String, + grouped_with_min_max_thresholds_config: + T::Hash[Symbol, T.anything], + item_id: String, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + model_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + # An ISO 4217 currency string for which this price is billed in. + currency:, + grouped_with_min_max_thresholds_config:, + # The id of the item the price will be associated with. + item_id:, + # The name of the price. + name:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + model_type: :grouped_with_min_max_thresholds + ) + end + + sig do + override.returns( + { + cadence: + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + currency: String, + grouped_with_min_max_thresholds_config: + T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::Cadence + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Minimum < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum, + Orb::Internal::AnyHash + ) + end + + # The cadence to bill for this price on. + sig do + returns( + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::Cadence::OrSymbol + ) + end + attr_accessor :cadence + + # An ISO 4217 currency string for which this price is billed in. + sig { returns(String) } + attr_accessor :currency + + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id + + sig do + returns( + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::MinimumConfig + ) + end + attr_reader :minimum_config + + sig do + params( + minimum_config: + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::MinimumConfig::OrHash + ).void + end + attr_writer :minimum_config + + sig { returns(Symbol) } + attr_accessor :model_type + + # The name of the price. + sig { returns(String) } + attr_accessor :name + + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id + + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance + + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration + + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) + ) + end + attr_accessor :conversion_rate_config + + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration + + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + sig do + params( + cadence: + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::Cadence::OrSymbol, + currency: String, + item_id: String, + minimum_config: + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::MinimumConfig::OrHash, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + model_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + # An ISO 4217 currency string for which this price is billed in. + currency:, + # The id of the item the price will be associated with. + item_id:, + minimum_config:, + # The name of the price. + name:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + model_type: :minimum + ) + end + + sig do + override.returns( + { + cadence: + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::Cadence::OrSymbol, + currency: String, + item_id: String, + minimum_config: + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::MinimumConfig, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::Cadence + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end + + class MinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::MinimumConfig, + Orb::Internal::AnyHash + ) + end + + # The minimum amount to apply + sig { returns(String) } + attr_accessor :minimum_amount + + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :prorated + + sig do + params( + minimum_amount: String, + prorated: T.nilable(T::Boolean) + ).returns(T.attached_class) + end + def self.new( + # The minimum amount to apply + minimum_amount:, + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + prorated: nil + ) + end + + sig do + override.returns( + { minimum_amount: String, prorated: T.nilable(T::Boolean) } + ) + end + def to_hash + end + end + end + sig do override.returns( T::Array[ diff --git a/rbi/orb/models/price_evaluate_preview_events_params.rbi b/rbi/orb/models/price_evaluate_preview_events_params.rbi index 22a9bc58..a2766e1b 100644 --- a/rbi/orb/models/price_evaluate_preview_events_params.rbi +++ b/rbi/orb/models/price_evaluate_preview_events_params.rbi @@ -225,9 +225,6 @@ module Orb Orb::NewFloatingMatrixPrice, Orb::NewFloatingMatrixWithAllocationPrice, Orb::NewFloatingTieredPrice, - Orb::NewFloatingTieredBPSPrice, - Orb::NewFloatingBPSPrice, - Orb::NewFloatingBulkBPSPrice, Orb::NewFloatingBulkPrice, Orb::NewFloatingThresholdTotalAmountPrice, Orb::NewFloatingTieredPackagePrice, @@ -247,7 +244,9 @@ module Orb Orb::NewFloatingGroupedTieredPackagePrice, Orb::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::NewFloatingScalableMatrixWithTieredPricingPrice, - Orb::NewFloatingCumulativeGroupedBulkPrice + Orb::NewFloatingCumulativeGroupedBulkPrice, + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum ) ) ) @@ -271,9 +270,6 @@ module Orb Orb::NewFloatingMatrixPrice::OrHash, Orb::NewFloatingMatrixWithAllocationPrice::OrHash, Orb::NewFloatingTieredPrice::OrHash, - Orb::NewFloatingTieredBPSPrice::OrHash, - Orb::NewFloatingBPSPrice::OrHash, - Orb::NewFloatingBulkBPSPrice::OrHash, Orb::NewFloatingBulkPrice::OrHash, Orb::NewFloatingThresholdTotalAmountPrice::OrHash, Orb::NewFloatingTieredPackagePrice::OrHash, @@ -293,7 +289,9 @@ module Orb Orb::NewFloatingGroupedTieredPackagePrice::OrHash, Orb::NewFloatingScalableMatrixWithUnitPricingPrice::OrHash, Orb::NewFloatingScalableMatrixWithTieredPricingPrice::OrHash, - Orb::NewFloatingCumulativeGroupedBulkPrice::OrHash + Orb::NewFloatingCumulativeGroupedBulkPrice::OrHash, + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::OrHash, + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::OrHash ) ), price_id: T.nilable(String) @@ -332,9 +330,6 @@ module Orb Orb::NewFloatingMatrixPrice, Orb::NewFloatingMatrixWithAllocationPrice, Orb::NewFloatingTieredPrice, - Orb::NewFloatingTieredBPSPrice, - Orb::NewFloatingBPSPrice, - Orb::NewFloatingBulkBPSPrice, Orb::NewFloatingBulkPrice, Orb::NewFloatingThresholdTotalAmountPrice, Orb::NewFloatingTieredPackagePrice, @@ -354,7 +349,9 @@ module Orb Orb::NewFloatingGroupedTieredPackagePrice, Orb::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::NewFloatingScalableMatrixWithTieredPricingPrice, - Orb::NewFloatingCumulativeGroupedBulkPrice + Orb::NewFloatingCumulativeGroupedBulkPrice, + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum ) ), price_id: T.nilable(String) @@ -377,9 +374,6 @@ module Orb Orb::NewFloatingMatrixPrice, Orb::NewFloatingMatrixWithAllocationPrice, Orb::NewFloatingTieredPrice, - Orb::NewFloatingTieredBPSPrice, - Orb::NewFloatingBPSPrice, - Orb::NewFloatingBulkBPSPrice, Orb::NewFloatingBulkPrice, Orb::NewFloatingThresholdTotalAmountPrice, Orb::NewFloatingTieredPackagePrice, @@ -399,10 +393,640 @@ module Orb Orb::NewFloatingGroupedTieredPackagePrice, Orb::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::NewFloatingScalableMatrixWithTieredPricingPrice, - Orb::NewFloatingCumulativeGroupedBulkPrice + Orb::NewFloatingCumulativeGroupedBulkPrice, + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum ) end + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, + Orb::Internal::AnyHash + ) + end + + # The cadence to bill for this price on. + sig do + returns( + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol + ) + end + attr_accessor :cadence + + # An ISO 4217 currency string for which this price is billed in. + sig { returns(String) } + attr_accessor :currency + + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :grouped_with_min_max_thresholds_config + + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id + + sig { returns(Symbol) } + attr_accessor :model_type + + # The name of the price. + sig { returns(String) } + attr_accessor :name + + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id + + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance + + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration + + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) + ) + end + attr_accessor :conversion_rate_config + + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration + + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + sig do + params( + cadence: + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + currency: String, + grouped_with_min_max_thresholds_config: + T::Hash[Symbol, T.anything], + item_id: String, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + model_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + # An ISO 4217 currency string for which this price is billed in. + currency:, + grouped_with_min_max_thresholds_config:, + # The id of the item the price will be associated with. + item_id:, + # The name of the price. + name:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + model_type: :grouped_with_min_max_thresholds + ) + end + + sig do + override.returns( + { + cadence: + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + currency: String, + grouped_with_min_max_thresholds_config: + T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::Cadence + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Minimum < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum, + Orb::Internal::AnyHash + ) + end + + # The cadence to bill for this price on. + sig do + returns( + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::Cadence::OrSymbol + ) + end + attr_accessor :cadence + + # An ISO 4217 currency string for which this price is billed in. + sig { returns(String) } + attr_accessor :currency + + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id + + sig do + returns( + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::MinimumConfig + ) + end + attr_reader :minimum_config + + sig do + params( + minimum_config: + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::MinimumConfig::OrHash + ).void + end + attr_writer :minimum_config + + sig { returns(Symbol) } + attr_accessor :model_type + + # The name of the price. + sig { returns(String) } + attr_accessor :name + + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id + + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance + + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration + + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) + ) + end + attr_accessor :conversion_rate_config + + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration + + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + sig do + params( + cadence: + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::Cadence::OrSymbol, + currency: String, + item_id: String, + minimum_config: + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::MinimumConfig::OrHash, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + model_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + # An ISO 4217 currency string for which this price is billed in. + currency:, + # The id of the item the price will be associated with. + item_id:, + minimum_config:, + # The name of the price. + name:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + model_type: :minimum + ) + end + + sig do + override.returns( + { + cadence: + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::Cadence::OrSymbol, + currency: String, + item_id: String, + minimum_config: + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::MinimumConfig, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::Cadence + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end + + class MinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::MinimumConfig, + Orb::Internal::AnyHash + ) + end + + # The minimum amount to apply + sig { returns(String) } + attr_accessor :minimum_amount + + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :prorated + + sig do + params( + minimum_amount: String, + prorated: T.nilable(T::Boolean) + ).returns(T.attached_class) + end + def self.new( + # The minimum amount to apply + minimum_amount:, + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + prorated: nil + ) + end + + sig do + override.returns( + { minimum_amount: String, prorated: T.nilable(T::Boolean) } + ) + end + def to_hash + end + end + end + sig do override.returns( T::Array[ diff --git a/rbi/orb/models/price_interval.rbi b/rbi/orb/models/price_interval.rbi index 4513fee2..ca42f58b 100644 --- a/rbi/orb/models/price_interval.rbi +++ b/rbi/orb/models/price_interval.rbi @@ -81,9 +81,6 @@ module Orb Orb::Price::Package::OrHash, Orb::Price::Matrix::OrHash, Orb::Price::Tiered::OrHash, - Orb::Price::TieredBPS::OrHash, - Orb::Price::BPS::OrHash, - Orb::Price::BulkBPS::OrHash, Orb::Price::Bulk::OrHash, Orb::Price::ThresholdTotalAmount::OrHash, Orb::Price::TieredPackage::OrHash, @@ -105,7 +102,8 @@ module Orb Orb::Price::ScalableMatrixWithUnitPricing::OrHash, Orb::Price::ScalableMatrixWithTieredPricing::OrHash, Orb::Price::CumulativeGroupedBulk::OrHash, - Orb::Price::GroupedWithMinMaxThresholds::OrHash + Orb::Price::GroupedWithMinMaxThresholds::OrHash, + Orb::Price::Minimum::OrHash ), start_date: Time, usage_customer_ids: T.nilable(T::Array[String]) diff --git a/rbi/orb/models/subscription_create_params.rbi b/rbi/orb/models/subscription_create_params.rbi index 408face6..37a55a89 100644 --- a/rbi/orb/models/subscription_create_params.rbi +++ b/rbi/orb/models/subscription_create_params.rbi @@ -587,9 +587,6 @@ module Orb Orb::NewSubscriptionPackagePrice, Orb::NewSubscriptionMatrixPrice, Orb::NewSubscriptionTieredPrice, - Orb::NewSubscriptionTieredBPSPrice, - Orb::NewSubscriptionBPSPrice, - Orb::NewSubscriptionBulkBPSPrice, Orb::NewSubscriptionBulkPrice, Orb::NewSubscriptionThresholdTotalAmountPrice, Orb::NewSubscriptionTieredPackagePrice, @@ -610,7 +607,9 @@ module Orb Orb::NewSubscriptionGroupedTieredPackagePrice, Orb::NewSubscriptionMatrixWithAllocationPrice, Orb::NewSubscriptionTieredPackageWithMinimumPrice, - Orb::NewSubscriptionGroupedTieredPrice + Orb::NewSubscriptionGroupedTieredPrice, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds, + Orb::SubscriptionCreateParams::AddPrice::Price::Minimum ) ) ) @@ -643,9 +642,6 @@ module Orb Orb::NewSubscriptionPackagePrice::OrHash, Orb::NewSubscriptionMatrixPrice::OrHash, Orb::NewSubscriptionTieredPrice::OrHash, - Orb::NewSubscriptionTieredBPSPrice::OrHash, - Orb::NewSubscriptionBPSPrice::OrHash, - Orb::NewSubscriptionBulkBPSPrice::OrHash, Orb::NewSubscriptionBulkPrice::OrHash, Orb::NewSubscriptionThresholdTotalAmountPrice::OrHash, Orb::NewSubscriptionTieredPackagePrice::OrHash, @@ -666,7 +662,9 @@ module Orb Orb::NewSubscriptionGroupedTieredPackagePrice::OrHash, Orb::NewSubscriptionMatrixWithAllocationPrice::OrHash, Orb::NewSubscriptionTieredPackageWithMinimumPrice::OrHash, - Orb::NewSubscriptionGroupedTieredPrice::OrHash + Orb::NewSubscriptionGroupedTieredPrice::OrHash, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::OrHash, + Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::OrHash ) ), price_id: T.nilable(String), @@ -721,9 +719,6 @@ module Orb Orb::NewSubscriptionPackagePrice, Orb::NewSubscriptionMatrixPrice, Orb::NewSubscriptionTieredPrice, - Orb::NewSubscriptionTieredBPSPrice, - Orb::NewSubscriptionBPSPrice, - Orb::NewSubscriptionBulkBPSPrice, Orb::NewSubscriptionBulkPrice, Orb::NewSubscriptionThresholdTotalAmountPrice, Orb::NewSubscriptionTieredPackagePrice, @@ -744,7 +739,9 @@ module Orb Orb::NewSubscriptionGroupedTieredPackagePrice, Orb::NewSubscriptionMatrixWithAllocationPrice, Orb::NewSubscriptionTieredPackageWithMinimumPrice, - Orb::NewSubscriptionGroupedTieredPrice + Orb::NewSubscriptionGroupedTieredPrice, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds, + Orb::SubscriptionCreateParams::AddPrice::Price::Minimum ) ), price_id: T.nilable(String), @@ -766,9 +763,6 @@ module Orb Orb::NewSubscriptionPackagePrice, Orb::NewSubscriptionMatrixPrice, Orb::NewSubscriptionTieredPrice, - Orb::NewSubscriptionTieredBPSPrice, - Orb::NewSubscriptionBPSPrice, - Orb::NewSubscriptionBulkBPSPrice, Orb::NewSubscriptionBulkPrice, Orb::NewSubscriptionThresholdTotalAmountPrice, Orb::NewSubscriptionTieredPackagePrice, @@ -789,10 +783,664 @@ module Orb Orb::NewSubscriptionGroupedTieredPackagePrice, Orb::NewSubscriptionMatrixWithAllocationPrice, Orb::NewSubscriptionTieredPackageWithMinimumPrice, - Orb::NewSubscriptionGroupedTieredPrice + Orb::NewSubscriptionGroupedTieredPrice, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds, + Orb::SubscriptionCreateParams::AddPrice::Price::Minimum ) end + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds, + Orb::Internal::AnyHash + ) + end + + # The cadence to bill for this price on. + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol + ) + end + attr_accessor :cadence + + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :grouped_with_min_max_thresholds_config + + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id + + sig { returns(Symbol) } + attr_accessor :model_type + + # The name of the price. + sig { returns(String) } + attr_accessor :name + + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id + + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance + + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration + + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) + ) + end + attr_accessor :conversion_rate_config + + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + sig { returns(T.nilable(String)) } + attr_accessor :currency + + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration + + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + sig { returns(T.nilable(String)) } + attr_accessor :reference_id + + sig do + params( + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + grouped_with_min_max_thresholds_config: + T::Hash[Symbol, T.anything], + item_id: String, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String), + model_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + grouped_with_min_max_thresholds_config:, + # The id of the item the price will be associated with. + item_id:, + # The name of the price. + name:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + currency: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + reference_id: nil, + model_type: :grouped_with_min_max_thresholds + ) + end + + sig do + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + grouped_with_min_max_thresholds_config: + T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Minimum < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::Minimum, + Orb::Internal::AnyHash + ) + end + + # The cadence to bill for this price on. + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::Cadence::OrSymbol + ) + end + attr_accessor :cadence + + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id + + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::MinimumConfig + ) + end + attr_reader :minimum_config + + sig do + params( + minimum_config: + Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::MinimumConfig::OrHash + ).void + end + attr_writer :minimum_config + + sig { returns(Symbol) } + attr_accessor :model_type + + # The name of the price. + sig { returns(String) } + attr_accessor :name + + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id + + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance + + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration + + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) + ) + end + attr_accessor :conversion_rate_config + + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + sig { returns(T.nilable(String)) } + attr_accessor :currency + + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration + + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + sig { returns(T.nilable(String)) } + attr_accessor :reference_id + + sig do + params( + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::Cadence::OrSymbol, + item_id: String, + minimum_config: + Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::MinimumConfig::OrHash, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String), + model_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + # The id of the item the price will be associated with. + item_id:, + minimum_config:, + # The name of the price. + name:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + currency: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + reference_id: nil, + model_type: :minimum + ) + end + + sig do + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::Cadence::OrSymbol, + item_id: String, + minimum_config: + Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::MinimumConfig, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::Cadence + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end + + class MinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::MinimumConfig, + Orb::Internal::AnyHash + ) + end + + # The minimum amount to apply + sig { returns(String) } + attr_accessor :minimum_amount + + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :prorated + + sig do + params( + minimum_amount: String, + prorated: T.nilable(T::Boolean) + ).returns(T.attached_class) + end + def self.new( + # The minimum amount to apply + minimum_amount:, + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + prorated: nil + ) + end + + sig do + override.returns( + { minimum_amount: String, prorated: T.nilable(T::Boolean) } + ) + end + def to_hash + end + end + end + sig do override.returns( T::Array[Orb::SubscriptionCreateParams::AddPrice::Price::Variants] @@ -1056,9 +1704,6 @@ module Orb Orb::NewSubscriptionPackagePrice, Orb::NewSubscriptionMatrixPrice, Orb::NewSubscriptionTieredPrice, - Orb::NewSubscriptionTieredBPSPrice, - Orb::NewSubscriptionBPSPrice, - Orb::NewSubscriptionBulkBPSPrice, Orb::NewSubscriptionBulkPrice, Orb::NewSubscriptionThresholdTotalAmountPrice, Orb::NewSubscriptionTieredPackagePrice, @@ -1079,7 +1724,9 @@ module Orb Orb::NewSubscriptionGroupedTieredPackagePrice, Orb::NewSubscriptionMatrixWithAllocationPrice, Orb::NewSubscriptionTieredPackageWithMinimumPrice, - Orb::NewSubscriptionGroupedTieredPrice + Orb::NewSubscriptionGroupedTieredPrice, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum ) ) ) @@ -1106,9 +1753,6 @@ module Orb Orb::NewSubscriptionPackagePrice::OrHash, Orb::NewSubscriptionMatrixPrice::OrHash, Orb::NewSubscriptionTieredPrice::OrHash, - Orb::NewSubscriptionTieredBPSPrice::OrHash, - Orb::NewSubscriptionBPSPrice::OrHash, - Orb::NewSubscriptionBulkBPSPrice::OrHash, Orb::NewSubscriptionBulkPrice::OrHash, Orb::NewSubscriptionThresholdTotalAmountPrice::OrHash, Orb::NewSubscriptionTieredPackagePrice::OrHash, @@ -1129,7 +1773,9 @@ module Orb Orb::NewSubscriptionGroupedTieredPackagePrice::OrHash, Orb::NewSubscriptionMatrixWithAllocationPrice::OrHash, Orb::NewSubscriptionTieredPackageWithMinimumPrice::OrHash, - Orb::NewSubscriptionGroupedTieredPrice::OrHash + Orb::NewSubscriptionGroupedTieredPrice::OrHash, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::OrHash, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::OrHash ) ), price_id: T.nilable(String) @@ -1177,9 +1823,6 @@ module Orb Orb::NewSubscriptionPackagePrice, Orb::NewSubscriptionMatrixPrice, Orb::NewSubscriptionTieredPrice, - Orb::NewSubscriptionTieredBPSPrice, - Orb::NewSubscriptionBPSPrice, - Orb::NewSubscriptionBulkBPSPrice, Orb::NewSubscriptionBulkPrice, Orb::NewSubscriptionThresholdTotalAmountPrice, Orb::NewSubscriptionTieredPackagePrice, @@ -1200,7 +1843,9 @@ module Orb Orb::NewSubscriptionGroupedTieredPackagePrice, Orb::NewSubscriptionMatrixWithAllocationPrice, Orb::NewSubscriptionTieredPackageWithMinimumPrice, - Orb::NewSubscriptionGroupedTieredPrice + Orb::NewSubscriptionGroupedTieredPrice, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum ) ), price_id: T.nilable(String) @@ -1221,9 +1866,6 @@ module Orb Orb::NewSubscriptionPackagePrice, Orb::NewSubscriptionMatrixPrice, Orb::NewSubscriptionTieredPrice, - Orb::NewSubscriptionTieredBPSPrice, - Orb::NewSubscriptionBPSPrice, - Orb::NewSubscriptionBulkBPSPrice, Orb::NewSubscriptionBulkPrice, Orb::NewSubscriptionThresholdTotalAmountPrice, Orb::NewSubscriptionTieredPackagePrice, @@ -1244,10 +1886,664 @@ module Orb Orb::NewSubscriptionGroupedTieredPackagePrice, Orb::NewSubscriptionMatrixWithAllocationPrice, Orb::NewSubscriptionTieredPackageWithMinimumPrice, - Orb::NewSubscriptionGroupedTieredPrice + Orb::NewSubscriptionGroupedTieredPrice, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum ) end + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, + Orb::Internal::AnyHash + ) + end + + # The cadence to bill for this price on. + sig do + returns( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol + ) + end + attr_accessor :cadence + + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :grouped_with_min_max_thresholds_config + + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id + + sig { returns(Symbol) } + attr_accessor :model_type + + # The name of the price. + sig { returns(String) } + attr_accessor :name + + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id + + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance + + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration + + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) + ) + end + attr_accessor :conversion_rate_config + + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + sig { returns(T.nilable(String)) } + attr_accessor :currency + + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration + + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + sig { returns(T.nilable(String)) } + attr_accessor :reference_id + + sig do + params( + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + grouped_with_min_max_thresholds_config: + T::Hash[Symbol, T.anything], + item_id: String, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String), + model_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + grouped_with_min_max_thresholds_config:, + # The id of the item the price will be associated with. + item_id:, + # The name of the price. + name:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + currency: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + reference_id: nil, + model_type: :grouped_with_min_max_thresholds + ) + end + + sig do + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + grouped_with_min_max_thresholds_config: + T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Minimum < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum, + Orb::Internal::AnyHash + ) + end + + # The cadence to bill for this price on. + sig do + returns( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::Cadence::OrSymbol + ) + end + attr_accessor :cadence + + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id + + sig do + returns( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::MinimumConfig + ) + end + attr_reader :minimum_config + + sig do + params( + minimum_config: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::MinimumConfig::OrHash + ).void + end + attr_writer :minimum_config + + sig { returns(Symbol) } + attr_accessor :model_type + + # The name of the price. + sig { returns(String) } + attr_accessor :name + + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id + + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance + + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration + + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) + ) + end + attr_accessor :conversion_rate_config + + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + sig { returns(T.nilable(String)) } + attr_accessor :currency + + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration + + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + sig { returns(T.nilable(String)) } + attr_accessor :reference_id + + sig do + params( + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::Cadence::OrSymbol, + item_id: String, + minimum_config: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::MinimumConfig::OrHash, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String), + model_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + # The id of the item the price will be associated with. + item_id:, + minimum_config:, + # The name of the price. + name:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + currency: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + reference_id: nil, + model_type: :minimum + ) + end + + sig do + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::Cadence::OrSymbol, + item_id: String, + minimum_config: + Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::MinimumConfig, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::Cadence + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end + + class MinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::MinimumConfig, + Orb::Internal::AnyHash + ) + end + + # The minimum amount to apply + sig { returns(String) } + attr_accessor :minimum_amount + + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :prorated + + sig do + params( + minimum_amount: String, + prorated: T.nilable(T::Boolean) + ).returns(T.attached_class) + end + def self.new( + # The minimum amount to apply + minimum_amount:, + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + prorated: nil + ) + end + + sig do + override.returns( + { minimum_amount: String, prorated: T.nilable(T::Boolean) } + ) + end + def to_hash + end + end + end + sig do override.returns( T::Array[ diff --git a/rbi/orb/models/subscription_price_intervals_params.rbi b/rbi/orb/models/subscription_price_intervals_params.rbi index b797820a..719c648e 100644 --- a/rbi/orb/models/subscription_price_intervals_params.rbi +++ b/rbi/orb/models/subscription_price_intervals_params.rbi @@ -228,9 +228,6 @@ module Orb Orb::NewFloatingMatrixPrice, Orb::NewFloatingMatrixWithAllocationPrice, Orb::NewFloatingTieredPrice, - Orb::NewFloatingTieredBPSPrice, - Orb::NewFloatingBPSPrice, - Orb::NewFloatingBulkBPSPrice, Orb::NewFloatingBulkPrice, Orb::NewFloatingThresholdTotalAmountPrice, Orb::NewFloatingTieredPackagePrice, @@ -250,7 +247,9 @@ module Orb Orb::NewFloatingGroupedTieredPackagePrice, Orb::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::NewFloatingScalableMatrixWithTieredPricingPrice, - Orb::NewFloatingCumulativeGroupedBulkPrice + Orb::NewFloatingCumulativeGroupedBulkPrice, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum ) ) ) @@ -304,9 +303,6 @@ module Orb Orb::NewFloatingMatrixPrice::OrHash, Orb::NewFloatingMatrixWithAllocationPrice::OrHash, Orb::NewFloatingTieredPrice::OrHash, - Orb::NewFloatingTieredBPSPrice::OrHash, - Orb::NewFloatingBPSPrice::OrHash, - Orb::NewFloatingBulkBPSPrice::OrHash, Orb::NewFloatingBulkPrice::OrHash, Orb::NewFloatingThresholdTotalAmountPrice::OrHash, Orb::NewFloatingTieredPackagePrice::OrHash, @@ -326,7 +322,9 @@ module Orb Orb::NewFloatingGroupedTieredPackagePrice::OrHash, Orb::NewFloatingScalableMatrixWithUnitPricingPrice::OrHash, Orb::NewFloatingScalableMatrixWithTieredPricingPrice::OrHash, - Orb::NewFloatingCumulativeGroupedBulkPrice::OrHash + Orb::NewFloatingCumulativeGroupedBulkPrice::OrHash, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::OrHash, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::OrHash ) ), price_id: T.nilable(String), @@ -408,9 +406,6 @@ module Orb Orb::NewFloatingMatrixPrice, Orb::NewFloatingMatrixWithAllocationPrice, Orb::NewFloatingTieredPrice, - Orb::NewFloatingTieredBPSPrice, - Orb::NewFloatingBPSPrice, - Orb::NewFloatingBulkBPSPrice, Orb::NewFloatingBulkPrice, Orb::NewFloatingThresholdTotalAmountPrice, Orb::NewFloatingTieredPackagePrice, @@ -430,7 +425,9 @@ module Orb Orb::NewFloatingGroupedTieredPackagePrice, Orb::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::NewFloatingScalableMatrixWithTieredPricingPrice, - Orb::NewFloatingCumulativeGroupedBulkPrice + Orb::NewFloatingCumulativeGroupedBulkPrice, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum ) ), price_id: T.nilable(String), @@ -666,9 +663,6 @@ module Orb Orb::NewFloatingMatrixPrice, Orb::NewFloatingMatrixWithAllocationPrice, Orb::NewFloatingTieredPrice, - Orb::NewFloatingTieredBPSPrice, - Orb::NewFloatingBPSPrice, - Orb::NewFloatingBulkBPSPrice, Orb::NewFloatingBulkPrice, Orb::NewFloatingThresholdTotalAmountPrice, Orb::NewFloatingTieredPackagePrice, @@ -688,10 +682,640 @@ module Orb Orb::NewFloatingGroupedTieredPackagePrice, Orb::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::NewFloatingScalableMatrixWithTieredPricingPrice, - Orb::NewFloatingCumulativeGroupedBulkPrice + Orb::NewFloatingCumulativeGroupedBulkPrice, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum ) end + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds, + Orb::Internal::AnyHash + ) + end + + # The cadence to bill for this price on. + sig do + returns( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol + ) + end + attr_accessor :cadence + + # An ISO 4217 currency string for which this price is billed in. + sig { returns(String) } + attr_accessor :currency + + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :grouped_with_min_max_thresholds_config + + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id + + sig { returns(Symbol) } + attr_accessor :model_type + + # The name of the price. + sig { returns(String) } + attr_accessor :name + + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id + + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance + + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration + + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) + ) + end + attr_accessor :conversion_rate_config + + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration + + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + sig do + params( + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + currency: String, + grouped_with_min_max_thresholds_config: + T::Hash[Symbol, T.anything], + item_id: String, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + model_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + # An ISO 4217 currency string for which this price is billed in. + currency:, + grouped_with_min_max_thresholds_config:, + # The id of the item the price will be associated with. + item_id:, + # The name of the price. + name:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + model_type: :grouped_with_min_max_thresholds + ) + end + + sig do + override.returns( + { + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + currency: String, + grouped_with_min_max_thresholds_config: + T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::Cadence + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Minimum < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum, + Orb::Internal::AnyHash + ) + end + + # The cadence to bill for this price on. + sig do + returns( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::Cadence::OrSymbol + ) + end + attr_accessor :cadence + + # An ISO 4217 currency string for which this price is billed in. + sig { returns(String) } + attr_accessor :currency + + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id + + sig do + returns( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::MinimumConfig + ) + end + attr_reader :minimum_config + + sig do + params( + minimum_config: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::MinimumConfig::OrHash + ).void + end + attr_writer :minimum_config + + sig { returns(Symbol) } + attr_accessor :model_type + + # The name of the price. + sig { returns(String) } + attr_accessor :name + + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id + + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance + + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration + + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) + ) + end + attr_accessor :conversion_rate_config + + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration + + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + sig do + params( + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::Cadence::OrSymbol, + currency: String, + item_id: String, + minimum_config: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::MinimumConfig::OrHash, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + model_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + # An ISO 4217 currency string for which this price is billed in. + currency:, + # The id of the item the price will be associated with. + item_id:, + minimum_config:, + # The name of the price. + name:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + model_type: :minimum + ) + end + + sig do + override.returns( + { + cadence: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::Cadence::OrSymbol, + currency: String, + item_id: String, + minimum_config: + Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::MinimumConfig, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::Cadence + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end + + class MinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::MinimumConfig, + Orb::Internal::AnyHash + ) + end + + # The minimum amount to apply + sig { returns(String) } + attr_accessor :minimum_amount + + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :prorated + + sig do + params( + minimum_amount: String, + prorated: T.nilable(T::Boolean) + ).returns(T.attached_class) + end + def self.new( + # The minimum amount to apply + minimum_amount:, + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + prorated: nil + ) + end + + sig do + override.returns( + { minimum_amount: String, prorated: T.nilable(T::Boolean) } + ) + end + def to_hash + end + end + end + sig do override.returns( T::Array[ @@ -713,26 +1337,34 @@ module Orb ) end + # The start date of the adjustment interval. This is the date that the adjustment + # will start affecting prices on the subscription. The adjustment will apply to + # invoice dates that overlap with this `start_date`. This `start_date` is treated + # as inclusive for in-advance prices, and exclusive for in-arrears prices. + sig { returns(T.any(Time, Orb::BillingCycleRelativeDate::OrSymbol)) } + attr_accessor :start_date + # The definition of a new adjustment to create and add to the subscription. sig do returns( - T.any( - Orb::NewPercentageDiscount, - Orb::NewUsageDiscount, - Orb::NewAmountDiscount, - Orb::NewMinimum, - Orb::NewMaximum + T.nilable( + T.any( + Orb::NewPercentageDiscount, + Orb::NewUsageDiscount, + Orb::NewAmountDiscount, + Orb::NewMinimum, + Orb::NewMaximum + ) ) ) end attr_accessor :adjustment - # The start date of the adjustment interval. This is the date that the adjustment - # will start affecting prices on the subscription. The adjustment will apply to - # invoice dates that overlap with this `start_date`. This `start_date` is treated - # as inclusive for in-advance prices, and exclusive for in-arrears prices. - sig { returns(T.any(Time, Orb::BillingCycleRelativeDate::OrSymbol)) } - attr_accessor :start_date + # The ID of the adjustment to add to the subscription. Adjustment IDs can be + # re-used from existing subscriptions or plans, but adjustments associated with + # coupon redemptions cannot be re-used. + sig { returns(T.nilable(String)) } + attr_accessor :adjustment_id # The end date of the adjustment interval. This is the date that the adjustment # will stop affecting prices on the subscription. The adjustment will apply to @@ -747,27 +1379,34 @@ module Orb sig do params( + start_date: T.any(Time, Orb::BillingCycleRelativeDate::OrSymbol), adjustment: - T.any( - Orb::NewPercentageDiscount::OrHash, - Orb::NewUsageDiscount::OrHash, - Orb::NewAmountDiscount::OrHash, - Orb::NewMinimum::OrHash, - Orb::NewMaximum::OrHash + T.nilable( + T.any( + Orb::NewPercentageDiscount::OrHash, + Orb::NewUsageDiscount::OrHash, + Orb::NewAmountDiscount::OrHash, + Orb::NewMinimum::OrHash, + Orb::NewMaximum::OrHash + ) ), - start_date: T.any(Time, Orb::BillingCycleRelativeDate::OrSymbol), + adjustment_id: T.nilable(String), end_date: T.nilable(T.any(Time, Orb::BillingCycleRelativeDate::OrSymbol)) ).returns(T.attached_class) end def self.new( - # The definition of a new adjustment to create and add to the subscription. - adjustment:, # The start date of the adjustment interval. This is the date that the adjustment # will start affecting prices on the subscription. The adjustment will apply to # invoice dates that overlap with this `start_date`. This `start_date` is treated # as inclusive for in-advance prices, and exclusive for in-arrears prices. start_date:, + # The definition of a new adjustment to create and add to the subscription. + adjustment: nil, + # The ID of the adjustment to add to the subscription. Adjustment IDs can be + # re-used from existing subscriptions or plans, but adjustments associated with + # coupon redemptions cannot be re-used. + adjustment_id: nil, # The end date of the adjustment interval. This is the date that the adjustment # will stop affecting prices on the subscription. The adjustment will apply to # invoice dates that overlap with this `end_date`.This `end_date` is treated as @@ -779,15 +1418,18 @@ module Orb sig do override.returns( { + start_date: T.any(Time, Orb::BillingCycleRelativeDate::OrSymbol), adjustment: - T.any( - Orb::NewPercentageDiscount, - Orb::NewUsageDiscount, - Orb::NewAmountDiscount, - Orb::NewMinimum, - Orb::NewMaximum + T.nilable( + T.any( + Orb::NewPercentageDiscount, + Orb::NewUsageDiscount, + Orb::NewAmountDiscount, + Orb::NewMinimum, + Orb::NewMaximum + ) ), - start_date: T.any(Time, Orb::BillingCycleRelativeDate::OrSymbol), + adjustment_id: T.nilable(String), end_date: T.nilable(T.any(Time, Orb::BillingCycleRelativeDate::OrSymbol)) } @@ -796,25 +1438,22 @@ module Orb def to_hash end - # The definition of a new adjustment to create and add to the subscription. - module Adjustment + # The start date of the adjustment interval. This is the date that the adjustment + # will start affecting prices on the subscription. The adjustment will apply to + # invoice dates that overlap with this `start_date`. This `start_date` is treated + # as inclusive for in-advance prices, and exclusive for in-arrears prices. + module StartDate extend Orb::Internal::Type::Union Variants = T.type_alias do - T.any( - Orb::NewPercentageDiscount, - Orb::NewUsageDiscount, - Orb::NewAmountDiscount, - Orb::NewMinimum, - Orb::NewMaximum - ) + T.any(Time, Orb::BillingCycleRelativeDate::TaggedSymbol) end sig do override.returns( T::Array[ - Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Variants + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::StartDate::Variants ] ) end @@ -822,22 +1461,25 @@ module Orb end end - # The start date of the adjustment interval. This is the date that the adjustment - # will start affecting prices on the subscription. The adjustment will apply to - # invoice dates that overlap with this `start_date`. This `start_date` is treated - # as inclusive for in-advance prices, and exclusive for in-arrears prices. - module StartDate + # The definition of a new adjustment to create and add to the subscription. + module Adjustment extend Orb::Internal::Type::Union Variants = T.type_alias do - T.any(Time, Orb::BillingCycleRelativeDate::TaggedSymbol) + T.any( + Orb::NewPercentageDiscount, + Orb::NewUsageDiscount, + Orb::NewAmountDiscount, + Orb::NewMinimum, + Orb::NewMaximum + ) end sig do override.returns( T::Array[ - Orb::SubscriptionPriceIntervalsParams::AddAdjustment::StartDate::Variants + Orb::SubscriptionPriceIntervalsParams::AddAdjustment::Adjustment::Variants ] ) end diff --git a/rbi/orb/models/subscription_schedule_plan_change_params.rbi b/rbi/orb/models/subscription_schedule_plan_change_params.rbi index 7e26c94b..9e9400b7 100644 --- a/rbi/orb/models/subscription_schedule_plan_change_params.rbi +++ b/rbi/orb/models/subscription_schedule_plan_change_params.rbi @@ -638,9 +638,6 @@ module Orb Orb::NewSubscriptionPackagePrice, Orb::NewSubscriptionMatrixPrice, Orb::NewSubscriptionTieredPrice, - Orb::NewSubscriptionTieredBPSPrice, - Orb::NewSubscriptionBPSPrice, - Orb::NewSubscriptionBulkBPSPrice, Orb::NewSubscriptionBulkPrice, Orb::NewSubscriptionThresholdTotalAmountPrice, Orb::NewSubscriptionTieredPackagePrice, @@ -661,7 +658,9 @@ module Orb Orb::NewSubscriptionGroupedTieredPackagePrice, Orb::NewSubscriptionMatrixWithAllocationPrice, Orb::NewSubscriptionTieredPackageWithMinimumPrice, - Orb::NewSubscriptionGroupedTieredPrice + Orb::NewSubscriptionGroupedTieredPrice, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum ) ) ) @@ -694,9 +693,6 @@ module Orb Orb::NewSubscriptionPackagePrice::OrHash, Orb::NewSubscriptionMatrixPrice::OrHash, Orb::NewSubscriptionTieredPrice::OrHash, - Orb::NewSubscriptionTieredBPSPrice::OrHash, - Orb::NewSubscriptionBPSPrice::OrHash, - Orb::NewSubscriptionBulkBPSPrice::OrHash, Orb::NewSubscriptionBulkPrice::OrHash, Orb::NewSubscriptionThresholdTotalAmountPrice::OrHash, Orb::NewSubscriptionTieredPackagePrice::OrHash, @@ -717,7 +713,9 @@ module Orb Orb::NewSubscriptionGroupedTieredPackagePrice::OrHash, Orb::NewSubscriptionMatrixWithAllocationPrice::OrHash, Orb::NewSubscriptionTieredPackageWithMinimumPrice::OrHash, - Orb::NewSubscriptionGroupedTieredPrice::OrHash + Orb::NewSubscriptionGroupedTieredPrice::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::OrHash ) ), price_id: T.nilable(String), @@ -772,9 +770,6 @@ module Orb Orb::NewSubscriptionPackagePrice, Orb::NewSubscriptionMatrixPrice, Orb::NewSubscriptionTieredPrice, - Orb::NewSubscriptionTieredBPSPrice, - Orb::NewSubscriptionBPSPrice, - Orb::NewSubscriptionBulkBPSPrice, Orb::NewSubscriptionBulkPrice, Orb::NewSubscriptionThresholdTotalAmountPrice, Orb::NewSubscriptionTieredPackagePrice, @@ -795,7 +790,9 @@ module Orb Orb::NewSubscriptionGroupedTieredPackagePrice, Orb::NewSubscriptionMatrixWithAllocationPrice, Orb::NewSubscriptionTieredPackageWithMinimumPrice, - Orb::NewSubscriptionGroupedTieredPrice + Orb::NewSubscriptionGroupedTieredPrice, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum ) ), price_id: T.nilable(String), @@ -817,9 +814,6 @@ module Orb Orb::NewSubscriptionPackagePrice, Orb::NewSubscriptionMatrixPrice, Orb::NewSubscriptionTieredPrice, - Orb::NewSubscriptionTieredBPSPrice, - Orb::NewSubscriptionBPSPrice, - Orb::NewSubscriptionBulkBPSPrice, Orb::NewSubscriptionBulkPrice, Orb::NewSubscriptionThresholdTotalAmountPrice, Orb::NewSubscriptionTieredPackagePrice, @@ -840,10 +834,664 @@ module Orb Orb::NewSubscriptionGroupedTieredPackagePrice, Orb::NewSubscriptionMatrixWithAllocationPrice, Orb::NewSubscriptionTieredPackageWithMinimumPrice, - Orb::NewSubscriptionGroupedTieredPrice + Orb::NewSubscriptionGroupedTieredPrice, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum ) end + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds, + Orb::Internal::AnyHash + ) + end + + # The cadence to bill for this price on. + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol + ) + end + attr_accessor :cadence + + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :grouped_with_min_max_thresholds_config + + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id + + sig { returns(Symbol) } + attr_accessor :model_type + + # The name of the price. + sig { returns(String) } + attr_accessor :name + + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id + + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance + + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration + + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) + ) + end + attr_accessor :conversion_rate_config + + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + sig { returns(T.nilable(String)) } + attr_accessor :currency + + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration + + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + sig { returns(T.nilable(String)) } + attr_accessor :reference_id + + sig do + params( + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + grouped_with_min_max_thresholds_config: + T::Hash[Symbol, T.anything], + item_id: String, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String), + model_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + grouped_with_min_max_thresholds_config:, + # The id of the item the price will be associated with. + item_id:, + # The name of the price. + name:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + currency: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + reference_id: nil, + model_type: :grouped_with_min_max_thresholds + ) + end + + sig do + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + grouped_with_min_max_thresholds_config: + T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Minimum < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum, + Orb::Internal::AnyHash + ) + end + + # The cadence to bill for this price on. + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::Cadence::OrSymbol + ) + end + attr_accessor :cadence + + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id + + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::MinimumConfig + ) + end + attr_reader :minimum_config + + sig do + params( + minimum_config: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::MinimumConfig::OrHash + ).void + end + attr_writer :minimum_config + + sig { returns(Symbol) } + attr_accessor :model_type + + # The name of the price. + sig { returns(String) } + attr_accessor :name + + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id + + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance + + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration + + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) + ) + end + attr_accessor :conversion_rate_config + + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + sig { returns(T.nilable(String)) } + attr_accessor :currency + + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration + + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + sig { returns(T.nilable(String)) } + attr_accessor :reference_id + + sig do + params( + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::Cadence::OrSymbol, + item_id: String, + minimum_config: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::MinimumConfig::OrHash, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String), + model_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + # The id of the item the price will be associated with. + item_id:, + minimum_config:, + # The name of the price. + name:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + currency: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + reference_id: nil, + model_type: :minimum + ) + end + + sig do + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::Cadence::OrSymbol, + item_id: String, + minimum_config: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::MinimumConfig, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::Cadence + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end + + class MinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::MinimumConfig, + Orb::Internal::AnyHash + ) + end + + # The minimum amount to apply + sig { returns(String) } + attr_accessor :minimum_amount + + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :prorated + + sig do + params( + minimum_amount: String, + prorated: T.nilable(T::Boolean) + ).returns(T.attached_class) + end + def self.new( + # The minimum amount to apply + minimum_amount:, + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + prorated: nil + ) + end + + sig do + override.returns( + { minimum_amount: String, prorated: T.nilable(T::Boolean) } + ) + end + def to_hash + end + end + end + sig do override.returns( T::Array[ @@ -1115,9 +1763,6 @@ module Orb Orb::NewSubscriptionPackagePrice, Orb::NewSubscriptionMatrixPrice, Orb::NewSubscriptionTieredPrice, - Orb::NewSubscriptionTieredBPSPrice, - Orb::NewSubscriptionBPSPrice, - Orb::NewSubscriptionBulkBPSPrice, Orb::NewSubscriptionBulkPrice, Orb::NewSubscriptionThresholdTotalAmountPrice, Orb::NewSubscriptionTieredPackagePrice, @@ -1138,7 +1783,9 @@ module Orb Orb::NewSubscriptionGroupedTieredPackagePrice, Orb::NewSubscriptionMatrixWithAllocationPrice, Orb::NewSubscriptionTieredPackageWithMinimumPrice, - Orb::NewSubscriptionGroupedTieredPrice + Orb::NewSubscriptionGroupedTieredPrice, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum ) ) ) @@ -1165,9 +1812,6 @@ module Orb Orb::NewSubscriptionPackagePrice::OrHash, Orb::NewSubscriptionMatrixPrice::OrHash, Orb::NewSubscriptionTieredPrice::OrHash, - Orb::NewSubscriptionTieredBPSPrice::OrHash, - Orb::NewSubscriptionBPSPrice::OrHash, - Orb::NewSubscriptionBulkBPSPrice::OrHash, Orb::NewSubscriptionBulkPrice::OrHash, Orb::NewSubscriptionThresholdTotalAmountPrice::OrHash, Orb::NewSubscriptionTieredPackagePrice::OrHash, @@ -1188,7 +1832,9 @@ module Orb Orb::NewSubscriptionGroupedTieredPackagePrice::OrHash, Orb::NewSubscriptionMatrixWithAllocationPrice::OrHash, Orb::NewSubscriptionTieredPackageWithMinimumPrice::OrHash, - Orb::NewSubscriptionGroupedTieredPrice::OrHash + Orb::NewSubscriptionGroupedTieredPrice::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::OrHash ) ), price_id: T.nilable(String) @@ -1236,9 +1882,6 @@ module Orb Orb::NewSubscriptionPackagePrice, Orb::NewSubscriptionMatrixPrice, Orb::NewSubscriptionTieredPrice, - Orb::NewSubscriptionTieredBPSPrice, - Orb::NewSubscriptionBPSPrice, - Orb::NewSubscriptionBulkBPSPrice, Orb::NewSubscriptionBulkPrice, Orb::NewSubscriptionThresholdTotalAmountPrice, Orb::NewSubscriptionTieredPackagePrice, @@ -1259,7 +1902,9 @@ module Orb Orb::NewSubscriptionGroupedTieredPackagePrice, Orb::NewSubscriptionMatrixWithAllocationPrice, Orb::NewSubscriptionTieredPackageWithMinimumPrice, - Orb::NewSubscriptionGroupedTieredPrice + Orb::NewSubscriptionGroupedTieredPrice, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum ) ), price_id: T.nilable(String) @@ -1280,9 +1925,6 @@ module Orb Orb::NewSubscriptionPackagePrice, Orb::NewSubscriptionMatrixPrice, Orb::NewSubscriptionTieredPrice, - Orb::NewSubscriptionTieredBPSPrice, - Orb::NewSubscriptionBPSPrice, - Orb::NewSubscriptionBulkBPSPrice, Orb::NewSubscriptionBulkPrice, Orb::NewSubscriptionThresholdTotalAmountPrice, Orb::NewSubscriptionTieredPackagePrice, @@ -1303,10 +1945,664 @@ module Orb Orb::NewSubscriptionGroupedTieredPackagePrice, Orb::NewSubscriptionMatrixWithAllocationPrice, Orb::NewSubscriptionTieredPackageWithMinimumPrice, - Orb::NewSubscriptionGroupedTieredPrice + Orb::NewSubscriptionGroupedTieredPrice, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum ) end + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, + Orb::Internal::AnyHash + ) + end + + # The cadence to bill for this price on. + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol + ) + end + attr_accessor :cadence + + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :grouped_with_min_max_thresholds_config + + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id + + sig { returns(Symbol) } + attr_accessor :model_type + + # The name of the price. + sig { returns(String) } + attr_accessor :name + + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id + + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance + + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration + + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) + ) + end + attr_accessor :conversion_rate_config + + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + sig { returns(T.nilable(String)) } + attr_accessor :currency + + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration + + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + sig { returns(T.nilable(String)) } + attr_accessor :reference_id + + sig do + params( + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + grouped_with_min_max_thresholds_config: + T::Hash[Symbol, T.anything], + item_id: String, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String), + model_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + grouped_with_min_max_thresholds_config:, + # The id of the item the price will be associated with. + item_id:, + # The name of the price. + name:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + currency: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + reference_id: nil, + model_type: :grouped_with_min_max_thresholds + ) + end + + sig do + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + grouped_with_min_max_thresholds_config: + T::Hash[Symbol, T.anything], + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class Minimum < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum, + Orb::Internal::AnyHash + ) + end + + # The cadence to bill for this price on. + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::Cadence::OrSymbol + ) + end + attr_accessor :cadence + + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id + + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::MinimumConfig + ) + end + attr_reader :minimum_config + + sig do + params( + minimum_config: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::MinimumConfig::OrHash + ).void + end + attr_writer :minimum_config + + sig { returns(Symbol) } + attr_accessor :model_type + + # The name of the price. + sig { returns(String) } + attr_accessor :name + + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id + + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance + + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration + + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) + ) + end + attr_accessor :conversion_rate_config + + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + sig { returns(T.nilable(String)) } + attr_accessor :currency + + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration + + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + sig { returns(T.nilable(String)) } + attr_accessor :reference_id + + sig do + params( + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::Cadence::OrSymbol, + item_id: String, + minimum_config: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::MinimumConfig::OrHash, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String), + model_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + # The id of the item the price will be associated with. + item_id:, + minimum_config:, + # The name of the price. + name:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + currency: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + reference_id: nil, + model_type: :minimum + ) + end + + sig do + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::Cadence::OrSymbol, + item_id: String, + minimum_config: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::MinimumConfig, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::Cadence + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end + + class MinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::MinimumConfig, + Orb::Internal::AnyHash + ) + end + + # The minimum amount to apply + sig { returns(String) } + attr_accessor :minimum_amount + + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :prorated + + sig do + params( + minimum_amount: String, + prorated: T.nilable(T::Boolean) + ).returns(T.attached_class) + end + def self.new( + # The minimum amount to apply + minimum_amount:, + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + prorated: nil + ) + end + + sig do + override.returns( + { minimum_amount: String, prorated: T.nilable(T::Boolean) } + ) + end + def to_hash + end + end + end + sig do override.returns( T::Array[ diff --git a/rbi/orb/models/tiered_bps_config.rbi b/rbi/orb/models/tiered_bps_config.rbi deleted file mode 100644 index b1c72cdf..00000000 --- a/rbi/orb/models/tiered_bps_config.rbi +++ /dev/null @@ -1,29 +0,0 @@ -# typed: strong - -module Orb - module Models - class TieredBPSConfig < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias { T.any(Orb::TieredBPSConfig, Orb::Internal::AnyHash) } - - # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified - # tiers - sig { returns(T::Array[Orb::BPSTier]) } - attr_accessor :tiers - - sig do - params(tiers: T::Array[Orb::BPSTier::OrHash]).returns(T.attached_class) - end - def self.new( - # Tiers for a Graduated BPS pricing model, where usage is bucketed into specified - # tiers - tiers: - ) - end - - sig { override.returns({ tiers: T::Array[Orb::BPSTier] }) } - def to_hash - end - end - end -end diff --git a/rbi/orb/resources/alerts.rbi b/rbi/orb/resources/alerts.rbi index 13e4bae0..ba2b6abb 100644 --- a/rbi/orb/resources/alerts.rbi +++ b/rbi/orb/resources/alerts.rbi @@ -34,7 +34,7 @@ module Orb # The request must specify one of `customer_id`, `external_customer_id`, or # `subscription_id`. # - # If querying by subscripion_id, the endpoint will return the subscription level + # If querying by subscription_id, the endpoint will return the subscription level # alerts as well as the plan level alerts associated with the subscription. # # The list of alerts is ordered starting from the most recently created alert. diff --git a/rbi/orb/resources/customers.rbi b/rbi/orb/resources/customers.rbi index 58fbf3be..13981111 100644 --- a/rbi/orb/resources/customers.rbi +++ b/rbi/orb/resources/customers.rbi @@ -32,6 +32,7 @@ module Orb T.nilable(Orb::NewAccountingSyncConfiguration::OrHash), additional_emails: T.nilable(T::Array[String]), auto_collection: T.nilable(T::Boolean), + auto_issuance: T.nilable(T::Boolean), billing_address: T.nilable(Orb::AddressInput::OrHash), currency: T.nilable(String), email_delivery: T.nilable(T::Boolean), @@ -72,6 +73,11 @@ module Orb # charge a saved payment method, if available. This parameter defaults to `True` # when a payment provider is provided on customer creation. auto_collection: nil, + # Used to determine if invoices for this customer will be automatically issued. If + # true, invoices will be automatically issued. If false, invoices will require + # manual approval. If `null` is specified, the customer's auto issuance setting + # will be inherited from the account-level setting. + auto_issuance: nil, billing_address: nil, # An ISO 4217 currency string used for the customer's invoices and balance. If not # set at creation time, will be set at subscription creation time. @@ -262,6 +268,7 @@ module Orb T.nilable(Orb::NewAccountingSyncConfiguration::OrHash), additional_emails: T.nilable(T::Array[String]), auto_collection: T.nilable(T::Boolean), + auto_issuance: T.nilable(T::Boolean), billing_address: T.nilable(Orb::AddressInput::OrHash), currency: T.nilable(String), email: T.nilable(String), @@ -298,6 +305,11 @@ module Orb # charge a saved payment method, if available. This parameter defaults to `True` # when a payment provider is provided on customer creation. auto_collection: nil, + # Used to determine if invoices for this customer will be automatically issued. If + # true, invoices will be automatically issued. If false, invoices will require + # manual approval.If `null` is specified, the customer's auto issuance setting + # will be inherited from the account-level setting. + auto_issuance: nil, billing_address: nil, # An ISO 4217 currency string used for the customer's invoices and balance. If not # set at creation time, will be set at subscription creation time. @@ -607,6 +619,7 @@ module Orb T.nilable(Orb::NewAccountingSyncConfiguration::OrHash), additional_emails: T.nilable(T::Array[String]), auto_collection: T.nilable(T::Boolean), + auto_issuance: T.nilable(T::Boolean), billing_address: T.nilable(Orb::AddressInput::OrHash), currency: T.nilable(String), email: T.nilable(String), @@ -645,6 +658,11 @@ module Orb # charge a saved payment method, if available. This parameter defaults to `True` # when a payment provider is provided on customer creation. auto_collection: nil, + # Used to determine if invoices for this customer will be automatically issued. If + # true, invoices will be automatically issued. If false, invoices will require + # manual approval.If `null` is specified, the customer's auto issuance setting + # will be inherited from the account-level setting. + auto_issuance: nil, billing_address: nil, # An ISO 4217 currency string used for the customer's invoices and balance. If not # set at creation time, will be set at subscription creation time. diff --git a/rbi/orb/resources/customers/credits/ledger.rbi b/rbi/orb/resources/customers/credits/ledger.rbi index f93cb07d..0c0f377d 100644 --- a/rbi/orb/resources/customers/credits/ledger.rbi +++ b/rbi/orb/resources/customers/credits/ledger.rbi @@ -62,7 +62,7 @@ module Orb # Note that for this entry type, `starting_balance` will equal `ending_balance`, # and the `amount` represents the balance transferred. The credit block linked to # the ledger entry is the source credit block from which there was an expiration - # change + # change. # # ## Credits expiry # @@ -547,7 +547,7 @@ module Orb # Note that for this entry type, `starting_balance` will equal `ending_balance`, # and the `amount` represents the balance transferred. The credit block linked to # the ledger entry is the source credit block from which there was an expiration - # change + # change. # # ## Credits expiry # diff --git a/rbi/orb/resources/dimensional_price_groups.rbi b/rbi/orb/resources/dimensional_price_groups.rbi index fd728620..d9caa5f7 100644 --- a/rbi/orb/resources/dimensional_price_groups.rbi +++ b/rbi/orb/resources/dimensional_price_groups.rbi @@ -11,7 +11,7 @@ module Orb attr_reader :external_dimensional_price_group_id # A dimensional price group is used to partition the result of a billable metric - # by a set of dimensions. Prices in a price group must specify the parition used + # by a set of dimensions. Prices in a price group must specify the partition used # to derive their usage. # # For example, suppose we have a billable metric that measures the number of diff --git a/rbi/orb/resources/events/backfills.rbi b/rbi/orb/resources/events/backfills.rbi index e872260d..27834c2b 100644 --- a/rbi/orb/resources/events/backfills.rbi +++ b/rbi/orb/resources/events/backfills.rbi @@ -36,8 +36,8 @@ module Orb # # When `replace_existing_events` is `true`, this indicates that existing events in # the timeframe should no longer be counted towards invoiced usage. In this - # scenario, the parameter `filter` can be optionally added which enables filtering - # using + # scenario, the parameter `deprecation_filter` can be optionally added which + # enables filtering using # [computed properties](/extensibility/advanced-metrics#computed-properties). The # expressiveness of computed properties allows you to deprecate existing events # based on both a period of time and specific property values. diff --git a/rbi/orb/resources/invoices.rbi b/rbi/orb/resources/invoices.rbi index 371d588d..267c2c79 100644 --- a/rbi/orb/resources/invoices.rbi +++ b/rbi/orb/resources/invoices.rbi @@ -19,6 +19,7 @@ module Orb Orb::AmountDiscount::OrHash ) ), + due_date: T.nilable(Orb::InvoiceCreateParams::DueDate::Variants), external_customer_id: T.nilable(String), memo: T.nilable(String), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), @@ -40,19 +41,24 @@ module Orb customer_id: nil, # An optional discount to attach to the invoice. discount: nil, + # An optional custom due date for the invoice. If not set, the due date will be + # calculated based on the `net_terms` value. + due_date: nil, # The `external_customer_id` of the `Customer` to create this invoice for. One of # `customer_id` and `external_customer_id` are required. external_customer_id: nil, - # An optional memo to attach to the invoice. + # An optional memo to attach to the invoice. If no memo is provided, we will + # attach the default memo memo: nil, # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. metadata: nil, - # Determines the difference between the invoice issue date for subscription - # invoices as the date that they are due. A value of '0' here represents that the - # invoice is due on issue, whereas a value of 30 represents that the customer has - # 30 days to pay the invoice. + # The net terms determines the due date of the invoice. Due date is calculated + # based on the invoice or issuance date, depending on the account's configured due + # date calculation method. A value of '0' here represents that the invoice is due + # on issue, whereas a value of '30' represents that the customer has 30 days to + # pay the invoice. Do not set this field if you want to set a custom due date. net_terms: nil, # When true, this invoice will be submitted for issuance upon creation. When # false, the resulting invoice will require manual review to issue. Defaulted to @@ -71,16 +77,27 @@ module Orb sig do params( invoice_id: String, + due_date: T.nilable(Orb::InvoiceUpdateParams::DueDate::Variants), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + net_terms: T.nilable(Integer), request_options: Orb::RequestOptions::OrHash ).returns(Orb::Invoice) end def update( invoice_id, + # An optional custom due date for the invoice. If not set, the due date will be + # calculated based on the `net_terms` value. + due_date: nil, # User-specified key/value pairs for the resource. Individual keys can be removed # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. metadata: nil, + # The net terms determines the due date of the invoice. Due date is calculated + # based on the invoice or issuance date, depending on the account's configured due + # date calculation method. A value of '0' here represents that the invoice is due + # on issue, whereas a value of '30' represents that the customer has 30 days to + # pay the invoice. Do not set this field if you want to set a custom due date. + net_terms: nil, request_options: {} ) end @@ -201,8 +218,8 @@ module Orb ) end - # This endpoint allows an invoice's status to be set the `paid` status. This can - # only be done to invoices that are in the `issued` status. + # This endpoint allows an invoice's status to be set to the `paid` status. This + # can only be done to invoices that are in the `issued` or `synced` status. sig do params( invoice_id: String, @@ -235,8 +252,8 @@ module Orb def pay(invoice_id, request_options: {}) end - # This endpoint allows an invoice's status to be set the `void` status. This can - # only be done to invoices that are in the `issued` status. + # This endpoint allows an invoice's status to be set to the `void` status. This + # can only be done to invoices that are in the `issued` status. # # If the associated invoice has used the customer balance to change the amount # due, the customer balance operation will be reverted. For example, if the diff --git a/rbi/orb/resources/prices.rbi b/rbi/orb/resources/prices.rbi index 17ae8d6f..9a0dded9 100644 --- a/rbi/orb/resources/prices.rbi +++ b/rbi/orb/resources/prices.rbi @@ -29,9 +29,6 @@ module Orb matrix_with_allocation_config: Orb::MatrixWithAllocationConfig::OrHash, tiered_config: Orb::TieredConfig::OrHash, - tiered_bps_config: Orb::TieredBPSConfig::OrHash, - bps_config: Orb::BPSConfig::OrHash, - bulk_bps_config: Orb::BulkBPSConfig::OrHash, bulk_config: Orb::BulkConfig::OrHash, threshold_total_amount_config: T::Hash[Symbol, T.anything], tiered_package_config: T::Hash[Symbol, T.anything], @@ -53,6 +50,8 @@ module Orb scalable_matrix_with_tiered_pricing_config: T::Hash[Symbol, T.anything], cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], + grouped_with_min_max_thresholds_config: T::Hash[Symbol, T.anything], + minimum_config: Orb::PriceCreateParams::MinimumConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -91,9 +90,6 @@ module Orb matrix_config:, matrix_with_allocation_config:, tiered_config:, - tiered_bps_config:, - bps_config:, - bulk_bps_config:, bulk_config:, threshold_total_amount_config:, tiered_package_config:, @@ -114,6 +110,8 @@ module Orb scalable_matrix_with_unit_pricing_config:, scalable_matrix_with_tiered_pricing_config:, cumulative_grouped_bulk_config:, + grouped_with_min_max_thresholds_config:, + minimum_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. billable_metric_id: nil, diff --git a/rbi/orb/resources/subscriptions.rbi b/rbi/orb/resources/subscriptions.rbi index 2991abe1..be24328f 100644 --- a/rbi/orb/resources/subscriptions.rbi +++ b/rbi/orb/resources/subscriptions.rbi @@ -1039,7 +1039,7 @@ module Orb # This endpoint can be used to change an existing subscription's plan. It returns # the serialized updated subscription object. # - # The body parameter `change_option` determines when the plan change occurrs. Orb + # The body parameter `change_option` determines when the plan change occurs. Orb # supports three options: # # - `end_of_subscription_term`: changes the plan at the end of the existing plan's diff --git a/sig/orb/models.rbs b/sig/orb/models.rbs index 627e24a0..43e03540 100644 --- a/sig/orb/models.rbs +++ b/sig/orb/models.rbs @@ -51,14 +51,6 @@ module Orb module BillingCycleRelativeDate = Orb::Models::BillingCycleRelativeDate - class BPSConfig = Orb::Models::BPSConfig - - class BPSTier = Orb::Models::BPSTier - - class BulkBPSConfig = Orb::Models::BulkBPSConfig - - class BulkBPSTier = Orb::Models::BulkBPSTier - class BulkConfig = Orb::Models::BulkConfig class BulkTier = Orb::Models::BulkTier @@ -249,10 +241,6 @@ module Orb class NewDimensionalPriceConfiguration = Orb::Models::NewDimensionalPriceConfiguration - class NewFloatingBPSPrice = Orb::Models::NewFloatingBPSPrice - - class NewFloatingBulkBPSPrice = Orb::Models::NewFloatingBulkBPSPrice - class NewFloatingBulkPrice = Orb::Models::NewFloatingBulkPrice class NewFloatingBulkWithProrationPrice = Orb::Models::NewFloatingBulkWithProrationPrice @@ -287,8 +275,6 @@ module Orb class NewFloatingThresholdTotalAmountPrice = Orb::Models::NewFloatingThresholdTotalAmountPrice - class NewFloatingTieredBPSPrice = Orb::Models::NewFloatingTieredBPSPrice - class NewFloatingTieredPackagePrice = Orb::Models::NewFloatingTieredPackagePrice class NewFloatingTieredPackageWithMinimumPrice = Orb::Models::NewFloatingTieredPackageWithMinimumPrice @@ -311,10 +297,6 @@ module Orb class NewPercentageDiscount = Orb::Models::NewPercentageDiscount - class NewPlanBPSPrice = Orb::Models::NewPlanBPSPrice - - class NewPlanBulkBPSPrice = Orb::Models::NewPlanBulkBPSPrice - class NewPlanBulkPrice = Orb::Models::NewPlanBulkPrice class NewPlanBulkWithProrationPrice = Orb::Models::NewPlanBulkWithProrationPrice @@ -349,8 +331,6 @@ module Orb class NewPlanThresholdTotalAmountPrice = Orb::Models::NewPlanThresholdTotalAmountPrice - class NewPlanTieredBPSPrice = Orb::Models::NewPlanTieredBPSPrice - class NewPlanTieredPackagePrice = Orb::Models::NewPlanTieredPackagePrice class NewPlanTieredPackageWithMinimumPrice = Orb::Models::NewPlanTieredPackageWithMinimumPrice @@ -371,10 +351,6 @@ module Orb class NewSphereConfiguration = Orb::Models::NewSphereConfiguration - class NewSubscriptionBPSPrice = Orb::Models::NewSubscriptionBPSPrice - - class NewSubscriptionBulkBPSPrice = Orb::Models::NewSubscriptionBulkBPSPrice - class NewSubscriptionBulkPrice = Orb::Models::NewSubscriptionBulkPrice class NewSubscriptionBulkWithProrationPrice = Orb::Models::NewSubscriptionBulkWithProrationPrice @@ -409,8 +385,6 @@ module Orb class NewSubscriptionThresholdTotalAmountPrice = Orb::Models::NewSubscriptionThresholdTotalAmountPrice - class NewSubscriptionTieredBPSPrice = Orb::Models::NewSubscriptionTieredBPSPrice - class NewSubscriptionTieredPackagePrice = Orb::Models::NewSubscriptionTieredPackagePrice class NewSubscriptionTieredPackageWithMinimumPrice = Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice @@ -553,8 +527,6 @@ module Orb class TierConfig = Orb::Models::TierConfig - class TieredBPSConfig = Orb::Models::TieredBPSConfig - class TieredConfig = Orb::Models::TieredConfig class TieredConversionRateConfig = Orb::Models::TieredConversionRateConfig diff --git a/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs b/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs index b3043ac4..5fee9962 100644 --- a/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs +++ b/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs @@ -124,9 +124,6 @@ module Orb | Orb::NewPlanPackagePrice | Orb::NewPlanMatrixPrice | Orb::NewPlanTieredPrice - | Orb::NewPlanTieredBPSPrice - | Orb::NewPlanBPSPrice - | Orb::NewPlanBulkBPSPrice | Orb::NewPlanBulkPrice | Orb::NewPlanThresholdTotalAmountPrice | Orb::NewPlanTieredPackagePrice @@ -138,6 +135,7 @@ module Orb | Orb::NewPlanGroupedAllocationPrice | Orb::NewPlanGroupedWithProratedMinimumPrice | Orb::NewPlanGroupedWithMeteredMinimumPrice + | Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds | Orb::NewPlanMatrixWithDisplayNamePrice | Orb::NewPlanBulkWithProrationPrice | Orb::NewPlanGroupedTieredPackagePrice @@ -148,10 +146,272 @@ module Orb | Orb::NewPlanTieredPackageWithMinimumPrice | Orb::NewPlanMatrixWithAllocationPrice | Orb::NewPlanGroupedTieredPrice + | Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum module Price extend Orb::Internal::Type::Union + type grouped_with_min_max_thresholds = + { + cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + model_type: :grouped_with_min_max_thresholds, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent0?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence + + attr_accessor grouped_with_min_max_thresholds_config: ::Hash[Symbol, top] + + attr_accessor item_id: String + + attr_accessor model_type: :grouped_with_min_max_thresholds + + attr_accessor name: String + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent0? + + attr_accessor currency: String? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + attr_accessor reference_id: String? + + def initialize: ( + cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent0?, + ?currency: String?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_with_min_max_thresholds + ) -> void + + def to_hash: -> { + cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + model_type: :grouped_with_min_max_thresholds, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent0?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + type cadence = + :annual + | :semi_annual + | :monthly + | :quarterly + | :one_time + | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence] + end + end + + type minimum = + { + cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::cadence, + item_id: String, + minimum_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig, + model_type: :minimum, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::unnamed_type_withobject_parent1?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + class Minimum < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::cadence + + attr_accessor item_id: String + + attr_accessor minimum_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig + + attr_accessor model_type: :minimum + + attr_accessor name: String + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::unnamed_type_withobject_parent1? + + attr_accessor currency: String? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + attr_accessor reference_id: String? + + def initialize: ( + cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::cadence, + item_id: String, + minimum_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::unnamed_type_withobject_parent1?, + ?currency: String?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :minimum + ) -> void + + def to_hash: -> { + cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::cadence, + item_id: String, + minimum_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig, + model_type: :minimum, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::unnamed_type_withobject_parent1?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + type cadence = + :annual + | :semi_annual + | :monthly + | :quarterly + | :one_time + | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::cadence] + end + + type minimum_config = { minimum_amount: String, prorated: bool? } + + class MinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor minimum_amount: String + + attr_accessor prorated: bool? + + def initialize: ( + minimum_amount: String, + ?prorated: bool? + ) -> void + + def to_hash: -> { minimum_amount: String, prorated: bool? } + end + end + def self?.variants: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::price] end end @@ -263,9 +523,6 @@ module Orb | Orb::NewPlanPackagePrice | Orb::NewPlanMatrixPrice | Orb::NewPlanTieredPrice - | Orb::NewPlanTieredBPSPrice - | Orb::NewPlanBPSPrice - | Orb::NewPlanBulkBPSPrice | Orb::NewPlanBulkPrice | Orb::NewPlanThresholdTotalAmountPrice | Orb::NewPlanTieredPackagePrice @@ -277,6 +534,7 @@ module Orb | Orb::NewPlanGroupedAllocationPrice | Orb::NewPlanGroupedWithProratedMinimumPrice | Orb::NewPlanGroupedWithMeteredMinimumPrice + | Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds | Orb::NewPlanMatrixWithDisplayNamePrice | Orb::NewPlanBulkWithProrationPrice | Orb::NewPlanGroupedTieredPackagePrice @@ -287,10 +545,272 @@ module Orb | Orb::NewPlanTieredPackageWithMinimumPrice | Orb::NewPlanMatrixWithAllocationPrice | Orb::NewPlanGroupedTieredPrice + | Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum module Price extend Orb::Internal::Type::Union + type grouped_with_min_max_thresholds = + { + cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + model_type: :grouped_with_min_max_thresholds, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent2?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence + + attr_accessor grouped_with_min_max_thresholds_config: ::Hash[Symbol, top] + + attr_accessor item_id: String + + attr_accessor model_type: :grouped_with_min_max_thresholds + + attr_accessor name: String + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent2? + + attr_accessor currency: String? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + attr_accessor reference_id: String? + + def initialize: ( + cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent2?, + ?currency: String?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_with_min_max_thresholds + ) -> void + + def to_hash: -> { + cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + model_type: :grouped_with_min_max_thresholds, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent2?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + type cadence = + :annual + | :semi_annual + | :monthly + | :quarterly + | :one_time + | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence] + end + end + + type minimum = + { + cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::cadence, + item_id: String, + minimum_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig, + model_type: :minimum, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::unnamed_type_withobject_parent3?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + class Minimum < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::cadence + + attr_accessor item_id: String + + attr_accessor minimum_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig + + attr_accessor model_type: :minimum + + attr_accessor name: String + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::unnamed_type_withobject_parent3? + + attr_accessor currency: String? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + attr_accessor reference_id: String? + + def initialize: ( + cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::cadence, + item_id: String, + minimum_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::unnamed_type_withobject_parent3?, + ?currency: String?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :minimum + ) -> void + + def to_hash: -> { + cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::cadence, + item_id: String, + minimum_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig, + model_type: :minimum, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::unnamed_type_withobject_parent3?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + type cadence = + :annual + | :semi_annual + | :monthly + | :quarterly + | :one_time + | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::cadence] + end + + type minimum_config = { minimum_amount: String, prorated: bool? } + + class MinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor minimum_amount: String + + attr_accessor prorated: bool? + + def initialize: ( + minimum_amount: String, + ?prorated: bool? + ) -> void + + def to_hash: -> { minimum_amount: String, prorated: bool? } + end + end + def self?.variants: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::price] end end diff --git a/sig/orb/models/beta_create_plan_version_params.rbs b/sig/orb/models/beta_create_plan_version_params.rbs index d6528a38..9df734d1 100644 --- a/sig/orb/models/beta_create_plan_version_params.rbs +++ b/sig/orb/models/beta_create_plan_version_params.rbs @@ -123,9 +123,6 @@ module Orb | Orb::NewPlanPackagePrice | Orb::NewPlanMatrixPrice | Orb::NewPlanTieredPrice - | Orb::NewPlanTieredBPSPrice - | Orb::NewPlanBPSPrice - | Orb::NewPlanBulkBPSPrice | Orb::NewPlanBulkPrice | Orb::NewPlanThresholdTotalAmountPrice | Orb::NewPlanTieredPackagePrice @@ -137,6 +134,7 @@ module Orb | Orb::NewPlanGroupedAllocationPrice | Orb::NewPlanGroupedWithProratedMinimumPrice | Orb::NewPlanGroupedWithMeteredMinimumPrice + | Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds | Orb::NewPlanMatrixWithDisplayNamePrice | Orb::NewPlanBulkWithProrationPrice | Orb::NewPlanGroupedTieredPackagePrice @@ -147,10 +145,269 @@ module Orb | Orb::NewPlanTieredPackageWithMinimumPrice | Orb::NewPlanMatrixWithAllocationPrice | Orb::NewPlanGroupedTieredPrice + | Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum module Price extend Orb::Internal::Type::Union + type grouped_with_min_max_thresholds = + { + cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + model_type: :grouped_with_min_max_thresholds, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent4?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence + + attr_accessor grouped_with_min_max_thresholds_config: ::Hash[Symbol, top] + + attr_accessor item_id: String + + attr_accessor model_type: :grouped_with_min_max_thresholds + + attr_accessor name: String + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent4? + + attr_accessor currency: String? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + attr_accessor reference_id: String? + + def initialize: ( + cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent4?, + ?currency: String?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_with_min_max_thresholds + ) -> void + + def to_hash: -> { + cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + model_type: :grouped_with_min_max_thresholds, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent4?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + type cadence = + :annual + | :semi_annual + | :monthly + | :quarterly + | :one_time + | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence] + end + end + + type minimum = + { + cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::cadence, + item_id: String, + minimum_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig, + model_type: :minimum, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::unnamed_type_withobject_parent5?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + class Minimum < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::cadence + + attr_accessor item_id: String + + attr_accessor minimum_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig + + attr_accessor model_type: :minimum + + attr_accessor name: String + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::unnamed_type_withobject_parent5? + + attr_accessor currency: String? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + attr_accessor reference_id: String? + + def initialize: ( + cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::cadence, + item_id: String, + minimum_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::unnamed_type_withobject_parent5?, + ?currency: String?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :minimum + ) -> void + + def to_hash: -> { + cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::cadence, + item_id: String, + minimum_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig, + model_type: :minimum, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::unnamed_type_withobject_parent5?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + type cadence = + :annual + | :semi_annual + | :monthly + | :quarterly + | :one_time + | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::cadence] + end + + type minimum_config = { minimum_amount: String, prorated: bool? } + + class MinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor minimum_amount: String + + attr_accessor prorated: bool? + + def initialize: (minimum_amount: String, ?prorated: bool?) -> void + + def to_hash: -> { minimum_amount: String, prorated: bool? } + end + end + def self?.variants: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddPrice::price] end end @@ -259,9 +516,6 @@ module Orb | Orb::NewPlanPackagePrice | Orb::NewPlanMatrixPrice | Orb::NewPlanTieredPrice - | Orb::NewPlanTieredBPSPrice - | Orb::NewPlanBPSPrice - | Orb::NewPlanBulkBPSPrice | Orb::NewPlanBulkPrice | Orb::NewPlanThresholdTotalAmountPrice | Orb::NewPlanTieredPackagePrice @@ -273,6 +527,7 @@ module Orb | Orb::NewPlanGroupedAllocationPrice | Orb::NewPlanGroupedWithProratedMinimumPrice | Orb::NewPlanGroupedWithMeteredMinimumPrice + | Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds | Orb::NewPlanMatrixWithDisplayNamePrice | Orb::NewPlanBulkWithProrationPrice | Orb::NewPlanGroupedTieredPackagePrice @@ -283,10 +538,269 @@ module Orb | Orb::NewPlanTieredPackageWithMinimumPrice | Orb::NewPlanMatrixWithAllocationPrice | Orb::NewPlanGroupedTieredPrice + | Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum module Price extend Orb::Internal::Type::Union + type grouped_with_min_max_thresholds = + { + cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + model_type: :grouped_with_min_max_thresholds, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent6?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence + + attr_accessor grouped_with_min_max_thresholds_config: ::Hash[Symbol, top] + + attr_accessor item_id: String + + attr_accessor model_type: :grouped_with_min_max_thresholds + + attr_accessor name: String + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent6? + + attr_accessor currency: String? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + attr_accessor reference_id: String? + + def initialize: ( + cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent6?, + ?currency: String?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_with_min_max_thresholds + ) -> void + + def to_hash: -> { + cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + model_type: :grouped_with_min_max_thresholds, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent6?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + type cadence = + :annual + | :semi_annual + | :monthly + | :quarterly + | :one_time + | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence] + end + end + + type minimum = + { + cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::cadence, + item_id: String, + minimum_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig, + model_type: :minimum, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::unnamed_type_withobject_parent7?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + class Minimum < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::cadence + + attr_accessor item_id: String + + attr_accessor minimum_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig + + attr_accessor model_type: :minimum + + attr_accessor name: String + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::unnamed_type_withobject_parent7? + + attr_accessor currency: String? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + attr_accessor reference_id: String? + + def initialize: ( + cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::cadence, + item_id: String, + minimum_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::unnamed_type_withobject_parent7?, + ?currency: String?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :minimum + ) -> void + + def to_hash: -> { + cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::cadence, + item_id: String, + minimum_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig, + model_type: :minimum, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::unnamed_type_withobject_parent7?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + type cadence = + :annual + | :semi_annual + | :monthly + | :quarterly + | :one_time + | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::cadence] + end + + type minimum_config = { minimum_amount: String, prorated: bool? } + + class MinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor minimum_amount: String + + attr_accessor prorated: bool? + + def initialize: (minimum_amount: String, ?prorated: bool?) -> void + + def to_hash: -> { minimum_amount: String, prorated: bool? } + end + end + def self?.variants: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::price] end end diff --git a/sig/orb/models/bps_config.rbs b/sig/orb/models/bps_config.rbs deleted file mode 100644 index b0af8411..00000000 --- a/sig/orb/models/bps_config.rbs +++ /dev/null @@ -1,15 +0,0 @@ -module Orb - module Models - type bps_config = { bps: Float, per_unit_maximum: String? } - - class BPSConfig < Orb::Internal::Type::BaseModel - attr_accessor bps: Float - - attr_accessor per_unit_maximum: String? - - def initialize: (bps: Float, ?per_unit_maximum: String?) -> void - - def to_hash: -> { bps: Float, per_unit_maximum: String? } - end - end -end diff --git a/sig/orb/models/bps_tier.rbs b/sig/orb/models/bps_tier.rbs deleted file mode 100644 index d9f4187e..00000000 --- a/sig/orb/models/bps_tier.rbs +++ /dev/null @@ -1,35 +0,0 @@ -module Orb - module Models - type bps_tier = - { - bps: Float, - minimum_amount: String, - maximum_amount: String?, - per_unit_maximum: String? - } - - class BPSTier < Orb::Internal::Type::BaseModel - attr_accessor bps: Float - - attr_accessor minimum_amount: String - - attr_accessor maximum_amount: String? - - attr_accessor per_unit_maximum: String? - - def initialize: ( - bps: Float, - minimum_amount: String, - ?maximum_amount: String?, - ?per_unit_maximum: String? - ) -> void - - def to_hash: -> { - bps: Float, - minimum_amount: String, - maximum_amount: String?, - per_unit_maximum: String? - } - end - end -end diff --git a/sig/orb/models/bulk_bps_config.rbs b/sig/orb/models/bulk_bps_config.rbs deleted file mode 100644 index f30bf072..00000000 --- a/sig/orb/models/bulk_bps_config.rbs +++ /dev/null @@ -1,13 +0,0 @@ -module Orb - module Models - type bulk_bps_config = { tiers: ::Array[Orb::BulkBPSTier] } - - class BulkBPSConfig < Orb::Internal::Type::BaseModel - attr_accessor tiers: ::Array[Orb::BulkBPSTier] - - def initialize: (tiers: ::Array[Orb::BulkBPSTier]) -> void - - def to_hash: -> { tiers: ::Array[Orb::BulkBPSTier] } - end - end -end diff --git a/sig/orb/models/bulk_bps_tier.rbs b/sig/orb/models/bulk_bps_tier.rbs deleted file mode 100644 index fbfc5dd6..00000000 --- a/sig/orb/models/bulk_bps_tier.rbs +++ /dev/null @@ -1,26 +0,0 @@ -module Orb - module Models - type bulk_bps_tier = - { bps: Float, maximum_amount: String?, per_unit_maximum: String? } - - class BulkBPSTier < Orb::Internal::Type::BaseModel - attr_accessor bps: Float - - attr_accessor maximum_amount: String? - - attr_accessor per_unit_maximum: String? - - def initialize: ( - bps: Float, - ?maximum_amount: String?, - ?per_unit_maximum: String? - ) -> void - - def to_hash: -> { - bps: Float, - maximum_amount: String?, - per_unit_maximum: String? - } - end - end -end diff --git a/sig/orb/models/customer.rbs b/sig/orb/models/customer.rbs index e99e414e..63effa3e 100644 --- a/sig/orb/models/customer.rbs +++ b/sig/orb/models/customer.rbs @@ -5,6 +5,7 @@ module Orb id: String, additional_emails: ::Array[String], auto_collection: bool, + auto_issuance: bool?, balance: String, billing_address: Orb::Address?, created_at: Time, @@ -33,6 +34,8 @@ module Orb attr_accessor auto_collection: bool + attr_accessor auto_issuance: bool? + attr_accessor balance: String attr_accessor billing_address: Orb::Address? @@ -75,6 +78,7 @@ module Orb id: String, additional_emails: ::Array[String], auto_collection: bool, + auto_issuance: bool?, balance: String, billing_address: Orb::Address?, created_at: Time, @@ -100,6 +104,7 @@ module Orb id: String, additional_emails: ::Array[String], auto_collection: bool, + auto_issuance: bool?, balance: String, billing_address: Orb::Address?, created_at: Time, diff --git a/sig/orb/models/customer_create_params.rbs b/sig/orb/models/customer_create_params.rbs index 165a6e5a..6f463cb3 100644 --- a/sig/orb/models/customer_create_params.rbs +++ b/sig/orb/models/customer_create_params.rbs @@ -7,6 +7,7 @@ module Orb accounting_sync_configuration: Orb::NewAccountingSyncConfiguration?, additional_emails: ::Array[String]?, auto_collection: bool?, + auto_issuance: bool?, billing_address: Orb::AddressInput?, currency: String?, email_delivery: bool?, @@ -37,6 +38,8 @@ module Orb attr_accessor auto_collection: bool? + attr_accessor auto_issuance: bool? + attr_accessor billing_address: Orb::AddressInput? attr_accessor currency: String? @@ -69,6 +72,7 @@ module Orb ?accounting_sync_configuration: Orb::NewAccountingSyncConfiguration?, ?additional_emails: ::Array[String]?, ?auto_collection: bool?, + ?auto_issuance: bool?, ?billing_address: Orb::AddressInput?, ?currency: String?, ?email_delivery: bool?, @@ -91,6 +95,7 @@ module Orb accounting_sync_configuration: Orb::NewAccountingSyncConfiguration?, additional_emails: ::Array[String]?, auto_collection: bool?, + auto_issuance: bool?, billing_address: Orb::AddressInput?, currency: String?, email_delivery: bool?, diff --git a/sig/orb/models/customer_update_by_external_id_params.rbs b/sig/orb/models/customer_update_by_external_id_params.rbs index 14130b29..312761df 100644 --- a/sig/orb/models/customer_update_by_external_id_params.rbs +++ b/sig/orb/models/customer_update_by_external_id_params.rbs @@ -5,6 +5,7 @@ module Orb accounting_sync_configuration: Orb::NewAccountingSyncConfiguration?, additional_emails: ::Array[String]?, auto_collection: bool?, + auto_issuance: bool?, billing_address: Orb::AddressInput?, currency: String?, email: String?, @@ -32,6 +33,8 @@ module Orb attr_accessor auto_collection: bool? + attr_accessor auto_issuance: bool? + attr_accessor billing_address: Orb::AddressInput? attr_accessor currency: String? @@ -64,6 +67,7 @@ module Orb ?accounting_sync_configuration: Orb::NewAccountingSyncConfiguration?, ?additional_emails: ::Array[String]?, ?auto_collection: bool?, + ?auto_issuance: bool?, ?billing_address: Orb::AddressInput?, ?currency: String?, ?email: String?, @@ -85,6 +89,7 @@ module Orb accounting_sync_configuration: Orb::NewAccountingSyncConfiguration?, additional_emails: ::Array[String]?, auto_collection: bool?, + auto_issuance: bool?, billing_address: Orb::AddressInput?, currency: String?, email: String?, diff --git a/sig/orb/models/customer_update_params.rbs b/sig/orb/models/customer_update_params.rbs index be8785bd..3a7f394b 100644 --- a/sig/orb/models/customer_update_params.rbs +++ b/sig/orb/models/customer_update_params.rbs @@ -5,6 +5,7 @@ module Orb accounting_sync_configuration: Orb::NewAccountingSyncConfiguration?, additional_emails: ::Array[String]?, auto_collection: bool?, + auto_issuance: bool?, billing_address: Orb::AddressInput?, currency: String?, email: String?, @@ -32,6 +33,8 @@ module Orb attr_accessor auto_collection: bool? + attr_accessor auto_issuance: bool? + attr_accessor billing_address: Orb::AddressInput? attr_accessor currency: String? @@ -64,6 +67,7 @@ module Orb ?accounting_sync_configuration: Orb::NewAccountingSyncConfiguration?, ?additional_emails: ::Array[String]?, ?auto_collection: bool?, + ?auto_issuance: bool?, ?billing_address: Orb::AddressInput?, ?currency: String?, ?email: String?, @@ -85,6 +89,7 @@ module Orb accounting_sync_configuration: Orb::NewAccountingSyncConfiguration?, additional_emails: ::Array[String]?, auto_collection: bool?, + auto_issuance: bool?, billing_address: Orb::AddressInput?, currency: String?, email: String?, diff --git a/sig/orb/models/customers/balance_transaction_create_response.rbs b/sig/orb/models/customers/balance_transaction_create_response.rbs index 0ba0b624..f3c5fde5 100644 --- a/sig/orb/models/customers/balance_transaction_create_response.rbs +++ b/sig/orb/models/customers/balance_transaction_create_response.rbs @@ -72,6 +72,7 @@ module Orb | :credit_note_voided | :overpayment_refund | :external_payment + | :small_invoice_carryover module Action extend Orb::Internal::Type::Enum @@ -85,6 +86,7 @@ module Orb CREDIT_NOTE_VOIDED: :credit_note_voided OVERPAYMENT_REFUND: :overpayment_refund EXTERNAL_PAYMENT: :external_payment + SMALL_INVOICE_CARRYOVER: :small_invoice_carryover def self?.values: -> ::Array[Orb::Models::Customers::BalanceTransactionCreateResponse::action] end diff --git a/sig/orb/models/customers/balance_transaction_list_response.rbs b/sig/orb/models/customers/balance_transaction_list_response.rbs index 6886a282..a6ab4e42 100644 --- a/sig/orb/models/customers/balance_transaction_list_response.rbs +++ b/sig/orb/models/customers/balance_transaction_list_response.rbs @@ -72,6 +72,7 @@ module Orb | :credit_note_voided | :overpayment_refund | :external_payment + | :small_invoice_carryover module Action extend Orb::Internal::Type::Enum @@ -85,6 +86,7 @@ module Orb CREDIT_NOTE_VOIDED: :credit_note_voided OVERPAYMENT_REFUND: :overpayment_refund EXTERNAL_PAYMENT: :external_payment + SMALL_INVOICE_CARRYOVER: :small_invoice_carryover def self?.values: -> ::Array[Orb::Models::Customers::BalanceTransactionListResponse::action] end diff --git a/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbs b/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbs index 173d60c5..c1f06de1 100644 --- a/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbs +++ b/sig/orb/models/customers/credits/ledger_create_entry_by_external_id_params.rbs @@ -93,6 +93,7 @@ module Orb { auto_collection: bool, net_terms: Integer?, + custom_due_date: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::custom_due_date?, invoice_date: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::invoice_date?, memo: String?, require_successful_payment: bool @@ -103,6 +104,8 @@ module Orb attr_accessor net_terms: Integer? + attr_accessor custom_due_date: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::custom_due_date? + attr_accessor invoice_date: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::invoice_date? attr_accessor memo: String? @@ -114,6 +117,7 @@ module Orb def initialize: ( auto_collection: bool, net_terms: Integer?, + ?custom_due_date: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::custom_due_date?, ?invoice_date: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::invoice_date?, ?memo: String?, ?require_successful_payment: bool @@ -122,11 +126,20 @@ module Orb def to_hash: -> { auto_collection: bool, net_terms: Integer?, + custom_due_date: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::custom_due_date?, invoice_date: Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::invoice_date?, memo: String?, require_successful_payment: bool } + type custom_due_date = Date | Time + + module CustomDueDate + extend Orb::Internal::Type::Union + + def self?.variants: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryByExternalIDParams::InvoiceSettings::custom_due_date] + end + type invoice_date = Date | Time module InvoiceDate diff --git a/sig/orb/models/customers/credits/ledger_create_entry_params.rbs b/sig/orb/models/customers/credits/ledger_create_entry_params.rbs index db6330e5..fe99d560 100644 --- a/sig/orb/models/customers/credits/ledger_create_entry_params.rbs +++ b/sig/orb/models/customers/credits/ledger_create_entry_params.rbs @@ -93,6 +93,7 @@ module Orb { auto_collection: bool, net_terms: Integer?, + custom_due_date: Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::custom_due_date?, invoice_date: Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::invoice_date?, memo: String?, require_successful_payment: bool @@ -103,6 +104,8 @@ module Orb attr_accessor net_terms: Integer? + attr_accessor custom_due_date: Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::custom_due_date? + attr_accessor invoice_date: Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::invoice_date? attr_accessor memo: String? @@ -114,6 +117,7 @@ module Orb def initialize: ( auto_collection: bool, net_terms: Integer?, + ?custom_due_date: Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::custom_due_date?, ?invoice_date: Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::invoice_date?, ?memo: String?, ?require_successful_payment: bool @@ -122,11 +126,20 @@ module Orb def to_hash: -> { auto_collection: bool, net_terms: Integer?, + custom_due_date: Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::custom_due_date?, invoice_date: Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::invoice_date?, memo: String?, require_successful_payment: bool } + type custom_due_date = Date | Time + + module CustomDueDate + extend Orb::Internal::Type::Union + + def self?.variants: -> ::Array[Orb::Models::Customers::Credits::LedgerCreateEntryParams::InvoiceSettings::custom_due_date] + end + type invoice_date = Date | Time module InvoiceDate diff --git a/sig/orb/models/invoice.rbs b/sig/orb/models/invoice.rbs index 632cb7cb..27ba22d2 100644 --- a/sig/orb/models/invoice.rbs +++ b/sig/orb/models/invoice.rbs @@ -366,6 +366,7 @@ module Orb | :credit_note_voided | :overpayment_refund | :external_payment + | :small_invoice_carryover module Action extend Orb::Internal::Type::Enum @@ -379,6 +380,7 @@ module Orb CREDIT_NOTE_VOIDED: :credit_note_voided OVERPAYMENT_REFUND: :overpayment_refund EXTERNAL_PAYMENT: :external_payment + SMALL_INVOICE_CARRYOVER: :small_invoice_carryover def self?.values: -> ::Array[Orb::Models::Invoice::CustomerBalanceTransaction::action] end @@ -558,6 +560,7 @@ module Orb created_at: Time, payment_provider: Orb::Models::Invoice::PaymentAttempt::payment_provider?, payment_provider_id: String?, + receipt_pdf: String?, succeeded: bool } @@ -572,6 +575,8 @@ module Orb attr_accessor payment_provider_id: String? + attr_accessor receipt_pdf: String? + attr_accessor succeeded: bool def initialize: ( @@ -580,6 +585,7 @@ module Orb created_at: Time, payment_provider: Orb::Models::Invoice::PaymentAttempt::payment_provider?, payment_provider_id: String?, + receipt_pdf: String?, succeeded: bool ) -> void @@ -589,6 +595,7 @@ module Orb created_at: Time, payment_provider: Orb::Models::Invoice::PaymentAttempt::payment_provider?, payment_provider_id: String?, + receipt_pdf: String?, succeeded: bool } diff --git a/sig/orb/models/invoice_create_params.rbs b/sig/orb/models/invoice_create_params.rbs index bc808c51..40908781 100644 --- a/sig/orb/models/invoice_create_params.rbs +++ b/sig/orb/models/invoice_create_params.rbs @@ -7,6 +7,7 @@ module Orb line_items: ::Array[Orb::InvoiceCreateParams::LineItem], customer_id: String?, discount: Orb::Models::discount?, + due_date: Orb::Models::InvoiceCreateParams::due_date?, external_customer_id: String?, memo: String?, metadata: ::Hash[Symbol, String?]?, @@ -29,6 +30,8 @@ module Orb attr_accessor discount: Orb::Models::discount? + attr_accessor due_date: Orb::Models::InvoiceCreateParams::due_date? + attr_accessor external_customer_id: String? attr_accessor memo: String? @@ -47,6 +50,7 @@ module Orb line_items: ::Array[Orb::InvoiceCreateParams::LineItem], ?customer_id: String?, ?discount: Orb::Models::discount?, + ?due_date: Orb::Models::InvoiceCreateParams::due_date?, ?external_customer_id: String?, ?memo: String?, ?metadata: ::Hash[Symbol, String?]?, @@ -61,6 +65,7 @@ module Orb line_items: ::Array[Orb::InvoiceCreateParams::LineItem], customer_id: String?, discount: Orb::Models::discount?, + due_date: Orb::Models::InvoiceCreateParams::due_date?, external_customer_id: String?, memo: String?, metadata: ::Hash[Symbol, String?]?, @@ -125,6 +130,14 @@ module Orb def self?.values: -> ::Array[Orb::Models::InvoiceCreateParams::LineItem::model_type] end end + + type due_date = Date | Time + + module DueDate + extend Orb::Internal::Type::Union + + def self?.variants: -> ::Array[Orb::Models::InvoiceCreateParams::due_date] + end end end end diff --git a/sig/orb/models/invoice_fetch_upcoming_response.rbs b/sig/orb/models/invoice_fetch_upcoming_response.rbs index 0f356277..8791bc62 100644 --- a/sig/orb/models/invoice_fetch_upcoming_response.rbs +++ b/sig/orb/models/invoice_fetch_upcoming_response.rbs @@ -366,6 +366,7 @@ module Orb | :credit_note_voided | :overpayment_refund | :external_payment + | :small_invoice_carryover module Action extend Orb::Internal::Type::Enum @@ -379,6 +380,7 @@ module Orb CREDIT_NOTE_VOIDED: :credit_note_voided OVERPAYMENT_REFUND: :overpayment_refund EXTERNAL_PAYMENT: :external_payment + SMALL_INVOICE_CARRYOVER: :small_invoice_carryover def self?.values: -> ::Array[Orb::Models::InvoiceFetchUpcomingResponse::CustomerBalanceTransaction::action] end @@ -558,6 +560,7 @@ module Orb created_at: Time, payment_provider: Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::payment_provider?, payment_provider_id: String?, + receipt_pdf: String?, succeeded: bool } @@ -572,6 +575,8 @@ module Orb attr_accessor payment_provider_id: String? + attr_accessor receipt_pdf: String? + attr_accessor succeeded: bool def initialize: ( @@ -580,6 +585,7 @@ module Orb created_at: Time, payment_provider: Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::payment_provider?, payment_provider_id: String?, + receipt_pdf: String?, succeeded: bool ) -> void @@ -589,6 +595,7 @@ module Orb created_at: Time, payment_provider: Orb::Models::InvoiceFetchUpcomingResponse::PaymentAttempt::payment_provider?, payment_provider_id: String?, + receipt_pdf: String?, succeeded: bool } diff --git a/sig/orb/models/invoice_update_params.rbs b/sig/orb/models/invoice_update_params.rbs index 8ee43dca..60560f55 100644 --- a/sig/orb/models/invoice_update_params.rbs +++ b/sig/orb/models/invoice_update_params.rbs @@ -1,24 +1,44 @@ module Orb module Models type invoice_update_params = - { metadata: ::Hash[Symbol, String?]? } + { + due_date: Orb::Models::InvoiceUpdateParams::due_date?, + metadata: ::Hash[Symbol, String?]?, + net_terms: Integer? + } & Orb::Internal::Type::request_parameters class InvoiceUpdateParams < Orb::Internal::Type::BaseModel extend Orb::Internal::Type::RequestParameters::Converter include Orb::Internal::Type::RequestParameters + attr_accessor due_date: Orb::Models::InvoiceUpdateParams::due_date? + attr_accessor metadata: ::Hash[Symbol, String?]? + attr_accessor net_terms: Integer? + def initialize: ( + ?due_date: Orb::Models::InvoiceUpdateParams::due_date?, ?metadata: ::Hash[Symbol, String?]?, + ?net_terms: Integer?, ?request_options: Orb::request_opts ) -> void def to_hash: -> { + due_date: Orb::Models::InvoiceUpdateParams::due_date?, metadata: ::Hash[Symbol, String?]?, + net_terms: Integer?, request_options: Orb::RequestOptions } + + type due_date = Date | Time + + module DueDate + extend Orb::Internal::Type::Union + + def self?.variants: -> ::Array[Orb::Models::InvoiceUpdateParams::due_date] + end end end end diff --git a/sig/orb/models/new_floating_bps_price.rbs b/sig/orb/models/new_floating_bps_price.rbs deleted file mode 100644 index 99165e32..00000000 --- a/sig/orb/models/new_floating_bps_price.rbs +++ /dev/null @@ -1,126 +0,0 @@ -module Orb - module Models - type new_floating_bps_price = - { - bps_config: Orb::BPSConfig, - cadence: Orb::Models::NewFloatingBPSPrice::cadence, - currency: String, - item_id: String, - model_type: Orb::Models::NewFloatingBPSPrice::model_type, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingBPSPrice::unnamed_type_withobject_parent0?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]? - } - - class NewFloatingBPSPrice < Orb::Internal::Type::BaseModel - attr_accessor bps_config: Orb::BPSConfig - - attr_accessor cadence: Orb::Models::NewFloatingBPSPrice::cadence - - attr_accessor currency: String - - attr_accessor item_id: String - - attr_accessor model_type: Orb::Models::NewFloatingBPSPrice::model_type - - attr_accessor name: String - - attr_accessor billable_metric_id: String? - - attr_accessor billed_in_advance: bool? - - attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor conversion_rate: Float? - - attr_accessor conversion_rate_config: Orb::Models::NewFloatingBPSPrice::unnamed_type_withobject_parent0? - - attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? - - attr_accessor external_price_id: String? - - attr_accessor fixed_price_quantity: Float? - - attr_accessor invoice_grouping_key: String? - - attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor metadata: ::Hash[Symbol, String?]? - - def initialize: ( - bps_config: Orb::BPSConfig, - cadence: Orb::Models::NewFloatingBPSPrice::cadence, - currency: String, - item_id: String, - model_type: Orb::Models::NewFloatingBPSPrice::model_type, - name: String, - ?billable_metric_id: String?, - ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingBPSPrice::unnamed_type_withobject_parent0?, - ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - ?external_price_id: String?, - ?fixed_price_quantity: Float?, - ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?metadata: ::Hash[Symbol, String?]? - ) -> void - - def to_hash: -> { - bps_config: Orb::BPSConfig, - cadence: Orb::Models::NewFloatingBPSPrice::cadence, - currency: String, - item_id: String, - model_type: Orb::Models::NewFloatingBPSPrice::model_type, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingBPSPrice::unnamed_type_withobject_parent0?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]? - } - - type cadence = - :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL: :annual - SEMI_ANNUAL: :semi_annual - MONTHLY: :monthly - QUARTERLY: :quarterly - ONE_TIME: :one_time - CUSTOM: :custom - - def self?.values: -> ::Array[Orb::Models::NewFloatingBPSPrice::cadence] - end - - type model_type = :bps - - module ModelType - extend Orb::Internal::Type::Enum - - BPS: :bps - - def self?.values: -> ::Array[Orb::Models::NewFloatingBPSPrice::model_type] - end - end - end -end diff --git a/sig/orb/models/new_floating_bulk_bps_price.rbs b/sig/orb/models/new_floating_bulk_bps_price.rbs deleted file mode 100644 index 1bd0700b..00000000 --- a/sig/orb/models/new_floating_bulk_bps_price.rbs +++ /dev/null @@ -1,126 +0,0 @@ -module Orb - module Models - type new_floating_bulk_bps_price = - { - bulk_bps_config: Orb::BulkBPSConfig, - cadence: Orb::Models::NewFloatingBulkBPSPrice::cadence, - currency: String, - item_id: String, - model_type: Orb::Models::NewFloatingBulkBPSPrice::model_type, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingBulkBPSPrice::unnamed_type_withobject_parent1?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]? - } - - class NewFloatingBulkBPSPrice < Orb::Internal::Type::BaseModel - attr_accessor bulk_bps_config: Orb::BulkBPSConfig - - attr_accessor cadence: Orb::Models::NewFloatingBulkBPSPrice::cadence - - attr_accessor currency: String - - attr_accessor item_id: String - - attr_accessor model_type: Orb::Models::NewFloatingBulkBPSPrice::model_type - - attr_accessor name: String - - attr_accessor billable_metric_id: String? - - attr_accessor billed_in_advance: bool? - - attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor conversion_rate: Float? - - attr_accessor conversion_rate_config: Orb::Models::NewFloatingBulkBPSPrice::unnamed_type_withobject_parent1? - - attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? - - attr_accessor external_price_id: String? - - attr_accessor fixed_price_quantity: Float? - - attr_accessor invoice_grouping_key: String? - - attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor metadata: ::Hash[Symbol, String?]? - - def initialize: ( - bulk_bps_config: Orb::BulkBPSConfig, - cadence: Orb::Models::NewFloatingBulkBPSPrice::cadence, - currency: String, - item_id: String, - model_type: Orb::Models::NewFloatingBulkBPSPrice::model_type, - name: String, - ?billable_metric_id: String?, - ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingBulkBPSPrice::unnamed_type_withobject_parent1?, - ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - ?external_price_id: String?, - ?fixed_price_quantity: Float?, - ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?metadata: ::Hash[Symbol, String?]? - ) -> void - - def to_hash: -> { - bulk_bps_config: Orb::BulkBPSConfig, - cadence: Orb::Models::NewFloatingBulkBPSPrice::cadence, - currency: String, - item_id: String, - model_type: Orb::Models::NewFloatingBulkBPSPrice::model_type, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingBulkBPSPrice::unnamed_type_withobject_parent1?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]? - } - - type cadence = - :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL: :annual - SEMI_ANNUAL: :semi_annual - MONTHLY: :monthly - QUARTERLY: :quarterly - ONE_TIME: :one_time - CUSTOM: :custom - - def self?.values: -> ::Array[Orb::Models::NewFloatingBulkBPSPrice::cadence] - end - - type model_type = :bulk_bps - - module ModelType - extend Orb::Internal::Type::Enum - - BULK_BPS: :bulk_bps - - def self?.values: -> ::Array[Orb::Models::NewFloatingBulkBPSPrice::model_type] - end - end - end -end diff --git a/sig/orb/models/new_floating_bulk_price.rbs b/sig/orb/models/new_floating_bulk_price.rbs index 4bfded64..ba12c932 100644 --- a/sig/orb/models/new_floating_bulk_price.rbs +++ b/sig/orb/models/new_floating_bulk_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingBulkPrice::unnamed_type_withobject_parent2?, + conversion_rate_config: Orb::Models::NewFloatingBulkPrice::unnamed_type_withobject_parent8?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingBulkPrice::unnamed_type_withobject_parent2? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingBulkPrice::unnamed_type_withobject_parent8? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingBulkPrice::unnamed_type_withobject_parent2?, + ?conversion_rate_config: Orb::Models::NewFloatingBulkPrice::unnamed_type_withobject_parent8?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingBulkPrice::unnamed_type_withobject_parent2?, + conversion_rate_config: Orb::Models::NewFloatingBulkPrice::unnamed_type_withobject_parent8?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_bulk_with_proration_price.rbs b/sig/orb/models/new_floating_bulk_with_proration_price.rbs index 0802ab1a..bd52436f 100644 --- a/sig/orb/models/new_floating_bulk_with_proration_price.rbs +++ b/sig/orb/models/new_floating_bulk_with_proration_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingBulkWithProrationPrice::unnamed_type_withobject_parent3?, + conversion_rate_config: Orb::Models::NewFloatingBulkWithProrationPrice::unnamed_type_withobject_parent9?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingBulkWithProrationPrice::unnamed_type_withobject_parent3? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingBulkWithProrationPrice::unnamed_type_withobject_parent9? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingBulkWithProrationPrice::unnamed_type_withobject_parent3?, + ?conversion_rate_config: Orb::Models::NewFloatingBulkWithProrationPrice::unnamed_type_withobject_parent9?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingBulkWithProrationPrice::unnamed_type_withobject_parent3?, + conversion_rate_config: Orb::Models::NewFloatingBulkWithProrationPrice::unnamed_type_withobject_parent9?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_cumulative_grouped_bulk_price.rbs b/sig/orb/models/new_floating_cumulative_grouped_bulk_price.rbs index 302dbe39..4163e526 100644 --- a/sig/orb/models/new_floating_cumulative_grouped_bulk_price.rbs +++ b/sig/orb/models/new_floating_cumulative_grouped_bulk_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::unnamed_type_withobject_parent4?, + conversion_rate_config: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::unnamed_type_withobject_parent10?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::unnamed_type_withobject_parent4? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::unnamed_type_withobject_parent10? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::unnamed_type_withobject_parent4?, + ?conversion_rate_config: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::unnamed_type_withobject_parent10?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::unnamed_type_withobject_parent4?, + conversion_rate_config: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::unnamed_type_withobject_parent10?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_grouped_allocation_price.rbs b/sig/orb/models/new_floating_grouped_allocation_price.rbs index a72491db..316a15c9 100644 --- a/sig/orb/models/new_floating_grouped_allocation_price.rbs +++ b/sig/orb/models/new_floating_grouped_allocation_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedAllocationPrice::unnamed_type_withobject_parent5?, + conversion_rate_config: Orb::Models::NewFloatingGroupedAllocationPrice::unnamed_type_withobject_parent11?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedAllocationPrice::unnamed_type_withobject_parent5? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedAllocationPrice::unnamed_type_withobject_parent11? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingGroupedAllocationPrice::unnamed_type_withobject_parent5?, + ?conversion_rate_config: Orb::Models::NewFloatingGroupedAllocationPrice::unnamed_type_withobject_parent11?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedAllocationPrice::unnamed_type_withobject_parent5?, + conversion_rate_config: Orb::Models::NewFloatingGroupedAllocationPrice::unnamed_type_withobject_parent11?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_grouped_tiered_package_price.rbs b/sig/orb/models/new_floating_grouped_tiered_package_price.rbs index 52f24cc3..d193cafb 100644 --- a/sig/orb/models/new_floating_grouped_tiered_package_price.rbs +++ b/sig/orb/models/new_floating_grouped_tiered_package_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPackagePrice::unnamed_type_withobject_parent6?, + conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPackagePrice::unnamed_type_withobject_parent12?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPackagePrice::unnamed_type_withobject_parent6? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPackagePrice::unnamed_type_withobject_parent12? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPackagePrice::unnamed_type_withobject_parent6?, + ?conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPackagePrice::unnamed_type_withobject_parent12?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPackagePrice::unnamed_type_withobject_parent6?, + conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPackagePrice::unnamed_type_withobject_parent12?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_grouped_tiered_price.rbs b/sig/orb/models/new_floating_grouped_tiered_price.rbs index d288027d..8f3e6f49 100644 --- a/sig/orb/models/new_floating_grouped_tiered_price.rbs +++ b/sig/orb/models/new_floating_grouped_tiered_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPrice::unnamed_type_withobject_parent7?, + conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPrice::unnamed_type_withobject_parent13?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPrice::unnamed_type_withobject_parent7? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPrice::unnamed_type_withobject_parent13? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPrice::unnamed_type_withobject_parent7?, + ?conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPrice::unnamed_type_withobject_parent13?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPrice::unnamed_type_withobject_parent7?, + conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPrice::unnamed_type_withobject_parent13?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_grouped_with_metered_minimum_price.rbs b/sig/orb/models/new_floating_grouped_with_metered_minimum_price.rbs index c8d46da5..06229f62 100644 --- a/sig/orb/models/new_floating_grouped_with_metered_minimum_price.rbs +++ b/sig/orb/models/new_floating_grouped_with_metered_minimum_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent8?, + conversion_rate_config: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent14?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent8? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent14? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent8?, + ?conversion_rate_config: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent14?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent8?, + conversion_rate_config: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent14?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_grouped_with_prorated_minimum_price.rbs b/sig/orb/models/new_floating_grouped_with_prorated_minimum_price.rbs index ad420568..991262fd 100644 --- a/sig/orb/models/new_floating_grouped_with_prorated_minimum_price.rbs +++ b/sig/orb/models/new_floating_grouped_with_prorated_minimum_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent9?, + conversion_rate_config: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent15?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent9? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent15? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent9?, + ?conversion_rate_config: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent15?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent9?, + conversion_rate_config: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent15?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_matrix_price.rbs b/sig/orb/models/new_floating_matrix_price.rbs index 0cf398eb..86b8f4aa 100644 --- a/sig/orb/models/new_floating_matrix_price.rbs +++ b/sig/orb/models/new_floating_matrix_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingMatrixPrice::unnamed_type_withobject_parent10?, + conversion_rate_config: Orb::Models::NewFloatingMatrixPrice::unnamed_type_withobject_parent16?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingMatrixPrice::unnamed_type_withobject_parent10? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingMatrixPrice::unnamed_type_withobject_parent16? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingMatrixPrice::unnamed_type_withobject_parent10?, + ?conversion_rate_config: Orb::Models::NewFloatingMatrixPrice::unnamed_type_withobject_parent16?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingMatrixPrice::unnamed_type_withobject_parent10?, + conversion_rate_config: Orb::Models::NewFloatingMatrixPrice::unnamed_type_withobject_parent16?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_matrix_with_allocation_price.rbs b/sig/orb/models/new_floating_matrix_with_allocation_price.rbs index 10ae3428..e407c737 100644 --- a/sig/orb/models/new_floating_matrix_with_allocation_price.rbs +++ b/sig/orb/models/new_floating_matrix_with_allocation_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingMatrixWithAllocationPrice::unnamed_type_withobject_parent11?, + conversion_rate_config: Orb::Models::NewFloatingMatrixWithAllocationPrice::unnamed_type_withobject_parent17?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingMatrixWithAllocationPrice::unnamed_type_withobject_parent11? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingMatrixWithAllocationPrice::unnamed_type_withobject_parent17? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingMatrixWithAllocationPrice::unnamed_type_withobject_parent11?, + ?conversion_rate_config: Orb::Models::NewFloatingMatrixWithAllocationPrice::unnamed_type_withobject_parent17?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingMatrixWithAllocationPrice::unnamed_type_withobject_parent11?, + conversion_rate_config: Orb::Models::NewFloatingMatrixWithAllocationPrice::unnamed_type_withobject_parent17?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_matrix_with_display_name_price.rbs b/sig/orb/models/new_floating_matrix_with_display_name_price.rbs index 9590993e..a8747732 100644 --- a/sig/orb/models/new_floating_matrix_with_display_name_price.rbs +++ b/sig/orb/models/new_floating_matrix_with_display_name_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::unnamed_type_withobject_parent12?, + conversion_rate_config: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::unnamed_type_withobject_parent18?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::unnamed_type_withobject_parent12? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::unnamed_type_withobject_parent18? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::unnamed_type_withobject_parent12?, + ?conversion_rate_config: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::unnamed_type_withobject_parent18?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::unnamed_type_withobject_parent12?, + conversion_rate_config: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::unnamed_type_withobject_parent18?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_max_group_tiered_package_price.rbs b/sig/orb/models/new_floating_max_group_tiered_package_price.rbs index d4cb6c38..409bbaff 100644 --- a/sig/orb/models/new_floating_max_group_tiered_package_price.rbs +++ b/sig/orb/models/new_floating_max_group_tiered_package_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::unnamed_type_withobject_parent13?, + conversion_rate_config: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::unnamed_type_withobject_parent19?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::unnamed_type_withobject_parent13? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::unnamed_type_withobject_parent19? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::unnamed_type_withobject_parent13?, + ?conversion_rate_config: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::unnamed_type_withobject_parent19?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::unnamed_type_withobject_parent13?, + conversion_rate_config: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::unnamed_type_withobject_parent19?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_package_price.rbs b/sig/orb/models/new_floating_package_price.rbs index 0ec7411b..6478909c 100644 --- a/sig/orb/models/new_floating_package_price.rbs +++ b/sig/orb/models/new_floating_package_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingPackagePrice::unnamed_type_withobject_parent14?, + conversion_rate_config: Orb::Models::NewFloatingPackagePrice::unnamed_type_withobject_parent20?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingPackagePrice::unnamed_type_withobject_parent14? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingPackagePrice::unnamed_type_withobject_parent20? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingPackagePrice::unnamed_type_withobject_parent14?, + ?conversion_rate_config: Orb::Models::NewFloatingPackagePrice::unnamed_type_withobject_parent20?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingPackagePrice::unnamed_type_withobject_parent14?, + conversion_rate_config: Orb::Models::NewFloatingPackagePrice::unnamed_type_withobject_parent20?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_package_with_allocation_price.rbs b/sig/orb/models/new_floating_package_with_allocation_price.rbs index f0c6e0fa..5ddcd518 100644 --- a/sig/orb/models/new_floating_package_with_allocation_price.rbs +++ b/sig/orb/models/new_floating_package_with_allocation_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingPackageWithAllocationPrice::unnamed_type_withobject_parent15?, + conversion_rate_config: Orb::Models::NewFloatingPackageWithAllocationPrice::unnamed_type_withobject_parent21?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingPackageWithAllocationPrice::unnamed_type_withobject_parent15? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingPackageWithAllocationPrice::unnamed_type_withobject_parent21? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingPackageWithAllocationPrice::unnamed_type_withobject_parent15?, + ?conversion_rate_config: Orb::Models::NewFloatingPackageWithAllocationPrice::unnamed_type_withobject_parent21?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingPackageWithAllocationPrice::unnamed_type_withobject_parent15?, + conversion_rate_config: Orb::Models::NewFloatingPackageWithAllocationPrice::unnamed_type_withobject_parent21?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbs b/sig/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbs index 588ee936..08804133 100644 --- a/sig/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbs +++ b/sig/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent16?, + conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent22?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent16? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent22? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent16?, + ?conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent22?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent16?, + conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent22?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbs b/sig/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbs index 569df7b2..4f56cc85 100644 --- a/sig/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbs +++ b/sig/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent17?, + conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent23?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent17? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent23? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent17?, + ?conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent23?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent17?, + conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent23?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_threshold_total_amount_price.rbs b/sig/orb/models/new_floating_threshold_total_amount_price.rbs index 31bc8d18..9cd23756 100644 --- a/sig/orb/models/new_floating_threshold_total_amount_price.rbs +++ b/sig/orb/models/new_floating_threshold_total_amount_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingThresholdTotalAmountPrice::unnamed_type_withobject_parent18?, + conversion_rate_config: Orb::Models::NewFloatingThresholdTotalAmountPrice::unnamed_type_withobject_parent24?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingThresholdTotalAmountPrice::unnamed_type_withobject_parent18? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingThresholdTotalAmountPrice::unnamed_type_withobject_parent24? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingThresholdTotalAmountPrice::unnamed_type_withobject_parent18?, + ?conversion_rate_config: Orb::Models::NewFloatingThresholdTotalAmountPrice::unnamed_type_withobject_parent24?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingThresholdTotalAmountPrice::unnamed_type_withobject_parent18?, + conversion_rate_config: Orb::Models::NewFloatingThresholdTotalAmountPrice::unnamed_type_withobject_parent24?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_tiered_bps_price.rbs b/sig/orb/models/new_floating_tiered_bps_price.rbs deleted file mode 100644 index 7f5aa746..00000000 --- a/sig/orb/models/new_floating_tiered_bps_price.rbs +++ /dev/null @@ -1,126 +0,0 @@ -module Orb - module Models - type new_floating_tiered_bps_price = - { - cadence: Orb::Models::NewFloatingTieredBPSPrice::cadence, - currency: String, - item_id: String, - model_type: Orb::Models::NewFloatingTieredBPSPrice::model_type, - name: String, - tiered_bps_config: Orb::TieredBPSConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredBPSPrice::unnamed_type_withobject_parent19?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]? - } - - class NewFloatingTieredBPSPrice < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::NewFloatingTieredBPSPrice::cadence - - attr_accessor currency: String - - attr_accessor item_id: String - - attr_accessor model_type: Orb::Models::NewFloatingTieredBPSPrice::model_type - - attr_accessor name: String - - attr_accessor tiered_bps_config: Orb::TieredBPSConfig - - attr_accessor billable_metric_id: String? - - attr_accessor billed_in_advance: bool? - - attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor conversion_rate: Float? - - attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredBPSPrice::unnamed_type_withobject_parent19? - - attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? - - attr_accessor external_price_id: String? - - attr_accessor fixed_price_quantity: Float? - - attr_accessor invoice_grouping_key: String? - - attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor metadata: ::Hash[Symbol, String?]? - - def initialize: ( - cadence: Orb::Models::NewFloatingTieredBPSPrice::cadence, - currency: String, - item_id: String, - model_type: Orb::Models::NewFloatingTieredBPSPrice::model_type, - name: String, - tiered_bps_config: Orb::TieredBPSConfig, - ?billable_metric_id: String?, - ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingTieredBPSPrice::unnamed_type_withobject_parent19?, - ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - ?external_price_id: String?, - ?fixed_price_quantity: Float?, - ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?metadata: ::Hash[Symbol, String?]? - ) -> void - - def to_hash: -> { - cadence: Orb::Models::NewFloatingTieredBPSPrice::cadence, - currency: String, - item_id: String, - model_type: Orb::Models::NewFloatingTieredBPSPrice::model_type, - name: String, - tiered_bps_config: Orb::TieredBPSConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredBPSPrice::unnamed_type_withobject_parent19?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]? - } - - type cadence = - :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL: :annual - SEMI_ANNUAL: :semi_annual - MONTHLY: :monthly - QUARTERLY: :quarterly - ONE_TIME: :one_time - CUSTOM: :custom - - def self?.values: -> ::Array[Orb::Models::NewFloatingTieredBPSPrice::cadence] - end - - type model_type = :tiered_bps - - module ModelType - extend Orb::Internal::Type::Enum - - TIERED_BPS: :tiered_bps - - def self?.values: -> ::Array[Orb::Models::NewFloatingTieredBPSPrice::model_type] - end - end - end -end diff --git a/sig/orb/models/new_floating_tiered_package_price.rbs b/sig/orb/models/new_floating_tiered_package_price.rbs index faec3ad5..06d94efc 100644 --- a/sig/orb/models/new_floating_tiered_package_price.rbs +++ b/sig/orb/models/new_floating_tiered_package_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredPackagePrice::unnamed_type_withobject_parent20?, + conversion_rate_config: Orb::Models::NewFloatingTieredPackagePrice::unnamed_type_withobject_parent25?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredPackagePrice::unnamed_type_withobject_parent20? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredPackagePrice::unnamed_type_withobject_parent25? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingTieredPackagePrice::unnamed_type_withobject_parent20?, + ?conversion_rate_config: Orb::Models::NewFloatingTieredPackagePrice::unnamed_type_withobject_parent25?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredPackagePrice::unnamed_type_withobject_parent20?, + conversion_rate_config: Orb::Models::NewFloatingTieredPackagePrice::unnamed_type_withobject_parent25?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_tiered_package_with_minimum_price.rbs b/sig/orb/models/new_floating_tiered_package_with_minimum_price.rbs index e95ca0c5..b48e2fe5 100644 --- a/sig/orb/models/new_floating_tiered_package_with_minimum_price.rbs +++ b/sig/orb/models/new_floating_tiered_package_with_minimum_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::unnamed_type_withobject_parent21?, + conversion_rate_config: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::unnamed_type_withobject_parent26?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::unnamed_type_withobject_parent21? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::unnamed_type_withobject_parent26? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::unnamed_type_withobject_parent21?, + ?conversion_rate_config: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::unnamed_type_withobject_parent26?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::unnamed_type_withobject_parent21?, + conversion_rate_config: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::unnamed_type_withobject_parent26?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_tiered_price.rbs b/sig/orb/models/new_floating_tiered_price.rbs index 409bf075..2a511598 100644 --- a/sig/orb/models/new_floating_tiered_price.rbs +++ b/sig/orb/models/new_floating_tiered_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredPrice::unnamed_type_withobject_parent22?, + conversion_rate_config: Orb::Models::NewFloatingTieredPrice::unnamed_type_withobject_parent27?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredPrice::unnamed_type_withobject_parent22? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredPrice::unnamed_type_withobject_parent27? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingTieredPrice::unnamed_type_withobject_parent22?, + ?conversion_rate_config: Orb::Models::NewFloatingTieredPrice::unnamed_type_withobject_parent27?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredPrice::unnamed_type_withobject_parent22?, + conversion_rate_config: Orb::Models::NewFloatingTieredPrice::unnamed_type_withobject_parent27?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_tiered_with_minimum_price.rbs b/sig/orb/models/new_floating_tiered_with_minimum_price.rbs index 580360bd..8cea599e 100644 --- a/sig/orb/models/new_floating_tiered_with_minimum_price.rbs +++ b/sig/orb/models/new_floating_tiered_with_minimum_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredWithMinimumPrice::unnamed_type_withobject_parent23?, + conversion_rate_config: Orb::Models::NewFloatingTieredWithMinimumPrice::unnamed_type_withobject_parent28?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredWithMinimumPrice::unnamed_type_withobject_parent23? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredWithMinimumPrice::unnamed_type_withobject_parent28? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingTieredWithMinimumPrice::unnamed_type_withobject_parent23?, + ?conversion_rate_config: Orb::Models::NewFloatingTieredWithMinimumPrice::unnamed_type_withobject_parent28?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredWithMinimumPrice::unnamed_type_withobject_parent23?, + conversion_rate_config: Orb::Models::NewFloatingTieredWithMinimumPrice::unnamed_type_withobject_parent28?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_tiered_with_proration_price.rbs b/sig/orb/models/new_floating_tiered_with_proration_price.rbs index 9250d31c..1687af13 100644 --- a/sig/orb/models/new_floating_tiered_with_proration_price.rbs +++ b/sig/orb/models/new_floating_tiered_with_proration_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredWithProrationPrice::unnamed_type_withobject_parent24?, + conversion_rate_config: Orb::Models::NewFloatingTieredWithProrationPrice::unnamed_type_withobject_parent29?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredWithProrationPrice::unnamed_type_withobject_parent24? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredWithProrationPrice::unnamed_type_withobject_parent29? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingTieredWithProrationPrice::unnamed_type_withobject_parent24?, + ?conversion_rate_config: Orb::Models::NewFloatingTieredWithProrationPrice::unnamed_type_withobject_parent29?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredWithProrationPrice::unnamed_type_withobject_parent24?, + conversion_rate_config: Orb::Models::NewFloatingTieredWithProrationPrice::unnamed_type_withobject_parent29?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_unit_price.rbs b/sig/orb/models/new_floating_unit_price.rbs index 7b7f344d..c66d5e0c 100644 --- a/sig/orb/models/new_floating_unit_price.rbs +++ b/sig/orb/models/new_floating_unit_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingUnitPrice::unnamed_type_withobject_parent25?, + conversion_rate_config: Orb::Models::NewFloatingUnitPrice::unnamed_type_withobject_parent30?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingUnitPrice::unnamed_type_withobject_parent25? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingUnitPrice::unnamed_type_withobject_parent30? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingUnitPrice::unnamed_type_withobject_parent25?, + ?conversion_rate_config: Orb::Models::NewFloatingUnitPrice::unnamed_type_withobject_parent30?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingUnitPrice::unnamed_type_withobject_parent25?, + conversion_rate_config: Orb::Models::NewFloatingUnitPrice::unnamed_type_withobject_parent30?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_unit_with_percent_price.rbs b/sig/orb/models/new_floating_unit_with_percent_price.rbs index cf3380e8..fc85c836 100644 --- a/sig/orb/models/new_floating_unit_with_percent_price.rbs +++ b/sig/orb/models/new_floating_unit_with_percent_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingUnitWithPercentPrice::unnamed_type_withobject_parent26?, + conversion_rate_config: Orb::Models::NewFloatingUnitWithPercentPrice::unnamed_type_withobject_parent31?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingUnitWithPercentPrice::unnamed_type_withobject_parent26? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingUnitWithPercentPrice::unnamed_type_withobject_parent31? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingUnitWithPercentPrice::unnamed_type_withobject_parent26?, + ?conversion_rate_config: Orb::Models::NewFloatingUnitWithPercentPrice::unnamed_type_withobject_parent31?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingUnitWithPercentPrice::unnamed_type_withobject_parent26?, + conversion_rate_config: Orb::Models::NewFloatingUnitWithPercentPrice::unnamed_type_withobject_parent31?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_unit_with_proration_price.rbs b/sig/orb/models/new_floating_unit_with_proration_price.rbs index 8e7e6d58..4256902c 100644 --- a/sig/orb/models/new_floating_unit_with_proration_price.rbs +++ b/sig/orb/models/new_floating_unit_with_proration_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingUnitWithProrationPrice::unnamed_type_withobject_parent27?, + conversion_rate_config: Orb::Models::NewFloatingUnitWithProrationPrice::unnamed_type_withobject_parent32?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingUnitWithProrationPrice::unnamed_type_withobject_parent27? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingUnitWithProrationPrice::unnamed_type_withobject_parent32? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingUnitWithProrationPrice::unnamed_type_withobject_parent27?, + ?conversion_rate_config: Orb::Models::NewFloatingUnitWithProrationPrice::unnamed_type_withobject_parent32?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingUnitWithProrationPrice::unnamed_type_withobject_parent27?, + conversion_rate_config: Orb::Models::NewFloatingUnitWithProrationPrice::unnamed_type_withobject_parent32?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_plan_bps_price.rbs b/sig/orb/models/new_plan_bps_price.rbs deleted file mode 100644 index aba4230f..00000000 --- a/sig/orb/models/new_plan_bps_price.rbs +++ /dev/null @@ -1,131 +0,0 @@ -module Orb - module Models - type new_plan_bps_price = - { - bps_config: Orb::BPSConfig, - cadence: Orb::Models::NewPlanBPSPrice::cadence, - item_id: String, - model_type: Orb::Models::NewPlanBPSPrice::model_type, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanBPSPrice::unnamed_type_withobject_parent28?, - currency: String?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String? - } - - class NewPlanBPSPrice < Orb::Internal::Type::BaseModel - attr_accessor bps_config: Orb::BPSConfig - - attr_accessor cadence: Orb::Models::NewPlanBPSPrice::cadence - - attr_accessor item_id: String - - attr_accessor model_type: Orb::Models::NewPlanBPSPrice::model_type - - attr_accessor name: String - - attr_accessor billable_metric_id: String? - - attr_accessor billed_in_advance: bool? - - attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor conversion_rate: Float? - - attr_accessor conversion_rate_config: Orb::Models::NewPlanBPSPrice::unnamed_type_withobject_parent28? - - attr_accessor currency: String? - - attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? - - attr_accessor external_price_id: String? - - attr_accessor fixed_price_quantity: Float? - - attr_accessor invoice_grouping_key: String? - - attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor metadata: ::Hash[Symbol, String?]? - - attr_accessor reference_id: String? - - def initialize: ( - bps_config: Orb::BPSConfig, - cadence: Orb::Models::NewPlanBPSPrice::cadence, - item_id: String, - model_type: Orb::Models::NewPlanBPSPrice::model_type, - name: String, - ?billable_metric_id: String?, - ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanBPSPrice::unnamed_type_withobject_parent28?, - ?currency: String?, - ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - ?external_price_id: String?, - ?fixed_price_quantity: Float?, - ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?metadata: ::Hash[Symbol, String?]?, - ?reference_id: String? - ) -> void - - def to_hash: -> { - bps_config: Orb::BPSConfig, - cadence: Orb::Models::NewPlanBPSPrice::cadence, - item_id: String, - model_type: Orb::Models::NewPlanBPSPrice::model_type, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanBPSPrice::unnamed_type_withobject_parent28?, - currency: String?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String? - } - - type cadence = - :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL: :annual - SEMI_ANNUAL: :semi_annual - MONTHLY: :monthly - QUARTERLY: :quarterly - ONE_TIME: :one_time - CUSTOM: :custom - - def self?.values: -> ::Array[Orb::Models::NewPlanBPSPrice::cadence] - end - - type model_type = :bps - - module ModelType - extend Orb::Internal::Type::Enum - - BPS: :bps - - def self?.values: -> ::Array[Orb::Models::NewPlanBPSPrice::model_type] - end - end - end -end diff --git a/sig/orb/models/new_plan_bulk_bps_price.rbs b/sig/orb/models/new_plan_bulk_bps_price.rbs deleted file mode 100644 index d992b955..00000000 --- a/sig/orb/models/new_plan_bulk_bps_price.rbs +++ /dev/null @@ -1,131 +0,0 @@ -module Orb - module Models - type new_plan_bulk_bps_price = - { - bulk_bps_config: Orb::BulkBPSConfig, - cadence: Orb::Models::NewPlanBulkBPSPrice::cadence, - item_id: String, - model_type: Orb::Models::NewPlanBulkBPSPrice::model_type, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanBulkBPSPrice::unnamed_type_withobject_parent29?, - currency: String?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String? - } - - class NewPlanBulkBPSPrice < Orb::Internal::Type::BaseModel - attr_accessor bulk_bps_config: Orb::BulkBPSConfig - - attr_accessor cadence: Orb::Models::NewPlanBulkBPSPrice::cadence - - attr_accessor item_id: String - - attr_accessor model_type: Orb::Models::NewPlanBulkBPSPrice::model_type - - attr_accessor name: String - - attr_accessor billable_metric_id: String? - - attr_accessor billed_in_advance: bool? - - attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor conversion_rate: Float? - - attr_accessor conversion_rate_config: Orb::Models::NewPlanBulkBPSPrice::unnamed_type_withobject_parent29? - - attr_accessor currency: String? - - attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? - - attr_accessor external_price_id: String? - - attr_accessor fixed_price_quantity: Float? - - attr_accessor invoice_grouping_key: String? - - attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor metadata: ::Hash[Symbol, String?]? - - attr_accessor reference_id: String? - - def initialize: ( - bulk_bps_config: Orb::BulkBPSConfig, - cadence: Orb::Models::NewPlanBulkBPSPrice::cadence, - item_id: String, - model_type: Orb::Models::NewPlanBulkBPSPrice::model_type, - name: String, - ?billable_metric_id: String?, - ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanBulkBPSPrice::unnamed_type_withobject_parent29?, - ?currency: String?, - ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - ?external_price_id: String?, - ?fixed_price_quantity: Float?, - ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?metadata: ::Hash[Symbol, String?]?, - ?reference_id: String? - ) -> void - - def to_hash: -> { - bulk_bps_config: Orb::BulkBPSConfig, - cadence: Orb::Models::NewPlanBulkBPSPrice::cadence, - item_id: String, - model_type: Orb::Models::NewPlanBulkBPSPrice::model_type, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanBulkBPSPrice::unnamed_type_withobject_parent29?, - currency: String?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String? - } - - type cadence = - :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL: :annual - SEMI_ANNUAL: :semi_annual - MONTHLY: :monthly - QUARTERLY: :quarterly - ONE_TIME: :one_time - CUSTOM: :custom - - def self?.values: -> ::Array[Orb::Models::NewPlanBulkBPSPrice::cadence] - end - - type model_type = :bulk_bps - - module ModelType - extend Orb::Internal::Type::Enum - - BULK_BPS: :bulk_bps - - def self?.values: -> ::Array[Orb::Models::NewPlanBulkBPSPrice::model_type] - end - end - end -end diff --git a/sig/orb/models/new_plan_bulk_price.rbs b/sig/orb/models/new_plan_bulk_price.rbs index 8ff2daab..1ffbba19 100644 --- a/sig/orb/models/new_plan_bulk_price.rbs +++ b/sig/orb/models/new_plan_bulk_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanBulkPrice::unnamed_type_withobject_parent30?, + conversion_rate_config: Orb::Models::NewPlanBulkPrice::unnamed_type_withobject_parent33?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanBulkPrice::unnamed_type_withobject_parent30? + attr_accessor conversion_rate_config: Orb::Models::NewPlanBulkPrice::unnamed_type_withobject_parent33? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanBulkPrice::unnamed_type_withobject_parent30?, + ?conversion_rate_config: Orb::Models::NewPlanBulkPrice::unnamed_type_withobject_parent33?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanBulkPrice::unnamed_type_withobject_parent30?, + conversion_rate_config: Orb::Models::NewPlanBulkPrice::unnamed_type_withobject_parent33?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_bulk_with_proration_price.rbs b/sig/orb/models/new_plan_bulk_with_proration_price.rbs index a23a89d5..182b7ab8 100644 --- a/sig/orb/models/new_plan_bulk_with_proration_price.rbs +++ b/sig/orb/models/new_plan_bulk_with_proration_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanBulkWithProrationPrice::unnamed_type_withobject_parent31?, + conversion_rate_config: Orb::Models::NewPlanBulkWithProrationPrice::unnamed_type_withobject_parent34?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanBulkWithProrationPrice::unnamed_type_withobject_parent31? + attr_accessor conversion_rate_config: Orb::Models::NewPlanBulkWithProrationPrice::unnamed_type_withobject_parent34? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanBulkWithProrationPrice::unnamed_type_withobject_parent31?, + ?conversion_rate_config: Orb::Models::NewPlanBulkWithProrationPrice::unnamed_type_withobject_parent34?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanBulkWithProrationPrice::unnamed_type_withobject_parent31?, + conversion_rate_config: Orb::Models::NewPlanBulkWithProrationPrice::unnamed_type_withobject_parent34?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_cumulative_grouped_bulk_price.rbs b/sig/orb/models/new_plan_cumulative_grouped_bulk_price.rbs index 3426a3b4..3befc30a 100644 --- a/sig/orb/models/new_plan_cumulative_grouped_bulk_price.rbs +++ b/sig/orb/models/new_plan_cumulative_grouped_bulk_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanCumulativeGroupedBulkPrice::unnamed_type_withobject_parent32?, + conversion_rate_config: Orb::Models::NewPlanCumulativeGroupedBulkPrice::unnamed_type_withobject_parent35?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanCumulativeGroupedBulkPrice::unnamed_type_withobject_parent32? + attr_accessor conversion_rate_config: Orb::Models::NewPlanCumulativeGroupedBulkPrice::unnamed_type_withobject_parent35? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanCumulativeGroupedBulkPrice::unnamed_type_withobject_parent32?, + ?conversion_rate_config: Orb::Models::NewPlanCumulativeGroupedBulkPrice::unnamed_type_withobject_parent35?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanCumulativeGroupedBulkPrice::unnamed_type_withobject_parent32?, + conversion_rate_config: Orb::Models::NewPlanCumulativeGroupedBulkPrice::unnamed_type_withobject_parent35?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_grouped_allocation_price.rbs b/sig/orb/models/new_plan_grouped_allocation_price.rbs index 1f6a2190..414735be 100644 --- a/sig/orb/models/new_plan_grouped_allocation_price.rbs +++ b/sig/orb/models/new_plan_grouped_allocation_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedAllocationPrice::unnamed_type_withobject_parent33?, + conversion_rate_config: Orb::Models::NewPlanGroupedAllocationPrice::unnamed_type_withobject_parent36?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedAllocationPrice::unnamed_type_withobject_parent33? + attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedAllocationPrice::unnamed_type_withobject_parent36? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanGroupedAllocationPrice::unnamed_type_withobject_parent33?, + ?conversion_rate_config: Orb::Models::NewPlanGroupedAllocationPrice::unnamed_type_withobject_parent36?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedAllocationPrice::unnamed_type_withobject_parent33?, + conversion_rate_config: Orb::Models::NewPlanGroupedAllocationPrice::unnamed_type_withobject_parent36?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_grouped_tiered_package_price.rbs b/sig/orb/models/new_plan_grouped_tiered_package_price.rbs index fd4dcd46..7404ad60 100644 --- a/sig/orb/models/new_plan_grouped_tiered_package_price.rbs +++ b/sig/orb/models/new_plan_grouped_tiered_package_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedTieredPackagePrice::unnamed_type_withobject_parent34?, + conversion_rate_config: Orb::Models::NewPlanGroupedTieredPackagePrice::unnamed_type_withobject_parent37?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedTieredPackagePrice::unnamed_type_withobject_parent34? + attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedTieredPackagePrice::unnamed_type_withobject_parent37? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanGroupedTieredPackagePrice::unnamed_type_withobject_parent34?, + ?conversion_rate_config: Orb::Models::NewPlanGroupedTieredPackagePrice::unnamed_type_withobject_parent37?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedTieredPackagePrice::unnamed_type_withobject_parent34?, + conversion_rate_config: Orb::Models::NewPlanGroupedTieredPackagePrice::unnamed_type_withobject_parent37?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_grouped_tiered_price.rbs b/sig/orb/models/new_plan_grouped_tiered_price.rbs index c4b3e7de..2a8f6e2b 100644 --- a/sig/orb/models/new_plan_grouped_tiered_price.rbs +++ b/sig/orb/models/new_plan_grouped_tiered_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedTieredPrice::unnamed_type_withobject_parent35?, + conversion_rate_config: Orb::Models::NewPlanGroupedTieredPrice::unnamed_type_withobject_parent38?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedTieredPrice::unnamed_type_withobject_parent35? + attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedTieredPrice::unnamed_type_withobject_parent38? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanGroupedTieredPrice::unnamed_type_withobject_parent35?, + ?conversion_rate_config: Orb::Models::NewPlanGroupedTieredPrice::unnamed_type_withobject_parent38?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedTieredPrice::unnamed_type_withobject_parent35?, + conversion_rate_config: Orb::Models::NewPlanGroupedTieredPrice::unnamed_type_withobject_parent38?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_grouped_with_metered_minimum_price.rbs b/sig/orb/models/new_plan_grouped_with_metered_minimum_price.rbs index 269f91e5..943c4b55 100644 --- a/sig/orb/models/new_plan_grouped_with_metered_minimum_price.rbs +++ b/sig/orb/models/new_plan_grouped_with_metered_minimum_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent36?, + conversion_rate_config: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent39?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent36? + attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent39? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent36?, + ?conversion_rate_config: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent39?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent36?, + conversion_rate_config: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent39?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_grouped_with_prorated_minimum_price.rbs b/sig/orb/models/new_plan_grouped_with_prorated_minimum_price.rbs index d440626f..46eb3b27 100644 --- a/sig/orb/models/new_plan_grouped_with_prorated_minimum_price.rbs +++ b/sig/orb/models/new_plan_grouped_with_prorated_minimum_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent37?, + conversion_rate_config: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent40?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent37? + attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent40? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent37?, + ?conversion_rate_config: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent40?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent37?, + conversion_rate_config: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent40?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_matrix_price.rbs b/sig/orb/models/new_plan_matrix_price.rbs index 303afd09..1a3107ff 100644 --- a/sig/orb/models/new_plan_matrix_price.rbs +++ b/sig/orb/models/new_plan_matrix_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanMatrixPrice::unnamed_type_withobject_parent38?, + conversion_rate_config: Orb::Models::NewPlanMatrixPrice::unnamed_type_withobject_parent41?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanMatrixPrice::unnamed_type_withobject_parent38? + attr_accessor conversion_rate_config: Orb::Models::NewPlanMatrixPrice::unnamed_type_withobject_parent41? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanMatrixPrice::unnamed_type_withobject_parent38?, + ?conversion_rate_config: Orb::Models::NewPlanMatrixPrice::unnamed_type_withobject_parent41?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanMatrixPrice::unnamed_type_withobject_parent38?, + conversion_rate_config: Orb::Models::NewPlanMatrixPrice::unnamed_type_withobject_parent41?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_matrix_with_allocation_price.rbs b/sig/orb/models/new_plan_matrix_with_allocation_price.rbs index 9b78e1f4..3b303a6f 100644 --- a/sig/orb/models/new_plan_matrix_with_allocation_price.rbs +++ b/sig/orb/models/new_plan_matrix_with_allocation_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanMatrixWithAllocationPrice::unnamed_type_withobject_parent39?, + conversion_rate_config: Orb::Models::NewPlanMatrixWithAllocationPrice::unnamed_type_withobject_parent42?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanMatrixWithAllocationPrice::unnamed_type_withobject_parent39? + attr_accessor conversion_rate_config: Orb::Models::NewPlanMatrixWithAllocationPrice::unnamed_type_withobject_parent42? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanMatrixWithAllocationPrice::unnamed_type_withobject_parent39?, + ?conversion_rate_config: Orb::Models::NewPlanMatrixWithAllocationPrice::unnamed_type_withobject_parent42?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanMatrixWithAllocationPrice::unnamed_type_withobject_parent39?, + conversion_rate_config: Orb::Models::NewPlanMatrixWithAllocationPrice::unnamed_type_withobject_parent42?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_matrix_with_display_name_price.rbs b/sig/orb/models/new_plan_matrix_with_display_name_price.rbs index 0c19e6b8..8066bb84 100644 --- a/sig/orb/models/new_plan_matrix_with_display_name_price.rbs +++ b/sig/orb/models/new_plan_matrix_with_display_name_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanMatrixWithDisplayNamePrice::unnamed_type_withobject_parent40?, + conversion_rate_config: Orb::Models::NewPlanMatrixWithDisplayNamePrice::unnamed_type_withobject_parent43?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanMatrixWithDisplayNamePrice::unnamed_type_withobject_parent40? + attr_accessor conversion_rate_config: Orb::Models::NewPlanMatrixWithDisplayNamePrice::unnamed_type_withobject_parent43? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanMatrixWithDisplayNamePrice::unnamed_type_withobject_parent40?, + ?conversion_rate_config: Orb::Models::NewPlanMatrixWithDisplayNamePrice::unnamed_type_withobject_parent43?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanMatrixWithDisplayNamePrice::unnamed_type_withobject_parent40?, + conversion_rate_config: Orb::Models::NewPlanMatrixWithDisplayNamePrice::unnamed_type_withobject_parent43?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_max_group_tiered_package_price.rbs b/sig/orb/models/new_plan_max_group_tiered_package_price.rbs index deb6cc0e..f0fa8df1 100644 --- a/sig/orb/models/new_plan_max_group_tiered_package_price.rbs +++ b/sig/orb/models/new_plan_max_group_tiered_package_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanMaxGroupTieredPackagePrice::unnamed_type_withobject_parent41?, + conversion_rate_config: Orb::Models::NewPlanMaxGroupTieredPackagePrice::unnamed_type_withobject_parent44?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanMaxGroupTieredPackagePrice::unnamed_type_withobject_parent41? + attr_accessor conversion_rate_config: Orb::Models::NewPlanMaxGroupTieredPackagePrice::unnamed_type_withobject_parent44? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanMaxGroupTieredPackagePrice::unnamed_type_withobject_parent41?, + ?conversion_rate_config: Orb::Models::NewPlanMaxGroupTieredPackagePrice::unnamed_type_withobject_parent44?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanMaxGroupTieredPackagePrice::unnamed_type_withobject_parent41?, + conversion_rate_config: Orb::Models::NewPlanMaxGroupTieredPackagePrice::unnamed_type_withobject_parent44?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_package_price.rbs b/sig/orb/models/new_plan_package_price.rbs index 3baa2935..c77aae59 100644 --- a/sig/orb/models/new_plan_package_price.rbs +++ b/sig/orb/models/new_plan_package_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanPackagePrice::unnamed_type_withobject_parent42?, + conversion_rate_config: Orb::Models::NewPlanPackagePrice::unnamed_type_withobject_parent45?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanPackagePrice::unnamed_type_withobject_parent42? + attr_accessor conversion_rate_config: Orb::Models::NewPlanPackagePrice::unnamed_type_withobject_parent45? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanPackagePrice::unnamed_type_withobject_parent42?, + ?conversion_rate_config: Orb::Models::NewPlanPackagePrice::unnamed_type_withobject_parent45?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanPackagePrice::unnamed_type_withobject_parent42?, + conversion_rate_config: Orb::Models::NewPlanPackagePrice::unnamed_type_withobject_parent45?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_package_with_allocation_price.rbs b/sig/orb/models/new_plan_package_with_allocation_price.rbs index 2a3ad319..7e34d954 100644 --- a/sig/orb/models/new_plan_package_with_allocation_price.rbs +++ b/sig/orb/models/new_plan_package_with_allocation_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanPackageWithAllocationPrice::unnamed_type_withobject_parent43?, + conversion_rate_config: Orb::Models::NewPlanPackageWithAllocationPrice::unnamed_type_withobject_parent46?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanPackageWithAllocationPrice::unnamed_type_withobject_parent43? + attr_accessor conversion_rate_config: Orb::Models::NewPlanPackageWithAllocationPrice::unnamed_type_withobject_parent46? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanPackageWithAllocationPrice::unnamed_type_withobject_parent43?, + ?conversion_rate_config: Orb::Models::NewPlanPackageWithAllocationPrice::unnamed_type_withobject_parent46?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanPackageWithAllocationPrice::unnamed_type_withobject_parent43?, + conversion_rate_config: Orb::Models::NewPlanPackageWithAllocationPrice::unnamed_type_withobject_parent46?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbs b/sig/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbs index 745d2ca1..8b6166ef 100644 --- a/sig/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbs +++ b/sig/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent44?, + conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent47?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent44? + attr_accessor conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent47? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent44?, + ?conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent47?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent44?, + conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent47?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbs b/sig/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbs index 39881de6..c631a893 100644 --- a/sig/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbs +++ b/sig/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent45?, + conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent48?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent45? + attr_accessor conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent48? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent45?, + ?conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent48?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent45?, + conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent48?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_threshold_total_amount_price.rbs b/sig/orb/models/new_plan_threshold_total_amount_price.rbs index 9fbb9d05..e0d36f77 100644 --- a/sig/orb/models/new_plan_threshold_total_amount_price.rbs +++ b/sig/orb/models/new_plan_threshold_total_amount_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanThresholdTotalAmountPrice::unnamed_type_withobject_parent46?, + conversion_rate_config: Orb::Models::NewPlanThresholdTotalAmountPrice::unnamed_type_withobject_parent49?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanThresholdTotalAmountPrice::unnamed_type_withobject_parent46? + attr_accessor conversion_rate_config: Orb::Models::NewPlanThresholdTotalAmountPrice::unnamed_type_withobject_parent49? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanThresholdTotalAmountPrice::unnamed_type_withobject_parent46?, + ?conversion_rate_config: Orb::Models::NewPlanThresholdTotalAmountPrice::unnamed_type_withobject_parent49?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanThresholdTotalAmountPrice::unnamed_type_withobject_parent46?, + conversion_rate_config: Orb::Models::NewPlanThresholdTotalAmountPrice::unnamed_type_withobject_parent49?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_tier_with_proration_price.rbs b/sig/orb/models/new_plan_tier_with_proration_price.rbs index fbab3c78..0f5f24aa 100644 --- a/sig/orb/models/new_plan_tier_with_proration_price.rbs +++ b/sig/orb/models/new_plan_tier_with_proration_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::unnamed_type_withobject_parent52?, + conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::unnamed_type_withobject_parent54?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::unnamed_type_withobject_parent52? + attr_accessor conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::unnamed_type_withobject_parent54? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::unnamed_type_withobject_parent52?, + ?conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::unnamed_type_withobject_parent54?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::unnamed_type_withobject_parent52?, + conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::unnamed_type_withobject_parent54?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_tiered_bps_price.rbs b/sig/orb/models/new_plan_tiered_bps_price.rbs deleted file mode 100644 index 4f1bf569..00000000 --- a/sig/orb/models/new_plan_tiered_bps_price.rbs +++ /dev/null @@ -1,131 +0,0 @@ -module Orb - module Models - type new_plan_tiered_bps_price = - { - cadence: Orb::Models::NewPlanTieredBPSPrice::cadence, - item_id: String, - model_type: Orb::Models::NewPlanTieredBPSPrice::model_type, - name: String, - tiered_bps_config: Orb::TieredBPSConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredBPSPrice::unnamed_type_withobject_parent47?, - currency: String?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String? - } - - class NewPlanTieredBPSPrice < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::NewPlanTieredBPSPrice::cadence - - attr_accessor item_id: String - - attr_accessor model_type: Orb::Models::NewPlanTieredBPSPrice::model_type - - attr_accessor name: String - - attr_accessor tiered_bps_config: Orb::TieredBPSConfig - - attr_accessor billable_metric_id: String? - - attr_accessor billed_in_advance: bool? - - attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor conversion_rate: Float? - - attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredBPSPrice::unnamed_type_withobject_parent47? - - attr_accessor currency: String? - - attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? - - attr_accessor external_price_id: String? - - attr_accessor fixed_price_quantity: Float? - - attr_accessor invoice_grouping_key: String? - - attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor metadata: ::Hash[Symbol, String?]? - - attr_accessor reference_id: String? - - def initialize: ( - cadence: Orb::Models::NewPlanTieredBPSPrice::cadence, - item_id: String, - model_type: Orb::Models::NewPlanTieredBPSPrice::model_type, - name: String, - tiered_bps_config: Orb::TieredBPSConfig, - ?billable_metric_id: String?, - ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanTieredBPSPrice::unnamed_type_withobject_parent47?, - ?currency: String?, - ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - ?external_price_id: String?, - ?fixed_price_quantity: Float?, - ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?metadata: ::Hash[Symbol, String?]?, - ?reference_id: String? - ) -> void - - def to_hash: -> { - cadence: Orb::Models::NewPlanTieredBPSPrice::cadence, - item_id: String, - model_type: Orb::Models::NewPlanTieredBPSPrice::model_type, - name: String, - tiered_bps_config: Orb::TieredBPSConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredBPSPrice::unnamed_type_withobject_parent47?, - currency: String?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String? - } - - type cadence = - :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL: :annual - SEMI_ANNUAL: :semi_annual - MONTHLY: :monthly - QUARTERLY: :quarterly - ONE_TIME: :one_time - CUSTOM: :custom - - def self?.values: -> ::Array[Orb::Models::NewPlanTieredBPSPrice::cadence] - end - - type model_type = :tiered_bps - - module ModelType - extend Orb::Internal::Type::Enum - - TIERED_BPS: :tiered_bps - - def self?.values: -> ::Array[Orb::Models::NewPlanTieredBPSPrice::model_type] - end - end - end -end diff --git a/sig/orb/models/new_plan_tiered_package_price.rbs b/sig/orb/models/new_plan_tiered_package_price.rbs index dca76b1d..143db993 100644 --- a/sig/orb/models/new_plan_tiered_package_price.rbs +++ b/sig/orb/models/new_plan_tiered_package_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredPackagePrice::unnamed_type_withobject_parent48?, + conversion_rate_config: Orb::Models::NewPlanTieredPackagePrice::unnamed_type_withobject_parent50?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredPackagePrice::unnamed_type_withobject_parent48? + attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredPackagePrice::unnamed_type_withobject_parent50? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanTieredPackagePrice::unnamed_type_withobject_parent48?, + ?conversion_rate_config: Orb::Models::NewPlanTieredPackagePrice::unnamed_type_withobject_parent50?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredPackagePrice::unnamed_type_withobject_parent48?, + conversion_rate_config: Orb::Models::NewPlanTieredPackagePrice::unnamed_type_withobject_parent50?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_tiered_package_with_minimum_price.rbs b/sig/orb/models/new_plan_tiered_package_with_minimum_price.rbs index 55ea25d1..42b8cbe3 100644 --- a/sig/orb/models/new_plan_tiered_package_with_minimum_price.rbs +++ b/sig/orb/models/new_plan_tiered_package_with_minimum_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredPackageWithMinimumPrice::unnamed_type_withobject_parent49?, + conversion_rate_config: Orb::Models::NewPlanTieredPackageWithMinimumPrice::unnamed_type_withobject_parent51?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredPackageWithMinimumPrice::unnamed_type_withobject_parent49? + attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredPackageWithMinimumPrice::unnamed_type_withobject_parent51? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanTieredPackageWithMinimumPrice::unnamed_type_withobject_parent49?, + ?conversion_rate_config: Orb::Models::NewPlanTieredPackageWithMinimumPrice::unnamed_type_withobject_parent51?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredPackageWithMinimumPrice::unnamed_type_withobject_parent49?, + conversion_rate_config: Orb::Models::NewPlanTieredPackageWithMinimumPrice::unnamed_type_withobject_parent51?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_tiered_price.rbs b/sig/orb/models/new_plan_tiered_price.rbs index 8cb8c427..76ad69b1 100644 --- a/sig/orb/models/new_plan_tiered_price.rbs +++ b/sig/orb/models/new_plan_tiered_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredPrice::unnamed_type_withobject_parent50?, + conversion_rate_config: Orb::Models::NewPlanTieredPrice::unnamed_type_withobject_parent52?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredPrice::unnamed_type_withobject_parent50? + attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredPrice::unnamed_type_withobject_parent52? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanTieredPrice::unnamed_type_withobject_parent50?, + ?conversion_rate_config: Orb::Models::NewPlanTieredPrice::unnamed_type_withobject_parent52?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredPrice::unnamed_type_withobject_parent50?, + conversion_rate_config: Orb::Models::NewPlanTieredPrice::unnamed_type_withobject_parent52?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_tiered_with_minimum_price.rbs b/sig/orb/models/new_plan_tiered_with_minimum_price.rbs index e6edf203..0d90afd5 100644 --- a/sig/orb/models/new_plan_tiered_with_minimum_price.rbs +++ b/sig/orb/models/new_plan_tiered_with_minimum_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredWithMinimumPrice::unnamed_type_withobject_parent51?, + conversion_rate_config: Orb::Models::NewPlanTieredWithMinimumPrice::unnamed_type_withobject_parent53?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredWithMinimumPrice::unnamed_type_withobject_parent51? + attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredWithMinimumPrice::unnamed_type_withobject_parent53? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanTieredWithMinimumPrice::unnamed_type_withobject_parent51?, + ?conversion_rate_config: Orb::Models::NewPlanTieredWithMinimumPrice::unnamed_type_withobject_parent53?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredWithMinimumPrice::unnamed_type_withobject_parent51?, + conversion_rate_config: Orb::Models::NewPlanTieredWithMinimumPrice::unnamed_type_withobject_parent53?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_unit_price.rbs b/sig/orb/models/new_plan_unit_price.rbs index 3ac886a9..3c8f8162 100644 --- a/sig/orb/models/new_plan_unit_price.rbs +++ b/sig/orb/models/new_plan_unit_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanUnitPrice::unnamed_type_withobject_parent53?, + conversion_rate_config: Orb::Models::NewPlanUnitPrice::unnamed_type_withobject_parent55?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanUnitPrice::unnamed_type_withobject_parent53? + attr_accessor conversion_rate_config: Orb::Models::NewPlanUnitPrice::unnamed_type_withobject_parent55? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanUnitPrice::unnamed_type_withobject_parent53?, + ?conversion_rate_config: Orb::Models::NewPlanUnitPrice::unnamed_type_withobject_parent55?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanUnitPrice::unnamed_type_withobject_parent53?, + conversion_rate_config: Orb::Models::NewPlanUnitPrice::unnamed_type_withobject_parent55?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_unit_with_percent_price.rbs b/sig/orb/models/new_plan_unit_with_percent_price.rbs index bcf29fb0..e97fddf7 100644 --- a/sig/orb/models/new_plan_unit_with_percent_price.rbs +++ b/sig/orb/models/new_plan_unit_with_percent_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanUnitWithPercentPrice::unnamed_type_withobject_parent54?, + conversion_rate_config: Orb::Models::NewPlanUnitWithPercentPrice::unnamed_type_withobject_parent56?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanUnitWithPercentPrice::unnamed_type_withobject_parent54? + attr_accessor conversion_rate_config: Orb::Models::NewPlanUnitWithPercentPrice::unnamed_type_withobject_parent56? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanUnitWithPercentPrice::unnamed_type_withobject_parent54?, + ?conversion_rate_config: Orb::Models::NewPlanUnitWithPercentPrice::unnamed_type_withobject_parent56?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanUnitWithPercentPrice::unnamed_type_withobject_parent54?, + conversion_rate_config: Orb::Models::NewPlanUnitWithPercentPrice::unnamed_type_withobject_parent56?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_unit_with_proration_price.rbs b/sig/orb/models/new_plan_unit_with_proration_price.rbs index b43cd8a3..3afe2a7f 100644 --- a/sig/orb/models/new_plan_unit_with_proration_price.rbs +++ b/sig/orb/models/new_plan_unit_with_proration_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanUnitWithProrationPrice::unnamed_type_withobject_parent55?, + conversion_rate_config: Orb::Models::NewPlanUnitWithProrationPrice::unnamed_type_withobject_parent57?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanUnitWithProrationPrice::unnamed_type_withobject_parent55? + attr_accessor conversion_rate_config: Orb::Models::NewPlanUnitWithProrationPrice::unnamed_type_withobject_parent57? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanUnitWithProrationPrice::unnamed_type_withobject_parent55?, + ?conversion_rate_config: Orb::Models::NewPlanUnitWithProrationPrice::unnamed_type_withobject_parent57?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanUnitWithProrationPrice::unnamed_type_withobject_parent55?, + conversion_rate_config: Orb::Models::NewPlanUnitWithProrationPrice::unnamed_type_withobject_parent57?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_bps_price.rbs b/sig/orb/models/new_subscription_bps_price.rbs deleted file mode 100644 index dc936096..00000000 --- a/sig/orb/models/new_subscription_bps_price.rbs +++ /dev/null @@ -1,131 +0,0 @@ -module Orb - module Models - type new_subscription_bps_price = - { - bps_config: Orb::BPSConfig, - cadence: Orb::Models::NewSubscriptionBPSPrice::cadence, - item_id: String, - model_type: Orb::Models::NewSubscriptionBPSPrice::model_type, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionBPSPrice::unnamed_type_withobject_parent56?, - currency: String?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String? - } - - class NewSubscriptionBPSPrice < Orb::Internal::Type::BaseModel - attr_accessor bps_config: Orb::BPSConfig - - attr_accessor cadence: Orb::Models::NewSubscriptionBPSPrice::cadence - - attr_accessor item_id: String - - attr_accessor model_type: Orb::Models::NewSubscriptionBPSPrice::model_type - - attr_accessor name: String - - attr_accessor billable_metric_id: String? - - attr_accessor billed_in_advance: bool? - - attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor conversion_rate: Float? - - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionBPSPrice::unnamed_type_withobject_parent56? - - attr_accessor currency: String? - - attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? - - attr_accessor external_price_id: String? - - attr_accessor fixed_price_quantity: Float? - - attr_accessor invoice_grouping_key: String? - - attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor metadata: ::Hash[Symbol, String?]? - - attr_accessor reference_id: String? - - def initialize: ( - bps_config: Orb::BPSConfig, - cadence: Orb::Models::NewSubscriptionBPSPrice::cadence, - item_id: String, - model_type: Orb::Models::NewSubscriptionBPSPrice::model_type, - name: String, - ?billable_metric_id: String?, - ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionBPSPrice::unnamed_type_withobject_parent56?, - ?currency: String?, - ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - ?external_price_id: String?, - ?fixed_price_quantity: Float?, - ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?metadata: ::Hash[Symbol, String?]?, - ?reference_id: String? - ) -> void - - def to_hash: -> { - bps_config: Orb::BPSConfig, - cadence: Orb::Models::NewSubscriptionBPSPrice::cadence, - item_id: String, - model_type: Orb::Models::NewSubscriptionBPSPrice::model_type, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionBPSPrice::unnamed_type_withobject_parent56?, - currency: String?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String? - } - - type cadence = - :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL: :annual - SEMI_ANNUAL: :semi_annual - MONTHLY: :monthly - QUARTERLY: :quarterly - ONE_TIME: :one_time - CUSTOM: :custom - - def self?.values: -> ::Array[Orb::Models::NewSubscriptionBPSPrice::cadence] - end - - type model_type = :bps - - module ModelType - extend Orb::Internal::Type::Enum - - BPS: :bps - - def self?.values: -> ::Array[Orb::Models::NewSubscriptionBPSPrice::model_type] - end - end - end -end diff --git a/sig/orb/models/new_subscription_bulk_bps_price.rbs b/sig/orb/models/new_subscription_bulk_bps_price.rbs deleted file mode 100644 index a0cf9ec2..00000000 --- a/sig/orb/models/new_subscription_bulk_bps_price.rbs +++ /dev/null @@ -1,131 +0,0 @@ -module Orb - module Models - type new_subscription_bulk_bps_price = - { - bulk_bps_config: Orb::BulkBPSConfig, - cadence: Orb::Models::NewSubscriptionBulkBPSPrice::cadence, - item_id: String, - model_type: Orb::Models::NewSubscriptionBulkBPSPrice::model_type, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionBulkBPSPrice::unnamed_type_withobject_parent57?, - currency: String?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String? - } - - class NewSubscriptionBulkBPSPrice < Orb::Internal::Type::BaseModel - attr_accessor bulk_bps_config: Orb::BulkBPSConfig - - attr_accessor cadence: Orb::Models::NewSubscriptionBulkBPSPrice::cadence - - attr_accessor item_id: String - - attr_accessor model_type: Orb::Models::NewSubscriptionBulkBPSPrice::model_type - - attr_accessor name: String - - attr_accessor billable_metric_id: String? - - attr_accessor billed_in_advance: bool? - - attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor conversion_rate: Float? - - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionBulkBPSPrice::unnamed_type_withobject_parent57? - - attr_accessor currency: String? - - attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? - - attr_accessor external_price_id: String? - - attr_accessor fixed_price_quantity: Float? - - attr_accessor invoice_grouping_key: String? - - attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor metadata: ::Hash[Symbol, String?]? - - attr_accessor reference_id: String? - - def initialize: ( - bulk_bps_config: Orb::BulkBPSConfig, - cadence: Orb::Models::NewSubscriptionBulkBPSPrice::cadence, - item_id: String, - model_type: Orb::Models::NewSubscriptionBulkBPSPrice::model_type, - name: String, - ?billable_metric_id: String?, - ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionBulkBPSPrice::unnamed_type_withobject_parent57?, - ?currency: String?, - ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - ?external_price_id: String?, - ?fixed_price_quantity: Float?, - ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?metadata: ::Hash[Symbol, String?]?, - ?reference_id: String? - ) -> void - - def to_hash: -> { - bulk_bps_config: Orb::BulkBPSConfig, - cadence: Orb::Models::NewSubscriptionBulkBPSPrice::cadence, - item_id: String, - model_type: Orb::Models::NewSubscriptionBulkBPSPrice::model_type, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionBulkBPSPrice::unnamed_type_withobject_parent57?, - currency: String?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String? - } - - type cadence = - :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL: :annual - SEMI_ANNUAL: :semi_annual - MONTHLY: :monthly - QUARTERLY: :quarterly - ONE_TIME: :one_time - CUSTOM: :custom - - def self?.values: -> ::Array[Orb::Models::NewSubscriptionBulkBPSPrice::cadence] - end - - type model_type = :bulk_bps - - module ModelType - extend Orb::Internal::Type::Enum - - BULK_BPS: :bulk_bps - - def self?.values: -> ::Array[Orb::Models::NewSubscriptionBulkBPSPrice::model_type] - end - end - end -end diff --git a/sig/orb/models/new_subscription_tier_with_proration_price.rbs b/sig/orb/models/new_subscription_tier_with_proration_price.rbs index 31982bcc..b67bf349 100644 --- a/sig/orb/models/new_subscription_tier_with_proration_price.rbs +++ b/sig/orb/models/new_subscription_tier_with_proration_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::unnamed_type_withobject_parent80?, + conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::unnamed_type_withobject_parent79?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::unnamed_type_withobject_parent80? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::unnamed_type_withobject_parent79? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::unnamed_type_withobject_parent80?, + ?conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::unnamed_type_withobject_parent79?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::unnamed_type_withobject_parent80?, + conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::unnamed_type_withobject_parent79?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_tiered_bps_price.rbs b/sig/orb/models/new_subscription_tiered_bps_price.rbs deleted file mode 100644 index 00ea60de..00000000 --- a/sig/orb/models/new_subscription_tiered_bps_price.rbs +++ /dev/null @@ -1,131 +0,0 @@ -module Orb - module Models - type new_subscription_tiered_bps_price = - { - cadence: Orb::Models::NewSubscriptionTieredBPSPrice::cadence, - item_id: String, - model_type: Orb::Models::NewSubscriptionTieredBPSPrice::model_type, - name: String, - tiered_bps_config: Orb::TieredBPSConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredBPSPrice::unnamed_type_withobject_parent75?, - currency: String?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String? - } - - class NewSubscriptionTieredBPSPrice < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::NewSubscriptionTieredBPSPrice::cadence - - attr_accessor item_id: String - - attr_accessor model_type: Orb::Models::NewSubscriptionTieredBPSPrice::model_type - - attr_accessor name: String - - attr_accessor tiered_bps_config: Orb::TieredBPSConfig - - attr_accessor billable_metric_id: String? - - attr_accessor billed_in_advance: bool? - - attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor conversion_rate: Float? - - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredBPSPrice::unnamed_type_withobject_parent75? - - attr_accessor currency: String? - - attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? - - attr_accessor external_price_id: String? - - attr_accessor fixed_price_quantity: Float? - - attr_accessor invoice_grouping_key: String? - - attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor metadata: ::Hash[Symbol, String?]? - - attr_accessor reference_id: String? - - def initialize: ( - cadence: Orb::Models::NewSubscriptionTieredBPSPrice::cadence, - item_id: String, - model_type: Orb::Models::NewSubscriptionTieredBPSPrice::model_type, - name: String, - tiered_bps_config: Orb::TieredBPSConfig, - ?billable_metric_id: String?, - ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionTieredBPSPrice::unnamed_type_withobject_parent75?, - ?currency: String?, - ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - ?external_price_id: String?, - ?fixed_price_quantity: Float?, - ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?metadata: ::Hash[Symbol, String?]?, - ?reference_id: String? - ) -> void - - def to_hash: -> { - cadence: Orb::Models::NewSubscriptionTieredBPSPrice::cadence, - item_id: String, - model_type: Orb::Models::NewSubscriptionTieredBPSPrice::model_type, - name: String, - tiered_bps_config: Orb::TieredBPSConfig, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredBPSPrice::unnamed_type_withobject_parent75?, - currency: String?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String? - } - - type cadence = - :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL: :annual - SEMI_ANNUAL: :semi_annual - MONTHLY: :monthly - QUARTERLY: :quarterly - ONE_TIME: :one_time - CUSTOM: :custom - - def self?.values: -> ::Array[Orb::Models::NewSubscriptionTieredBPSPrice::cadence] - end - - type model_type = :tiered_bps - - module ModelType - extend Orb::Internal::Type::Enum - - TIERED_BPS: :tiered_bps - - def self?.values: -> ::Array[Orb::Models::NewSubscriptionTieredBPSPrice::model_type] - end - end - end -end diff --git a/sig/orb/models/new_subscription_tiered_package_price.rbs b/sig/orb/models/new_subscription_tiered_package_price.rbs index 28610708..9bec1e65 100644 --- a/sig/orb/models/new_subscription_tiered_package_price.rbs +++ b/sig/orb/models/new_subscription_tiered_package_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredPackagePrice::unnamed_type_withobject_parent76?, + conversion_rate_config: Orb::Models::NewSubscriptionTieredPackagePrice::unnamed_type_withobject_parent75?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredPackagePrice::unnamed_type_withobject_parent76? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredPackagePrice::unnamed_type_withobject_parent75? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionTieredPackagePrice::unnamed_type_withobject_parent76?, + ?conversion_rate_config: Orb::Models::NewSubscriptionTieredPackagePrice::unnamed_type_withobject_parent75?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredPackagePrice::unnamed_type_withobject_parent76?, + conversion_rate_config: Orb::Models::NewSubscriptionTieredPackagePrice::unnamed_type_withobject_parent75?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_tiered_package_with_minimum_price.rbs b/sig/orb/models/new_subscription_tiered_package_with_minimum_price.rbs index bde10abf..e476e90f 100644 --- a/sig/orb/models/new_subscription_tiered_package_with_minimum_price.rbs +++ b/sig/orb/models/new_subscription_tiered_package_with_minimum_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::unnamed_type_withobject_parent77?, + conversion_rate_config: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::unnamed_type_withobject_parent76?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::unnamed_type_withobject_parent77? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::unnamed_type_withobject_parent76? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::unnamed_type_withobject_parent77?, + ?conversion_rate_config: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::unnamed_type_withobject_parent76?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::unnamed_type_withobject_parent77?, + conversion_rate_config: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::unnamed_type_withobject_parent76?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_tiered_price.rbs b/sig/orb/models/new_subscription_tiered_price.rbs index c98e4d24..083830d3 100644 --- a/sig/orb/models/new_subscription_tiered_price.rbs +++ b/sig/orb/models/new_subscription_tiered_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredPrice::unnamed_type_withobject_parent78?, + conversion_rate_config: Orb::Models::NewSubscriptionTieredPrice::unnamed_type_withobject_parent77?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredPrice::unnamed_type_withobject_parent78? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredPrice::unnamed_type_withobject_parent77? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionTieredPrice::unnamed_type_withobject_parent78?, + ?conversion_rate_config: Orb::Models::NewSubscriptionTieredPrice::unnamed_type_withobject_parent77?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredPrice::unnamed_type_withobject_parent78?, + conversion_rate_config: Orb::Models::NewSubscriptionTieredPrice::unnamed_type_withobject_parent77?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_tiered_with_minimum_price.rbs b/sig/orb/models/new_subscription_tiered_with_minimum_price.rbs index dab08025..7c8a191e 100644 --- a/sig/orb/models/new_subscription_tiered_with_minimum_price.rbs +++ b/sig/orb/models/new_subscription_tiered_with_minimum_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredWithMinimumPrice::unnamed_type_withobject_parent79?, + conversion_rate_config: Orb::Models::NewSubscriptionTieredWithMinimumPrice::unnamed_type_withobject_parent78?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredWithMinimumPrice::unnamed_type_withobject_parent79? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredWithMinimumPrice::unnamed_type_withobject_parent78? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionTieredWithMinimumPrice::unnamed_type_withobject_parent79?, + ?conversion_rate_config: Orb::Models::NewSubscriptionTieredWithMinimumPrice::unnamed_type_withobject_parent78?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredWithMinimumPrice::unnamed_type_withobject_parent79?, + conversion_rate_config: Orb::Models::NewSubscriptionTieredWithMinimumPrice::unnamed_type_withobject_parent78?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_unit_price.rbs b/sig/orb/models/new_subscription_unit_price.rbs index cb58c046..ea117434 100644 --- a/sig/orb/models/new_subscription_unit_price.rbs +++ b/sig/orb/models/new_subscription_unit_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionUnitPrice::unnamed_type_withobject_parent81?, + conversion_rate_config: Orb::Models::NewSubscriptionUnitPrice::unnamed_type_withobject_parent80?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionUnitPrice::unnamed_type_withobject_parent81? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionUnitPrice::unnamed_type_withobject_parent80? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionUnitPrice::unnamed_type_withobject_parent81?, + ?conversion_rate_config: Orb::Models::NewSubscriptionUnitPrice::unnamed_type_withobject_parent80?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionUnitPrice::unnamed_type_withobject_parent81?, + conversion_rate_config: Orb::Models::NewSubscriptionUnitPrice::unnamed_type_withobject_parent80?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_unit_with_percent_price.rbs b/sig/orb/models/new_subscription_unit_with_percent_price.rbs index 0c574e92..2de24e27 100644 --- a/sig/orb/models/new_subscription_unit_with_percent_price.rbs +++ b/sig/orb/models/new_subscription_unit_with_percent_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionUnitWithPercentPrice::unnamed_type_withobject_parent82?, + conversion_rate_config: Orb::Models::NewSubscriptionUnitWithPercentPrice::unnamed_type_withobject_parent81?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionUnitWithPercentPrice::unnamed_type_withobject_parent82? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionUnitWithPercentPrice::unnamed_type_withobject_parent81? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionUnitWithPercentPrice::unnamed_type_withobject_parent82?, + ?conversion_rate_config: Orb::Models::NewSubscriptionUnitWithPercentPrice::unnamed_type_withobject_parent81?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionUnitWithPercentPrice::unnamed_type_withobject_parent82?, + conversion_rate_config: Orb::Models::NewSubscriptionUnitWithPercentPrice::unnamed_type_withobject_parent81?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_unit_with_proration_price.rbs b/sig/orb/models/new_subscription_unit_with_proration_price.rbs index ef238a06..fae097cd 100644 --- a/sig/orb/models/new_subscription_unit_with_proration_price.rbs +++ b/sig/orb/models/new_subscription_unit_with_proration_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionUnitWithProrationPrice::unnamed_type_withobject_parent83?, + conversion_rate_config: Orb::Models::NewSubscriptionUnitWithProrationPrice::unnamed_type_withobject_parent82?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionUnitWithProrationPrice::unnamed_type_withobject_parent83? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionUnitWithProrationPrice::unnamed_type_withobject_parent82? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionUnitWithProrationPrice::unnamed_type_withobject_parent83?, + ?conversion_rate_config: Orb::Models::NewSubscriptionUnitWithProrationPrice::unnamed_type_withobject_parent82?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionUnitWithProrationPrice::unnamed_type_withobject_parent83?, + conversion_rate_config: Orb::Models::NewSubscriptionUnitWithProrationPrice::unnamed_type_withobject_parent82?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/plan_create_params.rbs b/sig/orb/models/plan_create_params.rbs index 63093ad3..859d6384 100644 --- a/sig/orb/models/plan_create_params.rbs +++ b/sig/orb/models/plan_create_params.rbs @@ -102,9 +102,6 @@ module Orb | Orb::NewPlanPackagePrice | Orb::NewPlanMatrixPrice | Orb::NewPlanTieredPrice - | Orb::NewPlanTieredBPSPrice - | Orb::NewPlanBPSPrice - | Orb::NewPlanBulkBPSPrice | Orb::NewPlanBulkPrice | Orb::NewPlanThresholdTotalAmountPrice | Orb::NewPlanTieredPackagePrice @@ -116,6 +113,7 @@ module Orb | Orb::NewPlanGroupedAllocationPrice | Orb::NewPlanGroupedWithProratedMinimumPrice | Orb::NewPlanGroupedWithMeteredMinimumPrice + | Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds | Orb::NewPlanMatrixWithDisplayNamePrice | Orb::NewPlanBulkWithProrationPrice | Orb::NewPlanGroupedTieredPackagePrice @@ -126,10 +124,269 @@ module Orb | Orb::NewPlanTieredPackageWithMinimumPrice | Orb::NewPlanMatrixWithAllocationPrice | Orb::NewPlanGroupedTieredPrice + | Orb::PlanCreateParams::Price::Price::Minimum module Price extend Orb::Internal::Type::Union + type grouped_with_min_max_thresholds = + { + cadence: Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::cadence, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + model_type: :grouped_with_min_max_thresholds, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent83?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::cadence + + attr_accessor grouped_with_min_max_thresholds_config: ::Hash[Symbol, top] + + attr_accessor item_id: String + + attr_accessor model_type: :grouped_with_min_max_thresholds + + attr_accessor name: String + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent83? + + attr_accessor currency: String? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + attr_accessor reference_id: String? + + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::cadence, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent83?, + ?currency: String?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_with_min_max_thresholds + ) -> void + + def to_hash: -> { + cadence: Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::cadence, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + model_type: :grouped_with_min_max_thresholds, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent83?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + type cadence = + :annual + | :semi_annual + | :monthly + | :quarterly + | :one_time + | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::cadence] + end + end + + type minimum = + { + cadence: Orb::Models::PlanCreateParams::Price::Price::Minimum::cadence, + item_id: String, + minimum_config: Orb::PlanCreateParams::Price::Price::Minimum::MinimumConfig, + model_type: :minimum, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::PlanCreateParams::Price::Price::Minimum::unnamed_type_withobject_parent84?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + class Minimum < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::PlanCreateParams::Price::Price::Minimum::cadence + + attr_accessor item_id: String + + attr_accessor minimum_config: Orb::PlanCreateParams::Price::Price::Minimum::MinimumConfig + + attr_accessor model_type: :minimum + + attr_accessor name: String + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::PlanCreateParams::Price::Price::Minimum::unnamed_type_withobject_parent84? + + attr_accessor currency: String? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + attr_accessor reference_id: String? + + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::Price::Minimum::cadence, + item_id: String, + minimum_config: Orb::PlanCreateParams::Price::Price::Minimum::MinimumConfig, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::PlanCreateParams::Price::Price::Minimum::unnamed_type_withobject_parent84?, + ?currency: String?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :minimum + ) -> void + + def to_hash: -> { + cadence: Orb::Models::PlanCreateParams::Price::Price::Minimum::cadence, + item_id: String, + minimum_config: Orb::PlanCreateParams::Price::Price::Minimum::MinimumConfig, + model_type: :minimum, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::PlanCreateParams::Price::Price::Minimum::unnamed_type_withobject_parent84?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + type cadence = + :annual + | :semi_annual + | :monthly + | :quarterly + | :one_time + | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Price::Minimum::cadence] + end + + type minimum_config = { minimum_amount: String, prorated: bool? } + + class MinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor minimum_amount: String + + attr_accessor prorated: bool? + + def initialize: (minimum_amount: String, ?prorated: bool?) -> void + + def to_hash: -> { minimum_amount: String, prorated: bool? } + end + end + def self?.variants: -> ::Array[Orb::Models::PlanCreateParams::Price::price] end end diff --git a/sig/orb/models/price.rbs b/sig/orb/models/price.rbs index c1c29b27..cd0083da 100644 --- a/sig/orb/models/price.rbs +++ b/sig/orb/models/price.rbs @@ -5,9 +5,6 @@ module Orb | Orb::Price::Package | Orb::Price::Matrix | Orb::Price::Tiered - | Orb::Price::TieredBPS - | Orb::Price::BPS - | Orb::Price::BulkBPS | Orb::Price::Bulk | Orb::Price::ThresholdTotalAmount | Orb::Price::TieredPackage @@ -30,6 +27,7 @@ module Orb | Orb::Price::ScalableMatrixWithTieredPricing | Orb::Price::CumulativeGroupedBulk | Orb::Price::GroupedWithMinMaxThresholds + | Orb::Price::Minimum module Price extend Orb::Internal::Type::Union @@ -40,8 +38,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::Unit::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Unit::unnamed_type_withobject_parent84?, + conversion_rate_config: Orb::Models::Price::Unit::unnamed_type_withobject_parent85?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -73,9 +72,11 @@ module Orb attr_accessor cadence: Orb::Models::Price::Unit::cadence + attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? + attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::Unit::unnamed_type_withobject_parent84? + attr_accessor conversion_rate_config: Orb::Models::Price::Unit::unnamed_type_withobject_parent85? attr_accessor created_at: Time @@ -122,37 +123,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::Unit::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Unit::unnamed_type_withobject_parent84?, - created_at: Time, - credit_allocation: Orb::Allocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, - item: Orb::ItemSlim, - maximum: Orb::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::Unit::price_type, - replaces_price_id: String?, - unit_config: Orb::UnitConfig, - ?dimensional_price_configuration: Orb::DimensionalPriceConfiguration?, - ?model_type: :unit - ) -> void - - def to_hash: -> { - id: String, - billable_metric: Orb::BillableMetricTiny?, - billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::Unit::cadence, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Unit::unnamed_type_withobject_parent84?, + conversion_rate_config: Orb::Models::Price::Unit::unnamed_type_withobject_parent85?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -166,500 +139,23 @@ module Orb metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :unit, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::Unit::price_type, - replaces_price_id: String?, - unit_config: Orb::UnitConfig, - dimensional_price_configuration: Orb::DimensionalPriceConfiguration? - } - - type cadence = - :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - - module Cadence - extend Orb::Internal::Type::Enum - - ONE_TIME: :one_time - MONTHLY: :monthly - QUARTERLY: :quarterly - SEMI_ANNUAL: :semi_annual - ANNUAL: :annual - CUSTOM: :custom - - def self?.values: -> ::Array[Orb::Models::Price::Unit::cadence] - end - - type price_type = :usage_price | :fixed_price - - module PriceType - extend Orb::Internal::Type::Enum - - USAGE_PRICE: :usage_price - FIXED_PRICE: :fixed_price - - def self?.values: -> ::Array[Orb::Models::Price::Unit::price_type] - end - end - - type package = - { - id: String, - billable_metric: Orb::BillableMetricTiny?, - billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::Package::cadence, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Package::unnamed_type_withobject_parent85?, - created_at: Time, - credit_allocation: Orb::Allocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, - item: Orb::ItemSlim, - maximum: Orb::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Minimum?, - minimum_amount: String?, - model_type: :package, - name: String, - package_config: Orb::PackageConfig, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::Package::price_type, - replaces_price_id: String?, - dimensional_price_configuration: Orb::DimensionalPriceConfiguration? - } - - class Package < Orb::Internal::Type::BaseModel - attr_accessor id: String - - attr_accessor billable_metric: Orb::BillableMetricTiny? - - attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration - - attr_accessor cadence: Orb::Models::Price::Package::cadence - - attr_accessor conversion_rate: Float? - - attr_accessor conversion_rate_config: Orb::Models::Price::Package::unnamed_type_withobject_parent85? - - attr_accessor created_at: Time - - attr_accessor credit_allocation: Orb::Allocation? - - attr_accessor currency: String - - attr_accessor discount: Orb::Models::discount? - - attr_accessor external_price_id: String? - - attr_accessor fixed_price_quantity: Float? - - attr_accessor invoicing_cycle_configuration: Orb::BillingCycleConfiguration? - - attr_accessor item: Orb::ItemSlim - - attr_accessor maximum: Orb::Maximum? - - attr_accessor maximum_amount: String? - - attr_accessor metadata: ::Hash[Symbol, String] - - attr_accessor minimum: Orb::Minimum? - - attr_accessor minimum_amount: String? - - attr_accessor model_type: :package - - attr_accessor name: String - - attr_accessor package_config: Orb::PackageConfig - - attr_accessor plan_phase_order: Integer? - - attr_accessor price_type: Orb::Models::Price::Package::price_type - - attr_accessor replaces_price_id: String? - - attr_accessor dimensional_price_configuration: Orb::DimensionalPriceConfiguration? - - def initialize: ( - id: String, - billable_metric: Orb::BillableMetricTiny?, - billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::Package::cadence, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Package::unnamed_type_withobject_parent85?, - created_at: Time, - credit_allocation: Orb::Allocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, - item: Orb::ItemSlim, - maximum: Orb::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Minimum?, - minimum_amount: String?, - name: String, - package_config: Orb::PackageConfig, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::Package::price_type, - replaces_price_id: String?, - ?dimensional_price_configuration: Orb::DimensionalPriceConfiguration?, - ?model_type: :package - ) -> void - - def to_hash: -> { - id: String, - billable_metric: Orb::BillableMetricTiny?, - billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::Package::cadence, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Package::unnamed_type_withobject_parent85?, - created_at: Time, - credit_allocation: Orb::Allocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, - item: Orb::ItemSlim, - maximum: Orb::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Minimum?, - minimum_amount: String?, - model_type: :package, - name: String, - package_config: Orb::PackageConfig, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::Package::price_type, - replaces_price_id: String?, - dimensional_price_configuration: Orb::DimensionalPriceConfiguration? - } - - type cadence = - :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - - module Cadence - extend Orb::Internal::Type::Enum - - ONE_TIME: :one_time - MONTHLY: :monthly - QUARTERLY: :quarterly - SEMI_ANNUAL: :semi_annual - ANNUAL: :annual - CUSTOM: :custom - - def self?.values: -> ::Array[Orb::Models::Price::Package::cadence] - end - - type price_type = :usage_price | :fixed_price - - module PriceType - extend Orb::Internal::Type::Enum - - USAGE_PRICE: :usage_price - FIXED_PRICE: :fixed_price - - def self?.values: -> ::Array[Orb::Models::Price::Package::price_type] - end - end - - type matrix = - { - id: String, - billable_metric: Orb::BillableMetricTiny?, - billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::Matrix::cadence, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Matrix::unnamed_type_withobject_parent86?, - created_at: Time, - credit_allocation: Orb::Allocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, - item: Orb::ItemSlim, - matrix_config: Orb::MatrixConfig, - maximum: Orb::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Minimum?, - minimum_amount: String?, - model_type: :matrix, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::Matrix::price_type, - replaces_price_id: String?, - dimensional_price_configuration: Orb::DimensionalPriceConfiguration? - } - - class Matrix < Orb::Internal::Type::BaseModel - attr_accessor id: String - - attr_accessor billable_metric: Orb::BillableMetricTiny? - - attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration - - attr_accessor cadence: Orb::Models::Price::Matrix::cadence - - attr_accessor conversion_rate: Float? - - attr_accessor conversion_rate_config: Orb::Models::Price::Matrix::unnamed_type_withobject_parent86? - - attr_accessor created_at: Time - - attr_accessor credit_allocation: Orb::Allocation? - - attr_accessor currency: String - - attr_accessor discount: Orb::Models::discount? - - attr_accessor external_price_id: String? - - attr_accessor fixed_price_quantity: Float? - - attr_accessor invoicing_cycle_configuration: Orb::BillingCycleConfiguration? - - attr_accessor item: Orb::ItemSlim - - attr_accessor matrix_config: Orb::MatrixConfig - - attr_accessor maximum: Orb::Maximum? - - attr_accessor maximum_amount: String? - - attr_accessor metadata: ::Hash[Symbol, String] - - attr_accessor minimum: Orb::Minimum? - - attr_accessor minimum_amount: String? - - attr_accessor model_type: :matrix - - attr_accessor name: String - - attr_accessor plan_phase_order: Integer? - - attr_accessor price_type: Orb::Models::Price::Matrix::price_type - - attr_accessor replaces_price_id: String? - - attr_accessor dimensional_price_configuration: Orb::DimensionalPriceConfiguration? - - def initialize: ( - id: String, - billable_metric: Orb::BillableMetricTiny?, - billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::Matrix::cadence, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Matrix::unnamed_type_withobject_parent86?, - created_at: Time, - credit_allocation: Orb::Allocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, - item: Orb::ItemSlim, - matrix_config: Orb::MatrixConfig, - maximum: Orb::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::Matrix::price_type, - replaces_price_id: String?, - ?dimensional_price_configuration: Orb::DimensionalPriceConfiguration?, - ?model_type: :matrix - ) -> void - - def to_hash: -> { - id: String, - billable_metric: Orb::BillableMetricTiny?, - billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::Matrix::cadence, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Matrix::unnamed_type_withobject_parent86?, - created_at: Time, - credit_allocation: Orb::Allocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, - item: Orb::ItemSlim, - matrix_config: Orb::MatrixConfig, - maximum: Orb::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Minimum?, - minimum_amount: String?, - model_type: :matrix, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::Matrix::price_type, - replaces_price_id: String?, - dimensional_price_configuration: Orb::DimensionalPriceConfiguration? - } - - type cadence = - :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom - - module Cadence - extend Orb::Internal::Type::Enum - - ONE_TIME: :one_time - MONTHLY: :monthly - QUARTERLY: :quarterly - SEMI_ANNUAL: :semi_annual - ANNUAL: :annual - CUSTOM: :custom - - def self?.values: -> ::Array[Orb::Models::Price::Matrix::cadence] - end - - type price_type = :usage_price | :fixed_price - - module PriceType - extend Orb::Internal::Type::Enum - - USAGE_PRICE: :usage_price - FIXED_PRICE: :fixed_price - - def self?.values: -> ::Array[Orb::Models::Price::Matrix::price_type] - end - end - - type tiered = - { - id: String, - billable_metric: Orb::BillableMetricTiny?, - billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::Tiered::cadence, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Tiered::unnamed_type_withobject_parent87?, - created_at: Time, - credit_allocation: Orb::Allocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, - item: Orb::ItemSlim, - maximum: Orb::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Minimum?, - minimum_amount: String?, - model_type: :tiered, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::Tiered::price_type, - replaces_price_id: String?, - tiered_config: Orb::TieredConfig, - dimensional_price_configuration: Orb::DimensionalPriceConfiguration? - } - - class Tiered < Orb::Internal::Type::BaseModel - attr_accessor id: String - - attr_accessor billable_metric: Orb::BillableMetricTiny? - - attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration - - attr_accessor cadence: Orb::Models::Price::Tiered::cadence - - attr_accessor conversion_rate: Float? - - attr_accessor conversion_rate_config: Orb::Models::Price::Tiered::unnamed_type_withobject_parent87? - - attr_accessor created_at: Time - - attr_accessor credit_allocation: Orb::Allocation? - - attr_accessor currency: String - - attr_accessor discount: Orb::Models::discount? - - attr_accessor external_price_id: String? - - attr_accessor fixed_price_quantity: Float? - - attr_accessor invoicing_cycle_configuration: Orb::BillingCycleConfiguration? - - attr_accessor item: Orb::ItemSlim - - attr_accessor maximum: Orb::Maximum? - - attr_accessor maximum_amount: String? - - attr_accessor metadata: ::Hash[Symbol, String] - - attr_accessor minimum: Orb::Minimum? - - attr_accessor minimum_amount: String? - - attr_accessor model_type: :tiered - - attr_accessor name: String - - attr_accessor plan_phase_order: Integer? - - attr_accessor price_type: Orb::Models::Price::Tiered::price_type - - attr_accessor replaces_price_id: String? - - attr_accessor tiered_config: Orb::TieredConfig - - attr_accessor dimensional_price_configuration: Orb::DimensionalPriceConfiguration? - - def initialize: ( - id: String, - billable_metric: Orb::BillableMetricTiny?, - billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::Tiered::cadence, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Tiered::unnamed_type_withobject_parent87?, - created_at: Time, - credit_allocation: Orb::Allocation?, - currency: String, - discount: Orb::Models::discount?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, - item: Orb::ItemSlim, - maximum: Orb::Maximum?, - maximum_amount: String?, - metadata: ::Hash[Symbol, String], - minimum: Orb::Minimum?, - minimum_amount: String?, - name: String, - plan_phase_order: Integer?, - price_type: Orb::Models::Price::Tiered::price_type, + price_type: Orb::Models::Price::Unit::price_type, replaces_price_id: String?, - tiered_config: Orb::TieredConfig, + unit_config: Orb::UnitConfig, ?dimensional_price_configuration: Orb::DimensionalPriceConfiguration?, - ?model_type: :tiered + ?model_type: :unit ) -> void def to_hash: -> { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::Tiered::cadence, + cadence: Orb::Models::Price::Unit::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Tiered::unnamed_type_withobject_parent87?, + conversion_rate_config: Orb::Models::Price::Unit::unnamed_type_withobject_parent85?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -673,12 +169,12 @@ module Orb metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :tiered, + model_type: :unit, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::Tiered::price_type, + price_type: Orb::Models::Price::Unit::price_type, replaces_price_id: String?, - tiered_config: Orb::TieredConfig, + unit_config: Orb::UnitConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } @@ -695,7 +191,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::Tiered::cadence] + def self?.values: -> ::Array[Orb::Models::Price::Unit::cadence] end type price_type = :usage_price | :fixed_price @@ -706,18 +202,19 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::Tiered::price_type] + def self?.values: -> ::Array[Orb::Models::Price::Unit::price_type] end end - type tiered_bps = + type package = { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredBPS::cadence, + cadence: Orb::Models::Price::Package::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredBPS::unnamed_type_withobject_parent88?, + conversion_rate_config: Orb::Models::Price::Package::unnamed_type_withobject_parent86?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -731,27 +228,29 @@ module Orb metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :tiered_bps, + model_type: :package, name: String, + package_config: Orb::PackageConfig, plan_phase_order: Integer?, - price_type: Orb::Models::Price::TieredBPS::price_type, + price_type: Orb::Models::Price::Package::price_type, replaces_price_id: String?, - tiered_bps_config: Orb::TieredBPSConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } - class TieredBPS < Orb::Internal::Type::BaseModel + class Package < Orb::Internal::Type::BaseModel attr_accessor id: String attr_accessor billable_metric: Orb::BillableMetricTiny? attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::TieredBPS::cadence + attr_accessor cadence: Orb::Models::Price::Package::cadence + + attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::TieredBPS::unnamed_type_withobject_parent88? + attr_accessor conversion_rate_config: Orb::Models::Price::Package::unnamed_type_withobject_parent86? attr_accessor created_at: Time @@ -779,27 +278,28 @@ module Orb attr_accessor minimum_amount: String? - attr_accessor model_type: :tiered_bps + attr_accessor model_type: :package attr_accessor name: String + attr_accessor package_config: Orb::PackageConfig + attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::TieredBPS::price_type + attr_accessor price_type: Orb::Models::Price::Package::price_type attr_accessor replaces_price_id: String? - attr_accessor tiered_bps_config: Orb::TieredBPSConfig - attr_accessor dimensional_price_configuration: Orb::DimensionalPriceConfiguration? def initialize: ( id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredBPS::cadence, + cadence: Orb::Models::Price::Package::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredBPS::unnamed_type_withobject_parent88?, + conversion_rate_config: Orb::Models::Price::Package::unnamed_type_withobject_parent86?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -814,21 +314,22 @@ module Orb minimum: Orb::Minimum?, minimum_amount: String?, name: String, + package_config: Orb::PackageConfig, plan_phase_order: Integer?, - price_type: Orb::Models::Price::TieredBPS::price_type, + price_type: Orb::Models::Price::Package::price_type, replaces_price_id: String?, - tiered_bps_config: Orb::TieredBPSConfig, ?dimensional_price_configuration: Orb::DimensionalPriceConfiguration?, - ?model_type: :tiered_bps + ?model_type: :package ) -> void def to_hash: -> { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredBPS::cadence, + cadence: Orb::Models::Price::Package::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredBPS::unnamed_type_withobject_parent88?, + conversion_rate_config: Orb::Models::Price::Package::unnamed_type_withobject_parent86?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -842,12 +343,12 @@ module Orb metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :tiered_bps, + model_type: :package, name: String, + package_config: Orb::PackageConfig, plan_phase_order: Integer?, - price_type: Orb::Models::Price::TieredBPS::price_type, + price_type: Orb::Models::Price::Package::price_type, replaces_price_id: String?, - tiered_bps_config: Orb::TieredBPSConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } @@ -864,7 +365,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::TieredBPS::cadence] + def self?.values: -> ::Array[Orb::Models::Price::Package::cadence] end type price_type = :usage_price | :fixed_price @@ -875,19 +376,19 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::TieredBPS::price_type] + def self?.values: -> ::Array[Orb::Models::Price::Package::price_type] end end - type bps = + type matrix = { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - bps_config: Orb::BPSConfig, - cadence: Orb::Models::Price::BPS::cadence, + cadence: Orb::Models::Price::Matrix::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::BPS::unnamed_type_withobject_parent89?, + conversion_rate_config: Orb::Models::Price::Matrix::unnamed_type_withobject_parent87?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -896,33 +397,34 @@ module Orb fixed_price_quantity: Float?, invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, + matrix_config: Orb::MatrixConfig, maximum: Orb::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :bps, + model_type: :matrix, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::BPS::price_type, + price_type: Orb::Models::Price::Matrix::price_type, replaces_price_id: String?, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } - class BPS < Orb::Internal::Type::BaseModel + class Matrix < Orb::Internal::Type::BaseModel attr_accessor id: String attr_accessor billable_metric: Orb::BillableMetricTiny? attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration - attr_accessor bps_config: Orb::BPSConfig + attr_accessor cadence: Orb::Models::Price::Matrix::cadence - attr_accessor cadence: Orb::Models::Price::BPS::cadence + attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::BPS::unnamed_type_withobject_parent89? + attr_accessor conversion_rate_config: Orb::Models::Price::Matrix::unnamed_type_withobject_parent87? attr_accessor created_at: Time @@ -940,6 +442,8 @@ module Orb attr_accessor item: Orb::ItemSlim + attr_accessor matrix_config: Orb::MatrixConfig + attr_accessor maximum: Orb::Maximum? attr_accessor maximum_amount: String? @@ -950,13 +454,13 @@ module Orb attr_accessor minimum_amount: String? - attr_accessor model_type: :bps + attr_accessor model_type: :matrix attr_accessor name: String attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::BPS::price_type + attr_accessor price_type: Orb::Models::Price::Matrix::price_type attr_accessor replaces_price_id: String? @@ -966,10 +470,10 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - bps_config: Orb::BPSConfig, - cadence: Orb::Models::Price::BPS::cadence, + cadence: Orb::Models::Price::Matrix::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::BPS::unnamed_type_withobject_parent89?, + conversion_rate_config: Orb::Models::Price::Matrix::unnamed_type_withobject_parent87?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -978,6 +482,7 @@ module Orb fixed_price_quantity: Float?, invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, + matrix_config: Orb::MatrixConfig, maximum: Orb::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], @@ -985,20 +490,20 @@ module Orb minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::BPS::price_type, + price_type: Orb::Models::Price::Matrix::price_type, replaces_price_id: String?, ?dimensional_price_configuration: Orb::DimensionalPriceConfiguration?, - ?model_type: :bps + ?model_type: :matrix ) -> void def to_hash: -> { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - bps_config: Orb::BPSConfig, - cadence: Orb::Models::Price::BPS::cadence, + cadence: Orb::Models::Price::Matrix::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::BPS::unnamed_type_withobject_parent89?, + conversion_rate_config: Orb::Models::Price::Matrix::unnamed_type_withobject_parent87?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1007,15 +512,16 @@ module Orb fixed_price_quantity: Float?, invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, + matrix_config: Orb::MatrixConfig, maximum: Orb::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :bps, + model_type: :matrix, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::BPS::price_type, + price_type: Orb::Models::Price::Matrix::price_type, replaces_price_id: String?, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } @@ -1033,7 +539,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::BPS::cadence] + def self?.values: -> ::Array[Orb::Models::Price::Matrix::cadence] end type price_type = :usage_price | :fixed_price @@ -1044,19 +550,19 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::BPS::price_type] + def self?.values: -> ::Array[Orb::Models::Price::Matrix::price_type] end end - type bulk_bps = + type tiered = { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - bulk_bps_config: Orb::BulkBPSConfig, - cadence: Orb::Models::Price::BulkBPS::cadence, + cadence: Orb::Models::Price::Tiered::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::BulkBPS::unnamed_type_withobject_parent90?, + conversion_rate_config: Orb::Models::Price::Tiered::unnamed_type_withobject_parent88?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1070,28 +576,29 @@ module Orb metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :bulk_bps, + model_type: :tiered, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::BulkBPS::price_type, + price_type: Orb::Models::Price::Tiered::price_type, replaces_price_id: String?, + tiered_config: Orb::TieredConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } - class BulkBPS < Orb::Internal::Type::BaseModel + class Tiered < Orb::Internal::Type::BaseModel attr_accessor id: String attr_accessor billable_metric: Orb::BillableMetricTiny? attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration - attr_accessor bulk_bps_config: Orb::BulkBPSConfig + attr_accessor cadence: Orb::Models::Price::Tiered::cadence - attr_accessor cadence: Orb::Models::Price::BulkBPS::cadence + attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::BulkBPS::unnamed_type_withobject_parent90? + attr_accessor conversion_rate_config: Orb::Models::Price::Tiered::unnamed_type_withobject_parent88? attr_accessor created_at: Time @@ -1119,26 +626,28 @@ module Orb attr_accessor minimum_amount: String? - attr_accessor model_type: :bulk_bps + attr_accessor model_type: :tiered attr_accessor name: String attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::BulkBPS::price_type + attr_accessor price_type: Orb::Models::Price::Tiered::price_type attr_accessor replaces_price_id: String? + attr_accessor tiered_config: Orb::TieredConfig + attr_accessor dimensional_price_configuration: Orb::DimensionalPriceConfiguration? def initialize: ( id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - bulk_bps_config: Orb::BulkBPSConfig, - cadence: Orb::Models::Price::BulkBPS::cadence, + cadence: Orb::Models::Price::Tiered::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::BulkBPS::unnamed_type_withobject_parent90?, + conversion_rate_config: Orb::Models::Price::Tiered::unnamed_type_withobject_parent88?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1154,20 +663,21 @@ module Orb minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::BulkBPS::price_type, + price_type: Orb::Models::Price::Tiered::price_type, replaces_price_id: String?, + tiered_config: Orb::TieredConfig, ?dimensional_price_configuration: Orb::DimensionalPriceConfiguration?, - ?model_type: :bulk_bps + ?model_type: :tiered ) -> void def to_hash: -> { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - bulk_bps_config: Orb::BulkBPSConfig, - cadence: Orb::Models::Price::BulkBPS::cadence, + cadence: Orb::Models::Price::Tiered::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::BulkBPS::unnamed_type_withobject_parent90?, + conversion_rate_config: Orb::Models::Price::Tiered::unnamed_type_withobject_parent88?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1181,11 +691,12 @@ module Orb metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :bulk_bps, + model_type: :tiered, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::BulkBPS::price_type, + price_type: Orb::Models::Price::Tiered::price_type, replaces_price_id: String?, + tiered_config: Orb::TieredConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } @@ -1202,7 +713,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::BulkBPS::cadence] + def self?.values: -> ::Array[Orb::Models::Price::Tiered::cadence] end type price_type = :usage_price | :fixed_price @@ -1213,7 +724,7 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::BulkBPS::price_type] + def self?.values: -> ::Array[Orb::Models::Price::Tiered::price_type] end end @@ -1224,8 +735,9 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, bulk_config: Orb::BulkConfig, cadence: Orb::Models::Price::Bulk::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Bulk::unnamed_type_withobject_parent91?, + conversion_rate_config: Orb::Models::Price::Bulk::unnamed_type_withobject_parent89?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1258,9 +770,11 @@ module Orb attr_accessor cadence: Orb::Models::Price::Bulk::cadence + attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? + attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::Bulk::unnamed_type_withobject_parent91? + attr_accessor conversion_rate_config: Orb::Models::Price::Bulk::unnamed_type_withobject_parent89? attr_accessor created_at: Time @@ -1306,8 +820,9 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, bulk_config: Orb::BulkConfig, cadence: Orb::Models::Price::Bulk::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Bulk::unnamed_type_withobject_parent91?, + conversion_rate_config: Orb::Models::Price::Bulk::unnamed_type_withobject_parent89?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1335,8 +850,9 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, bulk_config: Orb::BulkConfig, cadence: Orb::Models::Price::Bulk::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Bulk::unnamed_type_withobject_parent91?, + conversion_rate_config: Orb::Models::Price::Bulk::unnamed_type_withobject_parent89?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1392,8 +908,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::ThresholdTotalAmount::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ThresholdTotalAmount::unnamed_type_withobject_parent92?, + conversion_rate_config: Orb::Models::Price::ThresholdTotalAmount::unnamed_type_withobject_parent90?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1425,9 +942,11 @@ module Orb attr_accessor cadence: Orb::Models::Price::ThresholdTotalAmount::cadence + attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? + attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::ThresholdTotalAmount::unnamed_type_withobject_parent92? + attr_accessor conversion_rate_config: Orb::Models::Price::ThresholdTotalAmount::unnamed_type_withobject_parent90? attr_accessor created_at: Time @@ -1474,8 +993,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::ThresholdTotalAmount::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ThresholdTotalAmount::unnamed_type_withobject_parent92?, + conversion_rate_config: Orb::Models::Price::ThresholdTotalAmount::unnamed_type_withobject_parent90?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1503,8 +1023,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::ThresholdTotalAmount::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ThresholdTotalAmount::unnamed_type_withobject_parent92?, + conversion_rate_config: Orb::Models::Price::ThresholdTotalAmount::unnamed_type_withobject_parent90?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1561,8 +1082,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::TieredPackage::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredPackage::unnamed_type_withobject_parent93?, + conversion_rate_config: Orb::Models::Price::TieredPackage::unnamed_type_withobject_parent91?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1594,9 +1116,11 @@ module Orb attr_accessor cadence: Orb::Models::Price::TieredPackage::cadence + attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? + attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::TieredPackage::unnamed_type_withobject_parent93? + attr_accessor conversion_rate_config: Orb::Models::Price::TieredPackage::unnamed_type_withobject_parent91? attr_accessor created_at: Time @@ -1643,8 +1167,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::TieredPackage::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredPackage::unnamed_type_withobject_parent93?, + conversion_rate_config: Orb::Models::Price::TieredPackage::unnamed_type_withobject_parent91?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1672,8 +1197,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::TieredPackage::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredPackage::unnamed_type_withobject_parent93?, + conversion_rate_config: Orb::Models::Price::TieredPackage::unnamed_type_withobject_parent91?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1730,8 +1256,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedTiered::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedTiered::unnamed_type_withobject_parent94?, + conversion_rate_config: Orb::Models::Price::GroupedTiered::unnamed_type_withobject_parent92?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1763,9 +1290,11 @@ module Orb attr_accessor cadence: Orb::Models::Price::GroupedTiered::cadence + attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? + attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::GroupedTiered::unnamed_type_withobject_parent94? + attr_accessor conversion_rate_config: Orb::Models::Price::GroupedTiered::unnamed_type_withobject_parent92? attr_accessor created_at: Time @@ -1812,8 +1341,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedTiered::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedTiered::unnamed_type_withobject_parent94?, + conversion_rate_config: Orb::Models::Price::GroupedTiered::unnamed_type_withobject_parent92?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1841,8 +1371,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedTiered::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedTiered::unnamed_type_withobject_parent94?, + conversion_rate_config: Orb::Models::Price::GroupedTiered::unnamed_type_withobject_parent92?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1899,8 +1430,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::TieredWithMinimum::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredWithMinimum::unnamed_type_withobject_parent95?, + conversion_rate_config: Orb::Models::Price::TieredWithMinimum::unnamed_type_withobject_parent93?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1932,9 +1464,11 @@ module Orb attr_accessor cadence: Orb::Models::Price::TieredWithMinimum::cadence + attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? + attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::TieredWithMinimum::unnamed_type_withobject_parent95? + attr_accessor conversion_rate_config: Orb::Models::Price::TieredWithMinimum::unnamed_type_withobject_parent93? attr_accessor created_at: Time @@ -1981,8 +1515,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::TieredWithMinimum::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredWithMinimum::unnamed_type_withobject_parent95?, + conversion_rate_config: Orb::Models::Price::TieredWithMinimum::unnamed_type_withobject_parent93?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2010,8 +1545,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::TieredWithMinimum::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredWithMinimum::unnamed_type_withobject_parent95?, + conversion_rate_config: Orb::Models::Price::TieredWithMinimum::unnamed_type_withobject_parent93?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2068,8 +1604,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::TieredPackageWithMinimum::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredPackageWithMinimum::unnamed_type_withobject_parent96?, + conversion_rate_config: Orb::Models::Price::TieredPackageWithMinimum::unnamed_type_withobject_parent94?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2101,9 +1638,11 @@ module Orb attr_accessor cadence: Orb::Models::Price::TieredPackageWithMinimum::cadence + attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? + attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::TieredPackageWithMinimum::unnamed_type_withobject_parent96? + attr_accessor conversion_rate_config: Orb::Models::Price::TieredPackageWithMinimum::unnamed_type_withobject_parent94? attr_accessor created_at: Time @@ -2150,8 +1689,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::TieredPackageWithMinimum::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredPackageWithMinimum::unnamed_type_withobject_parent96?, + conversion_rate_config: Orb::Models::Price::TieredPackageWithMinimum::unnamed_type_withobject_parent94?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2179,8 +1719,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::TieredPackageWithMinimum::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredPackageWithMinimum::unnamed_type_withobject_parent96?, + conversion_rate_config: Orb::Models::Price::TieredPackageWithMinimum::unnamed_type_withobject_parent94?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2237,8 +1778,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::PackageWithAllocation::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::PackageWithAllocation::unnamed_type_withobject_parent97?, + conversion_rate_config: Orb::Models::Price::PackageWithAllocation::unnamed_type_withobject_parent95?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2270,9 +1812,11 @@ module Orb attr_accessor cadence: Orb::Models::Price::PackageWithAllocation::cadence + attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? + attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::PackageWithAllocation::unnamed_type_withobject_parent97? + attr_accessor conversion_rate_config: Orb::Models::Price::PackageWithAllocation::unnamed_type_withobject_parent95? attr_accessor created_at: Time @@ -2319,8 +1863,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::PackageWithAllocation::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::PackageWithAllocation::unnamed_type_withobject_parent97?, + conversion_rate_config: Orb::Models::Price::PackageWithAllocation::unnamed_type_withobject_parent95?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2348,8 +1893,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::PackageWithAllocation::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::PackageWithAllocation::unnamed_type_withobject_parent97?, + conversion_rate_config: Orb::Models::Price::PackageWithAllocation::unnamed_type_withobject_parent95?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2406,8 +1952,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::UnitWithPercent::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::UnitWithPercent::unnamed_type_withobject_parent98?, + conversion_rate_config: Orb::Models::Price::UnitWithPercent::unnamed_type_withobject_parent96?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2439,9 +1986,11 @@ module Orb attr_accessor cadence: Orb::Models::Price::UnitWithPercent::cadence + attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? + attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::UnitWithPercent::unnamed_type_withobject_parent98? + attr_accessor conversion_rate_config: Orb::Models::Price::UnitWithPercent::unnamed_type_withobject_parent96? attr_accessor created_at: Time @@ -2488,8 +2037,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::UnitWithPercent::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::UnitWithPercent::unnamed_type_withobject_parent98?, + conversion_rate_config: Orb::Models::Price::UnitWithPercent::unnamed_type_withobject_parent96?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2517,8 +2067,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::UnitWithPercent::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::UnitWithPercent::unnamed_type_withobject_parent98?, + conversion_rate_config: Orb::Models::Price::UnitWithPercent::unnamed_type_withobject_parent96?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2575,8 +2126,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::MatrixWithAllocation::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MatrixWithAllocation::unnamed_type_withobject_parent99?, + conversion_rate_config: Orb::Models::Price::MatrixWithAllocation::unnamed_type_withobject_parent97?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2608,9 +2160,11 @@ module Orb attr_accessor cadence: Orb::Models::Price::MatrixWithAllocation::cadence + attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? + attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::MatrixWithAllocation::unnamed_type_withobject_parent99? + attr_accessor conversion_rate_config: Orb::Models::Price::MatrixWithAllocation::unnamed_type_withobject_parent97? attr_accessor created_at: Time @@ -2657,8 +2211,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::MatrixWithAllocation::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MatrixWithAllocation::unnamed_type_withobject_parent99?, + conversion_rate_config: Orb::Models::Price::MatrixWithAllocation::unnamed_type_withobject_parent97?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2686,8 +2241,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::MatrixWithAllocation::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MatrixWithAllocation::unnamed_type_withobject_parent99?, + conversion_rate_config: Orb::Models::Price::MatrixWithAllocation::unnamed_type_withobject_parent97?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2744,8 +2300,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::TieredWithProration::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredWithProration::unnamed_type_withobject_parent100?, + conversion_rate_config: Orb::Models::Price::TieredWithProration::unnamed_type_withobject_parent98?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2777,9 +2334,11 @@ module Orb attr_accessor cadence: Orb::Models::Price::TieredWithProration::cadence + attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? + attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::TieredWithProration::unnamed_type_withobject_parent100? + attr_accessor conversion_rate_config: Orb::Models::Price::TieredWithProration::unnamed_type_withobject_parent98? attr_accessor created_at: Time @@ -2826,8 +2385,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::TieredWithProration::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredWithProration::unnamed_type_withobject_parent100?, + conversion_rate_config: Orb::Models::Price::TieredWithProration::unnamed_type_withobject_parent98?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2855,8 +2415,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::TieredWithProration::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredWithProration::unnamed_type_withobject_parent100?, + conversion_rate_config: Orb::Models::Price::TieredWithProration::unnamed_type_withobject_parent98?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2913,8 +2474,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::UnitWithProration::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::UnitWithProration::unnamed_type_withobject_parent101?, + conversion_rate_config: Orb::Models::Price::UnitWithProration::unnamed_type_withobject_parent99?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2946,9 +2508,11 @@ module Orb attr_accessor cadence: Orb::Models::Price::UnitWithProration::cadence + attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? + attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::UnitWithProration::unnamed_type_withobject_parent101? + attr_accessor conversion_rate_config: Orb::Models::Price::UnitWithProration::unnamed_type_withobject_parent99? attr_accessor created_at: Time @@ -2995,8 +2559,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::UnitWithProration::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::UnitWithProration::unnamed_type_withobject_parent101?, + conversion_rate_config: Orb::Models::Price::UnitWithProration::unnamed_type_withobject_parent99?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3024,8 +2589,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::UnitWithProration::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::UnitWithProration::unnamed_type_withobject_parent101?, + conversion_rate_config: Orb::Models::Price::UnitWithProration::unnamed_type_withobject_parent99?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3082,8 +2648,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedAllocation::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedAllocation::unnamed_type_withobject_parent102?, + conversion_rate_config: Orb::Models::Price::GroupedAllocation::unnamed_type_withobject_parent100?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3115,9 +2682,11 @@ module Orb attr_accessor cadence: Orb::Models::Price::GroupedAllocation::cadence + attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? + attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::GroupedAllocation::unnamed_type_withobject_parent102? + attr_accessor conversion_rate_config: Orb::Models::Price::GroupedAllocation::unnamed_type_withobject_parent100? attr_accessor created_at: Time @@ -3164,8 +2733,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedAllocation::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedAllocation::unnamed_type_withobject_parent102?, + conversion_rate_config: Orb::Models::Price::GroupedAllocation::unnamed_type_withobject_parent100?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3193,8 +2763,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedAllocation::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedAllocation::unnamed_type_withobject_parent102?, + conversion_rate_config: Orb::Models::Price::GroupedAllocation::unnamed_type_withobject_parent100?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3251,8 +2822,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedWithProratedMinimum::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::unnamed_type_withobject_parent103?, + conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::unnamed_type_withobject_parent101?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3284,9 +2856,11 @@ module Orb attr_accessor cadence: Orb::Models::Price::GroupedWithProratedMinimum::cadence + attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? + attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::unnamed_type_withobject_parent103? + attr_accessor conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::unnamed_type_withobject_parent101? attr_accessor created_at: Time @@ -3333,8 +2907,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedWithProratedMinimum::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::unnamed_type_withobject_parent103?, + conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::unnamed_type_withobject_parent101?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3362,8 +2937,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedWithProratedMinimum::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::unnamed_type_withobject_parent103?, + conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::unnamed_type_withobject_parent101?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3420,8 +2996,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedWithMeteredMinimum::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::unnamed_type_withobject_parent104?, + conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::unnamed_type_withobject_parent102?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3453,9 +3030,11 @@ module Orb attr_accessor cadence: Orb::Models::Price::GroupedWithMeteredMinimum::cadence + attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? + attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::unnamed_type_withobject_parent104? + attr_accessor conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::unnamed_type_withobject_parent102? attr_accessor created_at: Time @@ -3502,8 +3081,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedWithMeteredMinimum::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::unnamed_type_withobject_parent104?, + conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::unnamed_type_withobject_parent102?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3531,8 +3111,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedWithMeteredMinimum::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::unnamed_type_withobject_parent104?, + conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::unnamed_type_withobject_parent102?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3589,8 +3170,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::MatrixWithDisplayName::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::unnamed_type_withobject_parent105?, + conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::unnamed_type_withobject_parent103?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3622,9 +3204,11 @@ module Orb attr_accessor cadence: Orb::Models::Price::MatrixWithDisplayName::cadence + attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? + attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::unnamed_type_withobject_parent105? + attr_accessor conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::unnamed_type_withobject_parent103? attr_accessor created_at: Time @@ -3671,8 +3255,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::MatrixWithDisplayName::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::unnamed_type_withobject_parent105?, + conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::unnamed_type_withobject_parent103?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3700,8 +3285,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::MatrixWithDisplayName::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::unnamed_type_withobject_parent105?, + conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::unnamed_type_withobject_parent103?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3759,8 +3345,9 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, bulk_with_proration_config: ::Hash[Symbol, top], cadence: Orb::Models::Price::BulkWithProration::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::BulkWithProration::unnamed_type_withobject_parent106?, + conversion_rate_config: Orb::Models::Price::BulkWithProration::unnamed_type_withobject_parent104?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3793,9 +3380,11 @@ module Orb attr_accessor cadence: Orb::Models::Price::BulkWithProration::cadence + attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? + attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::BulkWithProration::unnamed_type_withobject_parent106? + attr_accessor conversion_rate_config: Orb::Models::Price::BulkWithProration::unnamed_type_withobject_parent104? attr_accessor created_at: Time @@ -3841,8 +3430,9 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, bulk_with_proration_config: ::Hash[Symbol, top], cadence: Orb::Models::Price::BulkWithProration::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::BulkWithProration::unnamed_type_withobject_parent106?, + conversion_rate_config: Orb::Models::Price::BulkWithProration::unnamed_type_withobject_parent104?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3870,8 +3460,9 @@ module Orb billing_cycle_configuration: Orb::BillingCycleConfiguration, bulk_with_proration_config: ::Hash[Symbol, top], cadence: Orb::Models::Price::BulkWithProration::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::BulkWithProration::unnamed_type_withobject_parent106?, + conversion_rate_config: Orb::Models::Price::BulkWithProration::unnamed_type_withobject_parent104?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3927,8 +3518,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedTieredPackage::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::unnamed_type_withobject_parent107?, + conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::unnamed_type_withobject_parent105?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3960,9 +3552,11 @@ module Orb attr_accessor cadence: Orb::Models::Price::GroupedTieredPackage::cadence + attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? + attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::unnamed_type_withobject_parent107? + attr_accessor conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::unnamed_type_withobject_parent105? attr_accessor created_at: Time @@ -4009,8 +3603,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedTieredPackage::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::unnamed_type_withobject_parent107?, + conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::unnamed_type_withobject_parent105?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4038,8 +3633,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedTieredPackage::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::unnamed_type_withobject_parent107?, + conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::unnamed_type_withobject_parent105?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4096,8 +3692,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::MaxGroupTieredPackage::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::unnamed_type_withobject_parent108?, + conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::unnamed_type_withobject_parent106?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4129,9 +3726,11 @@ module Orb attr_accessor cadence: Orb::Models::Price::MaxGroupTieredPackage::cadence + attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? + attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::unnamed_type_withobject_parent108? + attr_accessor conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::unnamed_type_withobject_parent106? attr_accessor created_at: Time @@ -4178,8 +3777,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::MaxGroupTieredPackage::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::unnamed_type_withobject_parent108?, + conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::unnamed_type_withobject_parent106?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4207,8 +3807,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::MaxGroupTieredPackage::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::unnamed_type_withobject_parent108?, + conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::unnamed_type_withobject_parent106?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4265,8 +3866,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::unnamed_type_withobject_parent109?, + conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::unnamed_type_withobject_parent107?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4298,9 +3900,11 @@ module Orb attr_accessor cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::cadence + attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? + attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::unnamed_type_withobject_parent109? + attr_accessor conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::unnamed_type_withobject_parent107? attr_accessor created_at: Time @@ -4347,8 +3951,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::unnamed_type_withobject_parent109?, + conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::unnamed_type_withobject_parent107?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4376,8 +3981,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::unnamed_type_withobject_parent109?, + conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::unnamed_type_withobject_parent107?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4434,8 +4040,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::unnamed_type_withobject_parent110?, + conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::unnamed_type_withobject_parent108?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4467,9 +4074,11 @@ module Orb attr_accessor cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::cadence + attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? + attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::unnamed_type_withobject_parent110? + attr_accessor conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::unnamed_type_withobject_parent108? attr_accessor created_at: Time @@ -4516,8 +4125,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::unnamed_type_withobject_parent110?, + conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::unnamed_type_withobject_parent108?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4545,8 +4155,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::unnamed_type_withobject_parent110?, + conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::unnamed_type_withobject_parent108?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4603,8 +4214,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::CumulativeGroupedBulk::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::unnamed_type_withobject_parent111?, + conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::unnamed_type_withobject_parent109?, created_at: Time, credit_allocation: Orb::Allocation?, cumulative_grouped_bulk_config: ::Hash[Symbol, top], @@ -4636,9 +4248,11 @@ module Orb attr_accessor cadence: Orb::Models::Price::CumulativeGroupedBulk::cadence + attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? + attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::unnamed_type_withobject_parent111? + attr_accessor conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::unnamed_type_withobject_parent109? attr_accessor created_at: Time @@ -4685,8 +4299,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::CumulativeGroupedBulk::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::unnamed_type_withobject_parent111?, + conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::unnamed_type_withobject_parent109?, created_at: Time, credit_allocation: Orb::Allocation?, cumulative_grouped_bulk_config: ::Hash[Symbol, top], @@ -4714,8 +4329,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::CumulativeGroupedBulk::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::unnamed_type_withobject_parent111?, + conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::unnamed_type_withobject_parent109?, created_at: Time, credit_allocation: Orb::Allocation?, cumulative_grouped_bulk_config: ::Hash[Symbol, top], @@ -4772,8 +4388,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedWithMinMaxThresholds::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent112?, + conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent110?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4805,9 +4422,11 @@ module Orb attr_accessor cadence: Orb::Models::Price::GroupedWithMinMaxThresholds::cadence + attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? + attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent112? + attr_accessor conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent110? attr_accessor created_at: Time @@ -4854,8 +4473,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedWithMinMaxThresholds::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent112?, + conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent110?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4883,8 +4503,9 @@ module Orb billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Models::Price::GroupedWithMinMaxThresholds::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent112?, + conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent110?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4935,6 +4556,192 @@ module Orb end end + type minimum = + { + id: String, + billable_metric: Orb::BillableMetricTiny?, + billing_cycle_configuration: Orb::BillingCycleConfiguration, + cadence: Orb::Models::Price::Minimum::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::Price::Minimum::unnamed_type_withobject_parent111?, + created_at: Time, + credit_allocation: Orb::Allocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, + item: Orb::ItemSlim, + maximum: Orb::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Minimum?, + minimum_amount: String?, + minimum_config: Orb::Price::Minimum::MinimumConfig, + model_type: :minimum, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::Minimum::price_type, + replaces_price_id: String?, + dimensional_price_configuration: Orb::DimensionalPriceConfiguration? + } + + class Minimum < Orb::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor billable_metric: Orb::BillableMetricTiny? + + attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration + + attr_accessor cadence: Orb::Models::Price::Minimum::cadence + + attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::Price::Minimum::unnamed_type_withobject_parent111? + + attr_accessor created_at: Time + + attr_accessor credit_allocation: Orb::Allocation? + + attr_accessor currency: String + + attr_accessor discount: Orb::Models::discount? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoicing_cycle_configuration: Orb::BillingCycleConfiguration? + + attr_accessor item: Orb::ItemSlim + + attr_accessor maximum: Orb::Maximum? + + attr_accessor maximum_amount: String? + + attr_accessor metadata: ::Hash[Symbol, String] + + attr_accessor minimum: Orb::Minimum? + + attr_accessor minimum_amount: String? + + attr_accessor minimum_config: Orb::Price::Minimum::MinimumConfig + + attr_accessor model_type: :minimum + + attr_accessor name: String + + attr_accessor plan_phase_order: Integer? + + attr_accessor price_type: Orb::Models::Price::Minimum::price_type + + attr_accessor replaces_price_id: String? + + attr_accessor dimensional_price_configuration: Orb::DimensionalPriceConfiguration? + + def initialize: ( + id: String, + billable_metric: Orb::BillableMetricTiny?, + billing_cycle_configuration: Orb::BillingCycleConfiguration, + cadence: Orb::Models::Price::Minimum::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::Price::Minimum::unnamed_type_withobject_parent111?, + created_at: Time, + credit_allocation: Orb::Allocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, + item: Orb::ItemSlim, + maximum: Orb::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Minimum?, + minimum_amount: String?, + minimum_config: Orb::Price::Minimum::MinimumConfig, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::Minimum::price_type, + replaces_price_id: String?, + ?dimensional_price_configuration: Orb::DimensionalPriceConfiguration?, + ?model_type: :minimum + ) -> void + + def to_hash: -> { + id: String, + billable_metric: Orb::BillableMetricTiny?, + billing_cycle_configuration: Orb::BillingCycleConfiguration, + cadence: Orb::Models::Price::Minimum::cadence, + composite_price_filters: ::Array[Orb::TransformPriceFilter]?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::Price::Minimum::unnamed_type_withobject_parent111?, + created_at: Time, + credit_allocation: Orb::Allocation?, + currency: String, + discount: Orb::Models::discount?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, + item: Orb::ItemSlim, + maximum: Orb::Maximum?, + maximum_amount: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Minimum?, + minimum_amount: String?, + minimum_config: Orb::Price::Minimum::MinimumConfig, + model_type: :minimum, + name: String, + plan_phase_order: Integer?, + price_type: Orb::Models::Price::Minimum::price_type, + replaces_price_id: String?, + dimensional_price_configuration: Orb::DimensionalPriceConfiguration? + } + + type cadence = + :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ONE_TIME: :one_time + MONTHLY: :monthly + QUARTERLY: :quarterly + SEMI_ANNUAL: :semi_annual + ANNUAL: :annual + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::Price::Minimum::cadence] + end + + type minimum_config = { minimum_amount: String, prorated: bool? } + + class MinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor minimum_amount: String + + attr_accessor prorated: bool? + + def initialize: (minimum_amount: String, ?prorated: bool?) -> void + + def to_hash: -> { minimum_amount: String, prorated: bool? } + end + + type price_type = :usage_price | :fixed_price + + module PriceType + extend Orb::Internal::Type::Enum + + USAGE_PRICE: :usage_price + FIXED_PRICE: :fixed_price + + def self?.values: -> ::Array[Orb::Models::Price::Minimum::price_type] + end + end + def self?.variants: -> ::Array[Orb::Models::price] end end diff --git a/sig/orb/models/price_create_params.rbs b/sig/orb/models/price_create_params.rbs index 702c700d..c1db7f0a 100644 --- a/sig/orb/models/price_create_params.rbs +++ b/sig/orb/models/price_create_params.rbs @@ -23,9 +23,6 @@ module Orb matrix_config: Orb::MatrixConfig, matrix_with_allocation_config: Orb::MatrixWithAllocationConfig, tiered_config: Orb::TieredConfig, - tiered_bps_config: Orb::TieredBPSConfig, - bps_config: Orb::BPSConfig, - bulk_bps_config: Orb::BulkBPSConfig, bulk_config: Orb::BulkConfig, threshold_total_amount_config: ::Hash[Symbol, top], tiered_package_config: ::Hash[Symbol, top], @@ -45,7 +42,9 @@ module Orb grouped_tiered_package_config: ::Hash[Symbol, top], scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], - cumulative_grouped_bulk_config: ::Hash[Symbol, top] + cumulative_grouped_bulk_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + minimum_config: Orb::PriceCreateParams::MinimumConfig } & Orb::Internal::Type::request_parameters @@ -95,12 +94,6 @@ module Orb attr_accessor tiered_config: Orb::TieredConfig - attr_accessor tiered_bps_config: Orb::TieredBPSConfig - - attr_accessor bps_config: Orb::BPSConfig - - attr_accessor bulk_bps_config: Orb::BulkBPSConfig - attr_accessor bulk_config: Orb::BulkConfig attr_accessor threshold_total_amount_config: ::Hash[Symbol, top] @@ -141,6 +134,10 @@ module Orb attr_accessor cumulative_grouped_bulk_config: ::Hash[Symbol, top] + attr_accessor grouped_with_min_max_thresholds_config: ::Hash[Symbol, top] + + attr_accessor minimum_config: Orb::PriceCreateParams::MinimumConfig + def initialize: ( cadence: Orb::Models::PriceCreateParams::cadence, currency: String, @@ -152,9 +149,6 @@ module Orb matrix_config: Orb::MatrixConfig, matrix_with_allocation_config: Orb::MatrixWithAllocationConfig, tiered_config: Orb::TieredConfig, - tiered_bps_config: Orb::TieredBPSConfig, - bps_config: Orb::BPSConfig, - bulk_bps_config: Orb::BulkBPSConfig, bulk_config: Orb::BulkConfig, threshold_total_amount_config: ::Hash[Symbol, top], tiered_package_config: ::Hash[Symbol, top], @@ -175,6 +169,8 @@ module Orb scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], cumulative_grouped_bulk_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + minimum_config: Orb::PriceCreateParams::MinimumConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -211,9 +207,6 @@ module Orb matrix_config: Orb::MatrixConfig, matrix_with_allocation_config: Orb::MatrixWithAllocationConfig, tiered_config: Orb::TieredConfig, - tiered_bps_config: Orb::TieredBPSConfig, - bps_config: Orb::BPSConfig, - bulk_bps_config: Orb::BulkBPSConfig, bulk_config: Orb::BulkConfig, threshold_total_amount_config: ::Hash[Symbol, top], tiered_package_config: ::Hash[Symbol, top], @@ -234,6 +227,8 @@ module Orb scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], cumulative_grouped_bulk_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + minimum_config: Orb::PriceCreateParams::MinimumConfig, request_options: Orb::RequestOptions } @@ -253,15 +248,27 @@ module Orb def self?.values: -> ::Array[Orb::Models::PriceCreateParams::cadence] end - type model_type = :cumulative_grouped_bulk + type model_type = :minimum module ModelType extend Orb::Internal::Type::Enum - CUMULATIVE_GROUPED_BULK: :cumulative_grouped_bulk + MINIMUM: :minimum def self?.values: -> ::Array[Orb::Models::PriceCreateParams::model_type] end + + type minimum_config = { minimum_amount: String, prorated: bool? } + + class MinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor minimum_amount: String + + attr_accessor prorated: bool? + + def initialize: (minimum_amount: String, ?prorated: bool?) -> void + + def to_hash: -> { minimum_amount: String, prorated: bool? } + end end end end diff --git a/sig/orb/models/price_evaluate_multiple_params.rbs b/sig/orb/models/price_evaluate_multiple_params.rbs index 5db2f9eb..7714e4eb 100644 --- a/sig/orb/models/price_evaluate_multiple_params.rbs +++ b/sig/orb/models/price_evaluate_multiple_params.rbs @@ -90,9 +90,6 @@ module Orb | Orb::NewFloatingMatrixPrice | Orb::NewFloatingMatrixWithAllocationPrice | Orb::NewFloatingTieredPrice - | Orb::NewFloatingTieredBPSPrice - | Orb::NewFloatingBPSPrice - | Orb::NewFloatingBulkBPSPrice | Orb::NewFloatingBulkPrice | Orb::NewFloatingThresholdTotalAmountPrice | Orb::NewFloatingTieredPackagePrice @@ -113,10 +110,260 @@ module Orb | Orb::NewFloatingScalableMatrixWithUnitPricingPrice | Orb::NewFloatingScalableMatrixWithTieredPricingPrice | Orb::NewFloatingCumulativeGroupedBulkPrice + | Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds + | Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum module Price extend Orb::Internal::Type::Union + type grouped_with_min_max_thresholds = + { + cadence: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::cadence, + currency: String, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + model_type: :grouped_with_min_max_thresholds, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent112?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]? + } + + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::cadence + + attr_accessor currency: String + + attr_accessor grouped_with_min_max_thresholds_config: ::Hash[Symbol, top] + + attr_accessor item_id: String + + attr_accessor model_type: :grouped_with_min_max_thresholds + + attr_accessor name: String + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent112? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + def initialize: ( + cadence: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::cadence, + currency: String, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent112?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :grouped_with_min_max_thresholds + ) -> void + + def to_hash: -> { + cadence: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::cadence, + currency: String, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + model_type: :grouped_with_min_max_thresholds, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent112?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]? + } + + type cadence = + :annual + | :semi_annual + | :monthly + | :quarterly + | :one_time + | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::cadence] + end + end + + type minimum = + { + cadence: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::cadence, + currency: String, + item_id: String, + minimum_config: Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::MinimumConfig, + model_type: :minimum, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::unnamed_type_withobject_parent113?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]? + } + + class Minimum < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::cadence + + attr_accessor currency: String + + attr_accessor item_id: String + + attr_accessor minimum_config: Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::MinimumConfig + + attr_accessor model_type: :minimum + + attr_accessor name: String + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::unnamed_type_withobject_parent113? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + def initialize: ( + cadence: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::cadence, + currency: String, + item_id: String, + minimum_config: Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::MinimumConfig, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::unnamed_type_withobject_parent113?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :minimum + ) -> void + + def to_hash: -> { + cadence: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::cadence, + currency: String, + item_id: String, + minimum_config: Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::MinimumConfig, + model_type: :minimum, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::unnamed_type_withobject_parent113?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]? + } + + type cadence = + :annual + | :semi_annual + | :monthly + | :quarterly + | :one_time + | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::cadence] + end + + type minimum_config = { minimum_amount: String, prorated: bool? } + + class MinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor minimum_amount: String + + attr_accessor prorated: bool? + + def initialize: (minimum_amount: String, ?prorated: bool?) -> void + + def to_hash: -> { minimum_amount: String, prorated: bool? } + end + end + def self?.variants: -> ::Array[Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::price] end end diff --git a/sig/orb/models/price_evaluate_preview_events_params.rbs b/sig/orb/models/price_evaluate_preview_events_params.rbs index f09395bb..120054eb 100644 --- a/sig/orb/models/price_evaluate_preview_events_params.rbs +++ b/sig/orb/models/price_evaluate_preview_events_params.rbs @@ -136,9 +136,6 @@ module Orb | Orb::NewFloatingMatrixPrice | Orb::NewFloatingMatrixWithAllocationPrice | Orb::NewFloatingTieredPrice - | Orb::NewFloatingTieredBPSPrice - | Orb::NewFloatingBPSPrice - | Orb::NewFloatingBulkBPSPrice | Orb::NewFloatingBulkPrice | Orb::NewFloatingThresholdTotalAmountPrice | Orb::NewFloatingTieredPackagePrice @@ -159,10 +156,260 @@ module Orb | Orb::NewFloatingScalableMatrixWithUnitPricingPrice | Orb::NewFloatingScalableMatrixWithTieredPricingPrice | Orb::NewFloatingCumulativeGroupedBulkPrice + | Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds + | Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum module Price extend Orb::Internal::Type::Union + type grouped_with_min_max_thresholds = + { + cadence: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::cadence, + currency: String, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + model_type: :grouped_with_min_max_thresholds, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent114?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]? + } + + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::cadence + + attr_accessor currency: String + + attr_accessor grouped_with_min_max_thresholds_config: ::Hash[Symbol, top] + + attr_accessor item_id: String + + attr_accessor model_type: :grouped_with_min_max_thresholds + + attr_accessor name: String + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent114? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + def initialize: ( + cadence: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::cadence, + currency: String, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent114?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :grouped_with_min_max_thresholds + ) -> void + + def to_hash: -> { + cadence: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::cadence, + currency: String, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + model_type: :grouped_with_min_max_thresholds, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent114?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]? + } + + type cadence = + :annual + | :semi_annual + | :monthly + | :quarterly + | :one_time + | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::cadence] + end + end + + type minimum = + { + cadence: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::cadence, + currency: String, + item_id: String, + minimum_config: Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::MinimumConfig, + model_type: :minimum, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::unnamed_type_withobject_parent115?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]? + } + + class Minimum < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::cadence + + attr_accessor currency: String + + attr_accessor item_id: String + + attr_accessor minimum_config: Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::MinimumConfig + + attr_accessor model_type: :minimum + + attr_accessor name: String + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::unnamed_type_withobject_parent115? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + def initialize: ( + cadence: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::cadence, + currency: String, + item_id: String, + minimum_config: Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::MinimumConfig, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::unnamed_type_withobject_parent115?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :minimum + ) -> void + + def to_hash: -> { + cadence: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::cadence, + currency: String, + item_id: String, + minimum_config: Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::MinimumConfig, + model_type: :minimum, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::unnamed_type_withobject_parent115?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]? + } + + type cadence = + :annual + | :semi_annual + | :monthly + | :quarterly + | :one_time + | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::cadence] + end + + type minimum_config = { minimum_amount: String, prorated: bool? } + + class MinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor minimum_amount: String + + attr_accessor prorated: bool? + + def initialize: (minimum_amount: String, ?prorated: bool?) -> void + + def to_hash: -> { minimum_amount: String, prorated: bool? } + end + end + def self?.variants: -> ::Array[Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::price] end end diff --git a/sig/orb/models/subscription_create_params.rbs b/sig/orb/models/subscription_create_params.rbs index 3e8d737c..0dabbc1d 100644 --- a/sig/orb/models/subscription_create_params.rbs +++ b/sig/orb/models/subscription_create_params.rbs @@ -295,9 +295,6 @@ module Orb | Orb::NewSubscriptionPackagePrice | Orb::NewSubscriptionMatrixPrice | Orb::NewSubscriptionTieredPrice - | Orb::NewSubscriptionTieredBPSPrice - | Orb::NewSubscriptionBPSPrice - | Orb::NewSubscriptionBulkBPSPrice | Orb::NewSubscriptionBulkPrice | Orb::NewSubscriptionThresholdTotalAmountPrice | Orb::NewSubscriptionTieredPackagePrice @@ -319,10 +316,270 @@ module Orb | Orb::NewSubscriptionMatrixWithAllocationPrice | Orb::NewSubscriptionTieredPackageWithMinimumPrice | Orb::NewSubscriptionGroupedTieredPrice + | Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds + | Orb::SubscriptionCreateParams::AddPrice::Price::Minimum module Price extend Orb::Internal::Type::Union + type grouped_with_min_max_thresholds = + { + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + model_type: :grouped_with_min_max_thresholds, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent116?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence + + attr_accessor grouped_with_min_max_thresholds_config: ::Hash[Symbol, top] + + attr_accessor item_id: String + + attr_accessor model_type: :grouped_with_min_max_thresholds + + attr_accessor name: String + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent116? + + attr_accessor currency: String? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + attr_accessor reference_id: String? + + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent116?, + ?currency: String?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_with_min_max_thresholds + ) -> void + + def to_hash: -> { + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + model_type: :grouped_with_min_max_thresholds, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent116?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + type cadence = + :annual + | :semi_annual + | :monthly + | :quarterly + | :one_time + | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence] + end + end + + type minimum = + { + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum::cadence, + item_id: String, + minimum_config: Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::MinimumConfig, + model_type: :minimum, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum::unnamed_type_withobject_parent117?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + class Minimum < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum::cadence + + attr_accessor item_id: String + + attr_accessor minimum_config: Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::MinimumConfig + + attr_accessor model_type: :minimum + + attr_accessor name: String + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum::unnamed_type_withobject_parent117? + + attr_accessor currency: String? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + attr_accessor reference_id: String? + + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum::cadence, + item_id: String, + minimum_config: Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::MinimumConfig, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum::unnamed_type_withobject_parent117?, + ?currency: String?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :minimum + ) -> void + + def to_hash: -> { + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum::cadence, + item_id: String, + minimum_config: Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::MinimumConfig, + model_type: :minimum, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum::unnamed_type_withobject_parent117?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + type cadence = + :annual + | :semi_annual + | :monthly + | :quarterly + | :one_time + | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum::cadence] + end + + type minimum_config = { minimum_amount: String, prorated: bool? } + + class MinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor minimum_amount: String + + attr_accessor prorated: bool? + + def initialize: (minimum_amount: String, ?prorated: bool?) -> void + + def to_hash: -> { minimum_amount: String, prorated: bool? } + end + end + def self?.variants: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::price] end end @@ -460,9 +717,6 @@ module Orb | Orb::NewSubscriptionPackagePrice | Orb::NewSubscriptionMatrixPrice | Orb::NewSubscriptionTieredPrice - | Orb::NewSubscriptionTieredBPSPrice - | Orb::NewSubscriptionBPSPrice - | Orb::NewSubscriptionBulkBPSPrice | Orb::NewSubscriptionBulkPrice | Orb::NewSubscriptionThresholdTotalAmountPrice | Orb::NewSubscriptionTieredPackagePrice @@ -484,10 +738,270 @@ module Orb | Orb::NewSubscriptionMatrixWithAllocationPrice | Orb::NewSubscriptionTieredPackageWithMinimumPrice | Orb::NewSubscriptionGroupedTieredPrice + | Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds + | Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum module Price extend Orb::Internal::Type::Union + type grouped_with_min_max_thresholds = + { + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + model_type: :grouped_with_min_max_thresholds, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent118?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence + + attr_accessor grouped_with_min_max_thresholds_config: ::Hash[Symbol, top] + + attr_accessor item_id: String + + attr_accessor model_type: :grouped_with_min_max_thresholds + + attr_accessor name: String + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent118? + + attr_accessor currency: String? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + attr_accessor reference_id: String? + + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent118?, + ?currency: String?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_with_min_max_thresholds + ) -> void + + def to_hash: -> { + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + model_type: :grouped_with_min_max_thresholds, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent118?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + type cadence = + :annual + | :semi_annual + | :monthly + | :quarterly + | :one_time + | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence] + end + end + + type minimum = + { + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum::cadence, + item_id: String, + minimum_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::MinimumConfig, + model_type: :minimum, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum::unnamed_type_withobject_parent119?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + class Minimum < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum::cadence + + attr_accessor item_id: String + + attr_accessor minimum_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::MinimumConfig + + attr_accessor model_type: :minimum + + attr_accessor name: String + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum::unnamed_type_withobject_parent119? + + attr_accessor currency: String? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + attr_accessor reference_id: String? + + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum::cadence, + item_id: String, + minimum_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::MinimumConfig, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum::unnamed_type_withobject_parent119?, + ?currency: String?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :minimum + ) -> void + + def to_hash: -> { + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum::cadence, + item_id: String, + minimum_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::MinimumConfig, + model_type: :minimum, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum::unnamed_type_withobject_parent119?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + type cadence = + :annual + | :semi_annual + | :monthly + | :quarterly + | :one_time + | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum::cadence] + end + + type minimum_config = { minimum_amount: String, prorated: bool? } + + class MinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor minimum_amount: String + + attr_accessor prorated: bool? + + def initialize: (minimum_amount: String, ?prorated: bool?) -> void + + def to_hash: -> { minimum_amount: String, prorated: bool? } + end + end + def self?.variants: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::price] end end diff --git a/sig/orb/models/subscription_price_intervals_params.rbs b/sig/orb/models/subscription_price_intervals_params.rbs index 5bdb95ec..8fc02ed3 100644 --- a/sig/orb/models/subscription_price_intervals_params.rbs +++ b/sig/orb/models/subscription_price_intervals_params.rbs @@ -224,9 +224,6 @@ module Orb | Orb::NewFloatingMatrixPrice | Orb::NewFloatingMatrixWithAllocationPrice | Orb::NewFloatingTieredPrice - | Orb::NewFloatingTieredBPSPrice - | Orb::NewFloatingBPSPrice - | Orb::NewFloatingBulkBPSPrice | Orb::NewFloatingBulkPrice | Orb::NewFloatingThresholdTotalAmountPrice | Orb::NewFloatingTieredPackagePrice @@ -247,40 +244,303 @@ module Orb | Orb::NewFloatingScalableMatrixWithUnitPricingPrice | Orb::NewFloatingScalableMatrixWithTieredPricingPrice | Orb::NewFloatingCumulativeGroupedBulkPrice + | Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds + | Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum module Price extend Orb::Internal::Type::Union + type grouped_with_min_max_thresholds = + { + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::cadence, + currency: String, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + model_type: :grouped_with_min_max_thresholds, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent120?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]? + } + + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::cadence + + attr_accessor currency: String + + attr_accessor grouped_with_min_max_thresholds_config: ::Hash[Symbol, top] + + attr_accessor item_id: String + + attr_accessor model_type: :grouped_with_min_max_thresholds + + attr_accessor name: String + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent120? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::cadence, + currency: String, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent120?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :grouped_with_min_max_thresholds + ) -> void + + def to_hash: -> { + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::cadence, + currency: String, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + model_type: :grouped_with_min_max_thresholds, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent120?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]? + } + + type cadence = + :annual + | :semi_annual + | :monthly + | :quarterly + | :one_time + | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::cadence] + end + end + + type minimum = + { + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum::cadence, + currency: String, + item_id: String, + minimum_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::MinimumConfig, + model_type: :minimum, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum::unnamed_type_withobject_parent121?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]? + } + + class Minimum < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum::cadence + + attr_accessor currency: String + + attr_accessor item_id: String + + attr_accessor minimum_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::MinimumConfig + + attr_accessor model_type: :minimum + + attr_accessor name: String + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum::unnamed_type_withobject_parent121? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + def initialize: ( + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum::cadence, + currency: String, + item_id: String, + minimum_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::MinimumConfig, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum::unnamed_type_withobject_parent121?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?model_type: :minimum + ) -> void + + def to_hash: -> { + cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum::cadence, + currency: String, + item_id: String, + minimum_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::MinimumConfig, + model_type: :minimum, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum::unnamed_type_withobject_parent121?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]? + } + + type cadence = + :annual + | :semi_annual + | :monthly + | :quarterly + | :one_time + | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum::cadence] + end + + type minimum_config = { minimum_amount: String, prorated: bool? } + + class MinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor minimum_amount: String + + attr_accessor prorated: bool? + + def initialize: (minimum_amount: String, ?prorated: bool?) -> void + + def to_hash: -> { minimum_amount: String, prorated: bool? } + end + end + def self?.variants: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::price] end end type add_adjustment = { - adjustment: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::adjustment, start_date: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::start_date, + adjustment: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::adjustment?, + adjustment_id: String?, end_date: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::end_date? } class AddAdjustment < Orb::Internal::Type::BaseModel - attr_accessor adjustment: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::adjustment - attr_accessor start_date: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::start_date + attr_accessor adjustment: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::adjustment? + + attr_accessor adjustment_id: String? + attr_accessor end_date: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::end_date? def initialize: ( - adjustment: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::adjustment, start_date: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::start_date, + ?adjustment: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::adjustment?, + ?adjustment_id: String?, ?end_date: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::end_date? ) -> void def to_hash: -> { - adjustment: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::adjustment, start_date: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::start_date, + adjustment: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::adjustment?, + adjustment_id: String?, end_date: Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::end_date? } + type start_date = Time | Orb::Models::billing_cycle_relative_date + + module StartDate + extend Orb::Internal::Type::Union + + def self?.variants: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::start_date] + end + type adjustment = Orb::NewPercentageDiscount | Orb::NewUsageDiscount @@ -294,14 +554,6 @@ module Orb def self?.variants: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::adjustment] end - type start_date = Time | Orb::Models::billing_cycle_relative_date - - module StartDate - extend Orb::Internal::Type::Union - - def self?.variants: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::AddAdjustment::start_date] - end - type end_date = Time | Orb::Models::billing_cycle_relative_date module EndDate diff --git a/sig/orb/models/subscription_schedule_plan_change_params.rbs b/sig/orb/models/subscription_schedule_plan_change_params.rbs index fc40d254..f4f18a2c 100644 --- a/sig/orb/models/subscription_schedule_plan_change_params.rbs +++ b/sig/orb/models/subscription_schedule_plan_change_params.rbs @@ -271,9 +271,6 @@ module Orb | Orb::NewSubscriptionPackagePrice | Orb::NewSubscriptionMatrixPrice | Orb::NewSubscriptionTieredPrice - | Orb::NewSubscriptionTieredBPSPrice - | Orb::NewSubscriptionBPSPrice - | Orb::NewSubscriptionBulkBPSPrice | Orb::NewSubscriptionBulkPrice | Orb::NewSubscriptionThresholdTotalAmountPrice | Orb::NewSubscriptionTieredPackagePrice @@ -295,10 +292,270 @@ module Orb | Orb::NewSubscriptionMatrixWithAllocationPrice | Orb::NewSubscriptionTieredPackageWithMinimumPrice | Orb::NewSubscriptionGroupedTieredPrice + | Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds + | Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum module Price extend Orb::Internal::Type::Union + type grouped_with_min_max_thresholds = + { + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + model_type: :grouped_with_min_max_thresholds, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent122?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence + + attr_accessor grouped_with_min_max_thresholds_config: ::Hash[Symbol, top] + + attr_accessor item_id: String + + attr_accessor model_type: :grouped_with_min_max_thresholds + + attr_accessor name: String + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent122? + + attr_accessor currency: String? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + attr_accessor reference_id: String? + + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent122?, + ?currency: String?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_with_min_max_thresholds + ) -> void + + def to_hash: -> { + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + model_type: :grouped_with_min_max_thresholds, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent122?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + type cadence = + :annual + | :semi_annual + | :monthly + | :quarterly + | :one_time + | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence] + end + end + + type minimum = + { + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::cadence, + item_id: String, + minimum_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::MinimumConfig, + model_type: :minimum, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::unnamed_type_withobject_parent123?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + class Minimum < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::cadence + + attr_accessor item_id: String + + attr_accessor minimum_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::MinimumConfig + + attr_accessor model_type: :minimum + + attr_accessor name: String + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::unnamed_type_withobject_parent123? + + attr_accessor currency: String? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + attr_accessor reference_id: String? + + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::cadence, + item_id: String, + minimum_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::MinimumConfig, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::unnamed_type_withobject_parent123?, + ?currency: String?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :minimum + ) -> void + + def to_hash: -> { + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::cadence, + item_id: String, + minimum_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::MinimumConfig, + model_type: :minimum, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::unnamed_type_withobject_parent123?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + type cadence = + :annual + | :semi_annual + | :monthly + | :quarterly + | :one_time + | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::cadence] + end + + type minimum_config = { minimum_amount: String, prorated: bool? } + + class MinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor minimum_amount: String + + attr_accessor prorated: bool? + + def initialize: (minimum_amount: String, ?prorated: bool?) -> void + + def to_hash: -> { minimum_amount: String, prorated: bool? } + end + end + def self?.variants: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::price] end end @@ -437,9 +694,6 @@ module Orb | Orb::NewSubscriptionPackagePrice | Orb::NewSubscriptionMatrixPrice | Orb::NewSubscriptionTieredPrice - | Orb::NewSubscriptionTieredBPSPrice - | Orb::NewSubscriptionBPSPrice - | Orb::NewSubscriptionBulkBPSPrice | Orb::NewSubscriptionBulkPrice | Orb::NewSubscriptionThresholdTotalAmountPrice | Orb::NewSubscriptionTieredPackagePrice @@ -461,10 +715,270 @@ module Orb | Orb::NewSubscriptionMatrixWithAllocationPrice | Orb::NewSubscriptionTieredPackageWithMinimumPrice | Orb::NewSubscriptionGroupedTieredPrice + | Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds + | Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum module Price extend Orb::Internal::Type::Union + type grouped_with_min_max_thresholds = + { + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + model_type: :grouped_with_min_max_thresholds, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent124?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence + + attr_accessor grouped_with_min_max_thresholds_config: ::Hash[Symbol, top] + + attr_accessor item_id: String + + attr_accessor model_type: :grouped_with_min_max_thresholds + + attr_accessor name: String + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent124? + + attr_accessor currency: String? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + attr_accessor reference_id: String? + + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent124?, + ?currency: String?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :grouped_with_min_max_thresholds + ) -> void + + def to_hash: -> { + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence, + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + item_id: String, + model_type: :grouped_with_min_max_thresholds, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent124?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + type cadence = + :annual + | :semi_annual + | :monthly + | :quarterly + | :one_time + | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence] + end + end + + type minimum = + { + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::cadence, + item_id: String, + minimum_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::MinimumConfig, + model_type: :minimum, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::unnamed_type_withobject_parent125?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + class Minimum < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::cadence + + attr_accessor item_id: String + + attr_accessor minimum_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::MinimumConfig + + attr_accessor model_type: :minimum + + attr_accessor name: String + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::unnamed_type_withobject_parent125? + + attr_accessor currency: String? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + attr_accessor reference_id: String? + + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::cadence, + item_id: String, + minimum_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::MinimumConfig, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::unnamed_type_withobject_parent125?, + ?currency: String?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :minimum + ) -> void + + def to_hash: -> { + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::cadence, + item_id: String, + minimum_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::MinimumConfig, + model_type: :minimum, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::unnamed_type_withobject_parent125?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + type cadence = + :annual + | :semi_annual + | :monthly + | :quarterly + | :one_time + | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::cadence] + end + + type minimum_config = { minimum_amount: String, prorated: bool? } + + class MinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor minimum_amount: String + + attr_accessor prorated: bool? + + def initialize: (minimum_amount: String, ?prorated: bool?) -> void + + def to_hash: -> { minimum_amount: String, prorated: bool? } + end + end + def self?.variants: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price] end end diff --git a/sig/orb/models/tiered_bps_config.rbs b/sig/orb/models/tiered_bps_config.rbs deleted file mode 100644 index 96559629..00000000 --- a/sig/orb/models/tiered_bps_config.rbs +++ /dev/null @@ -1,13 +0,0 @@ -module Orb - module Models - type tiered_bps_config = { tiers: ::Array[Orb::BPSTier] } - - class TieredBPSConfig < Orb::Internal::Type::BaseModel - attr_accessor tiers: ::Array[Orb::BPSTier] - - def initialize: (tiers: ::Array[Orb::BPSTier]) -> void - - def to_hash: -> { tiers: ::Array[Orb::BPSTier] } - end - end -end diff --git a/sig/orb/resources/customers.rbs b/sig/orb/resources/customers.rbs index 8a84dba4..cc3ace59 100644 --- a/sig/orb/resources/customers.rbs +++ b/sig/orb/resources/customers.rbs @@ -13,6 +13,7 @@ module Orb ?accounting_sync_configuration: Orb::NewAccountingSyncConfiguration?, ?additional_emails: ::Array[String]?, ?auto_collection: bool?, + ?auto_issuance: bool?, ?billing_address: Orb::AddressInput?, ?currency: String?, ?email_delivery: bool?, @@ -34,6 +35,7 @@ module Orb ?accounting_sync_configuration: Orb::NewAccountingSyncConfiguration?, ?additional_emails: ::Array[String]?, ?auto_collection: bool?, + ?auto_issuance: bool?, ?billing_address: Orb::AddressInput?, ?currency: String?, ?email: String?, @@ -91,6 +93,7 @@ module Orb ?accounting_sync_configuration: Orb::NewAccountingSyncConfiguration?, ?additional_emails: ::Array[String]?, ?auto_collection: bool?, + ?auto_issuance: bool?, ?billing_address: Orb::AddressInput?, ?currency: String?, ?email: String?, diff --git a/sig/orb/resources/invoices.rbs b/sig/orb/resources/invoices.rbs index 7b532f15..2a4188f1 100644 --- a/sig/orb/resources/invoices.rbs +++ b/sig/orb/resources/invoices.rbs @@ -7,6 +7,7 @@ module Orb line_items: ::Array[Orb::InvoiceCreateParams::LineItem], ?customer_id: String?, ?discount: Orb::Models::discount?, + ?due_date: Orb::Models::InvoiceCreateParams::due_date?, ?external_customer_id: String?, ?memo: String?, ?metadata: ::Hash[Symbol, String?]?, @@ -17,7 +18,9 @@ module Orb def update: ( String invoice_id, + ?due_date: Orb::Models::InvoiceUpdateParams::due_date?, ?metadata: ::Hash[Symbol, String?]?, + ?net_terms: Integer?, ?request_options: Orb::request_opts ) -> Orb::Invoice diff --git a/sig/orb/resources/prices.rbs b/sig/orb/resources/prices.rbs index 8d17fe4b..34d242a8 100644 --- a/sig/orb/resources/prices.rbs +++ b/sig/orb/resources/prices.rbs @@ -14,9 +14,6 @@ module Orb matrix_config: Orb::MatrixConfig, matrix_with_allocation_config: Orb::MatrixWithAllocationConfig, tiered_config: Orb::TieredConfig, - tiered_bps_config: Orb::TieredBPSConfig, - bps_config: Orb::BPSConfig, - bulk_bps_config: Orb::BulkBPSConfig, bulk_config: Orb::BulkConfig, threshold_total_amount_config: ::Hash[Symbol, top], tiered_package_config: ::Hash[Symbol, top], @@ -37,6 +34,8 @@ module Orb scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], cumulative_grouped_bulk_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + minimum_config: Orb::PriceCreateParams::MinimumConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, diff --git a/test/orb/resources/customers_test.rb b/test/orb/resources/customers_test.rb index 942419a6..4006e6a2 100644 --- a/test/orb/resources/customers_test.rb +++ b/test/orb/resources/customers_test.rb @@ -15,6 +15,7 @@ def test_create_required_params id: String, additional_emails: ^(Orb::Internal::Type::ArrayOf[String]), auto_collection: Orb::Internal::Type::Boolean, + auto_issuance: Orb::Internal::Type::Boolean | nil, balance: String, billing_address: Orb::Address | nil, created_at: Time, @@ -50,6 +51,7 @@ def test_update id: String, additional_emails: ^(Orb::Internal::Type::ArrayOf[String]), auto_collection: Orb::Internal::Type::Boolean, + auto_issuance: Orb::Internal::Type::Boolean | nil, balance: String, billing_address: Orb::Address | nil, created_at: Time, @@ -92,6 +94,7 @@ def test_list id: String, additional_emails: ^(Orb::Internal::Type::ArrayOf[String]), auto_collection: Orb::Internal::Type::Boolean, + auto_issuance: Orb::Internal::Type::Boolean | nil, balance: String, billing_address: Orb::Address | nil, created_at: Time, @@ -135,6 +138,7 @@ def test_fetch id: String, additional_emails: ^(Orb::Internal::Type::ArrayOf[String]), auto_collection: Orb::Internal::Type::Boolean, + auto_issuance: Orb::Internal::Type::Boolean | nil, balance: String, billing_address: Orb::Address | nil, created_at: Time, @@ -170,6 +174,7 @@ def test_fetch_by_external_id id: String, additional_emails: ^(Orb::Internal::Type::ArrayOf[String]), auto_collection: Orb::Internal::Type::Boolean, + auto_issuance: Orb::Internal::Type::Boolean | nil, balance: String, billing_address: Orb::Address | nil, created_at: Time, @@ -222,6 +227,7 @@ def test_update_by_external_id id: String, additional_emails: ^(Orb::Internal::Type::ArrayOf[String]), auto_collection: Orb::Internal::Type::Boolean, + auto_issuance: Orb::Internal::Type::Boolean | nil, balance: String, billing_address: Orb::Address | nil, created_at: Time, diff --git a/test/orb/resources/prices/external_price_id_test.rb b/test/orb/resources/prices/external_price_id_test.rb index b4b45a3b..83991db4 100644 --- a/test/orb/resources/prices/external_price_id_test.rb +++ b/test/orb/resources/prices/external_price_id_test.rb @@ -16,9 +16,6 @@ def test_update in Orb::Price::Package in Orb::Price::Matrix in Orb::Price::Tiered - in Orb::Price::TieredBPS - in Orb::Price::BPS - in Orb::Price::BulkBPS in Orb::Price::Bulk in Orb::Price::ThresholdTotalAmount in Orb::Price::TieredPackage @@ -41,6 +38,7 @@ def test_update in Orb::Price::ScalableMatrixWithTieredPricing in Orb::Price::CumulativeGroupedBulk in Orb::Price::GroupedWithMinMaxThresholds + in Orb::Price::Minimum end end @@ -52,8 +50,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Unit::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent84 | nil, + conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent85 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -80,8 +79,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Package::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent85 | nil, + conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent86 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -108,8 +108,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Matrix::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent86 | nil, + conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent87 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -136,8 +137,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Tiered::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent87 | nil, + conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent88 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -158,90 +160,6 @@ def test_update tiered_config: Orb::TieredConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } - in { - model_type: :tiered_bps, - id: String, - billable_metric: Orb::BillableMetricTiny | nil, - billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::TieredBPS::Cadence, - conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredBPS::UnnamedTypeWithobjectParent88 | nil, - created_at: Time, - credit_allocation: Orb::Allocation | nil, - currency: String, - discount: Orb::Discount | nil, - external_price_id: String | nil, - fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, - item: Orb::ItemSlim, - maximum: Orb::Maximum | nil, - maximum_amount: String | nil, - metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Minimum | nil, - minimum_amount: String | nil, - name: String, - plan_phase_order: Integer | nil, - price_type: Orb::Price::TieredBPS::PriceType, - replaces_price_id: String | nil, - tiered_bps_config: Orb::TieredBPSConfig, - dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil - } - in { - model_type: :bps, - id: String, - billable_metric: Orb::BillableMetricTiny | nil, - billing_cycle_configuration: Orb::BillingCycleConfiguration, - bps_config: Orb::BPSConfig, - cadence: Orb::Price::BPS::Cadence, - conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BPS::UnnamedTypeWithobjectParent89 | nil, - created_at: Time, - credit_allocation: Orb::Allocation | nil, - currency: String, - discount: Orb::Discount | nil, - external_price_id: String | nil, - fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, - item: Orb::ItemSlim, - maximum: Orb::Maximum | nil, - maximum_amount: String | nil, - metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Minimum | nil, - minimum_amount: String | nil, - name: String, - plan_phase_order: Integer | nil, - price_type: Orb::Price::BPS::PriceType, - replaces_price_id: String | nil, - dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil - } - in { - model_type: :bulk_bps, - id: String, - billable_metric: Orb::BillableMetricTiny | nil, - billing_cycle_configuration: Orb::BillingCycleConfiguration, - bulk_bps_config: Orb::BulkBPSConfig, - cadence: Orb::Price::BulkBPS::Cadence, - conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkBPS::UnnamedTypeWithobjectParent90 | nil, - created_at: Time, - credit_allocation: Orb::Allocation | nil, - currency: String, - discount: Orb::Discount | nil, - external_price_id: String | nil, - fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, - item: Orb::ItemSlim, - maximum: Orb::Maximum | nil, - maximum_amount: String | nil, - metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Minimum | nil, - minimum_amount: String | nil, - name: String, - plan_phase_order: Integer | nil, - price_type: Orb::Price::BulkBPS::PriceType, - replaces_price_id: String | nil, - dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil - } in { model_type: :bulk, id: String, @@ -249,8 +167,9 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, bulk_config: Orb::BulkConfig, cadence: Orb::Price::Bulk::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent91 | nil, + conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent89 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -276,8 +195,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ThresholdTotalAmount::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent92 | nil, + conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent90 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -304,8 +224,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredPackage::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent93 | nil, + conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent91 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -332,8 +253,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedTiered::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent94 | nil, + conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent92 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -360,8 +282,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredWithMinimum::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent95 | nil, + conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent93 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -388,8 +311,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredPackageWithMinimum::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent96 | nil, + conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent94 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -416,8 +340,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::PackageWithAllocation::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent97 | nil, + conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent95 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -444,8 +369,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::UnitWithPercent::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent98 | nil, + conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent96 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -472,8 +398,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MatrixWithAllocation::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent99 | nil, + conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent97 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -500,8 +427,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredWithProration::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent100 | nil, + conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent98 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -528,8 +456,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::UnitWithProration::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent101 | nil, + conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent99 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -556,8 +485,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedAllocation::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent102 | nil, + conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent100 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -584,8 +514,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent103 | nil, + conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent101 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -612,8 +543,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent104 | nil, + conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent102 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -640,8 +572,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MatrixWithDisplayName::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent105 | nil, + conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent103 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -669,8 +602,9 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, bulk_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), cadence: Orb::Price::BulkWithProration::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent106 | nil, + conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent104 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -696,8 +630,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedTieredPackage::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent107 | nil, + conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent105 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -724,8 +659,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MaxGroupTieredPackage::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent108 | nil, + conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent106 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -752,8 +688,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent109 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent107 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -780,8 +717,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent110 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent108 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -808,8 +746,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::CumulativeGroupedBulk::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent111 | nil, + conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent109 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), @@ -836,8 +775,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent112 | nil, + conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent110 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -858,6 +798,35 @@ def test_update replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } + in { + model_type: :minimum, + id: String, + billable_metric: Orb::BillableMetricTiny | nil, + billing_cycle_configuration: Orb::BillingCycleConfiguration, + cadence: Orb::Price::Minimum::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, + conversion_rate: Float | nil, + conversion_rate_config: Orb::Price::Minimum::UnnamedTypeWithobjectParent111 | nil, + created_at: Time, + credit_allocation: Orb::Allocation | nil, + currency: String, + discount: Orb::Discount | nil, + external_price_id: String | nil, + fixed_price_quantity: Float | nil, + invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, + item: Orb::ItemSlim, + maximum: Orb::Maximum | nil, + maximum_amount: String | nil, + metadata: ^(Orb::Internal::Type::HashOf[String]), + minimum: Orb::Minimum | nil, + minimum_amount: String | nil, + minimum_config: Orb::Price::Minimum::MinimumConfig, + name: String, + plan_phase_order: Integer | nil, + price_type: Orb::Price::Minimum::PriceType, + replaces_price_id: String | nil, + dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil + } end end end @@ -875,9 +844,6 @@ def test_fetch in Orb::Price::Package in Orb::Price::Matrix in Orb::Price::Tiered - in Orb::Price::TieredBPS - in Orb::Price::BPS - in Orb::Price::BulkBPS in Orb::Price::Bulk in Orb::Price::ThresholdTotalAmount in Orb::Price::TieredPackage @@ -900,6 +866,7 @@ def test_fetch in Orb::Price::ScalableMatrixWithTieredPricing in Orb::Price::CumulativeGroupedBulk in Orb::Price::GroupedWithMinMaxThresholds + in Orb::Price::Minimum end end @@ -911,8 +878,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Unit::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent84 | nil, + conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent85 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -939,8 +907,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Package::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent85 | nil, + conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent86 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -967,8 +936,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Matrix::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent86 | nil, + conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent87 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -995,8 +965,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Tiered::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent87 | nil, + conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent88 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1017,90 +988,6 @@ def test_fetch tiered_config: Orb::TieredConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } - in { - model_type: :tiered_bps, - id: String, - billable_metric: Orb::BillableMetricTiny | nil, - billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::TieredBPS::Cadence, - conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredBPS::UnnamedTypeWithobjectParent88 | nil, - created_at: Time, - credit_allocation: Orb::Allocation | nil, - currency: String, - discount: Orb::Discount | nil, - external_price_id: String | nil, - fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, - item: Orb::ItemSlim, - maximum: Orb::Maximum | nil, - maximum_amount: String | nil, - metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Minimum | nil, - minimum_amount: String | nil, - name: String, - plan_phase_order: Integer | nil, - price_type: Orb::Price::TieredBPS::PriceType, - replaces_price_id: String | nil, - tiered_bps_config: Orb::TieredBPSConfig, - dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil - } - in { - model_type: :bps, - id: String, - billable_metric: Orb::BillableMetricTiny | nil, - billing_cycle_configuration: Orb::BillingCycleConfiguration, - bps_config: Orb::BPSConfig, - cadence: Orb::Price::BPS::Cadence, - conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BPS::UnnamedTypeWithobjectParent89 | nil, - created_at: Time, - credit_allocation: Orb::Allocation | nil, - currency: String, - discount: Orb::Discount | nil, - external_price_id: String | nil, - fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, - item: Orb::ItemSlim, - maximum: Orb::Maximum | nil, - maximum_amount: String | nil, - metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Minimum | nil, - minimum_amount: String | nil, - name: String, - plan_phase_order: Integer | nil, - price_type: Orb::Price::BPS::PriceType, - replaces_price_id: String | nil, - dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil - } - in { - model_type: :bulk_bps, - id: String, - billable_metric: Orb::BillableMetricTiny | nil, - billing_cycle_configuration: Orb::BillingCycleConfiguration, - bulk_bps_config: Orb::BulkBPSConfig, - cadence: Orb::Price::BulkBPS::Cadence, - conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkBPS::UnnamedTypeWithobjectParent90 | nil, - created_at: Time, - credit_allocation: Orb::Allocation | nil, - currency: String, - discount: Orb::Discount | nil, - external_price_id: String | nil, - fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, - item: Orb::ItemSlim, - maximum: Orb::Maximum | nil, - maximum_amount: String | nil, - metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Minimum | nil, - minimum_amount: String | nil, - name: String, - plan_phase_order: Integer | nil, - price_type: Orb::Price::BulkBPS::PriceType, - replaces_price_id: String | nil, - dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil - } in { model_type: :bulk, id: String, @@ -1108,8 +995,9 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, bulk_config: Orb::BulkConfig, cadence: Orb::Price::Bulk::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent91 | nil, + conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent89 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1135,8 +1023,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ThresholdTotalAmount::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent92 | nil, + conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent90 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1163,8 +1052,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredPackage::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent93 | nil, + conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent91 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1191,8 +1081,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedTiered::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent94 | nil, + conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent92 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1219,8 +1110,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredWithMinimum::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent95 | nil, + conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent93 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1247,8 +1139,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredPackageWithMinimum::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent96 | nil, + conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent94 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1275,8 +1168,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::PackageWithAllocation::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent97 | nil, + conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent95 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1303,8 +1197,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::UnitWithPercent::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent98 | nil, + conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent96 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1331,8 +1226,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MatrixWithAllocation::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent99 | nil, + conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent97 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1359,8 +1255,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredWithProration::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent100 | nil, + conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent98 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1387,8 +1284,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::UnitWithProration::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent101 | nil, + conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent99 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1415,8 +1313,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedAllocation::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent102 | nil, + conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent100 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1443,8 +1342,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent103 | nil, + conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent101 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1471,8 +1371,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent104 | nil, + conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent102 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1499,8 +1400,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MatrixWithDisplayName::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent105 | nil, + conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent103 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1528,8 +1430,9 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, bulk_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), cadence: Orb::Price::BulkWithProration::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent106 | nil, + conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent104 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1555,8 +1458,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedTieredPackage::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent107 | nil, + conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent105 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1583,8 +1487,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MaxGroupTieredPackage::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent108 | nil, + conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent106 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1611,8 +1516,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent109 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent107 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1639,8 +1545,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent110 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent108 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1667,8 +1574,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::CumulativeGroupedBulk::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent111 | nil, + conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent109 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), @@ -1695,8 +1603,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent112 | nil, + conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent110 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1717,6 +1626,35 @@ def test_fetch replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } + in { + model_type: :minimum, + id: String, + billable_metric: Orb::BillableMetricTiny | nil, + billing_cycle_configuration: Orb::BillingCycleConfiguration, + cadence: Orb::Price::Minimum::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, + conversion_rate: Float | nil, + conversion_rate_config: Orb::Price::Minimum::UnnamedTypeWithobjectParent111 | nil, + created_at: Time, + credit_allocation: Orb::Allocation | nil, + currency: String, + discount: Orb::Discount | nil, + external_price_id: String | nil, + fixed_price_quantity: Float | nil, + invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, + item: Orb::ItemSlim, + maximum: Orb::Maximum | nil, + maximum_amount: String | nil, + metadata: ^(Orb::Internal::Type::HashOf[String]), + minimum: Orb::Minimum | nil, + minimum_amount: String | nil, + minimum_config: Orb::Price::Minimum::MinimumConfig, + name: String, + plan_phase_order: Integer | nil, + price_type: Orb::Price::Minimum::PriceType, + replaces_price_id: String | nil, + dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil + } end end end diff --git a/test/orb/resources/prices_test.rb b/test/orb/resources/prices_test.rb index df97d265..24109385 100644 --- a/test/orb/resources/prices_test.rb +++ b/test/orb/resources/prices_test.rb @@ -24,9 +24,6 @@ def test_create_required_params in Orb::Price::Package in Orb::Price::Matrix in Orb::Price::Tiered - in Orb::Price::TieredBPS - in Orb::Price::BPS - in Orb::Price::BulkBPS in Orb::Price::Bulk in Orb::Price::ThresholdTotalAmount in Orb::Price::TieredPackage @@ -49,6 +46,7 @@ def test_create_required_params in Orb::Price::ScalableMatrixWithTieredPricing in Orb::Price::CumulativeGroupedBulk in Orb::Price::GroupedWithMinMaxThresholds + in Orb::Price::Minimum end end @@ -60,8 +58,9 @@ def test_create_required_params billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Unit::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent84 | nil, + conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent85 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -88,8 +87,9 @@ def test_create_required_params billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Package::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent85 | nil, + conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent86 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -116,8 +116,9 @@ def test_create_required_params billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Matrix::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent86 | nil, + conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent87 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -144,8 +145,9 @@ def test_create_required_params billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Tiered::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent87 | nil, + conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent88 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -166,90 +168,6 @@ def test_create_required_params tiered_config: Orb::TieredConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } - in { - model_type: :tiered_bps, - id: String, - billable_metric: Orb::BillableMetricTiny | nil, - billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::TieredBPS::Cadence, - conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredBPS::UnnamedTypeWithobjectParent88 | nil, - created_at: Time, - credit_allocation: Orb::Allocation | nil, - currency: String, - discount: Orb::Discount | nil, - external_price_id: String | nil, - fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, - item: Orb::ItemSlim, - maximum: Orb::Maximum | nil, - maximum_amount: String | nil, - metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Minimum | nil, - minimum_amount: String | nil, - name: String, - plan_phase_order: Integer | nil, - price_type: Orb::Price::TieredBPS::PriceType, - replaces_price_id: String | nil, - tiered_bps_config: Orb::TieredBPSConfig, - dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil - } - in { - model_type: :bps, - id: String, - billable_metric: Orb::BillableMetricTiny | nil, - billing_cycle_configuration: Orb::BillingCycleConfiguration, - bps_config: Orb::BPSConfig, - cadence: Orb::Price::BPS::Cadence, - conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BPS::UnnamedTypeWithobjectParent89 | nil, - created_at: Time, - credit_allocation: Orb::Allocation | nil, - currency: String, - discount: Orb::Discount | nil, - external_price_id: String | nil, - fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, - item: Orb::ItemSlim, - maximum: Orb::Maximum | nil, - maximum_amount: String | nil, - metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Minimum | nil, - minimum_amount: String | nil, - name: String, - plan_phase_order: Integer | nil, - price_type: Orb::Price::BPS::PriceType, - replaces_price_id: String | nil, - dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil - } - in { - model_type: :bulk_bps, - id: String, - billable_metric: Orb::BillableMetricTiny | nil, - billing_cycle_configuration: Orb::BillingCycleConfiguration, - bulk_bps_config: Orb::BulkBPSConfig, - cadence: Orb::Price::BulkBPS::Cadence, - conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkBPS::UnnamedTypeWithobjectParent90 | nil, - created_at: Time, - credit_allocation: Orb::Allocation | nil, - currency: String, - discount: Orb::Discount | nil, - external_price_id: String | nil, - fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, - item: Orb::ItemSlim, - maximum: Orb::Maximum | nil, - maximum_amount: String | nil, - metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Minimum | nil, - minimum_amount: String | nil, - name: String, - plan_phase_order: Integer | nil, - price_type: Orb::Price::BulkBPS::PriceType, - replaces_price_id: String | nil, - dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil - } in { model_type: :bulk, id: String, @@ -257,8 +175,9 @@ def test_create_required_params billing_cycle_configuration: Orb::BillingCycleConfiguration, bulk_config: Orb::BulkConfig, cadence: Orb::Price::Bulk::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent91 | nil, + conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent89 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -284,8 +203,9 @@ def test_create_required_params billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ThresholdTotalAmount::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent92 | nil, + conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent90 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -312,8 +232,9 @@ def test_create_required_params billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredPackage::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent93 | nil, + conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent91 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -340,8 +261,9 @@ def test_create_required_params billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedTiered::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent94 | nil, + conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent92 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -368,8 +290,9 @@ def test_create_required_params billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredWithMinimum::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent95 | nil, + conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent93 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -396,8 +319,9 @@ def test_create_required_params billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredPackageWithMinimum::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent96 | nil, + conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent94 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -424,8 +348,9 @@ def test_create_required_params billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::PackageWithAllocation::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent97 | nil, + conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent95 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -452,8 +377,9 @@ def test_create_required_params billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::UnitWithPercent::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent98 | nil, + conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent96 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -480,8 +406,9 @@ def test_create_required_params billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MatrixWithAllocation::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent99 | nil, + conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent97 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -508,8 +435,9 @@ def test_create_required_params billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredWithProration::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent100 | nil, + conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent98 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -536,8 +464,9 @@ def test_create_required_params billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::UnitWithProration::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent101 | nil, + conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent99 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -564,8 +493,9 @@ def test_create_required_params billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedAllocation::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent102 | nil, + conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent100 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -592,8 +522,9 @@ def test_create_required_params billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent103 | nil, + conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent101 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -620,8 +551,9 @@ def test_create_required_params billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent104 | nil, + conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent102 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -648,8 +580,9 @@ def test_create_required_params billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MatrixWithDisplayName::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent105 | nil, + conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent103 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -677,8 +610,9 @@ def test_create_required_params billing_cycle_configuration: Orb::BillingCycleConfiguration, bulk_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), cadence: Orb::Price::BulkWithProration::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent106 | nil, + conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent104 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -704,8 +638,9 @@ def test_create_required_params billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedTieredPackage::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent107 | nil, + conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent105 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -732,8 +667,9 @@ def test_create_required_params billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MaxGroupTieredPackage::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent108 | nil, + conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent106 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -760,8 +696,9 @@ def test_create_required_params billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent109 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent107 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -788,8 +725,9 @@ def test_create_required_params billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent110 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent108 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -816,8 +754,9 @@ def test_create_required_params billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::CumulativeGroupedBulk::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent111 | nil, + conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent109 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), @@ -844,8 +783,9 @@ def test_create_required_params billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent112 | nil, + conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent110 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -866,6 +806,35 @@ def test_create_required_params replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } + in { + model_type: :minimum, + id: String, + billable_metric: Orb::BillableMetricTiny | nil, + billing_cycle_configuration: Orb::BillingCycleConfiguration, + cadence: Orb::Price::Minimum::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, + conversion_rate: Float | nil, + conversion_rate_config: Orb::Price::Minimum::UnnamedTypeWithobjectParent111 | nil, + created_at: Time, + credit_allocation: Orb::Allocation | nil, + currency: String, + discount: Orb::Discount | nil, + external_price_id: String | nil, + fixed_price_quantity: Float | nil, + invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, + item: Orb::ItemSlim, + maximum: Orb::Maximum | nil, + maximum_amount: String | nil, + metadata: ^(Orb::Internal::Type::HashOf[String]), + minimum: Orb::Minimum | nil, + minimum_amount: String | nil, + minimum_config: Orb::Price::Minimum::MinimumConfig, + name: String, + plan_phase_order: Integer | nil, + price_type: Orb::Price::Minimum::PriceType, + replaces_price_id: String | nil, + dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil + } end end end @@ -883,9 +852,6 @@ def test_update in Orb::Price::Package in Orb::Price::Matrix in Orb::Price::Tiered - in Orb::Price::TieredBPS - in Orb::Price::BPS - in Orb::Price::BulkBPS in Orb::Price::Bulk in Orb::Price::ThresholdTotalAmount in Orb::Price::TieredPackage @@ -908,6 +874,7 @@ def test_update in Orb::Price::ScalableMatrixWithTieredPricing in Orb::Price::CumulativeGroupedBulk in Orb::Price::GroupedWithMinMaxThresholds + in Orb::Price::Minimum end end @@ -919,8 +886,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Unit::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent84 | nil, + conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent85 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -947,8 +915,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Package::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent85 | nil, + conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent86 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -975,8 +944,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Matrix::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent86 | nil, + conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent87 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1003,8 +973,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Tiered::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent87 | nil, + conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent88 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1025,90 +996,6 @@ def test_update tiered_config: Orb::TieredConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } - in { - model_type: :tiered_bps, - id: String, - billable_metric: Orb::BillableMetricTiny | nil, - billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::TieredBPS::Cadence, - conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredBPS::UnnamedTypeWithobjectParent88 | nil, - created_at: Time, - credit_allocation: Orb::Allocation | nil, - currency: String, - discount: Orb::Discount | nil, - external_price_id: String | nil, - fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, - item: Orb::ItemSlim, - maximum: Orb::Maximum | nil, - maximum_amount: String | nil, - metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Minimum | nil, - minimum_amount: String | nil, - name: String, - plan_phase_order: Integer | nil, - price_type: Orb::Price::TieredBPS::PriceType, - replaces_price_id: String | nil, - tiered_bps_config: Orb::TieredBPSConfig, - dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil - } - in { - model_type: :bps, - id: String, - billable_metric: Orb::BillableMetricTiny | nil, - billing_cycle_configuration: Orb::BillingCycleConfiguration, - bps_config: Orb::BPSConfig, - cadence: Orb::Price::BPS::Cadence, - conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BPS::UnnamedTypeWithobjectParent89 | nil, - created_at: Time, - credit_allocation: Orb::Allocation | nil, - currency: String, - discount: Orb::Discount | nil, - external_price_id: String | nil, - fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, - item: Orb::ItemSlim, - maximum: Orb::Maximum | nil, - maximum_amount: String | nil, - metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Minimum | nil, - minimum_amount: String | nil, - name: String, - plan_phase_order: Integer | nil, - price_type: Orb::Price::BPS::PriceType, - replaces_price_id: String | nil, - dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil - } - in { - model_type: :bulk_bps, - id: String, - billable_metric: Orb::BillableMetricTiny | nil, - billing_cycle_configuration: Orb::BillingCycleConfiguration, - bulk_bps_config: Orb::BulkBPSConfig, - cadence: Orb::Price::BulkBPS::Cadence, - conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkBPS::UnnamedTypeWithobjectParent90 | nil, - created_at: Time, - credit_allocation: Orb::Allocation | nil, - currency: String, - discount: Orb::Discount | nil, - external_price_id: String | nil, - fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, - item: Orb::ItemSlim, - maximum: Orb::Maximum | nil, - maximum_amount: String | nil, - metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Minimum | nil, - minimum_amount: String | nil, - name: String, - plan_phase_order: Integer | nil, - price_type: Orb::Price::BulkBPS::PriceType, - replaces_price_id: String | nil, - dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil - } in { model_type: :bulk, id: String, @@ -1116,8 +1003,9 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, bulk_config: Orb::BulkConfig, cadence: Orb::Price::Bulk::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent91 | nil, + conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent89 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1143,8 +1031,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ThresholdTotalAmount::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent92 | nil, + conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent90 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1171,8 +1060,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredPackage::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent93 | nil, + conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent91 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1199,8 +1089,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedTiered::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent94 | nil, + conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent92 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1227,8 +1118,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredWithMinimum::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent95 | nil, + conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent93 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1255,8 +1147,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredPackageWithMinimum::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent96 | nil, + conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent94 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1283,8 +1176,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::PackageWithAllocation::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent97 | nil, + conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent95 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1311,8 +1205,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::UnitWithPercent::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent98 | nil, + conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent96 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1339,8 +1234,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MatrixWithAllocation::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent99 | nil, + conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent97 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1367,8 +1263,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredWithProration::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent100 | nil, + conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent98 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1395,8 +1292,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::UnitWithProration::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent101 | nil, + conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent99 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1423,8 +1321,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedAllocation::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent102 | nil, + conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent100 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1451,8 +1350,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent103 | nil, + conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent101 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1479,8 +1379,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent104 | nil, + conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent102 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1507,8 +1408,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MatrixWithDisplayName::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent105 | nil, + conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent103 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1536,8 +1438,9 @@ def test_update billing_cycle_configuration: Orb::BillingCycleConfiguration, bulk_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), cadence: Orb::Price::BulkWithProration::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent106 | nil, + conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent104 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1563,8 +1466,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedTieredPackage::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent107 | nil, + conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent105 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1591,8 +1495,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MaxGroupTieredPackage::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent108 | nil, + conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent106 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1619,8 +1524,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent109 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent107 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1647,8 +1553,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent110 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent108 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1675,8 +1582,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::CumulativeGroupedBulk::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent111 | nil, + conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent109 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), @@ -1703,8 +1611,9 @@ def test_update billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent112 | nil, + conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent110 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1725,6 +1634,35 @@ def test_update replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } + in { + model_type: :minimum, + id: String, + billable_metric: Orb::BillableMetricTiny | nil, + billing_cycle_configuration: Orb::BillingCycleConfiguration, + cadence: Orb::Price::Minimum::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, + conversion_rate: Float | nil, + conversion_rate_config: Orb::Price::Minimum::UnnamedTypeWithobjectParent111 | nil, + created_at: Time, + credit_allocation: Orb::Allocation | nil, + currency: String, + discount: Orb::Discount | nil, + external_price_id: String | nil, + fixed_price_quantity: Float | nil, + invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, + item: Orb::ItemSlim, + maximum: Orb::Maximum | nil, + maximum_amount: String | nil, + metadata: ^(Orb::Internal::Type::HashOf[String]), + minimum: Orb::Minimum | nil, + minimum_amount: String | nil, + minimum_config: Orb::Price::Minimum::MinimumConfig, + name: String, + plan_phase_order: Integer | nil, + price_type: Orb::Price::Minimum::PriceType, + replaces_price_id: String | nil, + dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil + } end end end @@ -1749,9 +1687,6 @@ def test_list in Orb::Price::Package in Orb::Price::Matrix in Orb::Price::Tiered - in Orb::Price::TieredBPS - in Orb::Price::BPS - in Orb::Price::BulkBPS in Orb::Price::Bulk in Orb::Price::ThresholdTotalAmount in Orb::Price::TieredPackage @@ -1774,6 +1709,7 @@ def test_list in Orb::Price::ScalableMatrixWithTieredPricing in Orb::Price::CumulativeGroupedBulk in Orb::Price::GroupedWithMinMaxThresholds + in Orb::Price::Minimum end end @@ -1785,8 +1721,9 @@ def test_list billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Unit::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent84 | nil, + conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent85 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1813,8 +1750,9 @@ def test_list billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Package::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent85 | nil, + conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent86 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1841,8 +1779,9 @@ def test_list billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Matrix::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent86 | nil, + conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent87 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1869,8 +1808,9 @@ def test_list billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Tiered::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent87 | nil, + conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent88 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1891,90 +1831,6 @@ def test_list tiered_config: Orb::TieredConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } - in { - model_type: :tiered_bps, - id: String, - billable_metric: Orb::BillableMetricTiny | nil, - billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::TieredBPS::Cadence, - conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredBPS::UnnamedTypeWithobjectParent88 | nil, - created_at: Time, - credit_allocation: Orb::Allocation | nil, - currency: String, - discount: Orb::Discount | nil, - external_price_id: String | nil, - fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, - item: Orb::ItemSlim, - maximum: Orb::Maximum | nil, - maximum_amount: String | nil, - metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Minimum | nil, - minimum_amount: String | nil, - name: String, - plan_phase_order: Integer | nil, - price_type: Orb::Price::TieredBPS::PriceType, - replaces_price_id: String | nil, - tiered_bps_config: Orb::TieredBPSConfig, - dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil - } - in { - model_type: :bps, - id: String, - billable_metric: Orb::BillableMetricTiny | nil, - billing_cycle_configuration: Orb::BillingCycleConfiguration, - bps_config: Orb::BPSConfig, - cadence: Orb::Price::BPS::Cadence, - conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BPS::UnnamedTypeWithobjectParent89 | nil, - created_at: Time, - credit_allocation: Orb::Allocation | nil, - currency: String, - discount: Orb::Discount | nil, - external_price_id: String | nil, - fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, - item: Orb::ItemSlim, - maximum: Orb::Maximum | nil, - maximum_amount: String | nil, - metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Minimum | nil, - minimum_amount: String | nil, - name: String, - plan_phase_order: Integer | nil, - price_type: Orb::Price::BPS::PriceType, - replaces_price_id: String | nil, - dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil - } - in { - model_type: :bulk_bps, - id: String, - billable_metric: Orb::BillableMetricTiny | nil, - billing_cycle_configuration: Orb::BillingCycleConfiguration, - bulk_bps_config: Orb::BulkBPSConfig, - cadence: Orb::Price::BulkBPS::Cadence, - conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkBPS::UnnamedTypeWithobjectParent90 | nil, - created_at: Time, - credit_allocation: Orb::Allocation | nil, - currency: String, - discount: Orb::Discount | nil, - external_price_id: String | nil, - fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, - item: Orb::ItemSlim, - maximum: Orb::Maximum | nil, - maximum_amount: String | nil, - metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Minimum | nil, - minimum_amount: String | nil, - name: String, - plan_phase_order: Integer | nil, - price_type: Orb::Price::BulkBPS::PriceType, - replaces_price_id: String | nil, - dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil - } in { model_type: :bulk, id: String, @@ -1982,8 +1838,9 @@ def test_list billing_cycle_configuration: Orb::BillingCycleConfiguration, bulk_config: Orb::BulkConfig, cadence: Orb::Price::Bulk::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent91 | nil, + conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent89 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2009,8 +1866,9 @@ def test_list billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ThresholdTotalAmount::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent92 | nil, + conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent90 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2037,8 +1895,9 @@ def test_list billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredPackage::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent93 | nil, + conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent91 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2065,8 +1924,9 @@ def test_list billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedTiered::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent94 | nil, + conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent92 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2093,8 +1953,9 @@ def test_list billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredWithMinimum::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent95 | nil, + conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent93 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2121,8 +1982,9 @@ def test_list billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredPackageWithMinimum::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent96 | nil, + conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent94 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2149,8 +2011,9 @@ def test_list billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::PackageWithAllocation::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent97 | nil, + conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent95 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2177,8 +2040,9 @@ def test_list billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::UnitWithPercent::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent98 | nil, + conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent96 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2205,8 +2069,9 @@ def test_list billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MatrixWithAllocation::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent99 | nil, + conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent97 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2233,8 +2098,9 @@ def test_list billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredWithProration::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent100 | nil, + conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent98 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2261,8 +2127,9 @@ def test_list billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::UnitWithProration::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent101 | nil, + conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent99 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2289,8 +2156,9 @@ def test_list billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedAllocation::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent102 | nil, + conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent100 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2317,8 +2185,9 @@ def test_list billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent103 | nil, + conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent101 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2345,8 +2214,9 @@ def test_list billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent104 | nil, + conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent102 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2373,8 +2243,9 @@ def test_list billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MatrixWithDisplayName::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent105 | nil, + conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent103 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2402,8 +2273,9 @@ def test_list billing_cycle_configuration: Orb::BillingCycleConfiguration, bulk_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), cadence: Orb::Price::BulkWithProration::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent106 | nil, + conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent104 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2429,8 +2301,9 @@ def test_list billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedTieredPackage::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent107 | nil, + conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent105 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2457,8 +2330,9 @@ def test_list billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MaxGroupTieredPackage::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent108 | nil, + conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent106 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2485,8 +2359,9 @@ def test_list billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent109 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent107 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2513,8 +2388,9 @@ def test_list billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent110 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent108 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2541,8 +2417,9 @@ def test_list billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::CumulativeGroupedBulk::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent111 | nil, + conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent109 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), @@ -2569,8 +2446,9 @@ def test_list billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent112 | nil, + conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent110 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2591,6 +2469,35 @@ def test_list replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } + in { + model_type: :minimum, + id: String, + billable_metric: Orb::BillableMetricTiny | nil, + billing_cycle_configuration: Orb::BillingCycleConfiguration, + cadence: Orb::Price::Minimum::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, + conversion_rate: Float | nil, + conversion_rate_config: Orb::Price::Minimum::UnnamedTypeWithobjectParent111 | nil, + created_at: Time, + credit_allocation: Orb::Allocation | nil, + currency: String, + discount: Orb::Discount | nil, + external_price_id: String | nil, + fixed_price_quantity: Float | nil, + invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, + item: Orb::ItemSlim, + maximum: Orb::Maximum | nil, + maximum_amount: String | nil, + metadata: ^(Orb::Internal::Type::HashOf[String]), + minimum: Orb::Minimum | nil, + minimum_amount: String | nil, + minimum_config: Orb::Price::Minimum::MinimumConfig, + name: String, + plan_phase_order: Integer | nil, + price_type: Orb::Price::Minimum::PriceType, + replaces_price_id: String | nil, + dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil + } end end end @@ -2663,9 +2570,6 @@ def test_fetch in Orb::Price::Package in Orb::Price::Matrix in Orb::Price::Tiered - in Orb::Price::TieredBPS - in Orb::Price::BPS - in Orb::Price::BulkBPS in Orb::Price::Bulk in Orb::Price::ThresholdTotalAmount in Orb::Price::TieredPackage @@ -2688,6 +2592,7 @@ def test_fetch in Orb::Price::ScalableMatrixWithTieredPricing in Orb::Price::CumulativeGroupedBulk in Orb::Price::GroupedWithMinMaxThresholds + in Orb::Price::Minimum end end @@ -2699,8 +2604,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Unit::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent84 | nil, + conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent85 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2727,8 +2633,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Package::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent85 | nil, + conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent86 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2755,8 +2662,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Matrix::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent86 | nil, + conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent87 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2783,8 +2691,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::Tiered::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent87 | nil, + conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent88 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2805,90 +2714,6 @@ def test_fetch tiered_config: Orb::TieredConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } - in { - model_type: :tiered_bps, - id: String, - billable_metric: Orb::BillableMetricTiny | nil, - billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::TieredBPS::Cadence, - conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredBPS::UnnamedTypeWithobjectParent88 | nil, - created_at: Time, - credit_allocation: Orb::Allocation | nil, - currency: String, - discount: Orb::Discount | nil, - external_price_id: String | nil, - fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, - item: Orb::ItemSlim, - maximum: Orb::Maximum | nil, - maximum_amount: String | nil, - metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Minimum | nil, - minimum_amount: String | nil, - name: String, - plan_phase_order: Integer | nil, - price_type: Orb::Price::TieredBPS::PriceType, - replaces_price_id: String | nil, - tiered_bps_config: Orb::TieredBPSConfig, - dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil - } - in { - model_type: :bps, - id: String, - billable_metric: Orb::BillableMetricTiny | nil, - billing_cycle_configuration: Orb::BillingCycleConfiguration, - bps_config: Orb::BPSConfig, - cadence: Orb::Price::BPS::Cadence, - conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BPS::UnnamedTypeWithobjectParent89 | nil, - created_at: Time, - credit_allocation: Orb::Allocation | nil, - currency: String, - discount: Orb::Discount | nil, - external_price_id: String | nil, - fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, - item: Orb::ItemSlim, - maximum: Orb::Maximum | nil, - maximum_amount: String | nil, - metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Minimum | nil, - minimum_amount: String | nil, - name: String, - plan_phase_order: Integer | nil, - price_type: Orb::Price::BPS::PriceType, - replaces_price_id: String | nil, - dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil - } - in { - model_type: :bulk_bps, - id: String, - billable_metric: Orb::BillableMetricTiny | nil, - billing_cycle_configuration: Orb::BillingCycleConfiguration, - bulk_bps_config: Orb::BulkBPSConfig, - cadence: Orb::Price::BulkBPS::Cadence, - conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkBPS::UnnamedTypeWithobjectParent90 | nil, - created_at: Time, - credit_allocation: Orb::Allocation | nil, - currency: String, - discount: Orb::Discount | nil, - external_price_id: String | nil, - fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, - item: Orb::ItemSlim, - maximum: Orb::Maximum | nil, - maximum_amount: String | nil, - metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Minimum | nil, - minimum_amount: String | nil, - name: String, - plan_phase_order: Integer | nil, - price_type: Orb::Price::BulkBPS::PriceType, - replaces_price_id: String | nil, - dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil - } in { model_type: :bulk, id: String, @@ -2896,8 +2721,9 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, bulk_config: Orb::BulkConfig, cadence: Orb::Price::Bulk::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent91 | nil, + conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent89 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2923,8 +2749,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ThresholdTotalAmount::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent92 | nil, + conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent90 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2951,8 +2778,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredPackage::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent93 | nil, + conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent91 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2979,8 +2807,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedTiered::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent94 | nil, + conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent92 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3007,8 +2836,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredWithMinimum::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent95 | nil, + conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent93 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3035,8 +2865,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredPackageWithMinimum::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent96 | nil, + conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent94 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3063,8 +2894,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::PackageWithAllocation::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent97 | nil, + conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent95 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3091,8 +2923,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::UnitWithPercent::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent98 | nil, + conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent96 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3119,8 +2952,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MatrixWithAllocation::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent99 | nil, + conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent97 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3147,8 +2981,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::TieredWithProration::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent100 | nil, + conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent98 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3175,8 +3010,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::UnitWithProration::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent101 | nil, + conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent99 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3203,8 +3039,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedAllocation::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent102 | nil, + conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent100 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3231,8 +3068,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent103 | nil, + conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent101 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3259,8 +3097,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent104 | nil, + conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent102 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3287,8 +3126,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MatrixWithDisplayName::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent105 | nil, + conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent103 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3316,8 +3156,9 @@ def test_fetch billing_cycle_configuration: Orb::BillingCycleConfiguration, bulk_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), cadence: Orb::Price::BulkWithProration::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent106 | nil, + conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent104 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3343,8 +3184,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedTieredPackage::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent107 | nil, + conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent105 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3371,8 +3213,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::MaxGroupTieredPackage::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent108 | nil, + conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent106 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3399,8 +3242,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent109 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent107 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3427,8 +3271,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent110 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent108 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3455,8 +3300,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::CumulativeGroupedBulk::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent111 | nil, + conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent109 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), @@ -3483,8 +3329,9 @@ def test_fetch billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent112 | nil, + conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent110 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3505,6 +3352,35 @@ def test_fetch replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } + in { + model_type: :minimum, + id: String, + billable_metric: Orb::BillableMetricTiny | nil, + billing_cycle_configuration: Orb::BillingCycleConfiguration, + cadence: Orb::Price::Minimum::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, + conversion_rate: Float | nil, + conversion_rate_config: Orb::Price::Minimum::UnnamedTypeWithobjectParent111 | nil, + created_at: Time, + credit_allocation: Orb::Allocation | nil, + currency: String, + discount: Orb::Discount | nil, + external_price_id: String | nil, + fixed_price_quantity: Float | nil, + invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, + item: Orb::ItemSlim, + maximum: Orb::Maximum | nil, + maximum_amount: String | nil, + metadata: ^(Orb::Internal::Type::HashOf[String]), + minimum: Orb::Minimum | nil, + minimum_amount: String | nil, + minimum_config: Orb::Price::Minimum::MinimumConfig, + name: String, + plan_phase_order: Integer | nil, + price_type: Orb::Price::Minimum::PriceType, + replaces_price_id: String | nil, + dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil + } end end end From 3bd8a47a7c0601ccb9c43b472131562319a59e51 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 3 Sep 2025 20:26:35 +0000 Subject: [PATCH 03/24] feat: extract minimum composite to type --- .stats.yml | 2 +- lib/orb.rb | 3 + lib/orb/models.rb | 6 + ...rnal_plan_id_create_plan_version_params.rb | 438 +---- .../models/beta_create_plan_version_params.rb | 437 +---- lib/orb/models/new_floating_bulk_price.rb | 2 +- .../new_floating_bulk_with_proration_price.rb | 2 +- ..._floating_cumulative_grouped_bulk_price.rb | 2 +- .../new_floating_grouped_allocation_price.rb | 2 +- ...w_floating_grouped_tiered_package_price.rb | 2 +- .../new_floating_grouped_tiered_price.rb | 2 +- ...ting_grouped_with_metered_minimum_price.rb | 2 +- ...ing_grouped_with_prorated_minimum_price.rb | 2 +- lib/orb/models/new_floating_matrix_price.rb | 2 +- ...w_floating_matrix_with_allocation_price.rb | 2 +- ...floating_matrix_with_display_name_price.rb | 2 +- ...floating_max_group_tiered_package_price.rb | 2 +- .../new_floating_minimum_composite_price.rb | 205 +++ lib/orb/models/new_floating_package_price.rb | 2 +- ..._floating_package_with_allocation_price.rb | 2 +- ...alable_matrix_with_tiered_pricing_price.rb | 2 +- ...scalable_matrix_with_unit_pricing_price.rb | 2 +- ...w_floating_threshold_total_amount_price.rb | 2 +- .../new_floating_tiered_package_price.rb | 2 +- ...ating_tiered_package_with_minimum_price.rb | 2 +- lib/orb/models/new_floating_tiered_price.rb | 2 +- .../new_floating_tiered_with_minimum_price.rb | 2 +- ...ew_floating_tiered_with_proration_price.rb | 2 +- lib/orb/models/new_floating_unit_price.rb | 2 +- .../new_floating_unit_with_percent_price.rb | 2 +- .../new_floating_unit_with_proration_price.rb | 2 +- lib/orb/models/new_plan_bulk_price.rb | 2 +- .../new_plan_bulk_with_proration_price.rb | 2 +- .../new_plan_cumulative_grouped_bulk_price.rb | 2 +- .../new_plan_grouped_allocation_price.rb | 2 +- .../new_plan_grouped_tiered_package_price.rb | 2 +- .../models/new_plan_grouped_tiered_price.rb | 2 +- ...plan_grouped_with_metered_minimum_price.rb | 2 +- ...lan_grouped_with_prorated_minimum_price.rb | 2 +- lib/orb/models/new_plan_matrix_price.rb | 2 +- .../new_plan_matrix_with_allocation_price.rb | 2 +- ...new_plan_matrix_with_display_name_price.rb | 2 +- ...new_plan_max_group_tiered_package_price.rb | 2 +- .../new_plan_minimum_composite_price.rb | 215 +++ lib/orb/models/new_plan_package_price.rb | 2 +- .../new_plan_package_with_allocation_price.rb | 2 +- ...alable_matrix_with_tiered_pricing_price.rb | 2 +- ...scalable_matrix_with_unit_pricing_price.rb | 2 +- .../new_plan_threshold_total_amount_price.rb | 2 +- .../new_plan_tier_with_proration_price.rb | 2 +- .../models/new_plan_tiered_package_price.rb | 2 +- ..._plan_tiered_package_with_minimum_price.rb | 2 +- lib/orb/models/new_plan_tiered_price.rb | 2 +- .../new_plan_tiered_with_minimum_price.rb | 2 +- lib/orb/models/new_plan_unit_price.rb | 2 +- .../new_plan_unit_with_percent_price.rb | 2 +- .../new_plan_unit_with_proration_price.rb | 2 +- lib/orb/models/new_subscription_bulk_price.rb | 2 +- ..._subscription_bulk_with_proration_price.rb | 2 +- ...scription_cumulative_grouped_bulk_price.rb | 2 +- ...w_subscription_grouped_allocation_price.rb | 2 +- ...bscription_grouped_tiered_package_price.rb | 2 +- .../new_subscription_grouped_tiered_price.rb | 2 +- ...tion_grouped_with_metered_minimum_price.rb | 2 +- ...ion_grouped_with_prorated_minimum_price.rb | 2 +- .../models/new_subscription_matrix_price.rb | 2 +- ...bscription_matrix_with_allocation_price.rb | 2 +- ...cription_matrix_with_display_name_price.rb | 2 +- ...cription_max_group_tiered_package_price.rb | 2 +- ...ew_subscription_minimum_composite_price.rb | 216 +++ .../models/new_subscription_package_price.rb | 2 +- ...scription_package_with_allocation_price.rb | 2 +- ...alable_matrix_with_tiered_pricing_price.rb | 2 +- ...scalable_matrix_with_unit_pricing_price.rb | 2 +- ...bscription_threshold_total_amount_price.rb | 2 +- ..._subscription_tier_with_proration_price.rb | 2 +- .../new_subscription_tiered_package_price.rb | 2 +- ...ption_tiered_package_with_minimum_price.rb | 2 +- .../models/new_subscription_tiered_price.rb | 2 +- ..._subscription_tiered_with_minimum_price.rb | 2 +- lib/orb/models/new_subscription_unit_price.rb | 2 +- ...ew_subscription_unit_with_percent_price.rb | 2 +- ..._subscription_unit_with_proration_price.rb | 2 +- lib/orb/models/plan_create_params.rb | 217 +-- lib/orb/models/price.rb | 54 +- .../models/price_evaluate_multiple_params.rb | 209 +-- .../price_evaluate_preview_events_params.rb | 210 +-- lib/orb/models/subscription_create_params.rb | 437 +---- .../subscription_price_intervals_params.rb | 208 +-- ...ubscription_schedule_plan_change_params.rb | 440 +---- rbi/orb/models.rbi | 8 + ...nal_plan_id_create_plan_version_params.rbi | 1420 +++++------------ .../beta_create_plan_version_params.rbi | 1420 +++++------------ .../new_floating_minimum_composite_price.rbi | 360 +++++ .../new_plan_minimum_composite_price.rbi | 363 +++++ ...w_subscription_minimum_composite_price.rbi | 378 +++++ rbi/orb/models/plan_create_params.rbi | 361 +---- rbi/orb/models/price.rbi | 108 +- .../models/price_evaluate_multiple_params.rbi | 349 +--- .../price_evaluate_preview_events_params.rbi | 349 +--- rbi/orb/models/subscription_create_params.rbi | 1088 +++---------- .../subscription_price_intervals_params.rbi | 349 +--- ...bscription_schedule_plan_change_params.rbi | 1088 +++---------- sig/orb/models.rbs | 6 + ...nal_plan_id_create_plan_version_params.rbs | 288 +--- .../beta_create_plan_version_params.rbs | 290 +--- sig/orb/models/new_floating_bulk_price.rbs | 8 +- ...new_floating_bulk_with_proration_price.rbs | 8 +- ...floating_cumulative_grouped_bulk_price.rbs | 8 +- .../new_floating_grouped_allocation_price.rbs | 8 +- ..._floating_grouped_tiered_package_price.rbs | 8 +- .../new_floating_grouped_tiered_price.rbs | 8 +- ...ing_grouped_with_metered_minimum_price.rbs | 8 +- ...ng_grouped_with_prorated_minimum_price.rbs | 8 +- sig/orb/models/new_floating_matrix_price.rbs | 8 +- ..._floating_matrix_with_allocation_price.rbs | 8 +- ...loating_matrix_with_display_name_price.rbs | 8 +- ...loating_max_group_tiered_package_price.rbs | 8 +- .../new_floating_minimum_composite_price.rbs | 138 ++ sig/orb/models/new_floating_package_price.rbs | 8 +- ...floating_package_with_allocation_price.rbs | 8 +- ...lable_matrix_with_tiered_pricing_price.rbs | 8 +- ...calable_matrix_with_unit_pricing_price.rbs | 8 +- ..._floating_threshold_total_amount_price.rbs | 8 +- .../new_floating_tiered_package_price.rbs | 8 +- ...ting_tiered_package_with_minimum_price.rbs | 8 +- sig/orb/models/new_floating_tiered_price.rbs | 8 +- ...new_floating_tiered_with_minimum_price.rbs | 8 +- ...w_floating_tiered_with_proration_price.rbs | 8 +- sig/orb/models/new_floating_unit_price.rbs | 8 +- .../new_floating_unit_with_percent_price.rbs | 8 +- ...new_floating_unit_with_proration_price.rbs | 8 +- sig/orb/models/new_plan_bulk_price.rbs | 8 +- .../new_plan_bulk_with_proration_price.rbs | 8 +- ...new_plan_cumulative_grouped_bulk_price.rbs | 8 +- .../new_plan_grouped_allocation_price.rbs | 8 +- .../new_plan_grouped_tiered_package_price.rbs | 8 +- .../models/new_plan_grouped_tiered_price.rbs | 8 +- ...lan_grouped_with_metered_minimum_price.rbs | 8 +- ...an_grouped_with_prorated_minimum_price.rbs | 8 +- sig/orb/models/new_plan_matrix_price.rbs | 8 +- .../new_plan_matrix_with_allocation_price.rbs | 8 +- ...ew_plan_matrix_with_display_name_price.rbs | 8 +- ...ew_plan_max_group_tiered_package_price.rbs | 8 +- .../new_plan_minimum_composite_price.rbs | 143 ++ sig/orb/models/new_plan_package_price.rbs | 8 +- ...new_plan_package_with_allocation_price.rbs | 8 +- ...lable_matrix_with_tiered_pricing_price.rbs | 8 +- ...calable_matrix_with_unit_pricing_price.rbs | 8 +- .../new_plan_threshold_total_amount_price.rbs | 8 +- .../new_plan_tier_with_proration_price.rbs | 8 +- .../models/new_plan_tiered_package_price.rbs | 8 +- ...plan_tiered_package_with_minimum_price.rbs | 8 +- sig/orb/models/new_plan_tiered_price.rbs | 8 +- .../new_plan_tiered_with_minimum_price.rbs | 8 +- sig/orb/models/new_plan_unit_price.rbs | 8 +- .../new_plan_unit_with_percent_price.rbs | 8 +- .../new_plan_unit_with_proration_price.rbs | 8 +- .../models/new_subscription_bulk_price.rbs | 8 +- ...subscription_bulk_with_proration_price.rbs | 8 +- ...cription_cumulative_grouped_bulk_price.rbs | 8 +- ..._subscription_grouped_allocation_price.rbs | 8 +- ...scription_grouped_tiered_package_price.rbs | 8 +- .../new_subscription_grouped_tiered_price.rbs | 8 +- ...ion_grouped_with_metered_minimum_price.rbs | 8 +- ...on_grouped_with_prorated_minimum_price.rbs | 8 +- .../models/new_subscription_matrix_price.rbs | 8 +- ...scription_matrix_with_allocation_price.rbs | 8 +- ...ription_matrix_with_display_name_price.rbs | 8 +- ...ription_max_group_tiered_package_price.rbs | 8 +- ...w_subscription_minimum_composite_price.rbs | 143 ++ .../models/new_subscription_package_price.rbs | 8 +- ...cription_package_with_allocation_price.rbs | 8 +- ...lable_matrix_with_tiered_pricing_price.rbs | 8 +- ...calable_matrix_with_unit_pricing_price.rbs | 8 +- ...scription_threshold_total_amount_price.rbs | 8 +- ...subscription_tier_with_proration_price.rbs | 8 +- .../new_subscription_tiered_package_price.rbs | 8 +- ...tion_tiered_package_with_minimum_price.rbs | 8 +- .../models/new_subscription_tiered_price.rbs | 8 +- ...subscription_tiered_with_minimum_price.rbs | 8 +- .../models/new_subscription_unit_price.rbs | 8 +- ...w_subscription_unit_with_percent_price.rbs | 8 +- ...subscription_unit_with_proration_price.rbs | 8 +- sig/orb/models/plan_create_params.rbs | 145 +- sig/orb/models/price.rbs | 216 +-- .../models/price_evaluate_multiple_params.rbs | 140 +- .../price_evaluate_preview_events_params.rbs | 140 +- sig/orb/models/subscription_create_params.rbs | 290 +--- .../subscription_price_intervals_params.rbs | 140 +- ...bscription_schedule_plan_change_params.rbs | 290 +--- .../prices/external_price_id_test.rb | 108 +- test/orb/resources/prices_test.rb | 216 +-- 193 files changed, 4138 insertions(+), 10243 deletions(-) create mode 100644 lib/orb/models/new_floating_minimum_composite_price.rb create mode 100644 lib/orb/models/new_plan_minimum_composite_price.rb create mode 100644 lib/orb/models/new_subscription_minimum_composite_price.rb create mode 100644 rbi/orb/models/new_floating_minimum_composite_price.rbi create mode 100644 rbi/orb/models/new_plan_minimum_composite_price.rbi create mode 100644 rbi/orb/models/new_subscription_minimum_composite_price.rbi create mode 100644 sig/orb/models/new_floating_minimum_composite_price.rbs create mode 100644 sig/orb/models/new_plan_minimum_composite_price.rbs create mode 100644 sig/orb/models/new_subscription_minimum_composite_price.rbs diff --git a/.stats.yml b/.stats.yml index a2f42b36..5c39bf21 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 118 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-6b2550b95f82872b3825619c109352352b9c92281c8b2470fce158e971142881.yml openapi_spec_hash: 379df18de1af6a9d0b50d3653aab4d44 -config_hash: be9350529b910ec14bff0a30cd74a185 +config_hash: 1f73a949b649ecfe6ec68ba1bb459dc2 diff --git a/lib/orb.rb b/lib/orb.rb index 1938dece..baeda135 100644 --- a/lib/orb.rb +++ b/lib/orb.rb @@ -242,6 +242,7 @@ require_relative "orb/models/new_floating_matrix_with_allocation_price" require_relative "orb/models/new_floating_matrix_with_display_name_price" require_relative "orb/models/new_floating_max_group_tiered_package_price" +require_relative "orb/models/new_floating_minimum_composite_price" require_relative "orb/models/new_floating_package_price" require_relative "orb/models/new_floating_package_with_allocation_price" require_relative "orb/models/new_floating_scalable_matrix_with_tiered_pricing_price" @@ -270,6 +271,7 @@ require_relative "orb/models/new_plan_matrix_with_allocation_price" require_relative "orb/models/new_plan_matrix_with_display_name_price" require_relative "orb/models/new_plan_max_group_tiered_package_price" +require_relative "orb/models/new_plan_minimum_composite_price" require_relative "orb/models/new_plan_package_price" require_relative "orb/models/new_plan_package_with_allocation_price" require_relative "orb/models/new_plan_scalable_matrix_with_tiered_pricing_price" @@ -297,6 +299,7 @@ require_relative "orb/models/new_subscription_matrix_with_allocation_price" require_relative "orb/models/new_subscription_matrix_with_display_name_price" require_relative "orb/models/new_subscription_max_group_tiered_package_price" +require_relative "orb/models/new_subscription_minimum_composite_price" require_relative "orb/models/new_subscription_package_price" require_relative "orb/models/new_subscription_package_with_allocation_price" require_relative "orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price" diff --git a/lib/orb/models.rb b/lib/orb/models.rb index dd619f82..bbe7a194 100644 --- a/lib/orb/models.rb +++ b/lib/orb/models.rb @@ -306,6 +306,8 @@ module Orb NewFloatingMaxGroupTieredPackagePrice = Orb::Models::NewFloatingMaxGroupTieredPackagePrice + NewFloatingMinimumCompositePrice = Orb::Models::NewFloatingMinimumCompositePrice + NewFloatingPackagePrice = Orb::Models::NewFloatingPackagePrice NewFloatingPackageWithAllocationPrice = Orb::Models::NewFloatingPackageWithAllocationPrice @@ -364,6 +366,8 @@ module Orb NewPlanMaxGroupTieredPackagePrice = Orb::Models::NewPlanMaxGroupTieredPackagePrice + NewPlanMinimumCompositePrice = Orb::Models::NewPlanMinimumCompositePrice + NewPlanPackagePrice = Orb::Models::NewPlanPackagePrice NewPlanPackageWithAllocationPrice = Orb::Models::NewPlanPackageWithAllocationPrice @@ -420,6 +424,8 @@ module Orb NewSubscriptionMaxGroupTieredPackagePrice = Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice + NewSubscriptionMinimumCompositePrice = Orb::Models::NewSubscriptionMinimumCompositePrice + NewSubscriptionPackagePrice = Orb::Models::NewSubscriptionPackagePrice NewSubscriptionPackageWithAllocationPrice = Orb::Models::NewSubscriptionPackageWithAllocationPrice diff --git a/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb b/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb index eddaefd6..383f71be 100644 --- a/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb +++ b/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb @@ -157,7 +157,7 @@ class AddPrice < Orb::Internal::Type::BaseModel # @!attribute price # The price to add to the plan # - # @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum, nil] + # @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanMinimumCompositePrice, nil] optional :price, union: -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price }, nil?: true @@ -167,7 +167,7 @@ class AddPrice < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] The phase to add this price to. # - # @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum, nil] The price to add to the plan + # @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanMinimumCompositePrice, nil] The price to add to the plan # The price to add to the plan # @@ -230,7 +230,7 @@ module Price variant :grouped_tiered, -> { Orb::NewPlanGroupedTieredPrice } - variant :minimum, -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum } + variant :minimum, -> { Orb::NewPlanMinimumCompositePrice } class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @!attribute cadence @@ -417,218 +417,8 @@ module Cadence end end - class Minimum < Orb::Internal::Type::BaseModel - # @!attribute cadence - # The cadence to bill for this price on. - # - # @return [Symbol, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence] - required :cadence, - enum: -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence } - - # @!attribute item_id - # The id of the item the price will be associated with. - # - # @return [String] - required :item_id, String - - # @!attribute minimum_config - # - # @return [Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig] - required :minimum_config, - -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig } - - # @!attribute model_type - # - # @return [Symbol, :minimum] - required :model_type, const: :minimum - - # @!attribute name - # The name of the price. - # - # @return [String] - required :name, String - - # @!attribute billable_metric_id - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - # - # @return [String, nil] - optional :billable_metric_id, String, nil?: true - - # @!attribute billed_in_advance - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - # - # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true - - # @!attribute billing_cycle_configuration - # For custom cadence: specifies the duration of the billing period in days or - # months. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute conversion_rate - # The per unit conversion rate of the price currency to the invoicing currency. - # - # @return [Float, nil] - optional :conversion_rate, Float, nil?: true - - # @!attribute conversion_rate_config - # The configuration for the rate of the price currency to the invoicing currency. - # - # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - optional :conversion_rate_config, - union: -> { - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::UnnamedTypeWithobjectParent1 - }, - nil?: true - - # @!attribute currency - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - # - # @return [String, nil] - optional :currency, String, nil?: true - - # @!attribute dimensional_price_configuration - # For dimensional price: specifies a price group and dimension values - # - # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] - optional :dimensional_price_configuration, - -> { - Orb::NewDimensionalPriceConfiguration - }, - nil?: true - - # @!attribute external_price_id - # An alias for the price. - # - # @return [String, nil] - optional :external_price_id, String, nil?: true - - # @!attribute fixed_price_quantity - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - # - # @return [Float, nil] - optional :fixed_price_quantity, Float, nil?: true - - # @!attribute invoice_grouping_key - # The property used to group this price on an invoice - # - # @return [String, nil] - optional :invoice_grouping_key, String, nil?: true - - # @!attribute invoicing_cycle_configuration - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute metadata - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - # - # @return [Hash{Symbol=>String, nil}, nil] - optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true - - # @!attribute reference_id - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - # - # @return [String, nil] - optional :reference_id, String, nil?: true - - # @!method initialize(cadence:, item_id:, minimum_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :minimum) - # Some parameter documentations has been truncated, see - # {Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum} - # for more details. - # - # @param cadence [Symbol, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence] The cadence to bill for this price on. - # - # @param item_id [String] The id of the item the price will be associated with. - # - # @param minimum_config [Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig] - # - # @param name [String] The name of the price. - # - # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # - # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # - # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # - # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. - # - # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. - # - # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # - # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values - # - # @param external_price_id [String, nil] An alias for the price. - # - # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # - # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice - # - # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # - # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # - # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # - # @param model_type [Symbol, :minimum] - - # The cadence to bill for this price on. - # - # @see Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum#cadence - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom - - # @!method self.values - # @return [Array] - end - - # @see Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum#minimum_config - class MinimumConfig < Orb::Internal::Type::BaseModel - # @!attribute minimum_amount - # The minimum amount to apply - # - # @return [String] - required :minimum_amount, String - - # @!attribute prorated - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - # - # @return [Boolean, nil] - optional :prorated, Orb::Internal::Type::Boolean, nil?: true - - # @!method initialize(minimum_amount:, prorated: nil) - # Some parameter documentations has been truncated, see - # {Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig} - # for more details. - # - # @param minimum_amount [String] The minimum amount to apply - # - # @param prorated [Boolean, nil] By default, subtotals from minimum composite prices are prorated based on the se - end - end - # @!method self.variants - # @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum)] + # @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanMinimumCompositePrice)] end end @@ -742,7 +532,7 @@ class ReplacePrice < Orb::Internal::Type::BaseModel # @!attribute price # The price to add to the plan # - # @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum, nil] + # @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanMinimumCompositePrice, nil] optional :price, union: -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price }, nil?: true @@ -754,7 +544,7 @@ class ReplacePrice < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] The phase to replace this price from. # - # @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum, nil] The price to add to the plan + # @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanMinimumCompositePrice, nil] The price to add to the plan # The price to add to the plan # @@ -817,7 +607,7 @@ module Price variant :grouped_tiered, -> { Orb::NewPlanGroupedTieredPrice } - variant :minimum, -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum } + variant :minimum, -> { Orb::NewPlanMinimumCompositePrice } class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @!attribute cadence @@ -883,7 +673,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, union: -> { - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent2 + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent1 }, nil?: true @@ -1004,218 +794,8 @@ module Cadence end end - class Minimum < Orb::Internal::Type::BaseModel - # @!attribute cadence - # The cadence to bill for this price on. - # - # @return [Symbol, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence] - required :cadence, - enum: -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence } - - # @!attribute item_id - # The id of the item the price will be associated with. - # - # @return [String] - required :item_id, String - - # @!attribute minimum_config - # - # @return [Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig] - required :minimum_config, - -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig } - - # @!attribute model_type - # - # @return [Symbol, :minimum] - required :model_type, const: :minimum - - # @!attribute name - # The name of the price. - # - # @return [String] - required :name, String - - # @!attribute billable_metric_id - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - # - # @return [String, nil] - optional :billable_metric_id, String, nil?: true - - # @!attribute billed_in_advance - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - # - # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true - - # @!attribute billing_cycle_configuration - # For custom cadence: specifies the duration of the billing period in days or - # months. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute conversion_rate - # The per unit conversion rate of the price currency to the invoicing currency. - # - # @return [Float, nil] - optional :conversion_rate, Float, nil?: true - - # @!attribute conversion_rate_config - # The configuration for the rate of the price currency to the invoicing currency. - # - # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - optional :conversion_rate_config, - union: -> { - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::UnnamedTypeWithobjectParent3 - }, - nil?: true - - # @!attribute currency - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - # - # @return [String, nil] - optional :currency, String, nil?: true - - # @!attribute dimensional_price_configuration - # For dimensional price: specifies a price group and dimension values - # - # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] - optional :dimensional_price_configuration, - -> { - Orb::NewDimensionalPriceConfiguration - }, - nil?: true - - # @!attribute external_price_id - # An alias for the price. - # - # @return [String, nil] - optional :external_price_id, String, nil?: true - - # @!attribute fixed_price_quantity - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - # - # @return [Float, nil] - optional :fixed_price_quantity, Float, nil?: true - - # @!attribute invoice_grouping_key - # The property used to group this price on an invoice - # - # @return [String, nil] - optional :invoice_grouping_key, String, nil?: true - - # @!attribute invoicing_cycle_configuration - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute metadata - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - # - # @return [Hash{Symbol=>String, nil}, nil] - optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true - - # @!attribute reference_id - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - # - # @return [String, nil] - optional :reference_id, String, nil?: true - - # @!method initialize(cadence:, item_id:, minimum_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :minimum) - # Some parameter documentations has been truncated, see - # {Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum} - # for more details. - # - # @param cadence [Symbol, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence] The cadence to bill for this price on. - # - # @param item_id [String] The id of the item the price will be associated with. - # - # @param minimum_config [Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig] - # - # @param name [String] The name of the price. - # - # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # - # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # - # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # - # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. - # - # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. - # - # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # - # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values - # - # @param external_price_id [String, nil] An alias for the price. - # - # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # - # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice - # - # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # - # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # - # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # - # @param model_type [Symbol, :minimum] - - # The cadence to bill for this price on. - # - # @see Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum#cadence - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom - - # @!method self.values - # @return [Array] - end - - # @see Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum#minimum_config - class MinimumConfig < Orb::Internal::Type::BaseModel - # @!attribute minimum_amount - # The minimum amount to apply - # - # @return [String] - required :minimum_amount, String - - # @!attribute prorated - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - # - # @return [Boolean, nil] - optional :prorated, Orb::Internal::Type::Boolean, nil?: true - - # @!method initialize(minimum_amount:, prorated: nil) - # Some parameter documentations has been truncated, see - # {Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig} - # for more details. - # - # @param minimum_amount [String] The minimum amount to apply - # - # @param prorated [Boolean, nil] By default, subtotals from minimum composite prices are prorated based on the se - end - end - # @!method self.variants - # @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum)] + # @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanMinimumCompositePrice)] end end end diff --git a/lib/orb/models/beta_create_plan_version_params.rb b/lib/orb/models/beta_create_plan_version_params.rb index 7c5874e4..2f9f14a4 100644 --- a/lib/orb/models/beta_create_plan_version_params.rb +++ b/lib/orb/models/beta_create_plan_version_params.rb @@ -143,7 +143,7 @@ class AddPrice < Orb::Internal::Type::BaseModel # @!attribute price # The price to add to the plan # - # @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum, nil] + # @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanMinimumCompositePrice, nil] optional :price, union: -> { Orb::BetaCreatePlanVersionParams::AddPrice::Price }, nil?: true # @!method initialize(allocation_price: nil, plan_phase_order: nil, price: nil) @@ -151,7 +151,7 @@ class AddPrice < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] The phase to add this price to. # - # @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum, nil] The price to add to the plan + # @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanMinimumCompositePrice, nil] The price to add to the plan # The price to add to the plan # @@ -214,7 +214,7 @@ module Price variant :grouped_tiered, -> { Orb::NewPlanGroupedTieredPrice } - variant :minimum, -> { Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum } + variant :minimum, -> { Orb::NewPlanMinimumCompositePrice } class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @!attribute cadence @@ -280,7 +280,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, union: -> { - Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent4 + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent2 }, nil?: true @@ -401,216 +401,8 @@ module Cadence end end - class Minimum < Orb::Internal::Type::BaseModel - # @!attribute cadence - # The cadence to bill for this price on. - # - # @return [Symbol, Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence] - required :cadence, enum: -> { Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence } - - # @!attribute item_id - # The id of the item the price will be associated with. - # - # @return [String] - required :item_id, String - - # @!attribute minimum_config - # - # @return [Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig] - required :minimum_config, -> { Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig } - - # @!attribute model_type - # - # @return [Symbol, :minimum] - required :model_type, const: :minimum - - # @!attribute name - # The name of the price. - # - # @return [String] - required :name, String - - # @!attribute billable_metric_id - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - # - # @return [String, nil] - optional :billable_metric_id, String, nil?: true - - # @!attribute billed_in_advance - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - # - # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true - - # @!attribute billing_cycle_configuration - # For custom cadence: specifies the duration of the billing period in days or - # months. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute conversion_rate - # The per unit conversion rate of the price currency to the invoicing currency. - # - # @return [Float, nil] - optional :conversion_rate, Float, nil?: true - - # @!attribute conversion_rate_config - # The configuration for the rate of the price currency to the invoicing currency. - # - # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - optional :conversion_rate_config, - union: -> { - Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::UnnamedTypeWithobjectParent5 - }, - nil?: true - - # @!attribute currency - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - # - # @return [String, nil] - optional :currency, String, nil?: true - - # @!attribute dimensional_price_configuration - # For dimensional price: specifies a price group and dimension values - # - # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] - optional :dimensional_price_configuration, - -> { - Orb::NewDimensionalPriceConfiguration - }, - nil?: true - - # @!attribute external_price_id - # An alias for the price. - # - # @return [String, nil] - optional :external_price_id, String, nil?: true - - # @!attribute fixed_price_quantity - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - # - # @return [Float, nil] - optional :fixed_price_quantity, Float, nil?: true - - # @!attribute invoice_grouping_key - # The property used to group this price on an invoice - # - # @return [String, nil] - optional :invoice_grouping_key, String, nil?: true - - # @!attribute invoicing_cycle_configuration - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute metadata - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - # - # @return [Hash{Symbol=>String, nil}, nil] - optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true - - # @!attribute reference_id - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - # - # @return [String, nil] - optional :reference_id, String, nil?: true - - # @!method initialize(cadence:, item_id:, minimum_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :minimum) - # Some parameter documentations has been truncated, see - # {Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum} for more - # details. - # - # @param cadence [Symbol, Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence] The cadence to bill for this price on. - # - # @param item_id [String] The id of the item the price will be associated with. - # - # @param minimum_config [Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig] - # - # @param name [String] The name of the price. - # - # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # - # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # - # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # - # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. - # - # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. - # - # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # - # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values - # - # @param external_price_id [String, nil] An alias for the price. - # - # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # - # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice - # - # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # - # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # - # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # - # @param model_type [Symbol, :minimum] - - # The cadence to bill for this price on. - # - # @see Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum#cadence - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom - - # @!method self.values - # @return [Array] - end - - # @see Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum#minimum_config - class MinimumConfig < Orb::Internal::Type::BaseModel - # @!attribute minimum_amount - # The minimum amount to apply - # - # @return [String] - required :minimum_amount, String - - # @!attribute prorated - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - # - # @return [Boolean, nil] - optional :prorated, Orb::Internal::Type::Boolean, nil?: true - - # @!method initialize(minimum_amount:, prorated: nil) - # Some parameter documentations has been truncated, see - # {Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig} - # for more details. - # - # @param minimum_amount [String] The minimum amount to apply - # - # @param prorated [Boolean, nil] By default, subtotals from minimum composite prices are prorated based on the se - end - end - # @!method self.variants - # @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum)] + # @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanMinimumCompositePrice)] end end @@ -723,7 +515,7 @@ class ReplacePrice < Orb::Internal::Type::BaseModel # @!attribute price # The price to add to the plan # - # @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum, nil] + # @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanMinimumCompositePrice, nil] optional :price, union: -> { Orb::BetaCreatePlanVersionParams::ReplacePrice::Price }, nil?: true # @!method initialize(replaces_price_id:, allocation_price: nil, plan_phase_order: nil, price: nil) @@ -733,7 +525,7 @@ class ReplacePrice < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] The phase to replace this price from. # - # @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum, nil] The price to add to the plan + # @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanMinimumCompositePrice, nil] The price to add to the plan # The price to add to the plan # @@ -796,7 +588,7 @@ module Price variant :grouped_tiered, -> { Orb::NewPlanGroupedTieredPrice } - variant :minimum, -> { Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum } + variant :minimum, -> { Orb::NewPlanMinimumCompositePrice } class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @!attribute cadence @@ -862,7 +654,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, union: -> { - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent6 + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent3 }, nil?: true @@ -983,217 +775,8 @@ module Cadence end end - class Minimum < Orb::Internal::Type::BaseModel - # @!attribute cadence - # The cadence to bill for this price on. - # - # @return [Symbol, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence] - required :cadence, enum: -> { Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence } - - # @!attribute item_id - # The id of the item the price will be associated with. - # - # @return [String] - required :item_id, String - - # @!attribute minimum_config - # - # @return [Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig] - required :minimum_config, - -> { Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig } - - # @!attribute model_type - # - # @return [Symbol, :minimum] - required :model_type, const: :minimum - - # @!attribute name - # The name of the price. - # - # @return [String] - required :name, String - - # @!attribute billable_metric_id - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - # - # @return [String, nil] - optional :billable_metric_id, String, nil?: true - - # @!attribute billed_in_advance - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - # - # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true - - # @!attribute billing_cycle_configuration - # For custom cadence: specifies the duration of the billing period in days or - # months. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute conversion_rate - # The per unit conversion rate of the price currency to the invoicing currency. - # - # @return [Float, nil] - optional :conversion_rate, Float, nil?: true - - # @!attribute conversion_rate_config - # The configuration for the rate of the price currency to the invoicing currency. - # - # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - optional :conversion_rate_config, - union: -> { - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::UnnamedTypeWithobjectParent7 - }, - nil?: true - - # @!attribute currency - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - # - # @return [String, nil] - optional :currency, String, nil?: true - - # @!attribute dimensional_price_configuration - # For dimensional price: specifies a price group and dimension values - # - # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] - optional :dimensional_price_configuration, - -> { - Orb::NewDimensionalPriceConfiguration - }, - nil?: true - - # @!attribute external_price_id - # An alias for the price. - # - # @return [String, nil] - optional :external_price_id, String, nil?: true - - # @!attribute fixed_price_quantity - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - # - # @return [Float, nil] - optional :fixed_price_quantity, Float, nil?: true - - # @!attribute invoice_grouping_key - # The property used to group this price on an invoice - # - # @return [String, nil] - optional :invoice_grouping_key, String, nil?: true - - # @!attribute invoicing_cycle_configuration - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute metadata - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - # - # @return [Hash{Symbol=>String, nil}, nil] - optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true - - # @!attribute reference_id - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - # - # @return [String, nil] - optional :reference_id, String, nil?: true - - # @!method initialize(cadence:, item_id:, minimum_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :minimum) - # Some parameter documentations has been truncated, see - # {Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum} for - # more details. - # - # @param cadence [Symbol, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence] The cadence to bill for this price on. - # - # @param item_id [String] The id of the item the price will be associated with. - # - # @param minimum_config [Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig] - # - # @param name [String] The name of the price. - # - # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # - # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # - # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # - # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. - # - # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. - # - # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # - # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values - # - # @param external_price_id [String, nil] An alias for the price. - # - # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # - # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice - # - # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # - # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # - # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # - # @param model_type [Symbol, :minimum] - - # The cadence to bill for this price on. - # - # @see Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum#cadence - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom - - # @!method self.values - # @return [Array] - end - - # @see Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum#minimum_config - class MinimumConfig < Orb::Internal::Type::BaseModel - # @!attribute minimum_amount - # The minimum amount to apply - # - # @return [String] - required :minimum_amount, String - - # @!attribute prorated - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - # - # @return [Boolean, nil] - optional :prorated, Orb::Internal::Type::Boolean, nil?: true - - # @!method initialize(minimum_amount:, prorated: nil) - # Some parameter documentations has been truncated, see - # {Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig} - # for more details. - # - # @param minimum_amount [String] The minimum amount to apply - # - # @param prorated [Boolean, nil] By default, subtotals from minimum composite prices are prorated based on the se - end - end - # @!method self.variants - # @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum)] + # @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanMinimumCompositePrice)] end end end diff --git a/lib/orb/models/new_floating_bulk_price.rb b/lib/orb/models/new_floating_bulk_price.rb index 40f96d64..82c89cc2 100644 --- a/lib/orb/models/new_floating_bulk_price.rb +++ b/lib/orb/models/new_floating_bulk_price.rb @@ -69,7 +69,7 @@ class NewFloatingBulkPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingBulkPrice::UnnamedTypeWithobjectParent8 }, + union: -> { Orb::NewFloatingBulkPrice::UnnamedTypeWithobjectParent4 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_bulk_with_proration_price.rb b/lib/orb/models/new_floating_bulk_with_proration_price.rb index 7080ace1..5fc14491 100644 --- a/lib/orb/models/new_floating_bulk_with_proration_price.rb +++ b/lib/orb/models/new_floating_bulk_with_proration_price.rb @@ -69,7 +69,7 @@ class NewFloatingBulkWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingBulkWithProrationPrice::UnnamedTypeWithobjectParent9 }, + union: -> { Orb::NewFloatingBulkWithProrationPrice::UnnamedTypeWithobjectParent5 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_cumulative_grouped_bulk_price.rb b/lib/orb/models/new_floating_cumulative_grouped_bulk_price.rb index 53853a1d..190b6294 100644 --- a/lib/orb/models/new_floating_cumulative_grouped_bulk_price.rb +++ b/lib/orb/models/new_floating_cumulative_grouped_bulk_price.rb @@ -69,7 +69,7 @@ class NewFloatingCumulativeGroupedBulkPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingCumulativeGroupedBulkPrice::UnnamedTypeWithobjectParent10 }, + union: -> { Orb::NewFloatingCumulativeGroupedBulkPrice::UnnamedTypeWithobjectParent6 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_grouped_allocation_price.rb b/lib/orb/models/new_floating_grouped_allocation_price.rb index 0f9e2955..e92d7373 100644 --- a/lib/orb/models/new_floating_grouped_allocation_price.rb +++ b/lib/orb/models/new_floating_grouped_allocation_price.rb @@ -69,7 +69,7 @@ class NewFloatingGroupedAllocationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingGroupedAllocationPrice::UnnamedTypeWithobjectParent11 }, + union: -> { Orb::NewFloatingGroupedAllocationPrice::UnnamedTypeWithobjectParent7 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_grouped_tiered_package_price.rb b/lib/orb/models/new_floating_grouped_tiered_package_price.rb index 94af723f..6e532abd 100644 --- a/lib/orb/models/new_floating_grouped_tiered_package_price.rb +++ b/lib/orb/models/new_floating_grouped_tiered_package_price.rb @@ -69,7 +69,7 @@ class NewFloatingGroupedTieredPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingGroupedTieredPackagePrice::UnnamedTypeWithobjectParent12 }, + union: -> { Orb::NewFloatingGroupedTieredPackagePrice::UnnamedTypeWithobjectParent8 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_grouped_tiered_price.rb b/lib/orb/models/new_floating_grouped_tiered_price.rb index 021cf2c4..0abfdcfe 100644 --- a/lib/orb/models/new_floating_grouped_tiered_price.rb +++ b/lib/orb/models/new_floating_grouped_tiered_price.rb @@ -69,7 +69,7 @@ class NewFloatingGroupedTieredPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingGroupedTieredPrice::UnnamedTypeWithobjectParent13 }, + union: -> { Orb::NewFloatingGroupedTieredPrice::UnnamedTypeWithobjectParent9 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb b/lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb index ab4a6650..1d205edd 100644 --- a/lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb +++ b/lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb @@ -69,7 +69,7 @@ class NewFloatingGroupedWithMeteredMinimumPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingGroupedWithMeteredMinimumPrice::UnnamedTypeWithobjectParent14 }, + union: -> { Orb::NewFloatingGroupedWithMeteredMinimumPrice::UnnamedTypeWithobjectParent10 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_grouped_with_prorated_minimum_price.rb b/lib/orb/models/new_floating_grouped_with_prorated_minimum_price.rb index d3f246fe..001aadb5 100644 --- a/lib/orb/models/new_floating_grouped_with_prorated_minimum_price.rb +++ b/lib/orb/models/new_floating_grouped_with_prorated_minimum_price.rb @@ -69,7 +69,7 @@ class NewFloatingGroupedWithProratedMinimumPrice < Orb::Internal::Type::BaseMode # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingGroupedWithProratedMinimumPrice::UnnamedTypeWithobjectParent15 }, + union: -> { Orb::NewFloatingGroupedWithProratedMinimumPrice::UnnamedTypeWithobjectParent11 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_matrix_price.rb b/lib/orb/models/new_floating_matrix_price.rb index ffde0e26..3f600507 100644 --- a/lib/orb/models/new_floating_matrix_price.rb +++ b/lib/orb/models/new_floating_matrix_price.rb @@ -69,7 +69,7 @@ class NewFloatingMatrixPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingMatrixPrice::UnnamedTypeWithobjectParent16 }, + union: -> { Orb::NewFloatingMatrixPrice::UnnamedTypeWithobjectParent12 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_matrix_with_allocation_price.rb b/lib/orb/models/new_floating_matrix_with_allocation_price.rb index 42c69531..1784ff24 100644 --- a/lib/orb/models/new_floating_matrix_with_allocation_price.rb +++ b/lib/orb/models/new_floating_matrix_with_allocation_price.rb @@ -69,7 +69,7 @@ class NewFloatingMatrixWithAllocationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingMatrixWithAllocationPrice::UnnamedTypeWithobjectParent17 }, + union: -> { Orb::NewFloatingMatrixWithAllocationPrice::UnnamedTypeWithobjectParent13 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_matrix_with_display_name_price.rb b/lib/orb/models/new_floating_matrix_with_display_name_price.rb index 5a796943..5ee17c37 100644 --- a/lib/orb/models/new_floating_matrix_with_display_name_price.rb +++ b/lib/orb/models/new_floating_matrix_with_display_name_price.rb @@ -69,7 +69,7 @@ class NewFloatingMatrixWithDisplayNamePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingMatrixWithDisplayNamePrice::UnnamedTypeWithobjectParent18 }, + union: -> { Orb::NewFloatingMatrixWithDisplayNamePrice::UnnamedTypeWithobjectParent14 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_max_group_tiered_package_price.rb b/lib/orb/models/new_floating_max_group_tiered_package_price.rb index 26fbe7aa..75c5abb5 100644 --- a/lib/orb/models/new_floating_max_group_tiered_package_price.rb +++ b/lib/orb/models/new_floating_max_group_tiered_package_price.rb @@ -69,7 +69,7 @@ class NewFloatingMaxGroupTieredPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingMaxGroupTieredPackagePrice::UnnamedTypeWithobjectParent19 }, + union: -> { Orb::NewFloatingMaxGroupTieredPackagePrice::UnnamedTypeWithobjectParent15 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_minimum_composite_price.rb b/lib/orb/models/new_floating_minimum_composite_price.rb new file mode 100644 index 00000000..085468e3 --- /dev/null +++ b/lib/orb/models/new_floating_minimum_composite_price.rb @@ -0,0 +1,205 @@ +# frozen_string_literal: true + +module Orb + module Models + class NewFloatingMinimumCompositePrice < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::NewFloatingMinimumCompositePrice::Cadence] + required :cadence, enum: -> { Orb::NewFloatingMinimumCompositePrice::Cadence } + + # @!attribute currency + # An ISO 4217 currency string for which this price is billed in. + # + # @return [String] + required :currency, String + + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String + + # @!attribute minimum_config + # + # @return [Orb::Models::NewFloatingMinimumCompositePrice::MinimumConfig] + required :minimum_config, -> { Orb::NewFloatingMinimumCompositePrice::MinimumConfig } + + # @!attribute model_type + # + # @return [Symbol, Orb::Models::NewFloatingMinimumCompositePrice::ModelType] + required :model_type, enum: -> { Orb::NewFloatingMinimumCompositePrice::ModelType } + + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String + + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true + + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { Orb::NewFloatingMinimumCompositePrice::UnnamedTypeWithobjectParent16 }, + nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, -> { Orb::NewDimensionalPriceConfiguration }, nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!method initialize(cadence:, currency:, item_id:, minimum_config:, model_type:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil) + # Some parameter documentations has been truncated, see + # {Orb::Models::NewFloatingMinimumCompositePrice} for more details. + # + # @param cadence [Symbol, Orb::Models::NewFloatingMinimumCompositePrice::Cadence] The cadence to bill for this price on. + # + # @param currency [String] An ISO 4217 currency string for which this price is billed in. + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param minimum_config [Orb::Models::NewFloatingMinimumCompositePrice::MinimumConfig] + # + # @param model_type [Symbol, Orb::Models::NewFloatingMinimumCompositePrice::ModelType] + # + # @param name [String] The name of the price. + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + + # The cadence to bill for this price on. + # + # @see Orb::Models::NewFloatingMinimumCompositePrice#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + + # @see Orb::Models::NewFloatingMinimumCompositePrice#minimum_config + class MinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute minimum_amount + # The minimum amount to apply + # + # @return [String] + required :minimum_amount, String + + # @!attribute prorated + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + # + # @return [Boolean, nil] + optional :prorated, Orb::Internal::Type::Boolean, nil?: true + + # @!method initialize(minimum_amount:, prorated: nil) + # Some parameter documentations has been truncated, see + # {Orb::Models::NewFloatingMinimumCompositePrice::MinimumConfig} for more details. + # + # @param minimum_amount [String] The minimum amount to apply + # + # @param prorated [Boolean, nil] By default, subtotals from minimum composite prices are prorated based on the se + end + + # @see Orb::Models::NewFloatingMinimumCompositePrice#model_type + module ModelType + extend Orb::Internal::Type::Enum + + MINIMUM = :minimum + + # @!method self.values + # @return [Array] + end + end + end +end diff --git a/lib/orb/models/new_floating_package_price.rb b/lib/orb/models/new_floating_package_price.rb index ba9db59f..5b447c7f 100644 --- a/lib/orb/models/new_floating_package_price.rb +++ b/lib/orb/models/new_floating_package_price.rb @@ -69,7 +69,7 @@ class NewFloatingPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingPackagePrice::UnnamedTypeWithobjectParent20 }, + union: -> { Orb::NewFloatingPackagePrice::UnnamedTypeWithobjectParent17 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_package_with_allocation_price.rb b/lib/orb/models/new_floating_package_with_allocation_price.rb index f4ced562..c1bb9873 100644 --- a/lib/orb/models/new_floating_package_with_allocation_price.rb +++ b/lib/orb/models/new_floating_package_with_allocation_price.rb @@ -69,7 +69,7 @@ class NewFloatingPackageWithAllocationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingPackageWithAllocationPrice::UnnamedTypeWithobjectParent21 }, + union: -> { Orb::NewFloatingPackageWithAllocationPrice::UnnamedTypeWithobjectParent18 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rb b/lib/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rb index e0dcca7e..4a1a5535 100644 --- a/lib/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rb +++ b/lib/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rb @@ -71,7 +71,7 @@ class NewFloatingScalableMatrixWithTieredPricingPrice < Orb::Internal::Type::Bas # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, union: -> { - Orb::NewFloatingScalableMatrixWithTieredPricingPrice::UnnamedTypeWithobjectParent22 + Orb::NewFloatingScalableMatrixWithTieredPricingPrice::UnnamedTypeWithobjectParent19 }, nil?: true diff --git a/lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb b/lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb index 89d7b67c..80ef8cf5 100644 --- a/lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb +++ b/lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb @@ -71,7 +71,7 @@ class NewFloatingScalableMatrixWithUnitPricingPrice < Orb::Internal::Type::BaseM # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, union: -> { - Orb::NewFloatingScalableMatrixWithUnitPricingPrice::UnnamedTypeWithobjectParent23 + Orb::NewFloatingScalableMatrixWithUnitPricingPrice::UnnamedTypeWithobjectParent20 }, nil?: true diff --git a/lib/orb/models/new_floating_threshold_total_amount_price.rb b/lib/orb/models/new_floating_threshold_total_amount_price.rb index 90cc8503..e3a97dbe 100644 --- a/lib/orb/models/new_floating_threshold_total_amount_price.rb +++ b/lib/orb/models/new_floating_threshold_total_amount_price.rb @@ -69,7 +69,7 @@ class NewFloatingThresholdTotalAmountPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingThresholdTotalAmountPrice::UnnamedTypeWithobjectParent24 }, + union: -> { Orb::NewFloatingThresholdTotalAmountPrice::UnnamedTypeWithobjectParent21 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_tiered_package_price.rb b/lib/orb/models/new_floating_tiered_package_price.rb index 3db2aa4d..5c6c47d6 100644 --- a/lib/orb/models/new_floating_tiered_package_price.rb +++ b/lib/orb/models/new_floating_tiered_package_price.rb @@ -69,7 +69,7 @@ class NewFloatingTieredPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingTieredPackagePrice::UnnamedTypeWithobjectParent25 }, + union: -> { Orb::NewFloatingTieredPackagePrice::UnnamedTypeWithobjectParent22 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_tiered_package_with_minimum_price.rb b/lib/orb/models/new_floating_tiered_package_with_minimum_price.rb index e840fd14..15fc9591 100644 --- a/lib/orb/models/new_floating_tiered_package_with_minimum_price.rb +++ b/lib/orb/models/new_floating_tiered_package_with_minimum_price.rb @@ -69,7 +69,7 @@ class NewFloatingTieredPackageWithMinimumPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingTieredPackageWithMinimumPrice::UnnamedTypeWithobjectParent26 }, + union: -> { Orb::NewFloatingTieredPackageWithMinimumPrice::UnnamedTypeWithobjectParent23 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_tiered_price.rb b/lib/orb/models/new_floating_tiered_price.rb index bf38899b..e3fa7b75 100644 --- a/lib/orb/models/new_floating_tiered_price.rb +++ b/lib/orb/models/new_floating_tiered_price.rb @@ -69,7 +69,7 @@ class NewFloatingTieredPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingTieredPrice::UnnamedTypeWithobjectParent27 }, + union: -> { Orb::NewFloatingTieredPrice::UnnamedTypeWithobjectParent24 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_tiered_with_minimum_price.rb b/lib/orb/models/new_floating_tiered_with_minimum_price.rb index 8461e84d..6c0e88ef 100644 --- a/lib/orb/models/new_floating_tiered_with_minimum_price.rb +++ b/lib/orb/models/new_floating_tiered_with_minimum_price.rb @@ -69,7 +69,7 @@ class NewFloatingTieredWithMinimumPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingTieredWithMinimumPrice::UnnamedTypeWithobjectParent28 }, + union: -> { Orb::NewFloatingTieredWithMinimumPrice::UnnamedTypeWithobjectParent25 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_tiered_with_proration_price.rb b/lib/orb/models/new_floating_tiered_with_proration_price.rb index ce9dded2..1b5e4908 100644 --- a/lib/orb/models/new_floating_tiered_with_proration_price.rb +++ b/lib/orb/models/new_floating_tiered_with_proration_price.rb @@ -69,7 +69,7 @@ class NewFloatingTieredWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingTieredWithProrationPrice::UnnamedTypeWithobjectParent29 }, + union: -> { Orb::NewFloatingTieredWithProrationPrice::UnnamedTypeWithobjectParent26 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_unit_price.rb b/lib/orb/models/new_floating_unit_price.rb index fe489fc0..d1a4dd3e 100644 --- a/lib/orb/models/new_floating_unit_price.rb +++ b/lib/orb/models/new_floating_unit_price.rb @@ -69,7 +69,7 @@ class NewFloatingUnitPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingUnitPrice::UnnamedTypeWithobjectParent30 }, + union: -> { Orb::NewFloatingUnitPrice::UnnamedTypeWithobjectParent27 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_unit_with_percent_price.rb b/lib/orb/models/new_floating_unit_with_percent_price.rb index 0574f8c6..109d65d1 100644 --- a/lib/orb/models/new_floating_unit_with_percent_price.rb +++ b/lib/orb/models/new_floating_unit_with_percent_price.rb @@ -69,7 +69,7 @@ class NewFloatingUnitWithPercentPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingUnitWithPercentPrice::UnnamedTypeWithobjectParent31 }, + union: -> { Orb::NewFloatingUnitWithPercentPrice::UnnamedTypeWithobjectParent28 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_unit_with_proration_price.rb b/lib/orb/models/new_floating_unit_with_proration_price.rb index 822fa08a..e02f2159 100644 --- a/lib/orb/models/new_floating_unit_with_proration_price.rb +++ b/lib/orb/models/new_floating_unit_with_proration_price.rb @@ -69,7 +69,7 @@ class NewFloatingUnitWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingUnitWithProrationPrice::UnnamedTypeWithobjectParent32 }, + union: -> { Orb::NewFloatingUnitWithProrationPrice::UnnamedTypeWithobjectParent29 }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_plan_bulk_price.rb b/lib/orb/models/new_plan_bulk_price.rb index 063cad00..f4d51243 100644 --- a/lib/orb/models/new_plan_bulk_price.rb +++ b/lib/orb/models/new_plan_bulk_price.rb @@ -63,7 +63,7 @@ class NewPlanBulkPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanBulkPrice::UnnamedTypeWithobjectParent33 }, + union: -> { Orb::NewPlanBulkPrice::UnnamedTypeWithobjectParent30 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_bulk_with_proration_price.rb b/lib/orb/models/new_plan_bulk_with_proration_price.rb index 14714533..46115f53 100644 --- a/lib/orb/models/new_plan_bulk_with_proration_price.rb +++ b/lib/orb/models/new_plan_bulk_with_proration_price.rb @@ -63,7 +63,7 @@ class NewPlanBulkWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanBulkWithProrationPrice::UnnamedTypeWithobjectParent34 }, + union: -> { Orb::NewPlanBulkWithProrationPrice::UnnamedTypeWithobjectParent31 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb b/lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb index bfc3a944..8ecd30b6 100644 --- a/lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb +++ b/lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb @@ -63,7 +63,7 @@ class NewPlanCumulativeGroupedBulkPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanCumulativeGroupedBulkPrice::UnnamedTypeWithobjectParent35 }, + union: -> { Orb::NewPlanCumulativeGroupedBulkPrice::UnnamedTypeWithobjectParent32 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_grouped_allocation_price.rb b/lib/orb/models/new_plan_grouped_allocation_price.rb index 974af90e..c3b17c0c 100644 --- a/lib/orb/models/new_plan_grouped_allocation_price.rb +++ b/lib/orb/models/new_plan_grouped_allocation_price.rb @@ -63,7 +63,7 @@ class NewPlanGroupedAllocationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanGroupedAllocationPrice::UnnamedTypeWithobjectParent36 }, + union: -> { Orb::NewPlanGroupedAllocationPrice::UnnamedTypeWithobjectParent33 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_grouped_tiered_package_price.rb b/lib/orb/models/new_plan_grouped_tiered_package_price.rb index 011bf8ce..b2b601b4 100644 --- a/lib/orb/models/new_plan_grouped_tiered_package_price.rb +++ b/lib/orb/models/new_plan_grouped_tiered_package_price.rb @@ -63,7 +63,7 @@ class NewPlanGroupedTieredPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanGroupedTieredPackagePrice::UnnamedTypeWithobjectParent37 }, + union: -> { Orb::NewPlanGroupedTieredPackagePrice::UnnamedTypeWithobjectParent34 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_grouped_tiered_price.rb b/lib/orb/models/new_plan_grouped_tiered_price.rb index dfccdf30..615b8998 100644 --- a/lib/orb/models/new_plan_grouped_tiered_price.rb +++ b/lib/orb/models/new_plan_grouped_tiered_price.rb @@ -63,7 +63,7 @@ class NewPlanGroupedTieredPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanGroupedTieredPrice::UnnamedTypeWithobjectParent38 }, + union: -> { Orb::NewPlanGroupedTieredPrice::UnnamedTypeWithobjectParent35 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_grouped_with_metered_minimum_price.rb b/lib/orb/models/new_plan_grouped_with_metered_minimum_price.rb index cdc0051d..8d7b0d55 100644 --- a/lib/orb/models/new_plan_grouped_with_metered_minimum_price.rb +++ b/lib/orb/models/new_plan_grouped_with_metered_minimum_price.rb @@ -63,7 +63,7 @@ class NewPlanGroupedWithMeteredMinimumPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanGroupedWithMeteredMinimumPrice::UnnamedTypeWithobjectParent39 }, + union: -> { Orb::NewPlanGroupedWithMeteredMinimumPrice::UnnamedTypeWithobjectParent36 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_grouped_with_prorated_minimum_price.rb b/lib/orb/models/new_plan_grouped_with_prorated_minimum_price.rb index 74ddfc9d..b7bc6185 100644 --- a/lib/orb/models/new_plan_grouped_with_prorated_minimum_price.rb +++ b/lib/orb/models/new_plan_grouped_with_prorated_minimum_price.rb @@ -63,7 +63,7 @@ class NewPlanGroupedWithProratedMinimumPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanGroupedWithProratedMinimumPrice::UnnamedTypeWithobjectParent40 }, + union: -> { Orb::NewPlanGroupedWithProratedMinimumPrice::UnnamedTypeWithobjectParent37 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_matrix_price.rb b/lib/orb/models/new_plan_matrix_price.rb index 719b6273..a0cb3138 100644 --- a/lib/orb/models/new_plan_matrix_price.rb +++ b/lib/orb/models/new_plan_matrix_price.rb @@ -63,7 +63,7 @@ class NewPlanMatrixPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanMatrixPrice::UnnamedTypeWithobjectParent41 }, + union: -> { Orb::NewPlanMatrixPrice::UnnamedTypeWithobjectParent38 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_matrix_with_allocation_price.rb b/lib/orb/models/new_plan_matrix_with_allocation_price.rb index 4d1db41a..720fcdb8 100644 --- a/lib/orb/models/new_plan_matrix_with_allocation_price.rb +++ b/lib/orb/models/new_plan_matrix_with_allocation_price.rb @@ -63,7 +63,7 @@ class NewPlanMatrixWithAllocationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanMatrixWithAllocationPrice::UnnamedTypeWithobjectParent42 }, + union: -> { Orb::NewPlanMatrixWithAllocationPrice::UnnamedTypeWithobjectParent39 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_matrix_with_display_name_price.rb b/lib/orb/models/new_plan_matrix_with_display_name_price.rb index 52dd0fbd..56d3d3cc 100644 --- a/lib/orb/models/new_plan_matrix_with_display_name_price.rb +++ b/lib/orb/models/new_plan_matrix_with_display_name_price.rb @@ -63,7 +63,7 @@ class NewPlanMatrixWithDisplayNamePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanMatrixWithDisplayNamePrice::UnnamedTypeWithobjectParent43 }, + union: -> { Orb::NewPlanMatrixWithDisplayNamePrice::UnnamedTypeWithobjectParent40 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_max_group_tiered_package_price.rb b/lib/orb/models/new_plan_max_group_tiered_package_price.rb index d2ebfa1f..095f2e64 100644 --- a/lib/orb/models/new_plan_max_group_tiered_package_price.rb +++ b/lib/orb/models/new_plan_max_group_tiered_package_price.rb @@ -63,7 +63,7 @@ class NewPlanMaxGroupTieredPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanMaxGroupTieredPackagePrice::UnnamedTypeWithobjectParent44 }, + union: -> { Orb::NewPlanMaxGroupTieredPackagePrice::UnnamedTypeWithobjectParent41 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_minimum_composite_price.rb b/lib/orb/models/new_plan_minimum_composite_price.rb new file mode 100644 index 00000000..599a2274 --- /dev/null +++ b/lib/orb/models/new_plan_minimum_composite_price.rb @@ -0,0 +1,215 @@ +# frozen_string_literal: true + +module Orb + module Models + class NewPlanMinimumCompositePrice < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::NewPlanMinimumCompositePrice::Cadence] + required :cadence, enum: -> { Orb::NewPlanMinimumCompositePrice::Cadence } + + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String + + # @!attribute minimum_config + # + # @return [Orb::Models::NewPlanMinimumCompositePrice::MinimumConfig] + required :minimum_config, -> { Orb::NewPlanMinimumCompositePrice::MinimumConfig } + + # @!attribute model_type + # + # @return [Symbol, Orb::Models::NewPlanMinimumCompositePrice::ModelType] + required :model_type, enum: -> { Orb::NewPlanMinimumCompositePrice::ModelType } + + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String + + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true + + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { Orb::NewPlanMinimumCompositePrice::UnnamedTypeWithobjectParent42 }, + nil?: true + + # @!attribute currency + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + # + # @return [String, nil] + optional :currency, String, nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, -> { Orb::NewDimensionalPriceConfiguration }, nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!attribute reference_id + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + # + # @return [String, nil] + optional :reference_id, String, nil?: true + + # @!method initialize(cadence:, item_id:, minimum_config:, model_type:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil) + # Some parameter documentations has been truncated, see + # {Orb::Models::NewPlanMinimumCompositePrice} for more details. + # + # @param cadence [Symbol, Orb::Models::NewPlanMinimumCompositePrice::Cadence] The cadence to bill for this price on. + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param minimum_config [Orb::Models::NewPlanMinimumCompositePrice::MinimumConfig] + # + # @param model_type [Symbol, Orb::Models::NewPlanMinimumCompositePrice::ModelType] + # + # @param name [String] The name of the price. + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments + + # The cadence to bill for this price on. + # + # @see Orb::Models::NewPlanMinimumCompositePrice#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + + # @see Orb::Models::NewPlanMinimumCompositePrice#minimum_config + class MinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute minimum_amount + # The minimum amount to apply + # + # @return [String] + required :minimum_amount, String + + # @!attribute prorated + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + # + # @return [Boolean, nil] + optional :prorated, Orb::Internal::Type::Boolean, nil?: true + + # @!method initialize(minimum_amount:, prorated: nil) + # Some parameter documentations has been truncated, see + # {Orb::Models::NewPlanMinimumCompositePrice::MinimumConfig} for more details. + # + # @param minimum_amount [String] The minimum amount to apply + # + # @param prorated [Boolean, nil] By default, subtotals from minimum composite prices are prorated based on the se + end + + # @see Orb::Models::NewPlanMinimumCompositePrice#model_type + module ModelType + extend Orb::Internal::Type::Enum + + MINIMUM = :minimum + + # @!method self.values + # @return [Array] + end + end + end +end diff --git a/lib/orb/models/new_plan_package_price.rb b/lib/orb/models/new_plan_package_price.rb index b6e5728e..72bb1ee7 100644 --- a/lib/orb/models/new_plan_package_price.rb +++ b/lib/orb/models/new_plan_package_price.rb @@ -63,7 +63,7 @@ class NewPlanPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanPackagePrice::UnnamedTypeWithobjectParent45 }, + union: -> { Orb::NewPlanPackagePrice::UnnamedTypeWithobjectParent43 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_package_with_allocation_price.rb b/lib/orb/models/new_plan_package_with_allocation_price.rb index 20f92262..34987367 100644 --- a/lib/orb/models/new_plan_package_with_allocation_price.rb +++ b/lib/orb/models/new_plan_package_with_allocation_price.rb @@ -63,7 +63,7 @@ class NewPlanPackageWithAllocationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanPackageWithAllocationPrice::UnnamedTypeWithobjectParent46 }, + union: -> { Orb::NewPlanPackageWithAllocationPrice::UnnamedTypeWithobjectParent44 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rb b/lib/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rb index 6387bd32..0c416cab 100644 --- a/lib/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rb +++ b/lib/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rb @@ -64,7 +64,7 @@ class NewPlanScalableMatrixWithTieredPricingPrice < Orb::Internal::Type::BaseMod # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanScalableMatrixWithTieredPricingPrice::UnnamedTypeWithobjectParent47 }, + union: -> { Orb::NewPlanScalableMatrixWithTieredPricingPrice::UnnamedTypeWithobjectParent45 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb b/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb index 39380c64..b7450a19 100644 --- a/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb +++ b/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb @@ -64,7 +64,7 @@ class NewPlanScalableMatrixWithUnitPricingPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanScalableMatrixWithUnitPricingPrice::UnnamedTypeWithobjectParent48 }, + union: -> { Orb::NewPlanScalableMatrixWithUnitPricingPrice::UnnamedTypeWithobjectParent46 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_threshold_total_amount_price.rb b/lib/orb/models/new_plan_threshold_total_amount_price.rb index 84e3bfa1..e41b13bf 100644 --- a/lib/orb/models/new_plan_threshold_total_amount_price.rb +++ b/lib/orb/models/new_plan_threshold_total_amount_price.rb @@ -63,7 +63,7 @@ class NewPlanThresholdTotalAmountPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanThresholdTotalAmountPrice::UnnamedTypeWithobjectParent49 }, + union: -> { Orb::NewPlanThresholdTotalAmountPrice::UnnamedTypeWithobjectParent47 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_tier_with_proration_price.rb b/lib/orb/models/new_plan_tier_with_proration_price.rb index 69564d70..e90d2fa6 100644 --- a/lib/orb/models/new_plan_tier_with_proration_price.rb +++ b/lib/orb/models/new_plan_tier_with_proration_price.rb @@ -63,7 +63,7 @@ class NewPlanTierWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanTierWithProrationPrice::UnnamedTypeWithobjectParent54 }, + union: -> { Orb::NewPlanTierWithProrationPrice::UnnamedTypeWithobjectParent52 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_tiered_package_price.rb b/lib/orb/models/new_plan_tiered_package_price.rb index 24bff229..1ee4c137 100644 --- a/lib/orb/models/new_plan_tiered_package_price.rb +++ b/lib/orb/models/new_plan_tiered_package_price.rb @@ -63,7 +63,7 @@ class NewPlanTieredPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanTieredPackagePrice::UnnamedTypeWithobjectParent50 }, + union: -> { Orb::NewPlanTieredPackagePrice::UnnamedTypeWithobjectParent48 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_tiered_package_with_minimum_price.rb b/lib/orb/models/new_plan_tiered_package_with_minimum_price.rb index ea756008..ca92b81e 100644 --- a/lib/orb/models/new_plan_tiered_package_with_minimum_price.rb +++ b/lib/orb/models/new_plan_tiered_package_with_minimum_price.rb @@ -63,7 +63,7 @@ class NewPlanTieredPackageWithMinimumPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanTieredPackageWithMinimumPrice::UnnamedTypeWithobjectParent51 }, + union: -> { Orb::NewPlanTieredPackageWithMinimumPrice::UnnamedTypeWithobjectParent49 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_tiered_price.rb b/lib/orb/models/new_plan_tiered_price.rb index 2cf6a19c..09dd78cd 100644 --- a/lib/orb/models/new_plan_tiered_price.rb +++ b/lib/orb/models/new_plan_tiered_price.rb @@ -63,7 +63,7 @@ class NewPlanTieredPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanTieredPrice::UnnamedTypeWithobjectParent52 }, + union: -> { Orb::NewPlanTieredPrice::UnnamedTypeWithobjectParent50 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_tiered_with_minimum_price.rb b/lib/orb/models/new_plan_tiered_with_minimum_price.rb index f34a32de..d972523e 100644 --- a/lib/orb/models/new_plan_tiered_with_minimum_price.rb +++ b/lib/orb/models/new_plan_tiered_with_minimum_price.rb @@ -63,7 +63,7 @@ class NewPlanTieredWithMinimumPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanTieredWithMinimumPrice::UnnamedTypeWithobjectParent53 }, + union: -> { Orb::NewPlanTieredWithMinimumPrice::UnnamedTypeWithobjectParent51 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_unit_price.rb b/lib/orb/models/new_plan_unit_price.rb index 04b9a97c..40bfd8fe 100644 --- a/lib/orb/models/new_plan_unit_price.rb +++ b/lib/orb/models/new_plan_unit_price.rb @@ -63,7 +63,7 @@ class NewPlanUnitPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanUnitPrice::UnnamedTypeWithobjectParent55 }, + union: -> { Orb::NewPlanUnitPrice::UnnamedTypeWithobjectParent53 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_unit_with_percent_price.rb b/lib/orb/models/new_plan_unit_with_percent_price.rb index 36a0638a..dffeec35 100644 --- a/lib/orb/models/new_plan_unit_with_percent_price.rb +++ b/lib/orb/models/new_plan_unit_with_percent_price.rb @@ -63,7 +63,7 @@ class NewPlanUnitWithPercentPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanUnitWithPercentPrice::UnnamedTypeWithobjectParent56 }, + union: -> { Orb::NewPlanUnitWithPercentPrice::UnnamedTypeWithobjectParent54 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_unit_with_proration_price.rb b/lib/orb/models/new_plan_unit_with_proration_price.rb index 9177c4d9..29ca2fe1 100644 --- a/lib/orb/models/new_plan_unit_with_proration_price.rb +++ b/lib/orb/models/new_plan_unit_with_proration_price.rb @@ -63,7 +63,7 @@ class NewPlanUnitWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanUnitWithProrationPrice::UnnamedTypeWithobjectParent57 }, + union: -> { Orb::NewPlanUnitWithProrationPrice::UnnamedTypeWithobjectParent55 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_bulk_price.rb b/lib/orb/models/new_subscription_bulk_price.rb index e7720e89..59a3ce03 100644 --- a/lib/orb/models/new_subscription_bulk_price.rb +++ b/lib/orb/models/new_subscription_bulk_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionBulkPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionBulkPrice::UnnamedTypeWithobjectParent58 }, + union: -> { Orb::NewSubscriptionBulkPrice::UnnamedTypeWithobjectParent56 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_bulk_with_proration_price.rb b/lib/orb/models/new_subscription_bulk_with_proration_price.rb index 00681a84..a5c9f539 100644 --- a/lib/orb/models/new_subscription_bulk_with_proration_price.rb +++ b/lib/orb/models/new_subscription_bulk_with_proration_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionBulkWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionBulkWithProrationPrice::UnnamedTypeWithobjectParent59 }, + union: -> { Orb::NewSubscriptionBulkWithProrationPrice::UnnamedTypeWithobjectParent57 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_cumulative_grouped_bulk_price.rb b/lib/orb/models/new_subscription_cumulative_grouped_bulk_price.rb index 817d7710..b762798d 100644 --- a/lib/orb/models/new_subscription_cumulative_grouped_bulk_price.rb +++ b/lib/orb/models/new_subscription_cumulative_grouped_bulk_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionCumulativeGroupedBulkPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionCumulativeGroupedBulkPrice::UnnamedTypeWithobjectParent60 }, + union: -> { Orb::NewSubscriptionCumulativeGroupedBulkPrice::UnnamedTypeWithobjectParent58 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_grouped_allocation_price.rb b/lib/orb/models/new_subscription_grouped_allocation_price.rb index cf363a0f..e15288fe 100644 --- a/lib/orb/models/new_subscription_grouped_allocation_price.rb +++ b/lib/orb/models/new_subscription_grouped_allocation_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionGroupedAllocationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionGroupedAllocationPrice::UnnamedTypeWithobjectParent61 }, + union: -> { Orb::NewSubscriptionGroupedAllocationPrice::UnnamedTypeWithobjectParent59 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_grouped_tiered_package_price.rb b/lib/orb/models/new_subscription_grouped_tiered_package_price.rb index 269ab8d4..1251964d 100644 --- a/lib/orb/models/new_subscription_grouped_tiered_package_price.rb +++ b/lib/orb/models/new_subscription_grouped_tiered_package_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionGroupedTieredPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionGroupedTieredPackagePrice::UnnamedTypeWithobjectParent62 }, + union: -> { Orb::NewSubscriptionGroupedTieredPackagePrice::UnnamedTypeWithobjectParent60 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_grouped_tiered_price.rb b/lib/orb/models/new_subscription_grouped_tiered_price.rb index 07965b88..2be0acde 100644 --- a/lib/orb/models/new_subscription_grouped_tiered_price.rb +++ b/lib/orb/models/new_subscription_grouped_tiered_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionGroupedTieredPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionGroupedTieredPrice::UnnamedTypeWithobjectParent63 }, + union: -> { Orb::NewSubscriptionGroupedTieredPrice::UnnamedTypeWithobjectParent61 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_grouped_with_metered_minimum_price.rb b/lib/orb/models/new_subscription_grouped_with_metered_minimum_price.rb index 4505390b..7faa51f3 100644 --- a/lib/orb/models/new_subscription_grouped_with_metered_minimum_price.rb +++ b/lib/orb/models/new_subscription_grouped_with_metered_minimum_price.rb @@ -64,7 +64,7 @@ class NewSubscriptionGroupedWithMeteredMinimumPrice < Orb::Internal::Type::BaseM # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, union: -> { - Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::UnnamedTypeWithobjectParent64 + Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::UnnamedTypeWithobjectParent62 }, nil?: true diff --git a/lib/orb/models/new_subscription_grouped_with_prorated_minimum_price.rb b/lib/orb/models/new_subscription_grouped_with_prorated_minimum_price.rb index a3bce400..385db6ca 100644 --- a/lib/orb/models/new_subscription_grouped_with_prorated_minimum_price.rb +++ b/lib/orb/models/new_subscription_grouped_with_prorated_minimum_price.rb @@ -64,7 +64,7 @@ class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::Internal::Type::Base # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, union: -> { - Orb::NewSubscriptionGroupedWithProratedMinimumPrice::UnnamedTypeWithobjectParent65 + Orb::NewSubscriptionGroupedWithProratedMinimumPrice::UnnamedTypeWithobjectParent63 }, nil?: true diff --git a/lib/orb/models/new_subscription_matrix_price.rb b/lib/orb/models/new_subscription_matrix_price.rb index 36c0903a..ec51554e 100644 --- a/lib/orb/models/new_subscription_matrix_price.rb +++ b/lib/orb/models/new_subscription_matrix_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionMatrixPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionMatrixPrice::UnnamedTypeWithobjectParent66 }, + union: -> { Orb::NewSubscriptionMatrixPrice::UnnamedTypeWithobjectParent64 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_matrix_with_allocation_price.rb b/lib/orb/models/new_subscription_matrix_with_allocation_price.rb index 90b6148b..569275d0 100644 --- a/lib/orb/models/new_subscription_matrix_with_allocation_price.rb +++ b/lib/orb/models/new_subscription_matrix_with_allocation_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionMatrixWithAllocationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionMatrixWithAllocationPrice::UnnamedTypeWithobjectParent67 }, + union: -> { Orb::NewSubscriptionMatrixWithAllocationPrice::UnnamedTypeWithobjectParent65 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_matrix_with_display_name_price.rb b/lib/orb/models/new_subscription_matrix_with_display_name_price.rb index 8c82d2fb..3a351b5f 100644 --- a/lib/orb/models/new_subscription_matrix_with_display_name_price.rb +++ b/lib/orb/models/new_subscription_matrix_with_display_name_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionMatrixWithDisplayNamePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionMatrixWithDisplayNamePrice::UnnamedTypeWithobjectParent68 }, + union: -> { Orb::NewSubscriptionMatrixWithDisplayNamePrice::UnnamedTypeWithobjectParent66 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_max_group_tiered_package_price.rb b/lib/orb/models/new_subscription_max_group_tiered_package_price.rb index cffef05a..a14e2485 100644 --- a/lib/orb/models/new_subscription_max_group_tiered_package_price.rb +++ b/lib/orb/models/new_subscription_max_group_tiered_package_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionMaxGroupTieredPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionMaxGroupTieredPackagePrice::UnnamedTypeWithobjectParent69 }, + union: -> { Orb::NewSubscriptionMaxGroupTieredPackagePrice::UnnamedTypeWithobjectParent67 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_minimum_composite_price.rb b/lib/orb/models/new_subscription_minimum_composite_price.rb new file mode 100644 index 00000000..0aaf73b7 --- /dev/null +++ b/lib/orb/models/new_subscription_minimum_composite_price.rb @@ -0,0 +1,216 @@ +# frozen_string_literal: true + +module Orb + module Models + class NewSubscriptionMinimumCompositePrice < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::NewSubscriptionMinimumCompositePrice::Cadence] + required :cadence, enum: -> { Orb::NewSubscriptionMinimumCompositePrice::Cadence } + + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String + + # @!attribute minimum_config + # + # @return [Orb::Models::NewSubscriptionMinimumCompositePrice::MinimumConfig] + required :minimum_config, -> { Orb::NewSubscriptionMinimumCompositePrice::MinimumConfig } + + # @!attribute model_type + # + # @return [Symbol, Orb::Models::NewSubscriptionMinimumCompositePrice::ModelType] + required :model_type, enum: -> { Orb::NewSubscriptionMinimumCompositePrice::ModelType } + + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String + + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true + + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { Orb::NewSubscriptionMinimumCompositePrice::UnnamedTypeWithobjectParent68 }, + nil?: true + + # @!attribute currency + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + # + # @return [String, nil] + optional :currency, String, nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, -> { Orb::NewDimensionalPriceConfiguration }, nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!attribute reference_id + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + # + # @return [String, nil] + optional :reference_id, String, nil?: true + + # @!method initialize(cadence:, item_id:, minimum_config:, model_type:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil) + # Some parameter documentations has been truncated, see + # {Orb::Models::NewSubscriptionMinimumCompositePrice} for more details. + # + # @param cadence [Symbol, Orb::Models::NewSubscriptionMinimumCompositePrice::Cadence] The cadence to bill for this price on. + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param minimum_config [Orb::Models::NewSubscriptionMinimumCompositePrice::MinimumConfig] + # + # @param model_type [Symbol, Orb::Models::NewSubscriptionMinimumCompositePrice::ModelType] + # + # @param name [String] The name of the price. + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments + + # The cadence to bill for this price on. + # + # @see Orb::Models::NewSubscriptionMinimumCompositePrice#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + + # @see Orb::Models::NewSubscriptionMinimumCompositePrice#minimum_config + class MinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute minimum_amount + # The minimum amount to apply + # + # @return [String] + required :minimum_amount, String + + # @!attribute prorated + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + # + # @return [Boolean, nil] + optional :prorated, Orb::Internal::Type::Boolean, nil?: true + + # @!method initialize(minimum_amount:, prorated: nil) + # Some parameter documentations has been truncated, see + # {Orb::Models::NewSubscriptionMinimumCompositePrice::MinimumConfig} for more + # details. + # + # @param minimum_amount [String] The minimum amount to apply + # + # @param prorated [Boolean, nil] By default, subtotals from minimum composite prices are prorated based on the se + end + + # @see Orb::Models::NewSubscriptionMinimumCompositePrice#model_type + module ModelType + extend Orb::Internal::Type::Enum + + MINIMUM = :minimum + + # @!method self.values + # @return [Array] + end + end + end +end diff --git a/lib/orb/models/new_subscription_package_price.rb b/lib/orb/models/new_subscription_package_price.rb index 97141dbe..19ad4f20 100644 --- a/lib/orb/models/new_subscription_package_price.rb +++ b/lib/orb/models/new_subscription_package_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionPackagePrice::UnnamedTypeWithobjectParent70 }, + union: -> { Orb::NewSubscriptionPackagePrice::UnnamedTypeWithobjectParent69 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_package_with_allocation_price.rb b/lib/orb/models/new_subscription_package_with_allocation_price.rb index 96e07e53..e5c67724 100644 --- a/lib/orb/models/new_subscription_package_with_allocation_price.rb +++ b/lib/orb/models/new_subscription_package_with_allocation_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionPackageWithAllocationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionPackageWithAllocationPrice::UnnamedTypeWithobjectParent71 }, + union: -> { Orb::NewSubscriptionPackageWithAllocationPrice::UnnamedTypeWithobjectParent70 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rb b/lib/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rb index c4b18efa..fb036e77 100644 --- a/lib/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rb +++ b/lib/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rb @@ -65,7 +65,7 @@ class NewSubscriptionScalableMatrixWithTieredPricingPrice < Orb::Internal::Type: # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, union: -> { - Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::UnnamedTypeWithobjectParent72 + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::UnnamedTypeWithobjectParent71 }, nil?: true diff --git a/lib/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rb b/lib/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rb index 8efad010..16c0f255 100644 --- a/lib/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rb +++ b/lib/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rb @@ -65,7 +65,7 @@ class NewSubscriptionScalableMatrixWithUnitPricingPrice < Orb::Internal::Type::B # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, union: -> { - Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::UnnamedTypeWithobjectParent73 + Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::UnnamedTypeWithobjectParent72 }, nil?: true diff --git a/lib/orb/models/new_subscription_threshold_total_amount_price.rb b/lib/orb/models/new_subscription_threshold_total_amount_price.rb index 2cec6b1c..0f81156b 100644 --- a/lib/orb/models/new_subscription_threshold_total_amount_price.rb +++ b/lib/orb/models/new_subscription_threshold_total_amount_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionThresholdTotalAmountPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionThresholdTotalAmountPrice::UnnamedTypeWithobjectParent74 }, + union: -> { Orb::NewSubscriptionThresholdTotalAmountPrice::UnnamedTypeWithobjectParent73 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_tier_with_proration_price.rb b/lib/orb/models/new_subscription_tier_with_proration_price.rb index 9b5b13b2..32cf7db4 100644 --- a/lib/orb/models/new_subscription_tier_with_proration_price.rb +++ b/lib/orb/models/new_subscription_tier_with_proration_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionTierWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionTierWithProrationPrice::UnnamedTypeWithobjectParent79 }, + union: -> { Orb::NewSubscriptionTierWithProrationPrice::UnnamedTypeWithobjectParent78 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_tiered_package_price.rb b/lib/orb/models/new_subscription_tiered_package_price.rb index 48560ff6..53d81197 100644 --- a/lib/orb/models/new_subscription_tiered_package_price.rb +++ b/lib/orb/models/new_subscription_tiered_package_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionTieredPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionTieredPackagePrice::UnnamedTypeWithobjectParent75 }, + union: -> { Orb::NewSubscriptionTieredPackagePrice::UnnamedTypeWithobjectParent74 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_tiered_package_with_minimum_price.rb b/lib/orb/models/new_subscription_tiered_package_with_minimum_price.rb index be262f6c..cef4b594 100644 --- a/lib/orb/models/new_subscription_tiered_package_with_minimum_price.rb +++ b/lib/orb/models/new_subscription_tiered_package_with_minimum_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionTieredPackageWithMinimumPrice < Orb::Internal::Type::BaseMo # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionTieredPackageWithMinimumPrice::UnnamedTypeWithobjectParent76 }, + union: -> { Orb::NewSubscriptionTieredPackageWithMinimumPrice::UnnamedTypeWithobjectParent75 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_tiered_price.rb b/lib/orb/models/new_subscription_tiered_price.rb index f8ec58a8..4060f05e 100644 --- a/lib/orb/models/new_subscription_tiered_price.rb +++ b/lib/orb/models/new_subscription_tiered_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionTieredPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionTieredPrice::UnnamedTypeWithobjectParent77 }, + union: -> { Orb::NewSubscriptionTieredPrice::UnnamedTypeWithobjectParent76 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_tiered_with_minimum_price.rb b/lib/orb/models/new_subscription_tiered_with_minimum_price.rb index c8d382ae..12701f49 100644 --- a/lib/orb/models/new_subscription_tiered_with_minimum_price.rb +++ b/lib/orb/models/new_subscription_tiered_with_minimum_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionTieredWithMinimumPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionTieredWithMinimumPrice::UnnamedTypeWithobjectParent78 }, + union: -> { Orb::NewSubscriptionTieredWithMinimumPrice::UnnamedTypeWithobjectParent77 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_unit_price.rb b/lib/orb/models/new_subscription_unit_price.rb index 06262e04..6dbdc3cb 100644 --- a/lib/orb/models/new_subscription_unit_price.rb +++ b/lib/orb/models/new_subscription_unit_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionUnitPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionUnitPrice::UnnamedTypeWithobjectParent80 }, + union: -> { Orb::NewSubscriptionUnitPrice::UnnamedTypeWithobjectParent79 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_unit_with_percent_price.rb b/lib/orb/models/new_subscription_unit_with_percent_price.rb index 7f3e13e8..7ea50b90 100644 --- a/lib/orb/models/new_subscription_unit_with_percent_price.rb +++ b/lib/orb/models/new_subscription_unit_with_percent_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionUnitWithPercentPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionUnitWithPercentPrice::UnnamedTypeWithobjectParent81 }, + union: -> { Orb::NewSubscriptionUnitWithPercentPrice::UnnamedTypeWithobjectParent80 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_unit_with_proration_price.rb b/lib/orb/models/new_subscription_unit_with_proration_price.rb index c1a9577c..4367eda3 100644 --- a/lib/orb/models/new_subscription_unit_with_proration_price.rb +++ b/lib/orb/models/new_subscription_unit_with_proration_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionUnitWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionUnitWithProrationPrice::UnnamedTypeWithobjectParent82 }, + union: -> { Orb::NewSubscriptionUnitWithProrationPrice::UnnamedTypeWithobjectParent81 }, nil?: true # @!attribute currency diff --git a/lib/orb/models/plan_create_params.rb b/lib/orb/models/plan_create_params.rb index 1de987e7..3d3d8711 100644 --- a/lib/orb/models/plan_create_params.rb +++ b/lib/orb/models/plan_create_params.rb @@ -120,7 +120,7 @@ class Price < Orb::Internal::Type::BaseModel # @!attribute price # The price to add to the plan # - # @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::PlanCreateParams::Price::Price::Minimum, nil] + # @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanMinimumCompositePrice, nil] optional :price, union: -> { Orb::PlanCreateParams::Price::Price }, nil?: true # @!method initialize(allocation_price: nil, plan_phase_order: nil, price: nil) @@ -128,7 +128,7 @@ class Price < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] The phase to add this price to. # - # @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::PlanCreateParams::Price::Price::Minimum, nil] The price to add to the plan + # @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanMinimumCompositePrice, nil] The price to add to the plan # The price to add to the plan # @@ -191,7 +191,7 @@ module Price variant :grouped_tiered, -> { Orb::NewPlanGroupedTieredPrice } - variant :minimum, -> { Orb::PlanCreateParams::Price::Price::Minimum } + variant :minimum, -> { Orb::NewPlanMinimumCompositePrice } class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @!attribute cadence @@ -256,7 +256,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, union: -> { - Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent83 + Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent82 }, nil?: true @@ -377,215 +377,8 @@ module Cadence end end - class Minimum < Orb::Internal::Type::BaseModel - # @!attribute cadence - # The cadence to bill for this price on. - # - # @return [Symbol, Orb::Models::PlanCreateParams::Price::Price::Minimum::Cadence] - required :cadence, enum: -> { Orb::PlanCreateParams::Price::Price::Minimum::Cadence } - - # @!attribute item_id - # The id of the item the price will be associated with. - # - # @return [String] - required :item_id, String - - # @!attribute minimum_config - # - # @return [Orb::Models::PlanCreateParams::Price::Price::Minimum::MinimumConfig] - required :minimum_config, -> { Orb::PlanCreateParams::Price::Price::Minimum::MinimumConfig } - - # @!attribute model_type - # - # @return [Symbol, :minimum] - required :model_type, const: :minimum - - # @!attribute name - # The name of the price. - # - # @return [String] - required :name, String - - # @!attribute billable_metric_id - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - # - # @return [String, nil] - optional :billable_metric_id, String, nil?: true - - # @!attribute billed_in_advance - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - # - # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true - - # @!attribute billing_cycle_configuration - # For custom cadence: specifies the duration of the billing period in days or - # months. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute conversion_rate - # The per unit conversion rate of the price currency to the invoicing currency. - # - # @return [Float, nil] - optional :conversion_rate, Float, nil?: true - - # @!attribute conversion_rate_config - # The configuration for the rate of the price currency to the invoicing currency. - # - # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - optional :conversion_rate_config, - union: -> { - Orb::PlanCreateParams::Price::Price::Minimum::UnnamedTypeWithobjectParent84 - }, - nil?: true - - # @!attribute currency - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - # - # @return [String, nil] - optional :currency, String, nil?: true - - # @!attribute dimensional_price_configuration - # For dimensional price: specifies a price group and dimension values - # - # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] - optional :dimensional_price_configuration, - -> { - Orb::NewDimensionalPriceConfiguration - }, - nil?: true - - # @!attribute external_price_id - # An alias for the price. - # - # @return [String, nil] - optional :external_price_id, String, nil?: true - - # @!attribute fixed_price_quantity - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - # - # @return [Float, nil] - optional :fixed_price_quantity, Float, nil?: true - - # @!attribute invoice_grouping_key - # The property used to group this price on an invoice - # - # @return [String, nil] - optional :invoice_grouping_key, String, nil?: true - - # @!attribute invoicing_cycle_configuration - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute metadata - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - # - # @return [Hash{Symbol=>String, nil}, nil] - optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true - - # @!attribute reference_id - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - # - # @return [String, nil] - optional :reference_id, String, nil?: true - - # @!method initialize(cadence:, item_id:, minimum_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :minimum) - # Some parameter documentations has been truncated, see - # {Orb::Models::PlanCreateParams::Price::Price::Minimum} for more details. - # - # @param cadence [Symbol, Orb::Models::PlanCreateParams::Price::Price::Minimum::Cadence] The cadence to bill for this price on. - # - # @param item_id [String] The id of the item the price will be associated with. - # - # @param minimum_config [Orb::Models::PlanCreateParams::Price::Price::Minimum::MinimumConfig] - # - # @param name [String] The name of the price. - # - # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # - # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # - # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # - # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. - # - # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. - # - # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # - # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values - # - # @param external_price_id [String, nil] An alias for the price. - # - # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # - # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice - # - # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # - # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # - # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # - # @param model_type [Symbol, :minimum] - - # The cadence to bill for this price on. - # - # @see Orb::Models::PlanCreateParams::Price::Price::Minimum#cadence - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom - - # @!method self.values - # @return [Array] - end - - # @see Orb::Models::PlanCreateParams::Price::Price::Minimum#minimum_config - class MinimumConfig < Orb::Internal::Type::BaseModel - # @!attribute minimum_amount - # The minimum amount to apply - # - # @return [String] - required :minimum_amount, String - - # @!attribute prorated - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - # - # @return [Boolean, nil] - optional :prorated, Orb::Internal::Type::Boolean, nil?: true - - # @!method initialize(minimum_amount:, prorated: nil) - # Some parameter documentations has been truncated, see - # {Orb::Models::PlanCreateParams::Price::Price::Minimum::MinimumConfig} for more - # details. - # - # @param minimum_amount [String] The minimum amount to apply - # - # @param prorated [Boolean, nil] By default, subtotals from minimum composite prices are prorated based on the se - end - end - # @!method self.variants - # @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::PlanCreateParams::Price::Price::Minimum)] + # @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanMinimumCompositePrice)] end end diff --git a/lib/orb/models/price.rb b/lib/orb/models/price.rb index f8278bb7..af129c7d 100644 --- a/lib/orb/models/price.rb +++ b/lib/orb/models/price.rb @@ -108,7 +108,7 @@ class Unit < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::Unit::UnnamedTypeWithobjectParent85 }, + union: -> { Orb::Price::Unit::UnnamedTypeWithobjectParent83 }, nil?: true # @!attribute created_at @@ -344,7 +344,7 @@ class Package < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::Package::UnnamedTypeWithobjectParent86 }, + union: -> { Orb::Price::Package::UnnamedTypeWithobjectParent84 }, nil?: true # @!attribute created_at @@ -580,7 +580,7 @@ class Matrix < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::Matrix::UnnamedTypeWithobjectParent87 }, + union: -> { Orb::Price::Matrix::UnnamedTypeWithobjectParent85 }, nil?: true # @!attribute created_at @@ -816,7 +816,7 @@ class Tiered < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::Tiered::UnnamedTypeWithobjectParent88 }, + union: -> { Orb::Price::Tiered::UnnamedTypeWithobjectParent86 }, nil?: true # @!attribute created_at @@ -1057,7 +1057,7 @@ class Bulk < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::Bulk::UnnamedTypeWithobjectParent89 }, + union: -> { Orb::Price::Bulk::UnnamedTypeWithobjectParent87 }, nil?: true # @!attribute created_at @@ -1288,7 +1288,7 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent90 }, + union: -> { Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent88 }, nil?: true # @!attribute created_at @@ -1524,7 +1524,7 @@ class TieredPackage < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::TieredPackage::UnnamedTypeWithobjectParent91 }, + union: -> { Orb::Price::TieredPackage::UnnamedTypeWithobjectParent89 }, nil?: true # @!attribute created_at @@ -1760,7 +1760,7 @@ class GroupedTiered < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent92 }, + union: -> { Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent90 }, nil?: true # @!attribute created_at @@ -1996,7 +1996,7 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent93 }, + union: -> { Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent91 }, nil?: true # @!attribute created_at @@ -2232,7 +2232,7 @@ class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent94 }, + union: -> { Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent92 }, nil?: true # @!attribute created_at @@ -2468,7 +2468,7 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent95 }, + union: -> { Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent93 }, nil?: true # @!attribute created_at @@ -2704,7 +2704,7 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent96 }, + union: -> { Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent94 }, nil?: true # @!attribute created_at @@ -2940,7 +2940,7 @@ class MatrixWithAllocation < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent97 }, + union: -> { Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent95 }, nil?: true # @!attribute created_at @@ -3176,7 +3176,7 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent98 }, + union: -> { Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent96 }, nil?: true # @!attribute created_at @@ -3412,7 +3412,7 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent99 }, + union: -> { Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent97 }, nil?: true # @!attribute created_at @@ -3648,7 +3648,7 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent100 }, + union: -> { Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent98 }, nil?: true # @!attribute created_at @@ -3884,7 +3884,7 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent101 }, + union: -> { Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent99 }, nil?: true # @!attribute created_at @@ -4120,7 +4120,7 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent102 }, + union: -> { Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent100 }, nil?: true # @!attribute created_at @@ -4356,7 +4356,7 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent103 }, + union: -> { Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent101 }, nil?: true # @!attribute created_at @@ -4597,7 +4597,7 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent104 }, + union: -> { Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent102 }, nil?: true # @!attribute created_at @@ -4828,7 +4828,7 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent105 }, + union: -> { Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent103 }, nil?: true # @!attribute created_at @@ -5064,7 +5064,7 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent106 }, + union: -> { Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent104 }, nil?: true # @!attribute created_at @@ -5300,7 +5300,7 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent107 }, + union: -> { Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent105 }, nil?: true # @!attribute created_at @@ -5537,7 +5537,7 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent108 }, + union: -> { Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent106 }, nil?: true # @!attribute created_at @@ -5774,7 +5774,7 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent109 }, + union: -> { Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent107 }, nil?: true # @!attribute created_at @@ -6010,7 +6010,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent110 }, + union: -> { Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent108 }, nil?: true # @!attribute created_at @@ -6247,7 +6247,7 @@ class Minimum < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::Minimum::UnnamedTypeWithobjectParent111 }, + union: -> { Orb::Price::Minimum::UnnamedTypeWithobjectParent109 }, nil?: true # @!attribute created_at diff --git a/lib/orb/models/price_evaluate_multiple_params.rb b/lib/orb/models/price_evaluate_multiple_params.rb index 33955729..e89d7084 100644 --- a/lib/orb/models/price_evaluate_multiple_params.rb +++ b/lib/orb/models/price_evaluate_multiple_params.rb @@ -78,7 +78,7 @@ class PriceEvaluation < Orb::Internal::Type::BaseModel # An inline price definition to evaluate, allowing you to test price # configurations before adding them to Orb. # - # @return [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum, nil] + # @return [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::Models::NewFloatingMinimumCompositePrice, nil] optional :price, union: -> { Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price }, nil?: true # @!attribute price_id @@ -97,7 +97,7 @@ class PriceEvaluation < Orb::Internal::Type::BaseModel # # @param grouping_keys [Array] Properties (or [computed properties](/extensibility/advanced-metrics#computed-pr # - # @param price [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum, nil] An inline price definition to evaluate, allowing you to test price configuration + # @param price [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::Models::NewFloatingMinimumCompositePrice, nil] An inline price definition to evaluate, allowing you to test price configuration # # @param price_id [String, nil] The ID of a price to evaluate that exists in your Orb account. @@ -163,7 +163,7 @@ module Price variant :grouped_with_min_max_thresholds, -> { Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds } - variant :minimum, -> { Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum } + variant :minimum, -> { Orb::NewFloatingMinimumCompositePrice } class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @!attribute cadence @@ -235,7 +235,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, union: -> { - Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent112 + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent110 }, nil?: true @@ -340,207 +340,8 @@ module Cadence end end - class Minimum < Orb::Internal::Type::BaseModel - # @!attribute cadence - # The cadence to bill for this price on. - # - # @return [Symbol, Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::Cadence] - required :cadence, enum: -> { Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::Cadence } - - # @!attribute currency - # An ISO 4217 currency string for which this price is billed in. - # - # @return [String] - required :currency, String - - # @!attribute item_id - # The id of the item the price will be associated with. - # - # @return [String] - required :item_id, String - - # @!attribute minimum_config - # - # @return [Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::MinimumConfig] - required :minimum_config, - -> { Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::MinimumConfig } - - # @!attribute model_type - # - # @return [Symbol, :minimum] - required :model_type, const: :minimum - - # @!attribute name - # The name of the price. - # - # @return [String] - required :name, String - - # @!attribute billable_metric_id - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - # - # @return [String, nil] - optional :billable_metric_id, String, nil?: true - - # @!attribute billed_in_advance - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - # - # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true - - # @!attribute billing_cycle_configuration - # For custom cadence: specifies the duration of the billing period in days or - # months. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute conversion_rate - # The per unit conversion rate of the price currency to the invoicing currency. - # - # @return [Float, nil] - optional :conversion_rate, Float, nil?: true - - # @!attribute conversion_rate_config - # The configuration for the rate of the price currency to the invoicing currency. - # - # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - optional :conversion_rate_config, - union: -> { - Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::UnnamedTypeWithobjectParent113 - }, - nil?: true - - # @!attribute dimensional_price_configuration - # For dimensional price: specifies a price group and dimension values - # - # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] - optional :dimensional_price_configuration, - -> { - Orb::NewDimensionalPriceConfiguration - }, - nil?: true - - # @!attribute external_price_id - # An alias for the price. - # - # @return [String, nil] - optional :external_price_id, String, nil?: true - - # @!attribute fixed_price_quantity - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - # - # @return [Float, nil] - optional :fixed_price_quantity, Float, nil?: true - - # @!attribute invoice_grouping_key - # The property used to group this price on an invoice - # - # @return [String, nil] - optional :invoice_grouping_key, String, nil?: true - - # @!attribute invoicing_cycle_configuration - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute metadata - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - # - # @return [Hash{Symbol=>String, nil}, nil] - optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true - - # @!method initialize(cadence:, currency:, item_id:, minimum_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :minimum) - # Some parameter documentations has been truncated, see - # {Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum} for - # more details. - # - # @param cadence [Symbol, Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::Cadence] The cadence to bill for this price on. - # - # @param currency [String] An ISO 4217 currency string for which this price is billed in. - # - # @param item_id [String] The id of the item the price will be associated with. - # - # @param minimum_config [Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::MinimumConfig] - # - # @param name [String] The name of the price. - # - # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # - # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # - # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # - # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. - # - # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. - # - # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values - # - # @param external_price_id [String, nil] An alias for the price. - # - # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # - # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice - # - # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # - # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # - # @param model_type [Symbol, :minimum] - - # The cadence to bill for this price on. - # - # @see Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum#cadence - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom - - # @!method self.values - # @return [Array] - end - - # @see Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum#minimum_config - class MinimumConfig < Orb::Internal::Type::BaseModel - # @!attribute minimum_amount - # The minimum amount to apply - # - # @return [String] - required :minimum_amount, String - - # @!attribute prorated - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - # - # @return [Boolean, nil] - optional :prorated, Orb::Internal::Type::Boolean, nil?: true - - # @!method initialize(minimum_amount:, prorated: nil) - # Some parameter documentations has been truncated, see - # {Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::MinimumConfig} - # for more details. - # - # @param minimum_amount [String] The minimum amount to apply - # - # @param prorated [Boolean, nil] By default, subtotals from minimum composite prices are prorated based on the se - end - end - # @!method self.variants - # @return [Array(Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum)] + # @return [Array(Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::Models::NewFloatingMinimumCompositePrice)] end end end diff --git a/lib/orb/models/price_evaluate_preview_events_params.rb b/lib/orb/models/price_evaluate_preview_events_params.rb index cc881d8c..40ee4e64 100644 --- a/lib/orb/models/price_evaluate_preview_events_params.rb +++ b/lib/orb/models/price_evaluate_preview_events_params.rb @@ -136,7 +136,7 @@ class PriceEvaluation < Orb::Internal::Type::BaseModel # An inline price definition to evaluate, allowing you to test price # configurations before adding them to Orb. # - # @return [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum, nil] + # @return [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::Models::NewFloatingMinimumCompositePrice, nil] optional :price, union: -> { Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price @@ -160,7 +160,7 @@ class PriceEvaluation < Orb::Internal::Type::BaseModel # # @param grouping_keys [Array] Properties (or [computed properties](/extensibility/advanced-metrics#computed-pr # - # @param price [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum, nil] An inline price definition to evaluate, allowing you to test price configuration + # @param price [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::Models::NewFloatingMinimumCompositePrice, nil] An inline price definition to evaluate, allowing you to test price configuration # # @param price_id [String, nil] The ID of a price to evaluate that exists in your Orb account. @@ -226,7 +226,7 @@ module Price variant :grouped_with_min_max_thresholds, -> { Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds } - variant :minimum, -> { Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum } + variant :minimum, -> { Orb::NewFloatingMinimumCompositePrice } class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @!attribute cadence @@ -298,7 +298,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, union: -> { - Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent114 + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent111 }, nil?: true @@ -403,208 +403,8 @@ module Cadence end end - class Minimum < Orb::Internal::Type::BaseModel - # @!attribute cadence - # The cadence to bill for this price on. - # - # @return [Symbol, Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::Cadence] - required :cadence, - enum: -> { Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::Cadence } - - # @!attribute currency - # An ISO 4217 currency string for which this price is billed in. - # - # @return [String] - required :currency, String - - # @!attribute item_id - # The id of the item the price will be associated with. - # - # @return [String] - required :item_id, String - - # @!attribute minimum_config - # - # @return [Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::MinimumConfig] - required :minimum_config, - -> { Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::MinimumConfig } - - # @!attribute model_type - # - # @return [Symbol, :minimum] - required :model_type, const: :minimum - - # @!attribute name - # The name of the price. - # - # @return [String] - required :name, String - - # @!attribute billable_metric_id - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - # - # @return [String, nil] - optional :billable_metric_id, String, nil?: true - - # @!attribute billed_in_advance - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - # - # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true - - # @!attribute billing_cycle_configuration - # For custom cadence: specifies the duration of the billing period in days or - # months. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute conversion_rate - # The per unit conversion rate of the price currency to the invoicing currency. - # - # @return [Float, nil] - optional :conversion_rate, Float, nil?: true - - # @!attribute conversion_rate_config - # The configuration for the rate of the price currency to the invoicing currency. - # - # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - optional :conversion_rate_config, - union: -> { - Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::UnnamedTypeWithobjectParent115 - }, - nil?: true - - # @!attribute dimensional_price_configuration - # For dimensional price: specifies a price group and dimension values - # - # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] - optional :dimensional_price_configuration, - -> { - Orb::NewDimensionalPriceConfiguration - }, - nil?: true - - # @!attribute external_price_id - # An alias for the price. - # - # @return [String, nil] - optional :external_price_id, String, nil?: true - - # @!attribute fixed_price_quantity - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - # - # @return [Float, nil] - optional :fixed_price_quantity, Float, nil?: true - - # @!attribute invoice_grouping_key - # The property used to group this price on an invoice - # - # @return [String, nil] - optional :invoice_grouping_key, String, nil?: true - - # @!attribute invoicing_cycle_configuration - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute metadata - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - # - # @return [Hash{Symbol=>String, nil}, nil] - optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true - - # @!method initialize(cadence:, currency:, item_id:, minimum_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :minimum) - # Some parameter documentations has been truncated, see - # {Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum} - # for more details. - # - # @param cadence [Symbol, Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::Cadence] The cadence to bill for this price on. - # - # @param currency [String] An ISO 4217 currency string for which this price is billed in. - # - # @param item_id [String] The id of the item the price will be associated with. - # - # @param minimum_config [Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::MinimumConfig] - # - # @param name [String] The name of the price. - # - # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # - # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # - # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # - # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. - # - # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. - # - # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values - # - # @param external_price_id [String, nil] An alias for the price. - # - # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # - # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice - # - # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # - # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # - # @param model_type [Symbol, :minimum] - - # The cadence to bill for this price on. - # - # @see Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum#cadence - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom - - # @!method self.values - # @return [Array] - end - - # @see Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum#minimum_config - class MinimumConfig < Orb::Internal::Type::BaseModel - # @!attribute minimum_amount - # The minimum amount to apply - # - # @return [String] - required :minimum_amount, String - - # @!attribute prorated - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - # - # @return [Boolean, nil] - optional :prorated, Orb::Internal::Type::Boolean, nil?: true - - # @!method initialize(minimum_amount:, prorated: nil) - # Some parameter documentations has been truncated, see - # {Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::MinimumConfig} - # for more details. - # - # @param minimum_amount [String] The minimum amount to apply - # - # @param prorated [Boolean, nil] By default, subtotals from minimum composite prices are prorated based on the se - end - end - # @!method self.variants - # @return [Array(Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum)] + # @return [Array(Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::Models::NewFloatingMinimumCompositePrice)] end end end diff --git a/lib/orb/models/subscription_create_params.rb b/lib/orb/models/subscription_create_params.rb index 150ce449..7258b7c4 100644 --- a/lib/orb/models/subscription_create_params.rb +++ b/lib/orb/models/subscription_create_params.rb @@ -440,7 +440,7 @@ class AddPrice < Orb::Internal::Type::BaseModel # @!attribute price # The definition of a new price to create and add to the subscription. # - # @return [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum, nil] + # @return [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMinimumCompositePrice, nil] optional :price, union: -> { Orb::SubscriptionCreateParams::AddPrice::Price }, nil?: true # @!attribute price_id @@ -475,7 +475,7 @@ class AddPrice < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] The phase to add this price to. # - # @param price [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum, nil] The definition of a new price to create and add to the subscription. + # @param price [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMinimumCompositePrice, nil] The definition of a new price to create and add to the subscription. # # @param price_id [String, nil] The id of the price to add to the subscription. # @@ -543,7 +543,7 @@ module Price variant :grouped_with_min_max_thresholds, -> { Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds } - variant :minimum, -> { Orb::SubscriptionCreateParams::AddPrice::Price::Minimum } + variant :minimum, -> { Orb::NewSubscriptionMinimumCompositePrice } class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @!attribute cadence @@ -609,7 +609,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, union: -> { - Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent116 + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent112 }, nil?: true @@ -730,216 +730,8 @@ module Cadence end end - class Minimum < Orb::Internal::Type::BaseModel - # @!attribute cadence - # The cadence to bill for this price on. - # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum::Cadence] - required :cadence, enum: -> { Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::Cadence } - - # @!attribute item_id - # The id of the item the price will be associated with. - # - # @return [String] - required :item_id, String - - # @!attribute minimum_config - # - # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum::MinimumConfig] - required :minimum_config, -> { Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::MinimumConfig } - - # @!attribute model_type - # - # @return [Symbol, :minimum] - required :model_type, const: :minimum - - # @!attribute name - # The name of the price. - # - # @return [String] - required :name, String - - # @!attribute billable_metric_id - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - # - # @return [String, nil] - optional :billable_metric_id, String, nil?: true - - # @!attribute billed_in_advance - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - # - # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true - - # @!attribute billing_cycle_configuration - # For custom cadence: specifies the duration of the billing period in days or - # months. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute conversion_rate - # The per unit conversion rate of the price currency to the invoicing currency. - # - # @return [Float, nil] - optional :conversion_rate, Float, nil?: true - - # @!attribute conversion_rate_config - # The configuration for the rate of the price currency to the invoicing currency. - # - # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - optional :conversion_rate_config, - union: -> { - Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::UnnamedTypeWithobjectParent117 - }, - nil?: true - - # @!attribute currency - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - # - # @return [String, nil] - optional :currency, String, nil?: true - - # @!attribute dimensional_price_configuration - # For dimensional price: specifies a price group and dimension values - # - # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] - optional :dimensional_price_configuration, - -> { - Orb::NewDimensionalPriceConfiguration - }, - nil?: true - - # @!attribute external_price_id - # An alias for the price. - # - # @return [String, nil] - optional :external_price_id, String, nil?: true - - # @!attribute fixed_price_quantity - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - # - # @return [Float, nil] - optional :fixed_price_quantity, Float, nil?: true - - # @!attribute invoice_grouping_key - # The property used to group this price on an invoice - # - # @return [String, nil] - optional :invoice_grouping_key, String, nil?: true - - # @!attribute invoicing_cycle_configuration - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute metadata - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - # - # @return [Hash{Symbol=>String, nil}, nil] - optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true - - # @!attribute reference_id - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - # - # @return [String, nil] - optional :reference_id, String, nil?: true - - # @!method initialize(cadence:, item_id:, minimum_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :minimum) - # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum} for more - # details. - # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum::Cadence] The cadence to bill for this price on. - # - # @param item_id [String] The id of the item the price will be associated with. - # - # @param minimum_config [Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum::MinimumConfig] - # - # @param name [String] The name of the price. - # - # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # - # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # - # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # - # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. - # - # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. - # - # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # - # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values - # - # @param external_price_id [String, nil] An alias for the price. - # - # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # - # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice - # - # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # - # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # - # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # - # @param model_type [Symbol, :minimum] - - # The cadence to bill for this price on. - # - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum#cadence - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom - - # @!method self.values - # @return [Array] - end - - # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum#minimum_config - class MinimumConfig < Orb::Internal::Type::BaseModel - # @!attribute minimum_amount - # The minimum amount to apply - # - # @return [String] - required :minimum_amount, String - - # @!attribute prorated - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - # - # @return [Boolean, nil] - optional :prorated, Orb::Internal::Type::Boolean, nil?: true - - # @!method initialize(minimum_amount:, prorated: nil) - # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum::MinimumConfig} - # for more details. - # - # @param minimum_amount [String] The minimum amount to apply - # - # @param prorated [Boolean, nil] By default, subtotals from minimum composite prices are prorated based on the se - end - end - # @!method self.variants - # @return [Array(Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum)] + # @return [Array(Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMinimumCompositePrice)] end end @@ -1081,7 +873,7 @@ class ReplacePrice < Orb::Internal::Type::BaseModel # @!attribute price # The definition of a new price to create and add to the subscription. # - # @return [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum, nil] + # @return [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMinimumCompositePrice, nil] optional :price, union: -> { Orb::SubscriptionCreateParams::ReplacePrice::Price }, nil?: true # @!attribute price_id @@ -1108,7 +900,7 @@ class ReplacePrice < Orb::Internal::Type::BaseModel # # @param minimum_amount [String, nil] [DEPRECATED] Use add_adjustments instead. The subscription's minimum amount for # - # @param price [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum, nil] The definition of a new price to create and add to the subscription. + # @param price [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMinimumCompositePrice, nil] The definition of a new price to create and add to the subscription. # # @param price_id [String, nil] The id of the price to add to the subscription. @@ -1174,7 +966,7 @@ module Price variant :grouped_with_min_max_thresholds, -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds } - variant :minimum, -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum } + variant :minimum, -> { Orb::NewSubscriptionMinimumCompositePrice } class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @!attribute cadence @@ -1240,7 +1032,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, union: -> { - Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent118 + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent113 }, nil?: true @@ -1361,217 +1153,8 @@ module Cadence end end - class Minimum < Orb::Internal::Type::BaseModel - # @!attribute cadence - # The cadence to bill for this price on. - # - # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum::Cadence] - required :cadence, enum: -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::Cadence } - - # @!attribute item_id - # The id of the item the price will be associated with. - # - # @return [String] - required :item_id, String - - # @!attribute minimum_config - # - # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum::MinimumConfig] - required :minimum_config, - -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::MinimumConfig } - - # @!attribute model_type - # - # @return [Symbol, :minimum] - required :model_type, const: :minimum - - # @!attribute name - # The name of the price. - # - # @return [String] - required :name, String - - # @!attribute billable_metric_id - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - # - # @return [String, nil] - optional :billable_metric_id, String, nil?: true - - # @!attribute billed_in_advance - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - # - # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true - - # @!attribute billing_cycle_configuration - # For custom cadence: specifies the duration of the billing period in days or - # months. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute conversion_rate - # The per unit conversion rate of the price currency to the invoicing currency. - # - # @return [Float, nil] - optional :conversion_rate, Float, nil?: true - - # @!attribute conversion_rate_config - # The configuration for the rate of the price currency to the invoicing currency. - # - # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - optional :conversion_rate_config, - union: -> { - Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::UnnamedTypeWithobjectParent119 - }, - nil?: true - - # @!attribute currency - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - # - # @return [String, nil] - optional :currency, String, nil?: true - - # @!attribute dimensional_price_configuration - # For dimensional price: specifies a price group and dimension values - # - # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] - optional :dimensional_price_configuration, - -> { - Orb::NewDimensionalPriceConfiguration - }, - nil?: true - - # @!attribute external_price_id - # An alias for the price. - # - # @return [String, nil] - optional :external_price_id, String, nil?: true - - # @!attribute fixed_price_quantity - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - # - # @return [Float, nil] - optional :fixed_price_quantity, Float, nil?: true - - # @!attribute invoice_grouping_key - # The property used to group this price on an invoice - # - # @return [String, nil] - optional :invoice_grouping_key, String, nil?: true - - # @!attribute invoicing_cycle_configuration - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute metadata - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - # - # @return [Hash{Symbol=>String, nil}, nil] - optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true - - # @!attribute reference_id - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - # - # @return [String, nil] - optional :reference_id, String, nil?: true - - # @!method initialize(cadence:, item_id:, minimum_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :minimum) - # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum} for more - # details. - # - # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum::Cadence] The cadence to bill for this price on. - # - # @param item_id [String] The id of the item the price will be associated with. - # - # @param minimum_config [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum::MinimumConfig] - # - # @param name [String] The name of the price. - # - # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # - # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # - # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # - # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. - # - # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. - # - # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # - # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values - # - # @param external_price_id [String, nil] An alias for the price. - # - # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # - # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice - # - # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # - # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # - # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # - # @param model_type [Symbol, :minimum] - - # The cadence to bill for this price on. - # - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum#cadence - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom - - # @!method self.values - # @return [Array] - end - - # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum#minimum_config - class MinimumConfig < Orb::Internal::Type::BaseModel - # @!attribute minimum_amount - # The minimum amount to apply - # - # @return [String] - required :minimum_amount, String - - # @!attribute prorated - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - # - # @return [Boolean, nil] - optional :prorated, Orb::Internal::Type::Boolean, nil?: true - - # @!method initialize(minimum_amount:, prorated: nil) - # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum::MinimumConfig} - # for more details. - # - # @param minimum_amount [String] The minimum amount to apply - # - # @param prorated [Boolean, nil] By default, subtotals from minimum composite prices are prorated based on the se - end - end - # @!method self.variants - # @return [Array(Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum)] + # @return [Array(Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMinimumCompositePrice)] end end end diff --git a/lib/orb/models/subscription_price_intervals_params.rb b/lib/orb/models/subscription_price_intervals_params.rb index d56aa4b6..130450f7 100644 --- a/lib/orb/models/subscription_price_intervals_params.rb +++ b/lib/orb/models/subscription_price_intervals_params.rb @@ -130,7 +130,7 @@ class Add < Orb::Internal::Type::BaseModel # @!attribute price # The definition of a new price to create and add to the subscription. # - # @return [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum, nil] + # @return [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds, Orb::Models::NewFloatingMinimumCompositePrice, nil] optional :price, union: -> { Orb::SubscriptionPriceIntervalsParams::Add::Price }, nil?: true # @!attribute price_id @@ -172,7 +172,7 @@ class Add < Orb::Internal::Type::BaseModel # # @param minimum_amount [Float, nil] The minimum amount that will be billed for this price interval for a given billi # - # @param price [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum, nil] The definition of a new price to create and add to the subscription. + # @param price [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds, Orb::Models::NewFloatingMinimumCompositePrice, nil] The definition of a new price to create and add to the subscription. # # @param price_id [String, nil] The id of the price to add to the subscription. # @@ -367,7 +367,7 @@ module Price variant :grouped_with_min_max_thresholds, -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds } - variant :minimum, -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum } + variant :minimum, -> { Orb::NewFloatingMinimumCompositePrice } class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @!attribute cadence @@ -439,7 +439,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, union: -> { - Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent120 + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent114 }, nil?: true @@ -544,206 +544,8 @@ module Cadence end end - class Minimum < Orb::Internal::Type::BaseModel - # @!attribute cadence - # The cadence to bill for this price on. - # - # @return [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum::Cadence] - required :cadence, enum: -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::Cadence } - - # @!attribute currency - # An ISO 4217 currency string for which this price is billed in. - # - # @return [String] - required :currency, String - - # @!attribute item_id - # The id of the item the price will be associated with. - # - # @return [String] - required :item_id, String - - # @!attribute minimum_config - # - # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum::MinimumConfig] - required :minimum_config, -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::MinimumConfig } - - # @!attribute model_type - # - # @return [Symbol, :minimum] - required :model_type, const: :minimum - - # @!attribute name - # The name of the price. - # - # @return [String] - required :name, String - - # @!attribute billable_metric_id - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - # - # @return [String, nil] - optional :billable_metric_id, String, nil?: true - - # @!attribute billed_in_advance - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - # - # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true - - # @!attribute billing_cycle_configuration - # For custom cadence: specifies the duration of the billing period in days or - # months. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute conversion_rate - # The per unit conversion rate of the price currency to the invoicing currency. - # - # @return [Float, nil] - optional :conversion_rate, Float, nil?: true - - # @!attribute conversion_rate_config - # The configuration for the rate of the price currency to the invoicing currency. - # - # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - optional :conversion_rate_config, - union: -> { - Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::UnnamedTypeWithobjectParent121 - }, - nil?: true - - # @!attribute dimensional_price_configuration - # For dimensional price: specifies a price group and dimension values - # - # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] - optional :dimensional_price_configuration, - -> { - Orb::NewDimensionalPriceConfiguration - }, - nil?: true - - # @!attribute external_price_id - # An alias for the price. - # - # @return [String, nil] - optional :external_price_id, String, nil?: true - - # @!attribute fixed_price_quantity - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - # - # @return [Float, nil] - optional :fixed_price_quantity, Float, nil?: true - - # @!attribute invoice_grouping_key - # The property used to group this price on an invoice - # - # @return [String, nil] - optional :invoice_grouping_key, String, nil?: true - - # @!attribute invoicing_cycle_configuration - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute metadata - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - # - # @return [Hash{Symbol=>String, nil}, nil] - optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true - - # @!method initialize(cadence:, currency:, item_id:, minimum_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, model_type: :minimum) - # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum} for more - # details. - # - # @param cadence [Symbol, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum::Cadence] The cadence to bill for this price on. - # - # @param currency [String] An ISO 4217 currency string for which this price is billed in. - # - # @param item_id [String] The id of the item the price will be associated with. - # - # @param minimum_config [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum::MinimumConfig] - # - # @param name [String] The name of the price. - # - # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # - # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # - # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # - # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. - # - # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. - # - # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values - # - # @param external_price_id [String, nil] An alias for the price. - # - # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # - # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice - # - # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # - # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # - # @param model_type [Symbol, :minimum] - - # The cadence to bill for this price on. - # - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum#cadence - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom - - # @!method self.values - # @return [Array] - end - - # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum#minimum_config - class MinimumConfig < Orb::Internal::Type::BaseModel - # @!attribute minimum_amount - # The minimum amount to apply - # - # @return [String] - required :minimum_amount, String - - # @!attribute prorated - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - # - # @return [Boolean, nil] - optional :prorated, Orb::Internal::Type::Boolean, nil?: true - - # @!method initialize(minimum_amount:, prorated: nil) - # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum::MinimumConfig} - # for more details. - # - # @param minimum_amount [String] The minimum amount to apply - # - # @param prorated [Boolean, nil] By default, subtotals from minimum composite prices are prorated based on the se - end - end - # @!method self.variants - # @return [Array(Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum)] + # @return [Array(Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds, Orb::Models::NewFloatingMinimumCompositePrice)] end end diff --git a/lib/orb/models/subscription_schedule_plan_change_params.rb b/lib/orb/models/subscription_schedule_plan_change_params.rb index b0e39115..4cd45f81 100644 --- a/lib/orb/models/subscription_schedule_plan_change_params.rb +++ b/lib/orb/models/subscription_schedule_plan_change_params.rb @@ -405,7 +405,7 @@ class AddPrice < Orb::Internal::Type::BaseModel # @!attribute price # The definition of a new price to create and add to the subscription. # - # @return [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum, nil] + # @return [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMinimumCompositePrice, nil] optional :price, union: -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price }, nil?: true # @!attribute price_id @@ -440,7 +440,7 @@ class AddPrice < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] The phase to add this price to. # - # @param price [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum, nil] The definition of a new price to create and add to the subscription. + # @param price [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMinimumCompositePrice, nil] The definition of a new price to create and add to the subscription. # # @param price_id [String, nil] The id of the price to add to the subscription. # @@ -508,7 +508,7 @@ module Price variant :grouped_with_min_max_thresholds, -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds } - variant :minimum, -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum } + variant :minimum, -> { Orb::NewSubscriptionMinimumCompositePrice } class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @!attribute cadence @@ -574,7 +574,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, union: -> { - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent122 + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent115 }, nil?: true @@ -695,218 +695,8 @@ module Cadence end end - class Minimum < Orb::Internal::Type::BaseModel - # @!attribute cadence - # The cadence to bill for this price on. - # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::Cadence] - required :cadence, - enum: -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::Cadence } - - # @!attribute item_id - # The id of the item the price will be associated with. - # - # @return [String] - required :item_id, String - - # @!attribute minimum_config - # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::MinimumConfig] - required :minimum_config, - -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::MinimumConfig } - - # @!attribute model_type - # - # @return [Symbol, :minimum] - required :model_type, const: :minimum - - # @!attribute name - # The name of the price. - # - # @return [String] - required :name, String - - # @!attribute billable_metric_id - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - # - # @return [String, nil] - optional :billable_metric_id, String, nil?: true - - # @!attribute billed_in_advance - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - # - # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true - - # @!attribute billing_cycle_configuration - # For custom cadence: specifies the duration of the billing period in days or - # months. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute conversion_rate - # The per unit conversion rate of the price currency to the invoicing currency. - # - # @return [Float, nil] - optional :conversion_rate, Float, nil?: true - - # @!attribute conversion_rate_config - # The configuration for the rate of the price currency to the invoicing currency. - # - # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - optional :conversion_rate_config, - union: -> { - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::UnnamedTypeWithobjectParent123 - }, - nil?: true - - # @!attribute currency - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - # - # @return [String, nil] - optional :currency, String, nil?: true - - # @!attribute dimensional_price_configuration - # For dimensional price: specifies a price group and dimension values - # - # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] - optional :dimensional_price_configuration, - -> { - Orb::NewDimensionalPriceConfiguration - }, - nil?: true - - # @!attribute external_price_id - # An alias for the price. - # - # @return [String, nil] - optional :external_price_id, String, nil?: true - - # @!attribute fixed_price_quantity - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - # - # @return [Float, nil] - optional :fixed_price_quantity, Float, nil?: true - - # @!attribute invoice_grouping_key - # The property used to group this price on an invoice - # - # @return [String, nil] - optional :invoice_grouping_key, String, nil?: true - - # @!attribute invoicing_cycle_configuration - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute metadata - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - # - # @return [Hash{Symbol=>String, nil}, nil] - optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true - - # @!attribute reference_id - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - # - # @return [String, nil] - optional :reference_id, String, nil?: true - - # @!method initialize(cadence:, item_id:, minimum_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :minimum) - # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum} - # for more details. - # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::Cadence] The cadence to bill for this price on. - # - # @param item_id [String] The id of the item the price will be associated with. - # - # @param minimum_config [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::MinimumConfig] - # - # @param name [String] The name of the price. - # - # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # - # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # - # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # - # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. - # - # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. - # - # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # - # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values - # - # @param external_price_id [String, nil] An alias for the price. - # - # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # - # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice - # - # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # - # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # - # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # - # @param model_type [Symbol, :minimum] - - # The cadence to bill for this price on. - # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum#cadence - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom - - # @!method self.values - # @return [Array] - end - - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum#minimum_config - class MinimumConfig < Orb::Internal::Type::BaseModel - # @!attribute minimum_amount - # The minimum amount to apply - # - # @return [String] - required :minimum_amount, String - - # @!attribute prorated - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - # - # @return [Boolean, nil] - optional :prorated, Orb::Internal::Type::Boolean, nil?: true - - # @!method initialize(minimum_amount:, prorated: nil) - # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::MinimumConfig} - # for more details. - # - # @param minimum_amount [String] The minimum amount to apply - # - # @param prorated [Boolean, nil] By default, subtotals from minimum composite prices are prorated based on the se - end - end - # @!method self.variants - # @return [Array(Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum)] + # @return [Array(Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMinimumCompositePrice)] end end @@ -1051,7 +841,7 @@ class ReplacePrice < Orb::Internal::Type::BaseModel # @!attribute price # The definition of a new price to create and add to the subscription. # - # @return [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum, nil] + # @return [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMinimumCompositePrice, nil] optional :price, union: -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price @@ -1083,7 +873,7 @@ class ReplacePrice < Orb::Internal::Type::BaseModel # # @param minimum_amount [String, nil] [DEPRECATED] Use add_adjustments instead. The subscription's minimum amount for # - # @param price [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum, nil] The definition of a new price to create and add to the subscription. + # @param price [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMinimumCompositePrice, nil] The definition of a new price to create and add to the subscription. # # @param price_id [String, nil] The id of the price to add to the subscription. @@ -1149,7 +939,7 @@ module Price variant :grouped_with_min_max_thresholds, -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds } - variant :minimum, -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum } + variant :minimum, -> { Orb::NewSubscriptionMinimumCompositePrice } class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @!attribute cadence @@ -1215,7 +1005,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, union: -> { - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent124 + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent116 }, nil?: true @@ -1336,218 +1126,8 @@ module Cadence end end - class Minimum < Orb::Internal::Type::BaseModel - # @!attribute cadence - # The cadence to bill for this price on. - # - # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::Cadence] - required :cadence, - enum: -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::Cadence } - - # @!attribute item_id - # The id of the item the price will be associated with. - # - # @return [String] - required :item_id, String - - # @!attribute minimum_config - # - # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::MinimumConfig] - required :minimum_config, - -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::MinimumConfig } - - # @!attribute model_type - # - # @return [Symbol, :minimum] - required :model_type, const: :minimum - - # @!attribute name - # The name of the price. - # - # @return [String] - required :name, String - - # @!attribute billable_metric_id - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - # - # @return [String, nil] - optional :billable_metric_id, String, nil?: true - - # @!attribute billed_in_advance - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - # - # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true - - # @!attribute billing_cycle_configuration - # For custom cadence: specifies the duration of the billing period in days or - # months. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute conversion_rate - # The per unit conversion rate of the price currency to the invoicing currency. - # - # @return [Float, nil] - optional :conversion_rate, Float, nil?: true - - # @!attribute conversion_rate_config - # The configuration for the rate of the price currency to the invoicing currency. - # - # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - optional :conversion_rate_config, - union: -> { - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::UnnamedTypeWithobjectParent125 - }, - nil?: true - - # @!attribute currency - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - # - # @return [String, nil] - optional :currency, String, nil?: true - - # @!attribute dimensional_price_configuration - # For dimensional price: specifies a price group and dimension values - # - # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] - optional :dimensional_price_configuration, - -> { - Orb::NewDimensionalPriceConfiguration - }, - nil?: true - - # @!attribute external_price_id - # An alias for the price. - # - # @return [String, nil] - optional :external_price_id, String, nil?: true - - # @!attribute fixed_price_quantity - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - # - # @return [Float, nil] - optional :fixed_price_quantity, Float, nil?: true - - # @!attribute invoice_grouping_key - # The property used to group this price on an invoice - # - # @return [String, nil] - optional :invoice_grouping_key, String, nil?: true - - # @!attribute invoicing_cycle_configuration - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute metadata - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - # - # @return [Hash{Symbol=>String, nil}, nil] - optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true - - # @!attribute reference_id - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - # - # @return [String, nil] - optional :reference_id, String, nil?: true - - # @!method initialize(cadence:, item_id:, minimum_config:, name:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :minimum) - # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum} - # for more details. - # - # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::Cadence] The cadence to bill for this price on. - # - # @param item_id [String] The id of the item the price will be associated with. - # - # @param minimum_config [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::MinimumConfig] - # - # @param name [String] The name of the price. - # - # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # - # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # - # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # - # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. - # - # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. - # - # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # - # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values - # - # @param external_price_id [String, nil] An alias for the price. - # - # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # - # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice - # - # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # - # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # - # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - # - # @param model_type [Symbol, :minimum] - - # The cadence to bill for this price on. - # - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum#cadence - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom - - # @!method self.values - # @return [Array] - end - - # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum#minimum_config - class MinimumConfig < Orb::Internal::Type::BaseModel - # @!attribute minimum_amount - # The minimum amount to apply - # - # @return [String] - required :minimum_amount, String - - # @!attribute prorated - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - # - # @return [Boolean, nil] - optional :prorated, Orb::Internal::Type::Boolean, nil?: true - - # @!method initialize(minimum_amount:, prorated: nil) - # Some parameter documentations has been truncated, see - # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::MinimumConfig} - # for more details. - # - # @param minimum_amount [String] The minimum amount to apply - # - # @param prorated [Boolean, nil] By default, subtotals from minimum composite prices are prorated based on the se - end - end - # @!method self.variants - # @return [Array(Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum)] + # @return [Array(Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMinimumCompositePrice)] end end end diff --git a/rbi/orb/models.rbi b/rbi/orb/models.rbi index e365456d..f4c5f117 100644 --- a/rbi/orb/models.rbi +++ b/rbi/orb/models.rbi @@ -287,6 +287,9 @@ module Orb NewFloatingMaxGroupTieredPackagePrice = Orb::Models::NewFloatingMaxGroupTieredPackagePrice + NewFloatingMinimumCompositePrice = + Orb::Models::NewFloatingMinimumCompositePrice + NewFloatingPackagePrice = Orb::Models::NewFloatingPackagePrice NewFloatingPackageWithAllocationPrice = @@ -358,6 +361,8 @@ module Orb NewPlanMaxGroupTieredPackagePrice = Orb::Models::NewPlanMaxGroupTieredPackagePrice + NewPlanMinimumCompositePrice = Orb::Models::NewPlanMinimumCompositePrice + NewPlanPackagePrice = Orb::Models::NewPlanPackagePrice NewPlanPackageWithAllocationPrice = @@ -427,6 +432,9 @@ module Orb NewSubscriptionMaxGroupTieredPackagePrice = Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice + NewSubscriptionMinimumCompositePrice = + Orb::Models::NewSubscriptionMinimumCompositePrice + NewSubscriptionPackagePrice = Orb::Models::NewSubscriptionPackagePrice NewSubscriptionPackageWithAllocationPrice = diff --git a/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi b/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi index ebb0a301..304a8574 100644 --- a/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi +++ b/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi @@ -355,7 +355,7 @@ module Orb Orb::NewPlanTieredPackageWithMinimumPrice, Orb::NewPlanMatrixWithAllocationPrice, Orb::NewPlanGroupedTieredPrice, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum + Orb::NewPlanMinimumCompositePrice ) ) ) @@ -395,7 +395,7 @@ module Orb Orb::NewPlanTieredPackageWithMinimumPrice::OrHash, Orb::NewPlanMatrixWithAllocationPrice::OrHash, Orb::NewPlanGroupedTieredPrice::OrHash, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::OrHash + Orb::NewPlanMinimumCompositePrice::OrHash ) ) ).returns(T.attached_class) @@ -444,7 +444,7 @@ module Orb Orb::NewPlanTieredPackageWithMinimumPrice, Orb::NewPlanMatrixWithAllocationPrice, Orb::NewPlanGroupedTieredPrice, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum + Orb::NewPlanMinimumCompositePrice ) ) } @@ -486,7 +486,7 @@ module Orb Orb::NewPlanTieredPackageWithMinimumPrice, Orb::NewPlanMatrixWithAllocationPrice, Orb::NewPlanGroupedTieredPrice, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum + Orb::NewPlanMinimumCompositePrice ) end @@ -789,363 +789,191 @@ module Orb end end - class Minimum < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum, - Orb::Internal::AnyHash - ) - end - - # The cadence to bill for this price on. - sig do - returns( - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::OrSymbol - ) - end - attr_accessor :cadence + sig do + override.returns( + T::Array[ + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Variants + ] + ) + end + def self.variants + end + end + end - # The id of the item the price will be associated with. - sig { returns(String) } - attr_accessor :item_id + class RemoveAdjustment < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::RemoveAdjustment, + Orb::Internal::AnyHash + ) + end - sig do - returns( - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig - ) - end - attr_reader :minimum_config + # The id of the adjustment to remove from on the plan. + sig { returns(String) } + attr_accessor :adjustment_id - sig do - params( - minimum_config: - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig::OrHash - ).void - end - attr_writer :minimum_config + # The phase to remove this adjustment from. + sig { returns(T.nilable(Integer)) } + attr_accessor :plan_phase_order - sig { returns(Symbol) } - attr_accessor :model_type + sig do + params( + adjustment_id: String, + plan_phase_order: T.nilable(Integer) + ).returns(T.attached_class) + end + def self.new( + # The id of the adjustment to remove from on the plan. + adjustment_id:, + # The phase to remove this adjustment from. + plan_phase_order: nil + ) + end - # The name of the price. - sig { returns(String) } - attr_accessor :name + sig do + override.returns( + { adjustment_id: String, plan_phase_order: T.nilable(Integer) } + ) + end + def to_hash + end + end - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - sig { returns(T.nilable(String)) } - attr_accessor :billable_metric_id + class RemovePrice < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::RemovePrice, + Orb::Internal::AnyHash + ) + end - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :billed_in_advance + # The id of the price to remove from the plan. + sig { returns(String) } + attr_accessor :price_id - # For custom cadence: specifies the duration of the billing period in days or - # months. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :billing_cycle_configuration + # The phase to remove this price from. + sig { returns(T.nilable(Integer)) } + attr_accessor :plan_phase_order - sig do - params( - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :billing_cycle_configuration + sig do + params( + price_id: String, + plan_phase_order: T.nilable(Integer) + ).returns(T.attached_class) + end + def self.new( + # The id of the price to remove from the plan. + price_id:, + # The phase to remove this price from. + plan_phase_order: nil + ) + end - # The per unit conversion rate of the price currency to the invoicing currency. - sig { returns(T.nilable(Float)) } - attr_accessor :conversion_rate + sig do + override.returns( + { price_id: String, plan_phase_order: T.nilable(Integer) } + ) + end + def to_hash + end + end - # The configuration for the rate of the price currency to the invoicing currency. - sig do - returns( - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ) - ) - end - attr_accessor :conversion_rate_config + class ReplaceAdjustment < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment, + Orb::Internal::AnyHash + ) + end - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - sig { returns(T.nilable(String)) } - attr_accessor :currency + # The definition of a new adjustment to create and add to the plan. + sig do + returns( + T.any( + Orb::NewPercentageDiscount, + Orb::NewUsageDiscount, + Orb::NewAmountDiscount, + Orb::NewMinimum, + Orb::NewMaximum + ) + ) + end + attr_accessor :adjustment - # For dimensional price: specifies a price group and dimension values - sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } - attr_reader :dimensional_price_configuration + # The id of the adjustment on the plan to replace in the plan. + sig { returns(String) } + attr_accessor :replaces_adjustment_id - sig do - params( - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) - ).void - end - attr_writer :dimensional_price_configuration + # The phase to replace this adjustment from. + sig { returns(T.nilable(Integer)) } + attr_accessor :plan_phase_order - # An alias for the price. - sig { returns(T.nilable(String)) } - attr_accessor :external_price_id + sig do + params( + adjustment: + T.any( + Orb::NewPercentageDiscount::OrHash, + Orb::NewUsageDiscount::OrHash, + Orb::NewAmountDiscount::OrHash, + Orb::NewMinimum::OrHash, + Orb::NewMaximum::OrHash + ), + replaces_adjustment_id: String, + plan_phase_order: T.nilable(Integer) + ).returns(T.attached_class) + end + def self.new( + # The definition of a new adjustment to create and add to the plan. + adjustment:, + # The id of the adjustment on the plan to replace in the plan. + replaces_adjustment_id:, + # The phase to replace this adjustment from. + plan_phase_order: nil + ) + end - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - sig { returns(T.nilable(Float)) } - attr_accessor :fixed_price_quantity + sig do + override.returns( + { + adjustment: + T.any( + Orb::NewPercentageDiscount, + Orb::NewUsageDiscount, + Orb::NewAmountDiscount, + Orb::NewMinimum, + Orb::NewMaximum + ), + replaces_adjustment_id: String, + plan_phase_order: T.nilable(Integer) + } + ) + end + def to_hash + end - # The property used to group this price on an invoice - sig { returns(T.nilable(String)) } - attr_accessor :invoice_grouping_key + # The definition of a new adjustment to create and add to the plan. + module Adjustment + extend Orb::Internal::Type::Union - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :invoicing_cycle_configuration - - sig do - params( - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :invoicing_cycle_configuration - - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - attr_accessor :metadata - - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - sig { returns(T.nilable(String)) } - attr_accessor :reference_id - - sig do - params( - cadence: - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::OrSymbol, - item_id: String, - minimum_config: - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig::OrHash, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig::OrHash, - Orb::TieredConversionRateConfig::OrHash - ) - ), - currency: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String), - model_type: Symbol - ).returns(T.attached_class) - end - def self.new( - # The cadence to bill for this price on. - cadence:, - # The id of the item the price will be associated with. - item_id:, - minimum_config:, - # The name of the price. - name:, - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - billable_metric_id: nil, - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - billed_in_advance: nil, - # For custom cadence: specifies the duration of the billing period in days or - # months. - billing_cycle_configuration: nil, - # The per unit conversion rate of the price currency to the invoicing currency. - conversion_rate: nil, - # The configuration for the rate of the price currency to the invoicing currency. - conversion_rate_config: nil, - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - currency: nil, - # For dimensional price: specifies a price group and dimension values - dimensional_price_configuration: nil, - # An alias for the price. - external_price_id: nil, - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - fixed_price_quantity: nil, - # The property used to group this price on an invoice - invoice_grouping_key: nil, - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - invoicing_cycle_configuration: nil, - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - metadata: nil, - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - reference_id: nil, - model_type: :minimum - ) - end - - sig do - override.returns( - { - cadence: - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::OrSymbol, - item_id: String, - minimum_config: - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ), - currency: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) - end - def to_hash - end - - # The cadence to bill for this price on. - module Cadence - extend Orb::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ANNUAL = - T.let( - :annual, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol - ) - SEMI_ANNUAL = - T.let( - :semi_annual, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol - ) - MONTHLY = - T.let( - :monthly, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol - ) - QUARTERLY = - T.let( - :quarterly, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol - ) - ONE_TIME = - T.let( - :one_time, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol - ) - CUSTOM = - T.let( - :custom, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol - ] - ) - end - def self.values - end - end - - class MinimumConfig < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig, - Orb::Internal::AnyHash - ) - end - - # The minimum amount to apply - sig { returns(String) } - attr_accessor :minimum_amount - - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :prorated - - sig do - params( - minimum_amount: String, - prorated: T.nilable(T::Boolean) - ).returns(T.attached_class) - end - def self.new( - # The minimum amount to apply - minimum_amount:, - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - prorated: nil - ) - end - - sig do - override.returns( - { minimum_amount: String, prorated: T.nilable(T::Boolean) } - ) - end - def to_hash - end - end - end + Variants = + T.type_alias do + T.any( + Orb::NewPercentageDiscount, + Orb::NewUsageDiscount, + Orb::NewAmountDiscount, + Orb::NewMinimum, + Orb::NewMaximum + ) + end sig do override.returns( T::Array[ - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Variants + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Variants ] ) end @@ -1154,689 +982,209 @@ module Orb end end - class RemoveAdjustment < Orb::Internal::Type::BaseModel + class ReplacePrice < Orb::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::RemoveAdjustment, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice, Orb::Internal::AnyHash ) end - # The id of the adjustment to remove from on the plan. + # The id of the price on the plan to replace in the plan. sig { returns(String) } - attr_accessor :adjustment_id + attr_accessor :replaces_price_id - # The phase to remove this adjustment from. - sig { returns(T.nilable(Integer)) } - attr_accessor :plan_phase_order + # The allocation price to add to the plan. + sig { returns(T.nilable(Orb::NewAllocationPrice)) } + attr_reader :allocation_price sig do params( - adjustment_id: String, - plan_phase_order: T.nilable(Integer) - ).returns(T.attached_class) - end - def self.new( - # The id of the adjustment to remove from on the plan. - adjustment_id:, - # The phase to remove this adjustment from. - plan_phase_order: nil - ) - end - - sig do - override.returns( - { adjustment_id: String, plan_phase_order: T.nilable(Integer) } - ) - end - def to_hash + allocation_price: T.nilable(Orb::NewAllocationPrice::OrHash) + ).void end - end - - class RemovePrice < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::RemovePrice, - Orb::Internal::AnyHash - ) - end - - # The id of the price to remove from the plan. - sig { returns(String) } - attr_accessor :price_id + attr_writer :allocation_price - # The phase to remove this price from. + # The phase to replace this price from. sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig do - params( - price_id: String, - plan_phase_order: T.nilable(Integer) - ).returns(T.attached_class) - end - def self.new( - # The id of the price to remove from the plan. - price_id:, - # The phase to remove this price from. - plan_phase_order: nil - ) - end - - sig do - override.returns( - { price_id: String, plan_phase_order: T.nilable(Integer) } - ) - end - def to_hash - end - end - - class ReplaceAdjustment < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment, - Orb::Internal::AnyHash - ) - end - - # The definition of a new adjustment to create and add to the plan. - sig do - returns( - T.any( - Orb::NewPercentageDiscount, - Orb::NewUsageDiscount, - Orb::NewAmountDiscount, - Orb::NewMinimum, - Orb::NewMaximum - ) - ) - end - attr_accessor :adjustment - - # The id of the adjustment on the plan to replace in the plan. - sig { returns(String) } - attr_accessor :replaces_adjustment_id - - # The phase to replace this adjustment from. - sig { returns(T.nilable(Integer)) } - attr_accessor :plan_phase_order - - sig do - params( - adjustment: - T.any( - Orb::NewPercentageDiscount::OrHash, - Orb::NewUsageDiscount::OrHash, - Orb::NewAmountDiscount::OrHash, - Orb::NewMinimum::OrHash, - Orb::NewMaximum::OrHash - ), - replaces_adjustment_id: String, - plan_phase_order: T.nilable(Integer) - ).returns(T.attached_class) - end - def self.new( - # The definition of a new adjustment to create and add to the plan. - adjustment:, - # The id of the adjustment on the plan to replace in the plan. - replaces_adjustment_id:, - # The phase to replace this adjustment from. - plan_phase_order: nil - ) - end - - sig do - override.returns( - { - adjustment: - T.any( - Orb::NewPercentageDiscount, - Orb::NewUsageDiscount, - Orb::NewAmountDiscount, - Orb::NewMinimum, - Orb::NewMaximum - ), - replaces_adjustment_id: String, - plan_phase_order: T.nilable(Integer) - } - ) - end - def to_hash - end - - # The definition of a new adjustment to create and add to the plan. - module Adjustment - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::NewPercentageDiscount, - Orb::NewUsageDiscount, - Orb::NewAmountDiscount, - Orb::NewMinimum, - Orb::NewMaximum - ) - end - - sig do - override.returns( - T::Array[ - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Variants - ] - ) - end - def self.variants - end - end - end - - class ReplacePrice < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice, - Orb::Internal::AnyHash - ) - end - - # The id of the price on the plan to replace in the plan. - sig { returns(String) } - attr_accessor :replaces_price_id - - # The allocation price to add to the plan. - sig { returns(T.nilable(Orb::NewAllocationPrice)) } - attr_reader :allocation_price - - sig do - params( - allocation_price: T.nilable(Orb::NewAllocationPrice::OrHash) - ).void - end - attr_writer :allocation_price - - # The phase to replace this price from. - sig { returns(T.nilable(Integer)) } - attr_accessor :plan_phase_order - - # The price to add to the plan + # The price to add to the plan sig do returns( T.nilable( T.any( Orb::NewPlanUnitPrice, - Orb::NewPlanPackagePrice, - Orb::NewPlanMatrixPrice, - Orb::NewPlanTieredPrice, - Orb::NewPlanBulkPrice, - Orb::NewPlanThresholdTotalAmountPrice, - Orb::NewPlanTieredPackagePrice, - Orb::NewPlanTieredWithMinimumPrice, - Orb::NewPlanUnitWithPercentPrice, - Orb::NewPlanPackageWithAllocationPrice, - Orb::NewPlanTierWithProrationPrice, - Orb::NewPlanUnitWithProrationPrice, - Orb::NewPlanGroupedAllocationPrice, - Orb::NewPlanGroupedWithProratedMinimumPrice, - Orb::NewPlanGroupedWithMeteredMinimumPrice, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, - Orb::NewPlanMatrixWithDisplayNamePrice, - Orb::NewPlanBulkWithProrationPrice, - Orb::NewPlanGroupedTieredPackagePrice, - Orb::NewPlanMaxGroupTieredPackagePrice, - Orb::NewPlanScalableMatrixWithUnitPricingPrice, - Orb::NewPlanScalableMatrixWithTieredPricingPrice, - Orb::NewPlanCumulativeGroupedBulkPrice, - Orb::NewPlanTieredPackageWithMinimumPrice, - Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum - ) - ) - ) - end - attr_accessor :price - - sig do - params( - replaces_price_id: String, - allocation_price: T.nilable(Orb::NewAllocationPrice::OrHash), - plan_phase_order: T.nilable(Integer), - price: - T.nilable( - T.any( - Orb::NewPlanUnitPrice::OrHash, - Orb::NewPlanPackagePrice::OrHash, - Orb::NewPlanMatrixPrice::OrHash, - Orb::NewPlanTieredPrice::OrHash, - Orb::NewPlanBulkPrice::OrHash, - Orb::NewPlanThresholdTotalAmountPrice::OrHash, - Orb::NewPlanTieredPackagePrice::OrHash, - Orb::NewPlanTieredWithMinimumPrice::OrHash, - Orb::NewPlanUnitWithPercentPrice::OrHash, - Orb::NewPlanPackageWithAllocationPrice::OrHash, - Orb::NewPlanTierWithProrationPrice::OrHash, - Orb::NewPlanUnitWithProrationPrice::OrHash, - Orb::NewPlanGroupedAllocationPrice::OrHash, - Orb::NewPlanGroupedWithProratedMinimumPrice::OrHash, - Orb::NewPlanGroupedWithMeteredMinimumPrice::OrHash, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::OrHash, - Orb::NewPlanMatrixWithDisplayNamePrice::OrHash, - Orb::NewPlanBulkWithProrationPrice::OrHash, - Orb::NewPlanGroupedTieredPackagePrice::OrHash, - Orb::NewPlanMaxGroupTieredPackagePrice::OrHash, - Orb::NewPlanScalableMatrixWithUnitPricingPrice::OrHash, - Orb::NewPlanScalableMatrixWithTieredPricingPrice::OrHash, - Orb::NewPlanCumulativeGroupedBulkPrice::OrHash, - Orb::NewPlanTieredPackageWithMinimumPrice::OrHash, - Orb::NewPlanMatrixWithAllocationPrice::OrHash, - Orb::NewPlanGroupedTieredPrice::OrHash, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::OrHash - ) - ) - ).returns(T.attached_class) - end - def self.new( - # The id of the price on the plan to replace in the plan. - replaces_price_id:, - # The allocation price to add to the plan. - allocation_price: nil, - # The phase to replace this price from. - plan_phase_order: nil, - # The price to add to the plan - price: nil - ) - end - - sig do - override.returns( - { - replaces_price_id: String, - allocation_price: T.nilable(Orb::NewAllocationPrice), - plan_phase_order: T.nilable(Integer), - price: - T.nilable( - T.any( - Orb::NewPlanUnitPrice, - Orb::NewPlanPackagePrice, - Orb::NewPlanMatrixPrice, - Orb::NewPlanTieredPrice, - Orb::NewPlanBulkPrice, - Orb::NewPlanThresholdTotalAmountPrice, - Orb::NewPlanTieredPackagePrice, - Orb::NewPlanTieredWithMinimumPrice, - Orb::NewPlanUnitWithPercentPrice, - Orb::NewPlanPackageWithAllocationPrice, - Orb::NewPlanTierWithProrationPrice, - Orb::NewPlanUnitWithProrationPrice, - Orb::NewPlanGroupedAllocationPrice, - Orb::NewPlanGroupedWithProratedMinimumPrice, - Orb::NewPlanGroupedWithMeteredMinimumPrice, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, - Orb::NewPlanMatrixWithDisplayNamePrice, - Orb::NewPlanBulkWithProrationPrice, - Orb::NewPlanGroupedTieredPackagePrice, - Orb::NewPlanMaxGroupTieredPackagePrice, - Orb::NewPlanScalableMatrixWithUnitPricingPrice, - Orb::NewPlanScalableMatrixWithTieredPricingPrice, - Orb::NewPlanCumulativeGroupedBulkPrice, - Orb::NewPlanTieredPackageWithMinimumPrice, - Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum - ) - ) - } - ) - end - def to_hash - end - - # The price to add to the plan - module Price - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::NewPlanUnitPrice, - Orb::NewPlanPackagePrice, - Orb::NewPlanMatrixPrice, - Orb::NewPlanTieredPrice, - Orb::NewPlanBulkPrice, - Orb::NewPlanThresholdTotalAmountPrice, - Orb::NewPlanTieredPackagePrice, - Orb::NewPlanTieredWithMinimumPrice, - Orb::NewPlanUnitWithPercentPrice, - Orb::NewPlanPackageWithAllocationPrice, - Orb::NewPlanTierWithProrationPrice, - Orb::NewPlanUnitWithProrationPrice, - Orb::NewPlanGroupedAllocationPrice, - Orb::NewPlanGroupedWithProratedMinimumPrice, - Orb::NewPlanGroupedWithMeteredMinimumPrice, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, - Orb::NewPlanMatrixWithDisplayNamePrice, - Orb::NewPlanBulkWithProrationPrice, - Orb::NewPlanGroupedTieredPackagePrice, - Orb::NewPlanMaxGroupTieredPackagePrice, - Orb::NewPlanScalableMatrixWithUnitPricingPrice, - Orb::NewPlanScalableMatrixWithTieredPricingPrice, - Orb::NewPlanCumulativeGroupedBulkPrice, - Orb::NewPlanTieredPackageWithMinimumPrice, - Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum - ) - end - - class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, - Orb::Internal::AnyHash - ) - end - - # The cadence to bill for this price on. - sig do - returns( - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol - ) - end - attr_accessor :cadence - - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_with_min_max_thresholds_config - - # The id of the item the price will be associated with. - sig { returns(String) } - attr_accessor :item_id - - sig { returns(Symbol) } - attr_accessor :model_type - - # The name of the price. - sig { returns(String) } - attr_accessor :name - - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - sig { returns(T.nilable(String)) } - attr_accessor :billable_metric_id - - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :billed_in_advance - - # For custom cadence: specifies the duration of the billing period in days or - # months. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :billing_cycle_configuration - - sig do - params( - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :billing_cycle_configuration - - # The per unit conversion rate of the price currency to the invoicing currency. - sig { returns(T.nilable(Float)) } - attr_accessor :conversion_rate - - # The configuration for the rate of the price currency to the invoicing currency. - sig do - returns( - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ) - ) - end - attr_accessor :conversion_rate_config - - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - sig { returns(T.nilable(String)) } - attr_accessor :currency - - # For dimensional price: specifies a price group and dimension values - sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } - attr_reader :dimensional_price_configuration - - sig do - params( - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) - ).void - end - attr_writer :dimensional_price_configuration - - # An alias for the price. - sig { returns(T.nilable(String)) } - attr_accessor :external_price_id - - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - sig { returns(T.nilable(Float)) } - attr_accessor :fixed_price_quantity - - # The property used to group this price on an invoice - sig { returns(T.nilable(String)) } - attr_accessor :invoice_grouping_key - - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :invoicing_cycle_configuration - - sig do - params( - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :invoicing_cycle_configuration - - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - attr_accessor :metadata - - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - sig { returns(T.nilable(String)) } - attr_accessor :reference_id - - sig do - params( - cadence: - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, - grouped_with_min_max_thresholds_config: - T::Hash[Symbol, T.anything], - item_id: String, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig::OrHash, - Orb::TieredConversionRateConfig::OrHash - ) - ), - currency: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String), - model_type: Symbol - ).returns(T.attached_class) - end - def self.new( - # The cadence to bill for this price on. - cadence:, - grouped_with_min_max_thresholds_config:, - # The id of the item the price will be associated with. - item_id:, - # The name of the price. - name:, - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - billable_metric_id: nil, - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - billed_in_advance: nil, - # For custom cadence: specifies the duration of the billing period in days or - # months. - billing_cycle_configuration: nil, - # The per unit conversion rate of the price currency to the invoicing currency. - conversion_rate: nil, - # The configuration for the rate of the price currency to the invoicing currency. - conversion_rate_config: nil, - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - currency: nil, - # For dimensional price: specifies a price group and dimension values - dimensional_price_configuration: nil, - # An alias for the price. - external_price_id: nil, - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - fixed_price_quantity: nil, - # The property used to group this price on an invoice - invoice_grouping_key: nil, - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - invoicing_cycle_configuration: nil, - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - metadata: nil, - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - reference_id: nil, - model_type: :grouped_with_min_max_thresholds - ) - end - - sig do - override.returns( - { - cadence: - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, - grouped_with_min_max_thresholds_config: - T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ), - currency: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } + Orb::NewPlanPackagePrice, + Orb::NewPlanMatrixPrice, + Orb::NewPlanTieredPrice, + Orb::NewPlanBulkPrice, + Orb::NewPlanThresholdTotalAmountPrice, + Orb::NewPlanTieredPackagePrice, + Orb::NewPlanTieredWithMinimumPrice, + Orb::NewPlanUnitWithPercentPrice, + Orb::NewPlanPackageWithAllocationPrice, + Orb::NewPlanTierWithProrationPrice, + Orb::NewPlanUnitWithProrationPrice, + Orb::NewPlanGroupedAllocationPrice, + Orb::NewPlanGroupedWithProratedMinimumPrice, + Orb::NewPlanGroupedWithMeteredMinimumPrice, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, + Orb::NewPlanMatrixWithDisplayNamePrice, + Orb::NewPlanBulkWithProrationPrice, + Orb::NewPlanGroupedTieredPackagePrice, + Orb::NewPlanMaxGroupTieredPackagePrice, + Orb::NewPlanScalableMatrixWithUnitPricingPrice, + Orb::NewPlanScalableMatrixWithTieredPricingPrice, + Orb::NewPlanCumulativeGroupedBulkPrice, + Orb::NewPlanTieredPackageWithMinimumPrice, + Orb::NewPlanMatrixWithAllocationPrice, + Orb::NewPlanGroupedTieredPrice, + Orb::NewPlanMinimumCompositePrice ) - end - def to_hash - end + ) + ) + end + attr_accessor :price - # The cadence to bill for this price on. - module Cadence - extend Orb::Internal::Type::Enum + sig do + params( + replaces_price_id: String, + allocation_price: T.nilable(Orb::NewAllocationPrice::OrHash), + plan_phase_order: T.nilable(Integer), + price: + T.nilable( + T.any( + Orb::NewPlanUnitPrice::OrHash, + Orb::NewPlanPackagePrice::OrHash, + Orb::NewPlanMatrixPrice::OrHash, + Orb::NewPlanTieredPrice::OrHash, + Orb::NewPlanBulkPrice::OrHash, + Orb::NewPlanThresholdTotalAmountPrice::OrHash, + Orb::NewPlanTieredPackagePrice::OrHash, + Orb::NewPlanTieredWithMinimumPrice::OrHash, + Orb::NewPlanUnitWithPercentPrice::OrHash, + Orb::NewPlanPackageWithAllocationPrice::OrHash, + Orb::NewPlanTierWithProrationPrice::OrHash, + Orb::NewPlanUnitWithProrationPrice::OrHash, + Orb::NewPlanGroupedAllocationPrice::OrHash, + Orb::NewPlanGroupedWithProratedMinimumPrice::OrHash, + Orb::NewPlanGroupedWithMeteredMinimumPrice::OrHash, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::OrHash, + Orb::NewPlanMatrixWithDisplayNamePrice::OrHash, + Orb::NewPlanBulkWithProrationPrice::OrHash, + Orb::NewPlanGroupedTieredPackagePrice::OrHash, + Orb::NewPlanMaxGroupTieredPackagePrice::OrHash, + Orb::NewPlanScalableMatrixWithUnitPricingPrice::OrHash, + Orb::NewPlanScalableMatrixWithTieredPricingPrice::OrHash, + Orb::NewPlanCumulativeGroupedBulkPrice::OrHash, + Orb::NewPlanTieredPackageWithMinimumPrice::OrHash, + Orb::NewPlanMatrixWithAllocationPrice::OrHash, + Orb::NewPlanGroupedTieredPrice::OrHash, + Orb::NewPlanMinimumCompositePrice::OrHash + ) + ) + ).returns(T.attached_class) + end + def self.new( + # The id of the price on the plan to replace in the plan. + replaces_price_id:, + # The allocation price to add to the plan. + allocation_price: nil, + # The phase to replace this price from. + plan_phase_order: nil, + # The price to add to the plan + price: nil + ) + end - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence + sig do + override.returns( + { + replaces_price_id: String, + allocation_price: T.nilable(Orb::NewAllocationPrice), + plan_phase_order: T.nilable(Integer), + price: + T.nilable( + T.any( + Orb::NewPlanUnitPrice, + Orb::NewPlanPackagePrice, + Orb::NewPlanMatrixPrice, + Orb::NewPlanTieredPrice, + Orb::NewPlanBulkPrice, + Orb::NewPlanThresholdTotalAmountPrice, + Orb::NewPlanTieredPackagePrice, + Orb::NewPlanTieredWithMinimumPrice, + Orb::NewPlanUnitWithPercentPrice, + Orb::NewPlanPackageWithAllocationPrice, + Orb::NewPlanTierWithProrationPrice, + Orb::NewPlanUnitWithProrationPrice, + Orb::NewPlanGroupedAllocationPrice, + Orb::NewPlanGroupedWithProratedMinimumPrice, + Orb::NewPlanGroupedWithMeteredMinimumPrice, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, + Orb::NewPlanMatrixWithDisplayNamePrice, + Orb::NewPlanBulkWithProrationPrice, + Orb::NewPlanGroupedTieredPackagePrice, + Orb::NewPlanMaxGroupTieredPackagePrice, + Orb::NewPlanScalableMatrixWithUnitPricingPrice, + Orb::NewPlanScalableMatrixWithTieredPricingPrice, + Orb::NewPlanCumulativeGroupedBulkPrice, + Orb::NewPlanTieredPackageWithMinimumPrice, + Orb::NewPlanMatrixWithAllocationPrice, + Orb::NewPlanGroupedTieredPrice, + Orb::NewPlanMinimumCompositePrice ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ANNUAL = - T.let( - :annual, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ) - SEMI_ANNUAL = - T.let( - :semi_annual, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ) - MONTHLY = - T.let( - :monthly, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ) - QUARTERLY = - T.let( - :quarterly, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ) - ONE_TIME = - T.let( - :one_time, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ) - CUSTOM = - T.let( - :custom, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) + } + ) + end + def to_hash + end - sig do - override.returns( - T::Array[ - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ] - ) - end - def self.values - end + # The price to add to the plan + module Price + extend Orb::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + Orb::NewPlanUnitPrice, + Orb::NewPlanPackagePrice, + Orb::NewPlanMatrixPrice, + Orb::NewPlanTieredPrice, + Orb::NewPlanBulkPrice, + Orb::NewPlanThresholdTotalAmountPrice, + Orb::NewPlanTieredPackagePrice, + Orb::NewPlanTieredWithMinimumPrice, + Orb::NewPlanUnitWithPercentPrice, + Orb::NewPlanPackageWithAllocationPrice, + Orb::NewPlanTierWithProrationPrice, + Orb::NewPlanUnitWithProrationPrice, + Orb::NewPlanGroupedAllocationPrice, + Orb::NewPlanGroupedWithProratedMinimumPrice, + Orb::NewPlanGroupedWithMeteredMinimumPrice, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, + Orb::NewPlanMatrixWithDisplayNamePrice, + Orb::NewPlanBulkWithProrationPrice, + Orb::NewPlanGroupedTieredPackagePrice, + Orb::NewPlanMaxGroupTieredPackagePrice, + Orb::NewPlanScalableMatrixWithUnitPricingPrice, + Orb::NewPlanScalableMatrixWithTieredPricingPrice, + Orb::NewPlanCumulativeGroupedBulkPrice, + Orb::NewPlanTieredPackageWithMinimumPrice, + Orb::NewPlanMatrixWithAllocationPrice, + Orb::NewPlanGroupedTieredPrice, + Orb::NewPlanMinimumCompositePrice + ) end - end - class Minimum < Orb::Internal::Type::BaseModel + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Internal::AnyHash ) end @@ -1844,30 +1192,18 @@ module Orb # The cadence to bill for this price on. sig do returns( - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::OrSymbol + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol ) end attr_accessor :cadence + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :grouped_with_min_max_thresholds_config + # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id - sig do - returns( - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig - ) - end - attr_reader :minimum_config - - sig do - params( - minimum_config: - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig::OrHash - ).void - end - attr_writer :minimum_config - sig { returns(Symbol) } attr_accessor :model_type @@ -1972,10 +1308,10 @@ module Orb sig do params( cadence: - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::OrSymbol, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + grouped_with_min_max_thresholds_config: + T::Hash[Symbol, T.anything], item_id: String, - minimum_config: - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig::OrHash, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), @@ -2005,9 +1341,9 @@ module Orb def self.new( # The cadence to bill for this price on. cadence:, + grouped_with_min_max_thresholds_config:, # The id of the item the price will be associated with. item_id:, - minimum_config:, # The name of the price. name:, # The id of the billable metric for the price. Only needed if the price is @@ -2045,7 +1381,7 @@ module Orb # A transient ID that can be used to reference this price when adding adjustments # in the same API call. reference_id: nil, - model_type: :minimum + model_type: :grouped_with_min_max_thresholds ) end @@ -2053,10 +1389,10 @@ module Orb override.returns( { cadence: - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::OrSymbol, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + grouped_with_min_max_thresholds_config: + T::Hash[Symbol, T.anything], item_id: String, - minimum_config: - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig, model_type: Symbol, name: String, billable_metric_id: T.nilable(String), @@ -2095,7 +1431,7 @@ module Orb T.type_alias do T.all( Symbol, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -2103,86 +1439,44 @@ module Orb ANNUAL = T.let( :annual, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) sig do override.returns( T::Array[ - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ] ) end def self.values end end - - class MinimumConfig < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig, - Orb::Internal::AnyHash - ) - end - - # The minimum amount to apply - sig { returns(String) } - attr_accessor :minimum_amount - - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :prorated - - sig do - params( - minimum_amount: String, - prorated: T.nilable(T::Boolean) - ).returns(T.attached_class) - end - def self.new( - # The minimum amount to apply - minimum_amount:, - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - prorated: nil - ) - end - - sig do - override.returns( - { minimum_amount: String, prorated: T.nilable(T::Boolean) } - ) - end - def to_hash - end - end end sig do diff --git a/rbi/orb/models/beta_create_plan_version_params.rbi b/rbi/orb/models/beta_create_plan_version_params.rbi index 3af94aca..3b02cbd2 100644 --- a/rbi/orb/models/beta_create_plan_version_params.rbi +++ b/rbi/orb/models/beta_create_plan_version_params.rbi @@ -307,7 +307,7 @@ module Orb Orb::NewPlanTieredPackageWithMinimumPrice, Orb::NewPlanMatrixWithAllocationPrice, Orb::NewPlanGroupedTieredPrice, - Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum + Orb::NewPlanMinimumCompositePrice ) ) ) @@ -347,7 +347,7 @@ module Orb Orb::NewPlanTieredPackageWithMinimumPrice::OrHash, Orb::NewPlanMatrixWithAllocationPrice::OrHash, Orb::NewPlanGroupedTieredPrice::OrHash, - Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::OrHash + Orb::NewPlanMinimumCompositePrice::OrHash ) ) ).returns(T.attached_class) @@ -396,7 +396,7 @@ module Orb Orb::NewPlanTieredPackageWithMinimumPrice, Orb::NewPlanMatrixWithAllocationPrice, Orb::NewPlanGroupedTieredPrice, - Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum + Orb::NewPlanMinimumCompositePrice ) ) } @@ -438,7 +438,7 @@ module Orb Orb::NewPlanTieredPackageWithMinimumPrice, Orb::NewPlanMatrixWithAllocationPrice, Orb::NewPlanGroupedTieredPrice, - Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum + Orb::NewPlanMinimumCompositePrice ) end @@ -741,363 +741,191 @@ module Orb end end - class Minimum < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum, - Orb::Internal::AnyHash - ) - end - - # The cadence to bill for this price on. - sig do - returns( - Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::OrSymbol - ) - end - attr_accessor :cadence + sig do + override.returns( + T::Array[ + Orb::BetaCreatePlanVersionParams::AddPrice::Price::Variants + ] + ) + end + def self.variants + end + end + end - # The id of the item the price will be associated with. - sig { returns(String) } - attr_accessor :item_id + class RemoveAdjustment < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::BetaCreatePlanVersionParams::RemoveAdjustment, + Orb::Internal::AnyHash + ) + end - sig do - returns( - Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig - ) - end - attr_reader :minimum_config + # The id of the adjustment to remove from on the plan. + sig { returns(String) } + attr_accessor :adjustment_id - sig do - params( - minimum_config: - Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig::OrHash - ).void - end - attr_writer :minimum_config + # The phase to remove this adjustment from. + sig { returns(T.nilable(Integer)) } + attr_accessor :plan_phase_order - sig { returns(Symbol) } - attr_accessor :model_type + sig do + params( + adjustment_id: String, + plan_phase_order: T.nilable(Integer) + ).returns(T.attached_class) + end + def self.new( + # The id of the adjustment to remove from on the plan. + adjustment_id:, + # The phase to remove this adjustment from. + plan_phase_order: nil + ) + end - # The name of the price. - sig { returns(String) } - attr_accessor :name + sig do + override.returns( + { adjustment_id: String, plan_phase_order: T.nilable(Integer) } + ) + end + def to_hash + end + end - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - sig { returns(T.nilable(String)) } - attr_accessor :billable_metric_id + class RemovePrice < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::BetaCreatePlanVersionParams::RemovePrice, + Orb::Internal::AnyHash + ) + end - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :billed_in_advance + # The id of the price to remove from the plan. + sig { returns(String) } + attr_accessor :price_id - # For custom cadence: specifies the duration of the billing period in days or - # months. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :billing_cycle_configuration + # The phase to remove this price from. + sig { returns(T.nilable(Integer)) } + attr_accessor :plan_phase_order - sig do - params( - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :billing_cycle_configuration + sig do + params( + price_id: String, + plan_phase_order: T.nilable(Integer) + ).returns(T.attached_class) + end + def self.new( + # The id of the price to remove from the plan. + price_id:, + # The phase to remove this price from. + plan_phase_order: nil + ) + end - # The per unit conversion rate of the price currency to the invoicing currency. - sig { returns(T.nilable(Float)) } - attr_accessor :conversion_rate + sig do + override.returns( + { price_id: String, plan_phase_order: T.nilable(Integer) } + ) + end + def to_hash + end + end - # The configuration for the rate of the price currency to the invoicing currency. - sig do - returns( - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ) - ) - end - attr_accessor :conversion_rate_config + class ReplaceAdjustment < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::BetaCreatePlanVersionParams::ReplaceAdjustment, + Orb::Internal::AnyHash + ) + end - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - sig { returns(T.nilable(String)) } - attr_accessor :currency + # The definition of a new adjustment to create and add to the plan. + sig do + returns( + T.any( + Orb::NewPercentageDiscount, + Orb::NewUsageDiscount, + Orb::NewAmountDiscount, + Orb::NewMinimum, + Orb::NewMaximum + ) + ) + end + attr_accessor :adjustment - # For dimensional price: specifies a price group and dimension values - sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } - attr_reader :dimensional_price_configuration + # The id of the adjustment on the plan to replace in the plan. + sig { returns(String) } + attr_accessor :replaces_adjustment_id - sig do - params( - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) - ).void - end - attr_writer :dimensional_price_configuration + # The phase to replace this adjustment from. + sig { returns(T.nilable(Integer)) } + attr_accessor :plan_phase_order - # An alias for the price. - sig { returns(T.nilable(String)) } - attr_accessor :external_price_id + sig do + params( + adjustment: + T.any( + Orb::NewPercentageDiscount::OrHash, + Orb::NewUsageDiscount::OrHash, + Orb::NewAmountDiscount::OrHash, + Orb::NewMinimum::OrHash, + Orb::NewMaximum::OrHash + ), + replaces_adjustment_id: String, + plan_phase_order: T.nilable(Integer) + ).returns(T.attached_class) + end + def self.new( + # The definition of a new adjustment to create and add to the plan. + adjustment:, + # The id of the adjustment on the plan to replace in the plan. + replaces_adjustment_id:, + # The phase to replace this adjustment from. + plan_phase_order: nil + ) + end - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - sig { returns(T.nilable(Float)) } - attr_accessor :fixed_price_quantity + sig do + override.returns( + { + adjustment: + T.any( + Orb::NewPercentageDiscount, + Orb::NewUsageDiscount, + Orb::NewAmountDiscount, + Orb::NewMinimum, + Orb::NewMaximum + ), + replaces_adjustment_id: String, + plan_phase_order: T.nilable(Integer) + } + ) + end + def to_hash + end - # The property used to group this price on an invoice - sig { returns(T.nilable(String)) } - attr_accessor :invoice_grouping_key + # The definition of a new adjustment to create and add to the plan. + module Adjustment + extend Orb::Internal::Type::Union - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :invoicing_cycle_configuration - - sig do - params( - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :invoicing_cycle_configuration - - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - attr_accessor :metadata - - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - sig { returns(T.nilable(String)) } - attr_accessor :reference_id - - sig do - params( - cadence: - Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::OrSymbol, - item_id: String, - minimum_config: - Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig::OrHash, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig::OrHash, - Orb::TieredConversionRateConfig::OrHash - ) - ), - currency: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String), - model_type: Symbol - ).returns(T.attached_class) - end - def self.new( - # The cadence to bill for this price on. - cadence:, - # The id of the item the price will be associated with. - item_id:, - minimum_config:, - # The name of the price. - name:, - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - billable_metric_id: nil, - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - billed_in_advance: nil, - # For custom cadence: specifies the duration of the billing period in days or - # months. - billing_cycle_configuration: nil, - # The per unit conversion rate of the price currency to the invoicing currency. - conversion_rate: nil, - # The configuration for the rate of the price currency to the invoicing currency. - conversion_rate_config: nil, - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - currency: nil, - # For dimensional price: specifies a price group and dimension values - dimensional_price_configuration: nil, - # An alias for the price. - external_price_id: nil, - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - fixed_price_quantity: nil, - # The property used to group this price on an invoice - invoice_grouping_key: nil, - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - invoicing_cycle_configuration: nil, - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - metadata: nil, - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - reference_id: nil, - model_type: :minimum - ) - end - - sig do - override.returns( - { - cadence: - Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::OrSymbol, - item_id: String, - minimum_config: - Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ), - currency: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) - end - def to_hash - end - - # The cadence to bill for this price on. - module Cadence - extend Orb::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ANNUAL = - T.let( - :annual, - Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol - ) - SEMI_ANNUAL = - T.let( - :semi_annual, - Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol - ) - MONTHLY = - T.let( - :monthly, - Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol - ) - QUARTERLY = - T.let( - :quarterly, - Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol - ) - ONE_TIME = - T.let( - :one_time, - Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol - ) - CUSTOM = - T.let( - :custom, - Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol - ] - ) - end - def self.values - end - end - - class MinimumConfig < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig, - Orb::Internal::AnyHash - ) - end - - # The minimum amount to apply - sig { returns(String) } - attr_accessor :minimum_amount - - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :prorated - - sig do - params( - minimum_amount: String, - prorated: T.nilable(T::Boolean) - ).returns(T.attached_class) - end - def self.new( - # The minimum amount to apply - minimum_amount:, - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - prorated: nil - ) - end - - sig do - override.returns( - { minimum_amount: String, prorated: T.nilable(T::Boolean) } - ) - end - def to_hash - end - end - end + Variants = + T.type_alias do + T.any( + Orb::NewPercentageDiscount, + Orb::NewUsageDiscount, + Orb::NewAmountDiscount, + Orb::NewMinimum, + Orb::NewMaximum + ) + end sig do override.returns( T::Array[ - Orb::BetaCreatePlanVersionParams::AddPrice::Price::Variants + Orb::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Variants ] ) end @@ -1106,689 +934,209 @@ module Orb end end - class RemoveAdjustment < Orb::Internal::Type::BaseModel + class ReplacePrice < Orb::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - Orb::BetaCreatePlanVersionParams::RemoveAdjustment, + Orb::BetaCreatePlanVersionParams::ReplacePrice, Orb::Internal::AnyHash ) end - # The id of the adjustment to remove from on the plan. + # The id of the price on the plan to replace in the plan. sig { returns(String) } - attr_accessor :adjustment_id + attr_accessor :replaces_price_id - # The phase to remove this adjustment from. - sig { returns(T.nilable(Integer)) } - attr_accessor :plan_phase_order + # The allocation price to add to the plan. + sig { returns(T.nilable(Orb::NewAllocationPrice)) } + attr_reader :allocation_price sig do params( - adjustment_id: String, - plan_phase_order: T.nilable(Integer) - ).returns(T.attached_class) - end - def self.new( - # The id of the adjustment to remove from on the plan. - adjustment_id:, - # The phase to remove this adjustment from. - plan_phase_order: nil - ) - end - - sig do - override.returns( - { adjustment_id: String, plan_phase_order: T.nilable(Integer) } - ) - end - def to_hash + allocation_price: T.nilable(Orb::NewAllocationPrice::OrHash) + ).void end - end - - class RemovePrice < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::BetaCreatePlanVersionParams::RemovePrice, - Orb::Internal::AnyHash - ) - end - - # The id of the price to remove from the plan. - sig { returns(String) } - attr_accessor :price_id + attr_writer :allocation_price - # The phase to remove this price from. + # The phase to replace this price from. sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig do - params( - price_id: String, - plan_phase_order: T.nilable(Integer) - ).returns(T.attached_class) - end - def self.new( - # The id of the price to remove from the plan. - price_id:, - # The phase to remove this price from. - plan_phase_order: nil - ) - end - - sig do - override.returns( - { price_id: String, plan_phase_order: T.nilable(Integer) } - ) - end - def to_hash - end - end - - class ReplaceAdjustment < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::BetaCreatePlanVersionParams::ReplaceAdjustment, - Orb::Internal::AnyHash - ) - end - - # The definition of a new adjustment to create and add to the plan. - sig do - returns( - T.any( - Orb::NewPercentageDiscount, - Orb::NewUsageDiscount, - Orb::NewAmountDiscount, - Orb::NewMinimum, - Orb::NewMaximum - ) - ) - end - attr_accessor :adjustment - - # The id of the adjustment on the plan to replace in the plan. - sig { returns(String) } - attr_accessor :replaces_adjustment_id - - # The phase to replace this adjustment from. - sig { returns(T.nilable(Integer)) } - attr_accessor :plan_phase_order - - sig do - params( - adjustment: - T.any( - Orb::NewPercentageDiscount::OrHash, - Orb::NewUsageDiscount::OrHash, - Orb::NewAmountDiscount::OrHash, - Orb::NewMinimum::OrHash, - Orb::NewMaximum::OrHash - ), - replaces_adjustment_id: String, - plan_phase_order: T.nilable(Integer) - ).returns(T.attached_class) - end - def self.new( - # The definition of a new adjustment to create and add to the plan. - adjustment:, - # The id of the adjustment on the plan to replace in the plan. - replaces_adjustment_id:, - # The phase to replace this adjustment from. - plan_phase_order: nil - ) - end - - sig do - override.returns( - { - adjustment: - T.any( - Orb::NewPercentageDiscount, - Orb::NewUsageDiscount, - Orb::NewAmountDiscount, - Orb::NewMinimum, - Orb::NewMaximum - ), - replaces_adjustment_id: String, - plan_phase_order: T.nilable(Integer) - } - ) - end - def to_hash - end - - # The definition of a new adjustment to create and add to the plan. - module Adjustment - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::NewPercentageDiscount, - Orb::NewUsageDiscount, - Orb::NewAmountDiscount, - Orb::NewMinimum, - Orb::NewMaximum - ) - end - - sig do - override.returns( - T::Array[ - Orb::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Variants - ] - ) - end - def self.variants - end - end - end - - class ReplacePrice < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::BetaCreatePlanVersionParams::ReplacePrice, - Orb::Internal::AnyHash - ) - end - - # The id of the price on the plan to replace in the plan. - sig { returns(String) } - attr_accessor :replaces_price_id - - # The allocation price to add to the plan. - sig { returns(T.nilable(Orb::NewAllocationPrice)) } - attr_reader :allocation_price - - sig do - params( - allocation_price: T.nilable(Orb::NewAllocationPrice::OrHash) - ).void - end - attr_writer :allocation_price - - # The phase to replace this price from. - sig { returns(T.nilable(Integer)) } - attr_accessor :plan_phase_order - - # The price to add to the plan + # The price to add to the plan sig do returns( T.nilable( T.any( Orb::NewPlanUnitPrice, - Orb::NewPlanPackagePrice, - Orb::NewPlanMatrixPrice, - Orb::NewPlanTieredPrice, - Orb::NewPlanBulkPrice, - Orb::NewPlanThresholdTotalAmountPrice, - Orb::NewPlanTieredPackagePrice, - Orb::NewPlanTieredWithMinimumPrice, - Orb::NewPlanUnitWithPercentPrice, - Orb::NewPlanPackageWithAllocationPrice, - Orb::NewPlanTierWithProrationPrice, - Orb::NewPlanUnitWithProrationPrice, - Orb::NewPlanGroupedAllocationPrice, - Orb::NewPlanGroupedWithProratedMinimumPrice, - Orb::NewPlanGroupedWithMeteredMinimumPrice, - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, - Orb::NewPlanMatrixWithDisplayNamePrice, - Orb::NewPlanBulkWithProrationPrice, - Orb::NewPlanGroupedTieredPackagePrice, - Orb::NewPlanMaxGroupTieredPackagePrice, - Orb::NewPlanScalableMatrixWithUnitPricingPrice, - Orb::NewPlanScalableMatrixWithTieredPricingPrice, - Orb::NewPlanCumulativeGroupedBulkPrice, - Orb::NewPlanTieredPackageWithMinimumPrice, - Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice, - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum - ) - ) - ) - end - attr_accessor :price - - sig do - params( - replaces_price_id: String, - allocation_price: T.nilable(Orb::NewAllocationPrice::OrHash), - plan_phase_order: T.nilable(Integer), - price: - T.nilable( - T.any( - Orb::NewPlanUnitPrice::OrHash, - Orb::NewPlanPackagePrice::OrHash, - Orb::NewPlanMatrixPrice::OrHash, - Orb::NewPlanTieredPrice::OrHash, - Orb::NewPlanBulkPrice::OrHash, - Orb::NewPlanThresholdTotalAmountPrice::OrHash, - Orb::NewPlanTieredPackagePrice::OrHash, - Orb::NewPlanTieredWithMinimumPrice::OrHash, - Orb::NewPlanUnitWithPercentPrice::OrHash, - Orb::NewPlanPackageWithAllocationPrice::OrHash, - Orb::NewPlanTierWithProrationPrice::OrHash, - Orb::NewPlanUnitWithProrationPrice::OrHash, - Orb::NewPlanGroupedAllocationPrice::OrHash, - Orb::NewPlanGroupedWithProratedMinimumPrice::OrHash, - Orb::NewPlanGroupedWithMeteredMinimumPrice::OrHash, - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::OrHash, - Orb::NewPlanMatrixWithDisplayNamePrice::OrHash, - Orb::NewPlanBulkWithProrationPrice::OrHash, - Orb::NewPlanGroupedTieredPackagePrice::OrHash, - Orb::NewPlanMaxGroupTieredPackagePrice::OrHash, - Orb::NewPlanScalableMatrixWithUnitPricingPrice::OrHash, - Orb::NewPlanScalableMatrixWithTieredPricingPrice::OrHash, - Orb::NewPlanCumulativeGroupedBulkPrice::OrHash, - Orb::NewPlanTieredPackageWithMinimumPrice::OrHash, - Orb::NewPlanMatrixWithAllocationPrice::OrHash, - Orb::NewPlanGroupedTieredPrice::OrHash, - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::OrHash - ) - ) - ).returns(T.attached_class) - end - def self.new( - # The id of the price on the plan to replace in the plan. - replaces_price_id:, - # The allocation price to add to the plan. - allocation_price: nil, - # The phase to replace this price from. - plan_phase_order: nil, - # The price to add to the plan - price: nil - ) - end - - sig do - override.returns( - { - replaces_price_id: String, - allocation_price: T.nilable(Orb::NewAllocationPrice), - plan_phase_order: T.nilable(Integer), - price: - T.nilable( - T.any( - Orb::NewPlanUnitPrice, - Orb::NewPlanPackagePrice, - Orb::NewPlanMatrixPrice, - Orb::NewPlanTieredPrice, - Orb::NewPlanBulkPrice, - Orb::NewPlanThresholdTotalAmountPrice, - Orb::NewPlanTieredPackagePrice, - Orb::NewPlanTieredWithMinimumPrice, - Orb::NewPlanUnitWithPercentPrice, - Orb::NewPlanPackageWithAllocationPrice, - Orb::NewPlanTierWithProrationPrice, - Orb::NewPlanUnitWithProrationPrice, - Orb::NewPlanGroupedAllocationPrice, - Orb::NewPlanGroupedWithProratedMinimumPrice, - Orb::NewPlanGroupedWithMeteredMinimumPrice, - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, - Orb::NewPlanMatrixWithDisplayNamePrice, - Orb::NewPlanBulkWithProrationPrice, - Orb::NewPlanGroupedTieredPackagePrice, - Orb::NewPlanMaxGroupTieredPackagePrice, - Orb::NewPlanScalableMatrixWithUnitPricingPrice, - Orb::NewPlanScalableMatrixWithTieredPricingPrice, - Orb::NewPlanCumulativeGroupedBulkPrice, - Orb::NewPlanTieredPackageWithMinimumPrice, - Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice, - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum - ) - ) - } - ) - end - def to_hash - end - - # The price to add to the plan - module Price - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do - T.any( - Orb::NewPlanUnitPrice, - Orb::NewPlanPackagePrice, - Orb::NewPlanMatrixPrice, - Orb::NewPlanTieredPrice, - Orb::NewPlanBulkPrice, - Orb::NewPlanThresholdTotalAmountPrice, - Orb::NewPlanTieredPackagePrice, - Orb::NewPlanTieredWithMinimumPrice, - Orb::NewPlanUnitWithPercentPrice, - Orb::NewPlanPackageWithAllocationPrice, - Orb::NewPlanTierWithProrationPrice, - Orb::NewPlanUnitWithProrationPrice, - Orb::NewPlanGroupedAllocationPrice, - Orb::NewPlanGroupedWithProratedMinimumPrice, - Orb::NewPlanGroupedWithMeteredMinimumPrice, - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, - Orb::NewPlanMatrixWithDisplayNamePrice, - Orb::NewPlanBulkWithProrationPrice, - Orb::NewPlanGroupedTieredPackagePrice, - Orb::NewPlanMaxGroupTieredPackagePrice, - Orb::NewPlanScalableMatrixWithUnitPricingPrice, - Orb::NewPlanScalableMatrixWithTieredPricingPrice, - Orb::NewPlanCumulativeGroupedBulkPrice, - Orb::NewPlanTieredPackageWithMinimumPrice, - Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice, - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum - ) - end - - class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, - Orb::Internal::AnyHash - ) - end - - # The cadence to bill for this price on. - sig do - returns( - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol - ) - end - attr_accessor :cadence - - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_with_min_max_thresholds_config - - # The id of the item the price will be associated with. - sig { returns(String) } - attr_accessor :item_id - - sig { returns(Symbol) } - attr_accessor :model_type - - # The name of the price. - sig { returns(String) } - attr_accessor :name - - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - sig { returns(T.nilable(String)) } - attr_accessor :billable_metric_id - - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :billed_in_advance - - # For custom cadence: specifies the duration of the billing period in days or - # months. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :billing_cycle_configuration - - sig do - params( - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :billing_cycle_configuration - - # The per unit conversion rate of the price currency to the invoicing currency. - sig { returns(T.nilable(Float)) } - attr_accessor :conversion_rate - - # The configuration for the rate of the price currency to the invoicing currency. - sig do - returns( - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ) - ) - end - attr_accessor :conversion_rate_config - - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - sig { returns(T.nilable(String)) } - attr_accessor :currency - - # For dimensional price: specifies a price group and dimension values - sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } - attr_reader :dimensional_price_configuration - - sig do - params( - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) - ).void - end - attr_writer :dimensional_price_configuration - - # An alias for the price. - sig { returns(T.nilable(String)) } - attr_accessor :external_price_id - - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - sig { returns(T.nilable(Float)) } - attr_accessor :fixed_price_quantity - - # The property used to group this price on an invoice - sig { returns(T.nilable(String)) } - attr_accessor :invoice_grouping_key - - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :invoicing_cycle_configuration - - sig do - params( - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :invoicing_cycle_configuration - - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - attr_accessor :metadata - - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - sig { returns(T.nilable(String)) } - attr_accessor :reference_id - - sig do - params( - cadence: - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, - grouped_with_min_max_thresholds_config: - T::Hash[Symbol, T.anything], - item_id: String, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig::OrHash, - Orb::TieredConversionRateConfig::OrHash - ) - ), - currency: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String), - model_type: Symbol - ).returns(T.attached_class) - end - def self.new( - # The cadence to bill for this price on. - cadence:, - grouped_with_min_max_thresholds_config:, - # The id of the item the price will be associated with. - item_id:, - # The name of the price. - name:, - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - billable_metric_id: nil, - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - billed_in_advance: nil, - # For custom cadence: specifies the duration of the billing period in days or - # months. - billing_cycle_configuration: nil, - # The per unit conversion rate of the price currency to the invoicing currency. - conversion_rate: nil, - # The configuration for the rate of the price currency to the invoicing currency. - conversion_rate_config: nil, - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - currency: nil, - # For dimensional price: specifies a price group and dimension values - dimensional_price_configuration: nil, - # An alias for the price. - external_price_id: nil, - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - fixed_price_quantity: nil, - # The property used to group this price on an invoice - invoice_grouping_key: nil, - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - invoicing_cycle_configuration: nil, - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - metadata: nil, - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - reference_id: nil, - model_type: :grouped_with_min_max_thresholds - ) - end - - sig do - override.returns( - { - cadence: - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, - grouped_with_min_max_thresholds_config: - T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ), - currency: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } + Orb::NewPlanPackagePrice, + Orb::NewPlanMatrixPrice, + Orb::NewPlanTieredPrice, + Orb::NewPlanBulkPrice, + Orb::NewPlanThresholdTotalAmountPrice, + Orb::NewPlanTieredPackagePrice, + Orb::NewPlanTieredWithMinimumPrice, + Orb::NewPlanUnitWithPercentPrice, + Orb::NewPlanPackageWithAllocationPrice, + Orb::NewPlanTierWithProrationPrice, + Orb::NewPlanUnitWithProrationPrice, + Orb::NewPlanGroupedAllocationPrice, + Orb::NewPlanGroupedWithProratedMinimumPrice, + Orb::NewPlanGroupedWithMeteredMinimumPrice, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, + Orb::NewPlanMatrixWithDisplayNamePrice, + Orb::NewPlanBulkWithProrationPrice, + Orb::NewPlanGroupedTieredPackagePrice, + Orb::NewPlanMaxGroupTieredPackagePrice, + Orb::NewPlanScalableMatrixWithUnitPricingPrice, + Orb::NewPlanScalableMatrixWithTieredPricingPrice, + Orb::NewPlanCumulativeGroupedBulkPrice, + Orb::NewPlanTieredPackageWithMinimumPrice, + Orb::NewPlanMatrixWithAllocationPrice, + Orb::NewPlanGroupedTieredPrice, + Orb::NewPlanMinimumCompositePrice ) - end - def to_hash - end + ) + ) + end + attr_accessor :price - # The cadence to bill for this price on. - module Cadence - extend Orb::Internal::Type::Enum + sig do + params( + replaces_price_id: String, + allocation_price: T.nilable(Orb::NewAllocationPrice::OrHash), + plan_phase_order: T.nilable(Integer), + price: + T.nilable( + T.any( + Orb::NewPlanUnitPrice::OrHash, + Orb::NewPlanPackagePrice::OrHash, + Orb::NewPlanMatrixPrice::OrHash, + Orb::NewPlanTieredPrice::OrHash, + Orb::NewPlanBulkPrice::OrHash, + Orb::NewPlanThresholdTotalAmountPrice::OrHash, + Orb::NewPlanTieredPackagePrice::OrHash, + Orb::NewPlanTieredWithMinimumPrice::OrHash, + Orb::NewPlanUnitWithPercentPrice::OrHash, + Orb::NewPlanPackageWithAllocationPrice::OrHash, + Orb::NewPlanTierWithProrationPrice::OrHash, + Orb::NewPlanUnitWithProrationPrice::OrHash, + Orb::NewPlanGroupedAllocationPrice::OrHash, + Orb::NewPlanGroupedWithProratedMinimumPrice::OrHash, + Orb::NewPlanGroupedWithMeteredMinimumPrice::OrHash, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::OrHash, + Orb::NewPlanMatrixWithDisplayNamePrice::OrHash, + Orb::NewPlanBulkWithProrationPrice::OrHash, + Orb::NewPlanGroupedTieredPackagePrice::OrHash, + Orb::NewPlanMaxGroupTieredPackagePrice::OrHash, + Orb::NewPlanScalableMatrixWithUnitPricingPrice::OrHash, + Orb::NewPlanScalableMatrixWithTieredPricingPrice::OrHash, + Orb::NewPlanCumulativeGroupedBulkPrice::OrHash, + Orb::NewPlanTieredPackageWithMinimumPrice::OrHash, + Orb::NewPlanMatrixWithAllocationPrice::OrHash, + Orb::NewPlanGroupedTieredPrice::OrHash, + Orb::NewPlanMinimumCompositePrice::OrHash + ) + ) + ).returns(T.attached_class) + end + def self.new( + # The id of the price on the plan to replace in the plan. + replaces_price_id:, + # The allocation price to add to the plan. + allocation_price: nil, + # The phase to replace this price from. + plan_phase_order: nil, + # The price to add to the plan + price: nil + ) + end - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence + sig do + override.returns( + { + replaces_price_id: String, + allocation_price: T.nilable(Orb::NewAllocationPrice), + plan_phase_order: T.nilable(Integer), + price: + T.nilable( + T.any( + Orb::NewPlanUnitPrice, + Orb::NewPlanPackagePrice, + Orb::NewPlanMatrixPrice, + Orb::NewPlanTieredPrice, + Orb::NewPlanBulkPrice, + Orb::NewPlanThresholdTotalAmountPrice, + Orb::NewPlanTieredPackagePrice, + Orb::NewPlanTieredWithMinimumPrice, + Orb::NewPlanUnitWithPercentPrice, + Orb::NewPlanPackageWithAllocationPrice, + Orb::NewPlanTierWithProrationPrice, + Orb::NewPlanUnitWithProrationPrice, + Orb::NewPlanGroupedAllocationPrice, + Orb::NewPlanGroupedWithProratedMinimumPrice, + Orb::NewPlanGroupedWithMeteredMinimumPrice, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, + Orb::NewPlanMatrixWithDisplayNamePrice, + Orb::NewPlanBulkWithProrationPrice, + Orb::NewPlanGroupedTieredPackagePrice, + Orb::NewPlanMaxGroupTieredPackagePrice, + Orb::NewPlanScalableMatrixWithUnitPricingPrice, + Orb::NewPlanScalableMatrixWithTieredPricingPrice, + Orb::NewPlanCumulativeGroupedBulkPrice, + Orb::NewPlanTieredPackageWithMinimumPrice, + Orb::NewPlanMatrixWithAllocationPrice, + Orb::NewPlanGroupedTieredPrice, + Orb::NewPlanMinimumCompositePrice ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ANNUAL = - T.let( - :annual, - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ) - SEMI_ANNUAL = - T.let( - :semi_annual, - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ) - MONTHLY = - T.let( - :monthly, - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ) - QUARTERLY = - T.let( - :quarterly, - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ) - ONE_TIME = - T.let( - :one_time, - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ) - CUSTOM = - T.let( - :custom, - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) + } + ) + end + def to_hash + end - sig do - override.returns( - T::Array[ - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ] - ) - end - def self.values - end + # The price to add to the plan + module Price + extend Orb::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + Orb::NewPlanUnitPrice, + Orb::NewPlanPackagePrice, + Orb::NewPlanMatrixPrice, + Orb::NewPlanTieredPrice, + Orb::NewPlanBulkPrice, + Orb::NewPlanThresholdTotalAmountPrice, + Orb::NewPlanTieredPackagePrice, + Orb::NewPlanTieredWithMinimumPrice, + Orb::NewPlanUnitWithPercentPrice, + Orb::NewPlanPackageWithAllocationPrice, + Orb::NewPlanTierWithProrationPrice, + Orb::NewPlanUnitWithProrationPrice, + Orb::NewPlanGroupedAllocationPrice, + Orb::NewPlanGroupedWithProratedMinimumPrice, + Orb::NewPlanGroupedWithMeteredMinimumPrice, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, + Orb::NewPlanMatrixWithDisplayNamePrice, + Orb::NewPlanBulkWithProrationPrice, + Orb::NewPlanGroupedTieredPackagePrice, + Orb::NewPlanMaxGroupTieredPackagePrice, + Orb::NewPlanScalableMatrixWithUnitPricingPrice, + Orb::NewPlanScalableMatrixWithTieredPricingPrice, + Orb::NewPlanCumulativeGroupedBulkPrice, + Orb::NewPlanTieredPackageWithMinimumPrice, + Orb::NewPlanMatrixWithAllocationPrice, + Orb::NewPlanGroupedTieredPrice, + Orb::NewPlanMinimumCompositePrice + ) end - end - class Minimum < Orb::Internal::Type::BaseModel + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Internal::AnyHash ) end @@ -1796,30 +1144,18 @@ module Orb # The cadence to bill for this price on. sig do returns( - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::OrSymbol + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol ) end attr_accessor :cadence + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :grouped_with_min_max_thresholds_config + # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id - sig do - returns( - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig - ) - end - attr_reader :minimum_config - - sig do - params( - minimum_config: - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig::OrHash - ).void - end - attr_writer :minimum_config - sig { returns(Symbol) } attr_accessor :model_type @@ -1924,10 +1260,10 @@ module Orb sig do params( cadence: - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::OrSymbol, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + grouped_with_min_max_thresholds_config: + T::Hash[Symbol, T.anything], item_id: String, - minimum_config: - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig::OrHash, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), @@ -1957,9 +1293,9 @@ module Orb def self.new( # The cadence to bill for this price on. cadence:, + grouped_with_min_max_thresholds_config:, # The id of the item the price will be associated with. item_id:, - minimum_config:, # The name of the price. name:, # The id of the billable metric for the price. Only needed if the price is @@ -1997,7 +1333,7 @@ module Orb # A transient ID that can be used to reference this price when adding adjustments # in the same API call. reference_id: nil, - model_type: :minimum + model_type: :grouped_with_min_max_thresholds ) end @@ -2005,10 +1341,10 @@ module Orb override.returns( { cadence: - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::OrSymbol, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + grouped_with_min_max_thresholds_config: + T::Hash[Symbol, T.anything], item_id: String, - minimum_config: - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig, model_type: Symbol, name: String, billable_metric_id: T.nilable(String), @@ -2047,7 +1383,7 @@ module Orb T.type_alias do T.all( Symbol, - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -2055,86 +1391,44 @@ module Orb ANNUAL = T.let( :annual, - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) sig do override.returns( T::Array[ - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ] ) end def self.values end end - - class MinimumConfig < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig, - Orb::Internal::AnyHash - ) - end - - # The minimum amount to apply - sig { returns(String) } - attr_accessor :minimum_amount - - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :prorated - - sig do - params( - minimum_amount: String, - prorated: T.nilable(T::Boolean) - ).returns(T.attached_class) - end - def self.new( - # The minimum amount to apply - minimum_amount:, - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - prorated: nil - ) - end - - sig do - override.returns( - { minimum_amount: String, prorated: T.nilable(T::Boolean) } - ) - end - def to_hash - end - end end sig do diff --git a/rbi/orb/models/new_floating_minimum_composite_price.rbi b/rbi/orb/models/new_floating_minimum_composite_price.rbi new file mode 100644 index 00000000..4364b8aa --- /dev/null +++ b/rbi/orb/models/new_floating_minimum_composite_price.rbi @@ -0,0 +1,360 @@ +# typed: strong + +module Orb + module Models + class NewFloatingMinimumCompositePrice < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any(Orb::NewFloatingMinimumCompositePrice, Orb::Internal::AnyHash) + end + + # The cadence to bill for this price on. + sig { returns(Orb::NewFloatingMinimumCompositePrice::Cadence::OrSymbol) } + attr_accessor :cadence + + # An ISO 4217 currency string for which this price is billed in. + sig { returns(String) } + attr_accessor :currency + + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id + + sig { returns(Orb::NewFloatingMinimumCompositePrice::MinimumConfig) } + attr_reader :minimum_config + + sig do + params( + minimum_config: + Orb::NewFloatingMinimumCompositePrice::MinimumConfig::OrHash + ).void + end + attr_writer :minimum_config + + sig do + returns(Orb::NewFloatingMinimumCompositePrice::ModelType::OrSymbol) + end + attr_accessor :model_type + + # The name of the price. + sig { returns(String) } + attr_accessor :name + + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id + + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance + + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration + + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) + ) + end + attr_accessor :conversion_rate_config + + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration + + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + sig do + params( + cadence: Orb::NewFloatingMinimumCompositePrice::Cadence::OrSymbol, + currency: String, + item_id: String, + minimum_config: + Orb::NewFloatingMinimumCompositePrice::MinimumConfig::OrHash, + model_type: + Orb::NewFloatingMinimumCompositePrice::ModelType::OrSymbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + # An ISO 4217 currency string for which this price is billed in. + currency:, + # The id of the item the price will be associated with. + item_id:, + minimum_config:, + model_type:, + # The name of the price. + name:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil + ) + end + + sig do + override.returns( + { + cadence: Orb::NewFloatingMinimumCompositePrice::Cadence::OrSymbol, + currency: String, + item_id: String, + minimum_config: + Orb::NewFloatingMinimumCompositePrice::MinimumConfig, + model_type: + Orb::NewFloatingMinimumCompositePrice::ModelType::OrSymbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::NewFloatingMinimumCompositePrice::Cadence) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::NewFloatingMinimumCompositePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::NewFloatingMinimumCompositePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::NewFloatingMinimumCompositePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::NewFloatingMinimumCompositePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::NewFloatingMinimumCompositePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::NewFloatingMinimumCompositePrice::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::NewFloatingMinimumCompositePrice::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end + + class MinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingMinimumCompositePrice::MinimumConfig, + Orb::Internal::AnyHash + ) + end + + # The minimum amount to apply + sig { returns(String) } + attr_accessor :minimum_amount + + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :prorated + + sig do + params( + minimum_amount: String, + prorated: T.nilable(T::Boolean) + ).returns(T.attached_class) + end + def self.new( + # The minimum amount to apply + minimum_amount:, + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + prorated: nil + ) + end + + sig do + override.returns( + { minimum_amount: String, prorated: T.nilable(T::Boolean) } + ) + end + def to_hash + end + end + + module ModelType + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::NewFloatingMinimumCompositePrice::ModelType) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + MINIMUM = + T.let( + :minimum, + Orb::NewFloatingMinimumCompositePrice::ModelType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::NewFloatingMinimumCompositePrice::ModelType::TaggedSymbol + ] + ) + end + def self.values + end + end + end + end +end diff --git a/rbi/orb/models/new_plan_minimum_composite_price.rbi b/rbi/orb/models/new_plan_minimum_composite_price.rbi new file mode 100644 index 00000000..ef0e9dfc --- /dev/null +++ b/rbi/orb/models/new_plan_minimum_composite_price.rbi @@ -0,0 +1,363 @@ +# typed: strong + +module Orb + module Models + class NewPlanMinimumCompositePrice < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any(Orb::NewPlanMinimumCompositePrice, Orb::Internal::AnyHash) + end + + # The cadence to bill for this price on. + sig { returns(Orb::NewPlanMinimumCompositePrice::Cadence::OrSymbol) } + attr_accessor :cadence + + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id + + sig { returns(Orb::NewPlanMinimumCompositePrice::MinimumConfig) } + attr_reader :minimum_config + + sig do + params( + minimum_config: + Orb::NewPlanMinimumCompositePrice::MinimumConfig::OrHash + ).void + end + attr_writer :minimum_config + + sig { returns(Orb::NewPlanMinimumCompositePrice::ModelType::OrSymbol) } + attr_accessor :model_type + + # The name of the price. + sig { returns(String) } + attr_accessor :name + + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id + + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance + + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration + + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) + ) + end + attr_accessor :conversion_rate_config + + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + sig { returns(T.nilable(String)) } + attr_accessor :currency + + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration + + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + sig { returns(T.nilable(String)) } + attr_accessor :reference_id + + sig do + params( + cadence: Orb::NewPlanMinimumCompositePrice::Cadence::OrSymbol, + item_id: String, + minimum_config: + Orb::NewPlanMinimumCompositePrice::MinimumConfig::OrHash, + model_type: Orb::NewPlanMinimumCompositePrice::ModelType::OrSymbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + # The id of the item the price will be associated with. + item_id:, + minimum_config:, + model_type:, + # The name of the price. + name:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + currency: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + reference_id: nil + ) + end + + sig do + override.returns( + { + cadence: Orb::NewPlanMinimumCompositePrice::Cadence::OrSymbol, + item_id: String, + minimum_config: Orb::NewPlanMinimumCompositePrice::MinimumConfig, + model_type: Orb::NewPlanMinimumCompositePrice::ModelType::OrSymbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::NewPlanMinimumCompositePrice::Cadence) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::NewPlanMinimumCompositePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::NewPlanMinimumCompositePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::NewPlanMinimumCompositePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::NewPlanMinimumCompositePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::NewPlanMinimumCompositePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::NewPlanMinimumCompositePrice::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[Orb::NewPlanMinimumCompositePrice::Cadence::TaggedSymbol] + ) + end + def self.values + end + end + + class MinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewPlanMinimumCompositePrice::MinimumConfig, + Orb::Internal::AnyHash + ) + end + + # The minimum amount to apply + sig { returns(String) } + attr_accessor :minimum_amount + + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :prorated + + sig do + params( + minimum_amount: String, + prorated: T.nilable(T::Boolean) + ).returns(T.attached_class) + end + def self.new( + # The minimum amount to apply + minimum_amount:, + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + prorated: nil + ) + end + + sig do + override.returns( + { minimum_amount: String, prorated: T.nilable(T::Boolean) } + ) + end + def to_hash + end + end + + module ModelType + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::NewPlanMinimumCompositePrice::ModelType) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + MINIMUM = + T.let( + :minimum, + Orb::NewPlanMinimumCompositePrice::ModelType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[Orb::NewPlanMinimumCompositePrice::ModelType::TaggedSymbol] + ) + end + def self.values + end + end + end + end +end diff --git a/rbi/orb/models/new_subscription_minimum_composite_price.rbi b/rbi/orb/models/new_subscription_minimum_composite_price.rbi new file mode 100644 index 00000000..63803224 --- /dev/null +++ b/rbi/orb/models/new_subscription_minimum_composite_price.rbi @@ -0,0 +1,378 @@ +# typed: strong + +module Orb + module Models + class NewSubscriptionMinimumCompositePrice < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionMinimumCompositePrice, + Orb::Internal::AnyHash + ) + end + + # The cadence to bill for this price on. + sig do + returns(Orb::NewSubscriptionMinimumCompositePrice::Cadence::OrSymbol) + end + attr_accessor :cadence + + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id + + sig { returns(Orb::NewSubscriptionMinimumCompositePrice::MinimumConfig) } + attr_reader :minimum_config + + sig do + params( + minimum_config: + Orb::NewSubscriptionMinimumCompositePrice::MinimumConfig::OrHash + ).void + end + attr_writer :minimum_config + + sig do + returns(Orb::NewSubscriptionMinimumCompositePrice::ModelType::OrSymbol) + end + attr_accessor :model_type + + # The name of the price. + sig { returns(String) } + attr_accessor :name + + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id + + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance + + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration + + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) + ) + end + attr_accessor :conversion_rate_config + + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + sig { returns(T.nilable(String)) } + attr_accessor :currency + + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration + + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + sig { returns(T.nilable(String)) } + attr_accessor :reference_id + + sig do + params( + cadence: Orb::NewSubscriptionMinimumCompositePrice::Cadence::OrSymbol, + item_id: String, + minimum_config: + Orb::NewSubscriptionMinimumCompositePrice::MinimumConfig::OrHash, + model_type: + Orb::NewSubscriptionMinimumCompositePrice::ModelType::OrSymbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + # The id of the item the price will be associated with. + item_id:, + minimum_config:, + model_type:, + # The name of the price. + name:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + currency: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + reference_id: nil + ) + end + + sig do + override.returns( + { + cadence: + Orb::NewSubscriptionMinimumCompositePrice::Cadence::OrSymbol, + item_id: String, + minimum_config: + Orb::NewSubscriptionMinimumCompositePrice::MinimumConfig, + model_type: + Orb::NewSubscriptionMinimumCompositePrice::ModelType::OrSymbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::NewSubscriptionMinimumCompositePrice::Cadence) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::NewSubscriptionMinimumCompositePrice::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::NewSubscriptionMinimumCompositePrice::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::NewSubscriptionMinimumCompositePrice::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::NewSubscriptionMinimumCompositePrice::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::NewSubscriptionMinimumCompositePrice::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::NewSubscriptionMinimumCompositePrice::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::NewSubscriptionMinimumCompositePrice::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end + + class MinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionMinimumCompositePrice::MinimumConfig, + Orb::Internal::AnyHash + ) + end + + # The minimum amount to apply + sig { returns(String) } + attr_accessor :minimum_amount + + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :prorated + + sig do + params( + minimum_amount: String, + prorated: T.nilable(T::Boolean) + ).returns(T.attached_class) + end + def self.new( + # The minimum amount to apply + minimum_amount:, + # By default, subtotals from minimum composite prices are prorated based on the + # service period. Set to false to disable proration. + prorated: nil + ) + end + + sig do + override.returns( + { minimum_amount: String, prorated: T.nilable(T::Boolean) } + ) + end + def to_hash + end + end + + module ModelType + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::NewSubscriptionMinimumCompositePrice::ModelType) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + MINIMUM = + T.let( + :minimum, + Orb::NewSubscriptionMinimumCompositePrice::ModelType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::NewSubscriptionMinimumCompositePrice::ModelType::TaggedSymbol + ] + ) + end + def self.values + end + end + end + end +end diff --git a/rbi/orb/models/plan_create_params.rbi b/rbi/orb/models/plan_create_params.rbi index bebdac04..d4fd2d60 100644 --- a/rbi/orb/models/plan_create_params.rbi +++ b/rbi/orb/models/plan_create_params.rbi @@ -180,7 +180,7 @@ module Orb Orb::NewPlanTieredPackageWithMinimumPrice, Orb::NewPlanMatrixWithAllocationPrice, Orb::NewPlanGroupedTieredPrice, - Orb::PlanCreateParams::Price::Price::Minimum + Orb::NewPlanMinimumCompositePrice ) ) ) @@ -220,7 +220,7 @@ module Orb Orb::NewPlanTieredPackageWithMinimumPrice::OrHash, Orb::NewPlanMatrixWithAllocationPrice::OrHash, Orb::NewPlanGroupedTieredPrice::OrHash, - Orb::PlanCreateParams::Price::Price::Minimum::OrHash + Orb::NewPlanMinimumCompositePrice::OrHash ) ) ).returns(T.attached_class) @@ -269,7 +269,7 @@ module Orb Orb::NewPlanTieredPackageWithMinimumPrice, Orb::NewPlanMatrixWithAllocationPrice, Orb::NewPlanGroupedTieredPrice, - Orb::PlanCreateParams::Price::Price::Minimum + Orb::NewPlanMinimumCompositePrice ) ) } @@ -311,7 +311,7 @@ module Orb Orb::NewPlanTieredPackageWithMinimumPrice, Orb::NewPlanMatrixWithAllocationPrice, Orb::NewPlanGroupedTieredPrice, - Orb::PlanCreateParams::Price::Price::Minimum + Orb::NewPlanMinimumCompositePrice ) end @@ -614,359 +614,6 @@ module Orb end end - class Minimum < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::PlanCreateParams::Price::Price::Minimum, - Orb::Internal::AnyHash - ) - end - - # The cadence to bill for this price on. - sig do - returns( - Orb::PlanCreateParams::Price::Price::Minimum::Cadence::OrSymbol - ) - end - attr_accessor :cadence - - # The id of the item the price will be associated with. - sig { returns(String) } - attr_accessor :item_id - - sig do - returns( - Orb::PlanCreateParams::Price::Price::Minimum::MinimumConfig - ) - end - attr_reader :minimum_config - - sig do - params( - minimum_config: - Orb::PlanCreateParams::Price::Price::Minimum::MinimumConfig::OrHash - ).void - end - attr_writer :minimum_config - - sig { returns(Symbol) } - attr_accessor :model_type - - # The name of the price. - sig { returns(String) } - attr_accessor :name - - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - sig { returns(T.nilable(String)) } - attr_accessor :billable_metric_id - - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :billed_in_advance - - # For custom cadence: specifies the duration of the billing period in days or - # months. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :billing_cycle_configuration - - sig do - params( - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :billing_cycle_configuration - - # The per unit conversion rate of the price currency to the invoicing currency. - sig { returns(T.nilable(Float)) } - attr_accessor :conversion_rate - - # The configuration for the rate of the price currency to the invoicing currency. - sig do - returns( - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ) - ) - end - attr_accessor :conversion_rate_config - - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - sig { returns(T.nilable(String)) } - attr_accessor :currency - - # For dimensional price: specifies a price group and dimension values - sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } - attr_reader :dimensional_price_configuration - - sig do - params( - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) - ).void - end - attr_writer :dimensional_price_configuration - - # An alias for the price. - sig { returns(T.nilable(String)) } - attr_accessor :external_price_id - - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - sig { returns(T.nilable(Float)) } - attr_accessor :fixed_price_quantity - - # The property used to group this price on an invoice - sig { returns(T.nilable(String)) } - attr_accessor :invoice_grouping_key - - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :invoicing_cycle_configuration - - sig do - params( - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :invoicing_cycle_configuration - - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - attr_accessor :metadata - - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - sig { returns(T.nilable(String)) } - attr_accessor :reference_id - - sig do - params( - cadence: - Orb::PlanCreateParams::Price::Price::Minimum::Cadence::OrSymbol, - item_id: String, - minimum_config: - Orb::PlanCreateParams::Price::Price::Minimum::MinimumConfig::OrHash, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig::OrHash, - Orb::TieredConversionRateConfig::OrHash - ) - ), - currency: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String), - model_type: Symbol - ).returns(T.attached_class) - end - def self.new( - # The cadence to bill for this price on. - cadence:, - # The id of the item the price will be associated with. - item_id:, - minimum_config:, - # The name of the price. - name:, - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - billable_metric_id: nil, - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - billed_in_advance: nil, - # For custom cadence: specifies the duration of the billing period in days or - # months. - billing_cycle_configuration: nil, - # The per unit conversion rate of the price currency to the invoicing currency. - conversion_rate: nil, - # The configuration for the rate of the price currency to the invoicing currency. - conversion_rate_config: nil, - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - currency: nil, - # For dimensional price: specifies a price group and dimension values - dimensional_price_configuration: nil, - # An alias for the price. - external_price_id: nil, - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - fixed_price_quantity: nil, - # The property used to group this price on an invoice - invoice_grouping_key: nil, - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - invoicing_cycle_configuration: nil, - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - metadata: nil, - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - reference_id: nil, - model_type: :minimum - ) - end - - sig do - override.returns( - { - cadence: - Orb::PlanCreateParams::Price::Price::Minimum::Cadence::OrSymbol, - item_id: String, - minimum_config: - Orb::PlanCreateParams::Price::Price::Minimum::MinimumConfig, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ), - currency: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) - end - def to_hash - end - - # The cadence to bill for this price on. - module Cadence - extend Orb::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Orb::PlanCreateParams::Price::Price::Minimum::Cadence - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ANNUAL = - T.let( - :annual, - Orb::PlanCreateParams::Price::Price::Minimum::Cadence::TaggedSymbol - ) - SEMI_ANNUAL = - T.let( - :semi_annual, - Orb::PlanCreateParams::Price::Price::Minimum::Cadence::TaggedSymbol - ) - MONTHLY = - T.let( - :monthly, - Orb::PlanCreateParams::Price::Price::Minimum::Cadence::TaggedSymbol - ) - QUARTERLY = - T.let( - :quarterly, - Orb::PlanCreateParams::Price::Price::Minimum::Cadence::TaggedSymbol - ) - ONE_TIME = - T.let( - :one_time, - Orb::PlanCreateParams::Price::Price::Minimum::Cadence::TaggedSymbol - ) - CUSTOM = - T.let( - :custom, - Orb::PlanCreateParams::Price::Price::Minimum::Cadence::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Orb::PlanCreateParams::Price::Price::Minimum::Cadence::TaggedSymbol - ] - ) - end - def self.values - end - end - - class MinimumConfig < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::PlanCreateParams::Price::Price::Minimum::MinimumConfig, - Orb::Internal::AnyHash - ) - end - - # The minimum amount to apply - sig { returns(String) } - attr_accessor :minimum_amount - - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :prorated - - sig do - params( - minimum_amount: String, - prorated: T.nilable(T::Boolean) - ).returns(T.attached_class) - end - def self.new( - # The minimum amount to apply - minimum_amount:, - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - prorated: nil - ) - end - - sig do - override.returns( - { minimum_amount: String, prorated: T.nilable(T::Boolean) } - ) - end - def to_hash - end - end - end - sig do override.returns( T::Array[Orb::PlanCreateParams::Price::Price::Variants] diff --git a/rbi/orb/models/price.rbi b/rbi/orb/models/price.rbi index 132b0e47..b97e4ed2 100644 --- a/rbi/orb/models/price.rbi +++ b/rbi/orb/models/price.rbi @@ -86,7 +86,7 @@ module Orb sig do returns( - T.nilable(Orb::Price::Unit::UnnamedTypeWithobjectParent85::Variants) + T.nilable(Orb::Price::Unit::UnnamedTypeWithobjectParent83::Variants) ) end attr_accessor :conversion_rate_config @@ -287,7 +287,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::Unit::UnnamedTypeWithobjectParent85::Variants + Orb::Price::Unit::UnnamedTypeWithobjectParent83::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -400,7 +400,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::Package::UnnamedTypeWithobjectParent86::Variants + Orb::Price::Package::UnnamedTypeWithobjectParent84::Variants ) ) end @@ -602,7 +602,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::Package::UnnamedTypeWithobjectParent86::Variants + Orb::Price::Package::UnnamedTypeWithobjectParent84::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -719,7 +719,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::Matrix::UnnamedTypeWithobjectParent87::Variants + Orb::Price::Matrix::UnnamedTypeWithobjectParent85::Variants ) ) end @@ -921,7 +921,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::Matrix::UnnamedTypeWithobjectParent87::Variants + Orb::Price::Matrix::UnnamedTypeWithobjectParent85::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -1037,7 +1037,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::Tiered::UnnamedTypeWithobjectParent88::Variants + Orb::Price::Tiered::UnnamedTypeWithobjectParent86::Variants ) ) end @@ -1239,7 +1239,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::Tiered::UnnamedTypeWithobjectParent88::Variants + Orb::Price::Tiered::UnnamedTypeWithobjectParent86::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -1360,7 +1360,7 @@ module Orb sig do returns( - T.nilable(Orb::Price::Bulk::UnnamedTypeWithobjectParent89::Variants) + T.nilable(Orb::Price::Bulk::UnnamedTypeWithobjectParent87::Variants) ) end attr_accessor :conversion_rate_config @@ -1556,7 +1556,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::Bulk::UnnamedTypeWithobjectParent89::Variants + Orb::Price::Bulk::UnnamedTypeWithobjectParent87::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -1670,7 +1670,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent90::Variants + Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent88::Variants ) ) end @@ -1871,7 +1871,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent90::Variants + Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent88::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -2024,7 +2024,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::TieredPackage::UnnamedTypeWithobjectParent91::Variants + Orb::Price::TieredPackage::UnnamedTypeWithobjectParent89::Variants ) ) end @@ -2223,7 +2223,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::TieredPackage::UnnamedTypeWithobjectParent91::Variants + Orb::Price::TieredPackage::UnnamedTypeWithobjectParent89::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -2354,7 +2354,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent92::Variants + Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent90::Variants ) ) end @@ -2553,7 +2553,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent92::Variants + Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent90::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -2684,7 +2684,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent93::Variants + Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent91::Variants ) ) end @@ -2883,7 +2883,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent93::Variants + Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent91::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -3030,7 +3030,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent94::Variants + Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent92::Variants ) ) end @@ -3233,7 +3233,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent94::Variants + Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent92::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -3390,7 +3390,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent95::Variants + Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent93::Variants ) ) end @@ -3591,7 +3591,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent95::Variants + Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent93::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -3744,7 +3744,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent96::Variants + Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent94::Variants ) ) end @@ -3943,7 +3943,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent96::Variants + Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent94::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -4079,7 +4079,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent97::Variants + Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent95::Variants ) ) end @@ -4289,7 +4289,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent97::Variants + Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent95::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -4442,7 +4442,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent98::Variants + Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent96::Variants ) ) end @@ -4643,7 +4643,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent98::Variants + Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent96::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -4794,7 +4794,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent99::Variants + Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent97::Variants ) ) end @@ -4993,7 +4993,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent99::Variants + Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent97::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -5138,7 +5138,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent100::Variants + Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent98::Variants ) ) end @@ -5337,7 +5337,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent100::Variants + Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent98::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -5487,7 +5487,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent101::Variants + Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent99::Variants ) ) end @@ -5692,7 +5692,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent101::Variants + Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent99::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -5849,7 +5849,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent102::Variants + Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent100::Variants ) ) end @@ -6054,7 +6054,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent102::Variants + Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent100::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -6211,7 +6211,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent103::Variants + Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent101::Variants ) ) end @@ -6412,7 +6412,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent103::Variants + Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent101::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -6568,7 +6568,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent104::Variants + Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent102::Variants ) ) end @@ -6765,7 +6765,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent104::Variants + Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent102::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -6909,7 +6909,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent105::Variants + Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent103::Variants ) ) end @@ -7110,7 +7110,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent105::Variants + Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent103::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -7265,7 +7265,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent106::Variants + Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent104::Variants ) ) end @@ -7466,7 +7466,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent106::Variants + Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent104::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -7626,7 +7626,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent107::Variants + Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent105::Variants ) ) end @@ -7833,7 +7833,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent107::Variants + Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent105::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -7999,7 +7999,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent108::Variants + Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent106::Variants ) ) end @@ -8206,7 +8206,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent108::Variants + Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent106::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -8370,7 +8370,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent109::Variants + Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent107::Variants ) ) end @@ -8571,7 +8571,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent109::Variants + Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent107::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -8731,7 +8731,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent110::Variants + Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent108::Variants ) ) end @@ -8936,7 +8936,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent110::Variants + Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent108::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -9090,7 +9090,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::Minimum::UnnamedTypeWithobjectParent111::Variants + Orb::Price::Minimum::UnnamedTypeWithobjectParent109::Variants ) ) end @@ -9296,7 +9296,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::Minimum::UnnamedTypeWithobjectParent111::Variants + Orb::Price::Minimum::UnnamedTypeWithobjectParent109::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), diff --git a/rbi/orb/models/price_evaluate_multiple_params.rbi b/rbi/orb/models/price_evaluate_multiple_params.rbi index 4b1faf70..78d46f4b 100644 --- a/rbi/orb/models/price_evaluate_multiple_params.rbi +++ b/rbi/orb/models/price_evaluate_multiple_params.rbi @@ -145,7 +145,7 @@ module Orb Orb::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::NewFloatingCumulativeGroupedBulkPrice, Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, - Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum + Orb::NewFloatingMinimumCompositePrice ) ) ) @@ -190,7 +190,7 @@ module Orb Orb::NewFloatingScalableMatrixWithTieredPricingPrice::OrHash, Orb::NewFloatingCumulativeGroupedBulkPrice::OrHash, Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::OrHash, - Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::OrHash + Orb::NewFloatingMinimumCompositePrice::OrHash ) ), price_id: T.nilable(String) @@ -250,7 +250,7 @@ module Orb Orb::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::NewFloatingCumulativeGroupedBulkPrice, Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, - Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum + Orb::NewFloatingMinimumCompositePrice ) ), price_id: T.nilable(String) @@ -294,7 +294,7 @@ module Orb Orb::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::NewFloatingCumulativeGroupedBulkPrice, Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, - Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum + Orb::NewFloatingMinimumCompositePrice ) end @@ -585,347 +585,6 @@ module Orb end end - class Minimum < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum, - Orb::Internal::AnyHash - ) - end - - # The cadence to bill for this price on. - sig do - returns( - Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::Cadence::OrSymbol - ) - end - attr_accessor :cadence - - # An ISO 4217 currency string for which this price is billed in. - sig { returns(String) } - attr_accessor :currency - - # The id of the item the price will be associated with. - sig { returns(String) } - attr_accessor :item_id - - sig do - returns( - Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::MinimumConfig - ) - end - attr_reader :minimum_config - - sig do - params( - minimum_config: - Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::MinimumConfig::OrHash - ).void - end - attr_writer :minimum_config - - sig { returns(Symbol) } - attr_accessor :model_type - - # The name of the price. - sig { returns(String) } - attr_accessor :name - - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - sig { returns(T.nilable(String)) } - attr_accessor :billable_metric_id - - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :billed_in_advance - - # For custom cadence: specifies the duration of the billing period in days or - # months. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :billing_cycle_configuration - - sig do - params( - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :billing_cycle_configuration - - # The per unit conversion rate of the price currency to the invoicing currency. - sig { returns(T.nilable(Float)) } - attr_accessor :conversion_rate - - # The configuration for the rate of the price currency to the invoicing currency. - sig do - returns( - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ) - ) - end - attr_accessor :conversion_rate_config - - # For dimensional price: specifies a price group and dimension values - sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } - attr_reader :dimensional_price_configuration - - sig do - params( - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) - ).void - end - attr_writer :dimensional_price_configuration - - # An alias for the price. - sig { returns(T.nilable(String)) } - attr_accessor :external_price_id - - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - sig { returns(T.nilable(Float)) } - attr_accessor :fixed_price_quantity - - # The property used to group this price on an invoice - sig { returns(T.nilable(String)) } - attr_accessor :invoice_grouping_key - - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :invoicing_cycle_configuration - - sig do - params( - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :invoicing_cycle_configuration - - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - attr_accessor :metadata - - sig do - params( - cadence: - Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::Cadence::OrSymbol, - currency: String, - item_id: String, - minimum_config: - Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::MinimumConfig::OrHash, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig::OrHash, - Orb::TieredConversionRateConfig::OrHash - ) - ), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - model_type: Symbol - ).returns(T.attached_class) - end - def self.new( - # The cadence to bill for this price on. - cadence:, - # An ISO 4217 currency string for which this price is billed in. - currency:, - # The id of the item the price will be associated with. - item_id:, - minimum_config:, - # The name of the price. - name:, - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - billable_metric_id: nil, - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - billed_in_advance: nil, - # For custom cadence: specifies the duration of the billing period in days or - # months. - billing_cycle_configuration: nil, - # The per unit conversion rate of the price currency to the invoicing currency. - conversion_rate: nil, - # The configuration for the rate of the price currency to the invoicing currency. - conversion_rate_config: nil, - # For dimensional price: specifies a price group and dimension values - dimensional_price_configuration: nil, - # An alias for the price. - external_price_id: nil, - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - fixed_price_quantity: nil, - # The property used to group this price on an invoice - invoice_grouping_key: nil, - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - invoicing_cycle_configuration: nil, - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - metadata: nil, - model_type: :minimum - ) - end - - sig do - override.returns( - { - cadence: - Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::Cadence::OrSymbol, - currency: String, - item_id: String, - minimum_config: - Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::MinimumConfig, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) - end - def to_hash - end - - # The cadence to bill for this price on. - module Cadence - extend Orb::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::Cadence - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ANNUAL = - T.let( - :annual, - Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::Cadence::TaggedSymbol - ) - SEMI_ANNUAL = - T.let( - :semi_annual, - Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::Cadence::TaggedSymbol - ) - MONTHLY = - T.let( - :monthly, - Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::Cadence::TaggedSymbol - ) - QUARTERLY = - T.let( - :quarterly, - Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::Cadence::TaggedSymbol - ) - ONE_TIME = - T.let( - :one_time, - Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::Cadence::TaggedSymbol - ) - CUSTOM = - T.let( - :custom, - Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::Cadence::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::Cadence::TaggedSymbol - ] - ) - end - def self.values - end - end - - class MinimumConfig < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::MinimumConfig, - Orb::Internal::AnyHash - ) - end - - # The minimum amount to apply - sig { returns(String) } - attr_accessor :minimum_amount - - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :prorated - - sig do - params( - minimum_amount: String, - prorated: T.nilable(T::Boolean) - ).returns(T.attached_class) - end - def self.new( - # The minimum amount to apply - minimum_amount:, - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - prorated: nil - ) - end - - sig do - override.returns( - { minimum_amount: String, prorated: T.nilable(T::Boolean) } - ) - end - def to_hash - end - end - end - sig do override.returns( T::Array[ diff --git a/rbi/orb/models/price_evaluate_preview_events_params.rbi b/rbi/orb/models/price_evaluate_preview_events_params.rbi index a2766e1b..6e96f99b 100644 --- a/rbi/orb/models/price_evaluate_preview_events_params.rbi +++ b/rbi/orb/models/price_evaluate_preview_events_params.rbi @@ -246,7 +246,7 @@ module Orb Orb::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::NewFloatingCumulativeGroupedBulkPrice, Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, - Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum + Orb::NewFloatingMinimumCompositePrice ) ) ) @@ -291,7 +291,7 @@ module Orb Orb::NewFloatingScalableMatrixWithTieredPricingPrice::OrHash, Orb::NewFloatingCumulativeGroupedBulkPrice::OrHash, Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::OrHash, - Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::OrHash + Orb::NewFloatingMinimumCompositePrice::OrHash ) ), price_id: T.nilable(String) @@ -351,7 +351,7 @@ module Orb Orb::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::NewFloatingCumulativeGroupedBulkPrice, Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, - Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum + Orb::NewFloatingMinimumCompositePrice ) ), price_id: T.nilable(String) @@ -395,7 +395,7 @@ module Orb Orb::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::NewFloatingCumulativeGroupedBulkPrice, Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, - Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum + Orb::NewFloatingMinimumCompositePrice ) end @@ -686,347 +686,6 @@ module Orb end end - class Minimum < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum, - Orb::Internal::AnyHash - ) - end - - # The cadence to bill for this price on. - sig do - returns( - Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::Cadence::OrSymbol - ) - end - attr_accessor :cadence - - # An ISO 4217 currency string for which this price is billed in. - sig { returns(String) } - attr_accessor :currency - - # The id of the item the price will be associated with. - sig { returns(String) } - attr_accessor :item_id - - sig do - returns( - Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::MinimumConfig - ) - end - attr_reader :minimum_config - - sig do - params( - minimum_config: - Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::MinimumConfig::OrHash - ).void - end - attr_writer :minimum_config - - sig { returns(Symbol) } - attr_accessor :model_type - - # The name of the price. - sig { returns(String) } - attr_accessor :name - - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - sig { returns(T.nilable(String)) } - attr_accessor :billable_metric_id - - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :billed_in_advance - - # For custom cadence: specifies the duration of the billing period in days or - # months. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :billing_cycle_configuration - - sig do - params( - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :billing_cycle_configuration - - # The per unit conversion rate of the price currency to the invoicing currency. - sig { returns(T.nilable(Float)) } - attr_accessor :conversion_rate - - # The configuration for the rate of the price currency to the invoicing currency. - sig do - returns( - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ) - ) - end - attr_accessor :conversion_rate_config - - # For dimensional price: specifies a price group and dimension values - sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } - attr_reader :dimensional_price_configuration - - sig do - params( - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) - ).void - end - attr_writer :dimensional_price_configuration - - # An alias for the price. - sig { returns(T.nilable(String)) } - attr_accessor :external_price_id - - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - sig { returns(T.nilable(Float)) } - attr_accessor :fixed_price_quantity - - # The property used to group this price on an invoice - sig { returns(T.nilable(String)) } - attr_accessor :invoice_grouping_key - - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :invoicing_cycle_configuration - - sig do - params( - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :invoicing_cycle_configuration - - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - attr_accessor :metadata - - sig do - params( - cadence: - Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::Cadence::OrSymbol, - currency: String, - item_id: String, - minimum_config: - Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::MinimumConfig::OrHash, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig::OrHash, - Orb::TieredConversionRateConfig::OrHash - ) - ), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - model_type: Symbol - ).returns(T.attached_class) - end - def self.new( - # The cadence to bill for this price on. - cadence:, - # An ISO 4217 currency string for which this price is billed in. - currency:, - # The id of the item the price will be associated with. - item_id:, - minimum_config:, - # The name of the price. - name:, - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - billable_metric_id: nil, - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - billed_in_advance: nil, - # For custom cadence: specifies the duration of the billing period in days or - # months. - billing_cycle_configuration: nil, - # The per unit conversion rate of the price currency to the invoicing currency. - conversion_rate: nil, - # The configuration for the rate of the price currency to the invoicing currency. - conversion_rate_config: nil, - # For dimensional price: specifies a price group and dimension values - dimensional_price_configuration: nil, - # An alias for the price. - external_price_id: nil, - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - fixed_price_quantity: nil, - # The property used to group this price on an invoice - invoice_grouping_key: nil, - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - invoicing_cycle_configuration: nil, - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - metadata: nil, - model_type: :minimum - ) - end - - sig do - override.returns( - { - cadence: - Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::Cadence::OrSymbol, - currency: String, - item_id: String, - minimum_config: - Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::MinimumConfig, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) - end - def to_hash - end - - # The cadence to bill for this price on. - module Cadence - extend Orb::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::Cadence - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ANNUAL = - T.let( - :annual, - Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::Cadence::TaggedSymbol - ) - SEMI_ANNUAL = - T.let( - :semi_annual, - Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::Cadence::TaggedSymbol - ) - MONTHLY = - T.let( - :monthly, - Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::Cadence::TaggedSymbol - ) - QUARTERLY = - T.let( - :quarterly, - Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::Cadence::TaggedSymbol - ) - ONE_TIME = - T.let( - :one_time, - Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::Cadence::TaggedSymbol - ) - CUSTOM = - T.let( - :custom, - Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::Cadence::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::Cadence::TaggedSymbol - ] - ) - end - def self.values - end - end - - class MinimumConfig < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::MinimumConfig, - Orb::Internal::AnyHash - ) - end - - # The minimum amount to apply - sig { returns(String) } - attr_accessor :minimum_amount - - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :prorated - - sig do - params( - minimum_amount: String, - prorated: T.nilable(T::Boolean) - ).returns(T.attached_class) - end - def self.new( - # The minimum amount to apply - minimum_amount:, - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - prorated: nil - ) - end - - sig do - override.returns( - { minimum_amount: String, prorated: T.nilable(T::Boolean) } - ) - end - def to_hash - end - end - end - sig do override.returns( T::Array[ diff --git a/rbi/orb/models/subscription_create_params.rbi b/rbi/orb/models/subscription_create_params.rbi index 37a55a89..d7818d7c 100644 --- a/rbi/orb/models/subscription_create_params.rbi +++ b/rbi/orb/models/subscription_create_params.rbi @@ -609,7 +609,7 @@ module Orb Orb::NewSubscriptionTieredPackageWithMinimumPrice, Orb::NewSubscriptionGroupedTieredPrice, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds, - Orb::SubscriptionCreateParams::AddPrice::Price::Minimum + Orb::NewSubscriptionMinimumCompositePrice ) ) ) @@ -664,7 +664,7 @@ module Orb Orb::NewSubscriptionTieredPackageWithMinimumPrice::OrHash, Orb::NewSubscriptionGroupedTieredPrice::OrHash, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::OrHash, - Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::OrHash + Orb::NewSubscriptionMinimumCompositePrice::OrHash ) ), price_id: T.nilable(String), @@ -741,7 +741,7 @@ module Orb Orb::NewSubscriptionTieredPackageWithMinimumPrice, Orb::NewSubscriptionGroupedTieredPrice, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds, - Orb::SubscriptionCreateParams::AddPrice::Price::Minimum + Orb::NewSubscriptionMinimumCompositePrice ) ), price_id: T.nilable(String), @@ -785,7 +785,7 @@ module Orb Orb::NewSubscriptionTieredPackageWithMinimumPrice, Orb::NewSubscriptionGroupedTieredPrice, Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds, - Orb::SubscriptionCreateParams::AddPrice::Price::Minimum + Orb::NewSubscriptionMinimumCompositePrice ) end @@ -1088,359 +1088,6 @@ module Orb end end - class Minimum < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::SubscriptionCreateParams::AddPrice::Price::Minimum, - Orb::Internal::AnyHash - ) - end - - # The cadence to bill for this price on. - sig do - returns( - Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::Cadence::OrSymbol - ) - end - attr_accessor :cadence - - # The id of the item the price will be associated with. - sig { returns(String) } - attr_accessor :item_id - - sig do - returns( - Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::MinimumConfig - ) - end - attr_reader :minimum_config - - sig do - params( - minimum_config: - Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::MinimumConfig::OrHash - ).void - end - attr_writer :minimum_config - - sig { returns(Symbol) } - attr_accessor :model_type - - # The name of the price. - sig { returns(String) } - attr_accessor :name - - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - sig { returns(T.nilable(String)) } - attr_accessor :billable_metric_id - - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :billed_in_advance - - # For custom cadence: specifies the duration of the billing period in days or - # months. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :billing_cycle_configuration - - sig do - params( - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :billing_cycle_configuration - - # The per unit conversion rate of the price currency to the invoicing currency. - sig { returns(T.nilable(Float)) } - attr_accessor :conversion_rate - - # The configuration for the rate of the price currency to the invoicing currency. - sig do - returns( - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ) - ) - end - attr_accessor :conversion_rate_config - - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - sig { returns(T.nilable(String)) } - attr_accessor :currency - - # For dimensional price: specifies a price group and dimension values - sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } - attr_reader :dimensional_price_configuration - - sig do - params( - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) - ).void - end - attr_writer :dimensional_price_configuration - - # An alias for the price. - sig { returns(T.nilable(String)) } - attr_accessor :external_price_id - - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - sig { returns(T.nilable(Float)) } - attr_accessor :fixed_price_quantity - - # The property used to group this price on an invoice - sig { returns(T.nilable(String)) } - attr_accessor :invoice_grouping_key - - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :invoicing_cycle_configuration - - sig do - params( - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :invoicing_cycle_configuration - - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - attr_accessor :metadata - - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - sig { returns(T.nilable(String)) } - attr_accessor :reference_id - - sig do - params( - cadence: - Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::Cadence::OrSymbol, - item_id: String, - minimum_config: - Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::MinimumConfig::OrHash, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig::OrHash, - Orb::TieredConversionRateConfig::OrHash - ) - ), - currency: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String), - model_type: Symbol - ).returns(T.attached_class) - end - def self.new( - # The cadence to bill for this price on. - cadence:, - # The id of the item the price will be associated with. - item_id:, - minimum_config:, - # The name of the price. - name:, - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - billable_metric_id: nil, - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - billed_in_advance: nil, - # For custom cadence: specifies the duration of the billing period in days or - # months. - billing_cycle_configuration: nil, - # The per unit conversion rate of the price currency to the invoicing currency. - conversion_rate: nil, - # The configuration for the rate of the price currency to the invoicing currency. - conversion_rate_config: nil, - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - currency: nil, - # For dimensional price: specifies a price group and dimension values - dimensional_price_configuration: nil, - # An alias for the price. - external_price_id: nil, - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - fixed_price_quantity: nil, - # The property used to group this price on an invoice - invoice_grouping_key: nil, - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - invoicing_cycle_configuration: nil, - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - metadata: nil, - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - reference_id: nil, - model_type: :minimum - ) - end - - sig do - override.returns( - { - cadence: - Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::Cadence::OrSymbol, - item_id: String, - minimum_config: - Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::MinimumConfig, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ), - currency: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) - end - def to_hash - end - - # The cadence to bill for this price on. - module Cadence - extend Orb::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::Cadence - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ANNUAL = - T.let( - :annual, - Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol - ) - SEMI_ANNUAL = - T.let( - :semi_annual, - Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol - ) - MONTHLY = - T.let( - :monthly, - Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol - ) - QUARTERLY = - T.let( - :quarterly, - Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol - ) - ONE_TIME = - T.let( - :one_time, - Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol - ) - CUSTOM = - T.let( - :custom, - Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol - ] - ) - end - def self.values - end - end - - class MinimumConfig < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::MinimumConfig, - Orb::Internal::AnyHash - ) - end - - # The minimum amount to apply - sig { returns(String) } - attr_accessor :minimum_amount - - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :prorated - - sig do - params( - minimum_amount: String, - prorated: T.nilable(T::Boolean) - ).returns(T.attached_class) - end - def self.new( - # The minimum amount to apply - minimum_amount:, - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - prorated: nil - ) - end - - sig do - override.returns( - { minimum_amount: String, prorated: T.nilable(T::Boolean) } - ) - end - def to_hash - end - end - end - sig do override.returns( T::Array[Orb::SubscriptionCreateParams::AddPrice::Price::Variants] @@ -1691,176 +1338,14 @@ module Orb attr_accessor :maximum_amount # [DEPRECATED] Use add_adjustments instead. The subscription's minimum amount for - # the replacement price. - sig { returns(T.nilable(String)) } - attr_accessor :minimum_amount - - # The definition of a new price to create and add to the subscription. - sig do - returns( - T.nilable( - T.any( - Orb::NewSubscriptionUnitPrice, - Orb::NewSubscriptionPackagePrice, - Orb::NewSubscriptionMatrixPrice, - Orb::NewSubscriptionTieredPrice, - Orb::NewSubscriptionBulkPrice, - Orb::NewSubscriptionThresholdTotalAmountPrice, - Orb::NewSubscriptionTieredPackagePrice, - Orb::NewSubscriptionTieredWithMinimumPrice, - Orb::NewSubscriptionUnitWithPercentPrice, - Orb::NewSubscriptionPackageWithAllocationPrice, - Orb::NewSubscriptionTierWithProrationPrice, - Orb::NewSubscriptionUnitWithProrationPrice, - Orb::NewSubscriptionGroupedAllocationPrice, - Orb::NewSubscriptionGroupedWithProratedMinimumPrice, - Orb::NewSubscriptionBulkWithProrationPrice, - Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::NewSubscriptionMaxGroupTieredPackagePrice, - Orb::NewSubscriptionGroupedWithMeteredMinimumPrice, - Orb::NewSubscriptionMatrixWithDisplayNamePrice, - Orb::NewSubscriptionGroupedTieredPackagePrice, - Orb::NewSubscriptionMatrixWithAllocationPrice, - Orb::NewSubscriptionTieredPackageWithMinimumPrice, - Orb::NewSubscriptionGroupedTieredPrice, - Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, - Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum - ) - ) - ) - end - attr_accessor :price - - # The id of the price to add to the subscription. - sig { returns(T.nilable(String)) } - attr_accessor :price_id - - sig do - params( - replaces_price_id: String, - allocation_price: T.nilable(Orb::NewAllocationPrice::OrHash), - discounts: T.nilable(T::Array[Orb::DiscountOverride::OrHash]), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - maximum_amount: T.nilable(String), - minimum_amount: T.nilable(String), - price: - T.nilable( - T.any( - Orb::NewSubscriptionUnitPrice::OrHash, - Orb::NewSubscriptionPackagePrice::OrHash, - Orb::NewSubscriptionMatrixPrice::OrHash, - Orb::NewSubscriptionTieredPrice::OrHash, - Orb::NewSubscriptionBulkPrice::OrHash, - Orb::NewSubscriptionThresholdTotalAmountPrice::OrHash, - Orb::NewSubscriptionTieredPackagePrice::OrHash, - Orb::NewSubscriptionTieredWithMinimumPrice::OrHash, - Orb::NewSubscriptionUnitWithPercentPrice::OrHash, - Orb::NewSubscriptionPackageWithAllocationPrice::OrHash, - Orb::NewSubscriptionTierWithProrationPrice::OrHash, - Orb::NewSubscriptionUnitWithProrationPrice::OrHash, - Orb::NewSubscriptionGroupedAllocationPrice::OrHash, - Orb::NewSubscriptionGroupedWithProratedMinimumPrice::OrHash, - Orb::NewSubscriptionBulkWithProrationPrice::OrHash, - Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::OrHash, - Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::OrHash, - Orb::NewSubscriptionCumulativeGroupedBulkPrice::OrHash, - Orb::NewSubscriptionMaxGroupTieredPackagePrice::OrHash, - Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::OrHash, - Orb::NewSubscriptionMatrixWithDisplayNamePrice::OrHash, - Orb::NewSubscriptionGroupedTieredPackagePrice::OrHash, - Orb::NewSubscriptionMatrixWithAllocationPrice::OrHash, - Orb::NewSubscriptionTieredPackageWithMinimumPrice::OrHash, - Orb::NewSubscriptionGroupedTieredPrice::OrHash, - Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::OrHash, - Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::OrHash - ) - ), - price_id: T.nilable(String) - ).returns(T.attached_class) - end - def self.new( - # The id of the price on the plan to replace in the subscription. - replaces_price_id:, - # The definition of a new allocation price to create and add to the subscription. - allocation_price: nil, - # [DEPRECATED] Use add_adjustments instead. The subscription's discounts for the - # replacement price. - discounts: nil, - # The external price id of the price to add to the subscription. - external_price_id: nil, - # The new quantity of the price, if the price is a fixed price. - fixed_price_quantity: nil, - # [DEPRECATED] Use add_adjustments instead. The subscription's maximum amount for - # the replacement price. - maximum_amount: nil, - # [DEPRECATED] Use add_adjustments instead. The subscription's minimum amount for - # the replacement price. - minimum_amount: nil, - # The definition of a new price to create and add to the subscription. - price: nil, - # The id of the price to add to the subscription. - price_id: nil - ) - end - - sig do - override.returns( - { - replaces_price_id: String, - allocation_price: T.nilable(Orb::NewAllocationPrice), - discounts: T.nilable(T::Array[Orb::DiscountOverride]), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - maximum_amount: T.nilable(String), - minimum_amount: T.nilable(String), - price: - T.nilable( - T.any( - Orb::NewSubscriptionUnitPrice, - Orb::NewSubscriptionPackagePrice, - Orb::NewSubscriptionMatrixPrice, - Orb::NewSubscriptionTieredPrice, - Orb::NewSubscriptionBulkPrice, - Orb::NewSubscriptionThresholdTotalAmountPrice, - Orb::NewSubscriptionTieredPackagePrice, - Orb::NewSubscriptionTieredWithMinimumPrice, - Orb::NewSubscriptionUnitWithPercentPrice, - Orb::NewSubscriptionPackageWithAllocationPrice, - Orb::NewSubscriptionTierWithProrationPrice, - Orb::NewSubscriptionUnitWithProrationPrice, - Orb::NewSubscriptionGroupedAllocationPrice, - Orb::NewSubscriptionGroupedWithProratedMinimumPrice, - Orb::NewSubscriptionBulkWithProrationPrice, - Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::NewSubscriptionMaxGroupTieredPackagePrice, - Orb::NewSubscriptionGroupedWithMeteredMinimumPrice, - Orb::NewSubscriptionMatrixWithDisplayNamePrice, - Orb::NewSubscriptionGroupedTieredPackagePrice, - Orb::NewSubscriptionMatrixWithAllocationPrice, - Orb::NewSubscriptionTieredPackageWithMinimumPrice, - Orb::NewSubscriptionGroupedTieredPrice, - Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, - Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum - ) - ), - price_id: T.nilable(String) - } - ) - end - def to_hash - end + # the replacement price. + sig { returns(T.nilable(String)) } + attr_accessor :minimum_amount # The definition of a new price to create and add to the subscription. - module Price - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do + sig do + returns( + T.nilable( T.any( Orb::NewSubscriptionUnitPrice, Orb::NewSubscriptionPackagePrice, @@ -1888,314 +1373,177 @@ module Orb Orb::NewSubscriptionTieredPackageWithMinimumPrice, Orb::NewSubscriptionGroupedTieredPrice, Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, - Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum - ) - end - - class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, - Orb::Internal::AnyHash - ) - end - - # The cadence to bill for this price on. - sig do - returns( - Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol - ) - end - attr_accessor :cadence - - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_with_min_max_thresholds_config - - # The id of the item the price will be associated with. - sig { returns(String) } - attr_accessor :item_id - - sig { returns(Symbol) } - attr_accessor :model_type - - # The name of the price. - sig { returns(String) } - attr_accessor :name - - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - sig { returns(T.nilable(String)) } - attr_accessor :billable_metric_id - - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :billed_in_advance - - # For custom cadence: specifies the duration of the billing period in days or - # months. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :billing_cycle_configuration - - sig do - params( - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :billing_cycle_configuration - - # The per unit conversion rate of the price currency to the invoicing currency. - sig { returns(T.nilable(Float)) } - attr_accessor :conversion_rate - - # The configuration for the rate of the price currency to the invoicing currency. - sig do - returns( - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ) - ) - end - attr_accessor :conversion_rate_config - - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - sig { returns(T.nilable(String)) } - attr_accessor :currency - - # For dimensional price: specifies a price group and dimension values - sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } - attr_reader :dimensional_price_configuration - - sig do - params( - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) - ).void - end - attr_writer :dimensional_price_configuration - - # An alias for the price. - sig { returns(T.nilable(String)) } - attr_accessor :external_price_id - - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - sig { returns(T.nilable(Float)) } - attr_accessor :fixed_price_quantity - - # The property used to group this price on an invoice - sig { returns(T.nilable(String)) } - attr_accessor :invoice_grouping_key - - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :invoicing_cycle_configuration - - sig do - params( - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :invoicing_cycle_configuration - - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - attr_accessor :metadata - - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - sig { returns(T.nilable(String)) } - attr_accessor :reference_id - - sig do - params( - cadence: - Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, - grouped_with_min_max_thresholds_config: - T::Hash[Symbol, T.anything], - item_id: String, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig::OrHash, - Orb::TieredConversionRateConfig::OrHash - ) - ), - currency: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String), - model_type: Symbol - ).returns(T.attached_class) - end - def self.new( - # The cadence to bill for this price on. - cadence:, - grouped_with_min_max_thresholds_config:, - # The id of the item the price will be associated with. - item_id:, - # The name of the price. - name:, - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - billable_metric_id: nil, - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - billed_in_advance: nil, - # For custom cadence: specifies the duration of the billing period in days or - # months. - billing_cycle_configuration: nil, - # The per unit conversion rate of the price currency to the invoicing currency. - conversion_rate: nil, - # The configuration for the rate of the price currency to the invoicing currency. - conversion_rate_config: nil, - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - currency: nil, - # For dimensional price: specifies a price group and dimension values - dimensional_price_configuration: nil, - # An alias for the price. - external_price_id: nil, - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - fixed_price_quantity: nil, - # The property used to group this price on an invoice - invoice_grouping_key: nil, - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - invoicing_cycle_configuration: nil, - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - metadata: nil, - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - reference_id: nil, - model_type: :grouped_with_min_max_thresholds - ) - end - - sig do - override.returns( - { - cadence: - Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, - grouped_with_min_max_thresholds_config: - T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ), - currency: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) - end - def to_hash - end + Orb::NewSubscriptionMinimumCompositePrice + ) + ) + ) + end + attr_accessor :price - # The cadence to bill for this price on. - module Cadence - extend Orb::Internal::Type::Enum + # The id of the price to add to the subscription. + sig { returns(T.nilable(String)) } + attr_accessor :price_id - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence + sig do + params( + replaces_price_id: String, + allocation_price: T.nilable(Orb::NewAllocationPrice::OrHash), + discounts: T.nilable(T::Array[Orb::DiscountOverride::OrHash]), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + maximum_amount: T.nilable(String), + minimum_amount: T.nilable(String), + price: + T.nilable( + T.any( + Orb::NewSubscriptionUnitPrice::OrHash, + Orb::NewSubscriptionPackagePrice::OrHash, + Orb::NewSubscriptionMatrixPrice::OrHash, + Orb::NewSubscriptionTieredPrice::OrHash, + Orb::NewSubscriptionBulkPrice::OrHash, + Orb::NewSubscriptionThresholdTotalAmountPrice::OrHash, + Orb::NewSubscriptionTieredPackagePrice::OrHash, + Orb::NewSubscriptionTieredWithMinimumPrice::OrHash, + Orb::NewSubscriptionUnitWithPercentPrice::OrHash, + Orb::NewSubscriptionPackageWithAllocationPrice::OrHash, + Orb::NewSubscriptionTierWithProrationPrice::OrHash, + Orb::NewSubscriptionUnitWithProrationPrice::OrHash, + Orb::NewSubscriptionGroupedAllocationPrice::OrHash, + Orb::NewSubscriptionGroupedWithProratedMinimumPrice::OrHash, + Orb::NewSubscriptionBulkWithProrationPrice::OrHash, + Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::OrHash, + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::OrHash, + Orb::NewSubscriptionCumulativeGroupedBulkPrice::OrHash, + Orb::NewSubscriptionMaxGroupTieredPackagePrice::OrHash, + Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::OrHash, + Orb::NewSubscriptionMatrixWithDisplayNamePrice::OrHash, + Orb::NewSubscriptionGroupedTieredPackagePrice::OrHash, + Orb::NewSubscriptionMatrixWithAllocationPrice::OrHash, + Orb::NewSubscriptionTieredPackageWithMinimumPrice::OrHash, + Orb::NewSubscriptionGroupedTieredPrice::OrHash, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::OrHash, + Orb::NewSubscriptionMinimumCompositePrice::OrHash + ) + ), + price_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # The id of the price on the plan to replace in the subscription. + replaces_price_id:, + # The definition of a new allocation price to create and add to the subscription. + allocation_price: nil, + # [DEPRECATED] Use add_adjustments instead. The subscription's discounts for the + # replacement price. + discounts: nil, + # The external price id of the price to add to the subscription. + external_price_id: nil, + # The new quantity of the price, if the price is a fixed price. + fixed_price_quantity: nil, + # [DEPRECATED] Use add_adjustments instead. The subscription's maximum amount for + # the replacement price. + maximum_amount: nil, + # [DEPRECATED] Use add_adjustments instead. The subscription's minimum amount for + # the replacement price. + minimum_amount: nil, + # The definition of a new price to create and add to the subscription. + price: nil, + # The id of the price to add to the subscription. + price_id: nil + ) + end + + sig do + override.returns( + { + replaces_price_id: String, + allocation_price: T.nilable(Orb::NewAllocationPrice), + discounts: T.nilable(T::Array[Orb::DiscountOverride]), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + maximum_amount: T.nilable(String), + minimum_amount: T.nilable(String), + price: + T.nilable( + T.any( + Orb::NewSubscriptionUnitPrice, + Orb::NewSubscriptionPackagePrice, + Orb::NewSubscriptionMatrixPrice, + Orb::NewSubscriptionTieredPrice, + Orb::NewSubscriptionBulkPrice, + Orb::NewSubscriptionThresholdTotalAmountPrice, + Orb::NewSubscriptionTieredPackagePrice, + Orb::NewSubscriptionTieredWithMinimumPrice, + Orb::NewSubscriptionUnitWithPercentPrice, + Orb::NewSubscriptionPackageWithAllocationPrice, + Orb::NewSubscriptionTierWithProrationPrice, + Orb::NewSubscriptionUnitWithProrationPrice, + Orb::NewSubscriptionGroupedAllocationPrice, + Orb::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::NewSubscriptionBulkWithProrationPrice, + Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice, + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice, + Orb::NewSubscriptionCumulativeGroupedBulkPrice, + Orb::NewSubscriptionMaxGroupTieredPackagePrice, + Orb::NewSubscriptionGroupedWithMeteredMinimumPrice, + Orb::NewSubscriptionMatrixWithDisplayNamePrice, + Orb::NewSubscriptionGroupedTieredPackagePrice, + Orb::NewSubscriptionMatrixWithAllocationPrice, + Orb::NewSubscriptionTieredPackageWithMinimumPrice, + Orb::NewSubscriptionGroupedTieredPrice, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, + Orb::NewSubscriptionMinimumCompositePrice ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } + ), + price_id: T.nilable(String) + } + ) + end + def to_hash + end - ANNUAL = - T.let( - :annual, - Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ) - SEMI_ANNUAL = - T.let( - :semi_annual, - Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ) - MONTHLY = - T.let( - :monthly, - Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ) - QUARTERLY = - T.let( - :quarterly, - Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ) - ONE_TIME = - T.let( - :one_time, - Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ) - CUSTOM = - T.let( - :custom, - Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ) + # The definition of a new price to create and add to the subscription. + module Price + extend Orb::Internal::Type::Union - sig do - override.returns( - T::Array[ - Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ] - ) - end - def self.values - end + Variants = + T.type_alias do + T.any( + Orb::NewSubscriptionUnitPrice, + Orb::NewSubscriptionPackagePrice, + Orb::NewSubscriptionMatrixPrice, + Orb::NewSubscriptionTieredPrice, + Orb::NewSubscriptionBulkPrice, + Orb::NewSubscriptionThresholdTotalAmountPrice, + Orb::NewSubscriptionTieredPackagePrice, + Orb::NewSubscriptionTieredWithMinimumPrice, + Orb::NewSubscriptionUnitWithPercentPrice, + Orb::NewSubscriptionPackageWithAllocationPrice, + Orb::NewSubscriptionTierWithProrationPrice, + Orb::NewSubscriptionUnitWithProrationPrice, + Orb::NewSubscriptionGroupedAllocationPrice, + Orb::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::NewSubscriptionBulkWithProrationPrice, + Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice, + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice, + Orb::NewSubscriptionCumulativeGroupedBulkPrice, + Orb::NewSubscriptionMaxGroupTieredPackagePrice, + Orb::NewSubscriptionGroupedWithMeteredMinimumPrice, + Orb::NewSubscriptionMatrixWithDisplayNamePrice, + Orb::NewSubscriptionGroupedTieredPackagePrice, + Orb::NewSubscriptionMatrixWithAllocationPrice, + Orb::NewSubscriptionTieredPackageWithMinimumPrice, + Orb::NewSubscriptionGroupedTieredPrice, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, + Orb::NewSubscriptionMinimumCompositePrice + ) end - end - class Minimum < Orb::Internal::Type::BaseModel + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Internal::AnyHash ) end @@ -2203,30 +1551,18 @@ module Orb # The cadence to bill for this price on. sig do returns( - Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::Cadence::OrSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol ) end attr_accessor :cadence + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :grouped_with_min_max_thresholds_config + # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id - sig do - returns( - Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::MinimumConfig - ) - end - attr_reader :minimum_config - - sig do - params( - minimum_config: - Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::MinimumConfig::OrHash - ).void - end - attr_writer :minimum_config - sig { returns(Symbol) } attr_accessor :model_type @@ -2331,10 +1667,10 @@ module Orb sig do params( cadence: - Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::Cadence::OrSymbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + grouped_with_min_max_thresholds_config: + T::Hash[Symbol, T.anything], item_id: String, - minimum_config: - Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::MinimumConfig::OrHash, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), @@ -2364,9 +1700,9 @@ module Orb def self.new( # The cadence to bill for this price on. cadence:, + grouped_with_min_max_thresholds_config:, # The id of the item the price will be associated with. item_id:, - minimum_config:, # The name of the price. name:, # The id of the billable metric for the price. Only needed if the price is @@ -2404,7 +1740,7 @@ module Orb # A transient ID that can be used to reference this price when adding adjustments # in the same API call. reference_id: nil, - model_type: :minimum + model_type: :grouped_with_min_max_thresholds ) end @@ -2412,10 +1748,10 @@ module Orb override.returns( { cadence: - Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::Cadence::OrSymbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + grouped_with_min_max_thresholds_config: + T::Hash[Symbol, T.anything], item_id: String, - minimum_config: - Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::MinimumConfig, model_type: Symbol, name: String, billable_metric_id: T.nilable(String), @@ -2454,7 +1790,7 @@ module Orb T.type_alias do T.all( Symbol, - Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::Cadence + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -2462,86 +1798,44 @@ module Orb ANNUAL = T.let( :annual, - Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) sig do override.returns( T::Array[ - Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ] ) end def self.values end end - - class MinimumConfig < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::MinimumConfig, - Orb::Internal::AnyHash - ) - end - - # The minimum amount to apply - sig { returns(String) } - attr_accessor :minimum_amount - - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :prorated - - sig do - params( - minimum_amount: String, - prorated: T.nilable(T::Boolean) - ).returns(T.attached_class) - end - def self.new( - # The minimum amount to apply - minimum_amount:, - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - prorated: nil - ) - end - - sig do - override.returns( - { minimum_amount: String, prorated: T.nilable(T::Boolean) } - ) - end - def to_hash - end - end end sig do diff --git a/rbi/orb/models/subscription_price_intervals_params.rbi b/rbi/orb/models/subscription_price_intervals_params.rbi index 719c648e..51ec5061 100644 --- a/rbi/orb/models/subscription_price_intervals_params.rbi +++ b/rbi/orb/models/subscription_price_intervals_params.rbi @@ -249,7 +249,7 @@ module Orb Orb::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::NewFloatingCumulativeGroupedBulkPrice, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds, - Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum + Orb::NewFloatingMinimumCompositePrice ) ) ) @@ -324,7 +324,7 @@ module Orb Orb::NewFloatingScalableMatrixWithTieredPricingPrice::OrHash, Orb::NewFloatingCumulativeGroupedBulkPrice::OrHash, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::OrHash, - Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::OrHash + Orb::NewFloatingMinimumCompositePrice::OrHash ) ), price_id: T.nilable(String), @@ -427,7 +427,7 @@ module Orb Orb::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::NewFloatingCumulativeGroupedBulkPrice, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds, - Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum + Orb::NewFloatingMinimumCompositePrice ) ), price_id: T.nilable(String), @@ -684,7 +684,7 @@ module Orb Orb::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::NewFloatingCumulativeGroupedBulkPrice, Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds, - Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum + Orb::NewFloatingMinimumCompositePrice ) end @@ -975,347 +975,6 @@ module Orb end end - class Minimum < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum, - Orb::Internal::AnyHash - ) - end - - # The cadence to bill for this price on. - sig do - returns( - Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::Cadence::OrSymbol - ) - end - attr_accessor :cadence - - # An ISO 4217 currency string for which this price is billed in. - sig { returns(String) } - attr_accessor :currency - - # The id of the item the price will be associated with. - sig { returns(String) } - attr_accessor :item_id - - sig do - returns( - Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::MinimumConfig - ) - end - attr_reader :minimum_config - - sig do - params( - minimum_config: - Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::MinimumConfig::OrHash - ).void - end - attr_writer :minimum_config - - sig { returns(Symbol) } - attr_accessor :model_type - - # The name of the price. - sig { returns(String) } - attr_accessor :name - - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - sig { returns(T.nilable(String)) } - attr_accessor :billable_metric_id - - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :billed_in_advance - - # For custom cadence: specifies the duration of the billing period in days or - # months. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :billing_cycle_configuration - - sig do - params( - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :billing_cycle_configuration - - # The per unit conversion rate of the price currency to the invoicing currency. - sig { returns(T.nilable(Float)) } - attr_accessor :conversion_rate - - # The configuration for the rate of the price currency to the invoicing currency. - sig do - returns( - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ) - ) - end - attr_accessor :conversion_rate_config - - # For dimensional price: specifies a price group and dimension values - sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } - attr_reader :dimensional_price_configuration - - sig do - params( - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) - ).void - end - attr_writer :dimensional_price_configuration - - # An alias for the price. - sig { returns(T.nilable(String)) } - attr_accessor :external_price_id - - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - sig { returns(T.nilable(Float)) } - attr_accessor :fixed_price_quantity - - # The property used to group this price on an invoice - sig { returns(T.nilable(String)) } - attr_accessor :invoice_grouping_key - - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :invoicing_cycle_configuration - - sig do - params( - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :invoicing_cycle_configuration - - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - attr_accessor :metadata - - sig do - params( - cadence: - Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::Cadence::OrSymbol, - currency: String, - item_id: String, - minimum_config: - Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::MinimumConfig::OrHash, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig::OrHash, - Orb::TieredConversionRateConfig::OrHash - ) - ), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - model_type: Symbol - ).returns(T.attached_class) - end - def self.new( - # The cadence to bill for this price on. - cadence:, - # An ISO 4217 currency string for which this price is billed in. - currency:, - # The id of the item the price will be associated with. - item_id:, - minimum_config:, - # The name of the price. - name:, - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - billable_metric_id: nil, - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - billed_in_advance: nil, - # For custom cadence: specifies the duration of the billing period in days or - # months. - billing_cycle_configuration: nil, - # The per unit conversion rate of the price currency to the invoicing currency. - conversion_rate: nil, - # The configuration for the rate of the price currency to the invoicing currency. - conversion_rate_config: nil, - # For dimensional price: specifies a price group and dimension values - dimensional_price_configuration: nil, - # An alias for the price. - external_price_id: nil, - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - fixed_price_quantity: nil, - # The property used to group this price on an invoice - invoice_grouping_key: nil, - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - invoicing_cycle_configuration: nil, - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - metadata: nil, - model_type: :minimum - ) - end - - sig do - override.returns( - { - cadence: - Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::Cadence::OrSymbol, - currency: String, - item_id: String, - minimum_config: - Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::MinimumConfig, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]) - } - ) - end - def to_hash - end - - # The cadence to bill for this price on. - module Cadence - extend Orb::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::Cadence - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ANNUAL = - T.let( - :annual, - Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::Cadence::TaggedSymbol - ) - SEMI_ANNUAL = - T.let( - :semi_annual, - Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::Cadence::TaggedSymbol - ) - MONTHLY = - T.let( - :monthly, - Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::Cadence::TaggedSymbol - ) - QUARTERLY = - T.let( - :quarterly, - Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::Cadence::TaggedSymbol - ) - ONE_TIME = - T.let( - :one_time, - Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::Cadence::TaggedSymbol - ) - CUSTOM = - T.let( - :custom, - Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::Cadence::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::Cadence::TaggedSymbol - ] - ) - end - def self.values - end - end - - class MinimumConfig < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::MinimumConfig, - Orb::Internal::AnyHash - ) - end - - # The minimum amount to apply - sig { returns(String) } - attr_accessor :minimum_amount - - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :prorated - - sig do - params( - minimum_amount: String, - prorated: T.nilable(T::Boolean) - ).returns(T.attached_class) - end - def self.new( - # The minimum amount to apply - minimum_amount:, - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - prorated: nil - ) - end - - sig do - override.returns( - { minimum_amount: String, prorated: T.nilable(T::Boolean) } - ) - end - def to_hash - end - end - end - sig do override.returns( T::Array[ diff --git a/rbi/orb/models/subscription_schedule_plan_change_params.rbi b/rbi/orb/models/subscription_schedule_plan_change_params.rbi index 9e9400b7..faddab68 100644 --- a/rbi/orb/models/subscription_schedule_plan_change_params.rbi +++ b/rbi/orb/models/subscription_schedule_plan_change_params.rbi @@ -660,7 +660,7 @@ module Orb Orb::NewSubscriptionTieredPackageWithMinimumPrice, Orb::NewSubscriptionGroupedTieredPrice, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds, - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum + Orb::NewSubscriptionMinimumCompositePrice ) ) ) @@ -715,7 +715,7 @@ module Orb Orb::NewSubscriptionTieredPackageWithMinimumPrice::OrHash, Orb::NewSubscriptionGroupedTieredPrice::OrHash, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::OrHash, - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::OrHash + Orb::NewSubscriptionMinimumCompositePrice::OrHash ) ), price_id: T.nilable(String), @@ -792,7 +792,7 @@ module Orb Orb::NewSubscriptionTieredPackageWithMinimumPrice, Orb::NewSubscriptionGroupedTieredPrice, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds, - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum + Orb::NewSubscriptionMinimumCompositePrice ) ), price_id: T.nilable(String), @@ -836,7 +836,7 @@ module Orb Orb::NewSubscriptionTieredPackageWithMinimumPrice, Orb::NewSubscriptionGroupedTieredPrice, Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds, - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum + Orb::NewSubscriptionMinimumCompositePrice ) end @@ -1139,359 +1139,6 @@ module Orb end end - class Minimum < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum, - Orb::Internal::AnyHash - ) - end - - # The cadence to bill for this price on. - sig do - returns( - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::Cadence::OrSymbol - ) - end - attr_accessor :cadence - - # The id of the item the price will be associated with. - sig { returns(String) } - attr_accessor :item_id - - sig do - returns( - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::MinimumConfig - ) - end - attr_reader :minimum_config - - sig do - params( - minimum_config: - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::MinimumConfig::OrHash - ).void - end - attr_writer :minimum_config - - sig { returns(Symbol) } - attr_accessor :model_type - - # The name of the price. - sig { returns(String) } - attr_accessor :name - - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - sig { returns(T.nilable(String)) } - attr_accessor :billable_metric_id - - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :billed_in_advance - - # For custom cadence: specifies the duration of the billing period in days or - # months. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :billing_cycle_configuration - - sig do - params( - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :billing_cycle_configuration - - # The per unit conversion rate of the price currency to the invoicing currency. - sig { returns(T.nilable(Float)) } - attr_accessor :conversion_rate - - # The configuration for the rate of the price currency to the invoicing currency. - sig do - returns( - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ) - ) - end - attr_accessor :conversion_rate_config - - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - sig { returns(T.nilable(String)) } - attr_accessor :currency - - # For dimensional price: specifies a price group and dimension values - sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } - attr_reader :dimensional_price_configuration - - sig do - params( - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) - ).void - end - attr_writer :dimensional_price_configuration - - # An alias for the price. - sig { returns(T.nilable(String)) } - attr_accessor :external_price_id - - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - sig { returns(T.nilable(Float)) } - attr_accessor :fixed_price_quantity - - # The property used to group this price on an invoice - sig { returns(T.nilable(String)) } - attr_accessor :invoice_grouping_key - - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :invoicing_cycle_configuration - - sig do - params( - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :invoicing_cycle_configuration - - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - attr_accessor :metadata - - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - sig { returns(T.nilable(String)) } - attr_accessor :reference_id - - sig do - params( - cadence: - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::Cadence::OrSymbol, - item_id: String, - minimum_config: - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::MinimumConfig::OrHash, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig::OrHash, - Orb::TieredConversionRateConfig::OrHash - ) - ), - currency: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String), - model_type: Symbol - ).returns(T.attached_class) - end - def self.new( - # The cadence to bill for this price on. - cadence:, - # The id of the item the price will be associated with. - item_id:, - minimum_config:, - # The name of the price. - name:, - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - billable_metric_id: nil, - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - billed_in_advance: nil, - # For custom cadence: specifies the duration of the billing period in days or - # months. - billing_cycle_configuration: nil, - # The per unit conversion rate of the price currency to the invoicing currency. - conversion_rate: nil, - # The configuration for the rate of the price currency to the invoicing currency. - conversion_rate_config: nil, - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - currency: nil, - # For dimensional price: specifies a price group and dimension values - dimensional_price_configuration: nil, - # An alias for the price. - external_price_id: nil, - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - fixed_price_quantity: nil, - # The property used to group this price on an invoice - invoice_grouping_key: nil, - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - invoicing_cycle_configuration: nil, - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - metadata: nil, - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - reference_id: nil, - model_type: :minimum - ) - end - - sig do - override.returns( - { - cadence: - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::Cadence::OrSymbol, - item_id: String, - minimum_config: - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::MinimumConfig, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ), - currency: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) - end - def to_hash - end - - # The cadence to bill for this price on. - module Cadence - extend Orb::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::Cadence - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ANNUAL = - T.let( - :annual, - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol - ) - SEMI_ANNUAL = - T.let( - :semi_annual, - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol - ) - MONTHLY = - T.let( - :monthly, - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol - ) - QUARTERLY = - T.let( - :quarterly, - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol - ) - ONE_TIME = - T.let( - :one_time, - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol - ) - CUSTOM = - T.let( - :custom, - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::Cadence::TaggedSymbol - ] - ) - end - def self.values - end - end - - class MinimumConfig < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::MinimumConfig, - Orb::Internal::AnyHash - ) - end - - # The minimum amount to apply - sig { returns(String) } - attr_accessor :minimum_amount - - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :prorated - - sig do - params( - minimum_amount: String, - prorated: T.nilable(T::Boolean) - ).returns(T.attached_class) - end - def self.new( - # The minimum amount to apply - minimum_amount:, - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - prorated: nil - ) - end - - sig do - override.returns( - { minimum_amount: String, prorated: T.nilable(T::Boolean) } - ) - end - def to_hash - end - end - end - sig do override.returns( T::Array[ @@ -1750,176 +1397,14 @@ module Orb attr_accessor :maximum_amount # [DEPRECATED] Use add_adjustments instead. The subscription's minimum amount for - # the replacement price. - sig { returns(T.nilable(String)) } - attr_accessor :minimum_amount - - # The definition of a new price to create and add to the subscription. - sig do - returns( - T.nilable( - T.any( - Orb::NewSubscriptionUnitPrice, - Orb::NewSubscriptionPackagePrice, - Orb::NewSubscriptionMatrixPrice, - Orb::NewSubscriptionTieredPrice, - Orb::NewSubscriptionBulkPrice, - Orb::NewSubscriptionThresholdTotalAmountPrice, - Orb::NewSubscriptionTieredPackagePrice, - Orb::NewSubscriptionTieredWithMinimumPrice, - Orb::NewSubscriptionUnitWithPercentPrice, - Orb::NewSubscriptionPackageWithAllocationPrice, - Orb::NewSubscriptionTierWithProrationPrice, - Orb::NewSubscriptionUnitWithProrationPrice, - Orb::NewSubscriptionGroupedAllocationPrice, - Orb::NewSubscriptionGroupedWithProratedMinimumPrice, - Orb::NewSubscriptionBulkWithProrationPrice, - Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::NewSubscriptionMaxGroupTieredPackagePrice, - Orb::NewSubscriptionGroupedWithMeteredMinimumPrice, - Orb::NewSubscriptionMatrixWithDisplayNamePrice, - Orb::NewSubscriptionGroupedTieredPackagePrice, - Orb::NewSubscriptionMatrixWithAllocationPrice, - Orb::NewSubscriptionTieredPackageWithMinimumPrice, - Orb::NewSubscriptionGroupedTieredPrice, - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum - ) - ) - ) - end - attr_accessor :price - - # The id of the price to add to the subscription. - sig { returns(T.nilable(String)) } - attr_accessor :price_id - - sig do - params( - replaces_price_id: String, - allocation_price: T.nilable(Orb::NewAllocationPrice::OrHash), - discounts: T.nilable(T::Array[Orb::DiscountOverride::OrHash]), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - maximum_amount: T.nilable(String), - minimum_amount: T.nilable(String), - price: - T.nilable( - T.any( - Orb::NewSubscriptionUnitPrice::OrHash, - Orb::NewSubscriptionPackagePrice::OrHash, - Orb::NewSubscriptionMatrixPrice::OrHash, - Orb::NewSubscriptionTieredPrice::OrHash, - Orb::NewSubscriptionBulkPrice::OrHash, - Orb::NewSubscriptionThresholdTotalAmountPrice::OrHash, - Orb::NewSubscriptionTieredPackagePrice::OrHash, - Orb::NewSubscriptionTieredWithMinimumPrice::OrHash, - Orb::NewSubscriptionUnitWithPercentPrice::OrHash, - Orb::NewSubscriptionPackageWithAllocationPrice::OrHash, - Orb::NewSubscriptionTierWithProrationPrice::OrHash, - Orb::NewSubscriptionUnitWithProrationPrice::OrHash, - Orb::NewSubscriptionGroupedAllocationPrice::OrHash, - Orb::NewSubscriptionGroupedWithProratedMinimumPrice::OrHash, - Orb::NewSubscriptionBulkWithProrationPrice::OrHash, - Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::OrHash, - Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::OrHash, - Orb::NewSubscriptionCumulativeGroupedBulkPrice::OrHash, - Orb::NewSubscriptionMaxGroupTieredPackagePrice::OrHash, - Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::OrHash, - Orb::NewSubscriptionMatrixWithDisplayNamePrice::OrHash, - Orb::NewSubscriptionGroupedTieredPackagePrice::OrHash, - Orb::NewSubscriptionMatrixWithAllocationPrice::OrHash, - Orb::NewSubscriptionTieredPackageWithMinimumPrice::OrHash, - Orb::NewSubscriptionGroupedTieredPrice::OrHash, - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::OrHash, - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::OrHash - ) - ), - price_id: T.nilable(String) - ).returns(T.attached_class) - end - def self.new( - # The id of the price on the plan to replace in the subscription. - replaces_price_id:, - # The definition of a new allocation price to create and add to the subscription. - allocation_price: nil, - # [DEPRECATED] Use add_adjustments instead. The subscription's discounts for the - # replacement price. - discounts: nil, - # The external price id of the price to add to the subscription. - external_price_id: nil, - # The new quantity of the price, if the price is a fixed price. - fixed_price_quantity: nil, - # [DEPRECATED] Use add_adjustments instead. The subscription's maximum amount for - # the replacement price. - maximum_amount: nil, - # [DEPRECATED] Use add_adjustments instead. The subscription's minimum amount for - # the replacement price. - minimum_amount: nil, - # The definition of a new price to create and add to the subscription. - price: nil, - # The id of the price to add to the subscription. - price_id: nil - ) - end - - sig do - override.returns( - { - replaces_price_id: String, - allocation_price: T.nilable(Orb::NewAllocationPrice), - discounts: T.nilable(T::Array[Orb::DiscountOverride]), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - maximum_amount: T.nilable(String), - minimum_amount: T.nilable(String), - price: - T.nilable( - T.any( - Orb::NewSubscriptionUnitPrice, - Orb::NewSubscriptionPackagePrice, - Orb::NewSubscriptionMatrixPrice, - Orb::NewSubscriptionTieredPrice, - Orb::NewSubscriptionBulkPrice, - Orb::NewSubscriptionThresholdTotalAmountPrice, - Orb::NewSubscriptionTieredPackagePrice, - Orb::NewSubscriptionTieredWithMinimumPrice, - Orb::NewSubscriptionUnitWithPercentPrice, - Orb::NewSubscriptionPackageWithAllocationPrice, - Orb::NewSubscriptionTierWithProrationPrice, - Orb::NewSubscriptionUnitWithProrationPrice, - Orb::NewSubscriptionGroupedAllocationPrice, - Orb::NewSubscriptionGroupedWithProratedMinimumPrice, - Orb::NewSubscriptionBulkWithProrationPrice, - Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::NewSubscriptionMaxGroupTieredPackagePrice, - Orb::NewSubscriptionGroupedWithMeteredMinimumPrice, - Orb::NewSubscriptionMatrixWithDisplayNamePrice, - Orb::NewSubscriptionGroupedTieredPackagePrice, - Orb::NewSubscriptionMatrixWithAllocationPrice, - Orb::NewSubscriptionTieredPackageWithMinimumPrice, - Orb::NewSubscriptionGroupedTieredPrice, - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum - ) - ), - price_id: T.nilable(String) - } - ) - end - def to_hash - end + # the replacement price. + sig { returns(T.nilable(String)) } + attr_accessor :minimum_amount # The definition of a new price to create and add to the subscription. - module Price - extend Orb::Internal::Type::Union - - Variants = - T.type_alias do + sig do + returns( + T.nilable( T.any( Orb::NewSubscriptionUnitPrice, Orb::NewSubscriptionPackagePrice, @@ -1947,314 +1432,177 @@ module Orb Orb::NewSubscriptionTieredPackageWithMinimumPrice, Orb::NewSubscriptionGroupedTieredPrice, Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum - ) - end - - class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, - Orb::Internal::AnyHash - ) - end - - # The cadence to bill for this price on. - sig do - returns( - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol - ) - end - attr_accessor :cadence - - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_with_min_max_thresholds_config - - # The id of the item the price will be associated with. - sig { returns(String) } - attr_accessor :item_id - - sig { returns(Symbol) } - attr_accessor :model_type - - # The name of the price. - sig { returns(String) } - attr_accessor :name - - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - sig { returns(T.nilable(String)) } - attr_accessor :billable_metric_id - - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :billed_in_advance - - # For custom cadence: specifies the duration of the billing period in days or - # months. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :billing_cycle_configuration - - sig do - params( - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :billing_cycle_configuration - - # The per unit conversion rate of the price currency to the invoicing currency. - sig { returns(T.nilable(Float)) } - attr_accessor :conversion_rate - - # The configuration for the rate of the price currency to the invoicing currency. - sig do - returns( - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ) - ) - end - attr_accessor :conversion_rate_config - - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - sig { returns(T.nilable(String)) } - attr_accessor :currency - - # For dimensional price: specifies a price group and dimension values - sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } - attr_reader :dimensional_price_configuration - - sig do - params( - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) - ).void - end - attr_writer :dimensional_price_configuration - - # An alias for the price. - sig { returns(T.nilable(String)) } - attr_accessor :external_price_id - - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - sig { returns(T.nilable(Float)) } - attr_accessor :fixed_price_quantity - - # The property used to group this price on an invoice - sig { returns(T.nilable(String)) } - attr_accessor :invoice_grouping_key - - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :invoicing_cycle_configuration - - sig do - params( - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :invoicing_cycle_configuration - - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - attr_accessor :metadata - - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - sig { returns(T.nilable(String)) } - attr_accessor :reference_id - - sig do - params( - cadence: - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, - grouped_with_min_max_thresholds_config: - T::Hash[Symbol, T.anything], - item_id: String, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig::OrHash, - Orb::TieredConversionRateConfig::OrHash - ) - ), - currency: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String), - model_type: Symbol - ).returns(T.attached_class) - end - def self.new( - # The cadence to bill for this price on. - cadence:, - grouped_with_min_max_thresholds_config:, - # The id of the item the price will be associated with. - item_id:, - # The name of the price. - name:, - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - billable_metric_id: nil, - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - billed_in_advance: nil, - # For custom cadence: specifies the duration of the billing period in days or - # months. - billing_cycle_configuration: nil, - # The per unit conversion rate of the price currency to the invoicing currency. - conversion_rate: nil, - # The configuration for the rate of the price currency to the invoicing currency. - conversion_rate_config: nil, - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - currency: nil, - # For dimensional price: specifies a price group and dimension values - dimensional_price_configuration: nil, - # An alias for the price. - external_price_id: nil, - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - fixed_price_quantity: nil, - # The property used to group this price on an invoice - invoice_grouping_key: nil, - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - invoicing_cycle_configuration: nil, - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - metadata: nil, - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - reference_id: nil, - model_type: :grouped_with_min_max_thresholds - ) - end - - sig do - override.returns( - { - cadence: - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, - grouped_with_min_max_thresholds_config: - T::Hash[Symbol, T.anything], - item_id: String, - model_type: Symbol, - name: String, - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ), - currency: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) - end - def to_hash - end + Orb::NewSubscriptionMinimumCompositePrice + ) + ) + ) + end + attr_accessor :price - # The cadence to bill for this price on. - module Cadence - extend Orb::Internal::Type::Enum + # The id of the price to add to the subscription. + sig { returns(T.nilable(String)) } + attr_accessor :price_id - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence + sig do + params( + replaces_price_id: String, + allocation_price: T.nilable(Orb::NewAllocationPrice::OrHash), + discounts: T.nilable(T::Array[Orb::DiscountOverride::OrHash]), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + maximum_amount: T.nilable(String), + minimum_amount: T.nilable(String), + price: + T.nilable( + T.any( + Orb::NewSubscriptionUnitPrice::OrHash, + Orb::NewSubscriptionPackagePrice::OrHash, + Orb::NewSubscriptionMatrixPrice::OrHash, + Orb::NewSubscriptionTieredPrice::OrHash, + Orb::NewSubscriptionBulkPrice::OrHash, + Orb::NewSubscriptionThresholdTotalAmountPrice::OrHash, + Orb::NewSubscriptionTieredPackagePrice::OrHash, + Orb::NewSubscriptionTieredWithMinimumPrice::OrHash, + Orb::NewSubscriptionUnitWithPercentPrice::OrHash, + Orb::NewSubscriptionPackageWithAllocationPrice::OrHash, + Orb::NewSubscriptionTierWithProrationPrice::OrHash, + Orb::NewSubscriptionUnitWithProrationPrice::OrHash, + Orb::NewSubscriptionGroupedAllocationPrice::OrHash, + Orb::NewSubscriptionGroupedWithProratedMinimumPrice::OrHash, + Orb::NewSubscriptionBulkWithProrationPrice::OrHash, + Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::OrHash, + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::OrHash, + Orb::NewSubscriptionCumulativeGroupedBulkPrice::OrHash, + Orb::NewSubscriptionMaxGroupTieredPackagePrice::OrHash, + Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::OrHash, + Orb::NewSubscriptionMatrixWithDisplayNamePrice::OrHash, + Orb::NewSubscriptionGroupedTieredPackagePrice::OrHash, + Orb::NewSubscriptionMatrixWithAllocationPrice::OrHash, + Orb::NewSubscriptionTieredPackageWithMinimumPrice::OrHash, + Orb::NewSubscriptionGroupedTieredPrice::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::OrHash, + Orb::NewSubscriptionMinimumCompositePrice::OrHash + ) + ), + price_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # The id of the price on the plan to replace in the subscription. + replaces_price_id:, + # The definition of a new allocation price to create and add to the subscription. + allocation_price: nil, + # [DEPRECATED] Use add_adjustments instead. The subscription's discounts for the + # replacement price. + discounts: nil, + # The external price id of the price to add to the subscription. + external_price_id: nil, + # The new quantity of the price, if the price is a fixed price. + fixed_price_quantity: nil, + # [DEPRECATED] Use add_adjustments instead. The subscription's maximum amount for + # the replacement price. + maximum_amount: nil, + # [DEPRECATED] Use add_adjustments instead. The subscription's minimum amount for + # the replacement price. + minimum_amount: nil, + # The definition of a new price to create and add to the subscription. + price: nil, + # The id of the price to add to the subscription. + price_id: nil + ) + end + + sig do + override.returns( + { + replaces_price_id: String, + allocation_price: T.nilable(Orb::NewAllocationPrice), + discounts: T.nilable(T::Array[Orb::DiscountOverride]), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + maximum_amount: T.nilable(String), + minimum_amount: T.nilable(String), + price: + T.nilable( + T.any( + Orb::NewSubscriptionUnitPrice, + Orb::NewSubscriptionPackagePrice, + Orb::NewSubscriptionMatrixPrice, + Orb::NewSubscriptionTieredPrice, + Orb::NewSubscriptionBulkPrice, + Orb::NewSubscriptionThresholdTotalAmountPrice, + Orb::NewSubscriptionTieredPackagePrice, + Orb::NewSubscriptionTieredWithMinimumPrice, + Orb::NewSubscriptionUnitWithPercentPrice, + Orb::NewSubscriptionPackageWithAllocationPrice, + Orb::NewSubscriptionTierWithProrationPrice, + Orb::NewSubscriptionUnitWithProrationPrice, + Orb::NewSubscriptionGroupedAllocationPrice, + Orb::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::NewSubscriptionBulkWithProrationPrice, + Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice, + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice, + Orb::NewSubscriptionCumulativeGroupedBulkPrice, + Orb::NewSubscriptionMaxGroupTieredPackagePrice, + Orb::NewSubscriptionGroupedWithMeteredMinimumPrice, + Orb::NewSubscriptionMatrixWithDisplayNamePrice, + Orb::NewSubscriptionGroupedTieredPackagePrice, + Orb::NewSubscriptionMatrixWithAllocationPrice, + Orb::NewSubscriptionTieredPackageWithMinimumPrice, + Orb::NewSubscriptionGroupedTieredPrice, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, + Orb::NewSubscriptionMinimumCompositePrice ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } + ), + price_id: T.nilable(String) + } + ) + end + def to_hash + end - ANNUAL = - T.let( - :annual, - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ) - SEMI_ANNUAL = - T.let( - :semi_annual, - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ) - MONTHLY = - T.let( - :monthly, - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ) - QUARTERLY = - T.let( - :quarterly, - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ) - ONE_TIME = - T.let( - :one_time, - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ) - CUSTOM = - T.let( - :custom, - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ) + # The definition of a new price to create and add to the subscription. + module Price + extend Orb::Internal::Type::Union - sig do - override.returns( - T::Array[ - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ] - ) - end - def self.values - end + Variants = + T.type_alias do + T.any( + Orb::NewSubscriptionUnitPrice, + Orb::NewSubscriptionPackagePrice, + Orb::NewSubscriptionMatrixPrice, + Orb::NewSubscriptionTieredPrice, + Orb::NewSubscriptionBulkPrice, + Orb::NewSubscriptionThresholdTotalAmountPrice, + Orb::NewSubscriptionTieredPackagePrice, + Orb::NewSubscriptionTieredWithMinimumPrice, + Orb::NewSubscriptionUnitWithPercentPrice, + Orb::NewSubscriptionPackageWithAllocationPrice, + Orb::NewSubscriptionTierWithProrationPrice, + Orb::NewSubscriptionUnitWithProrationPrice, + Orb::NewSubscriptionGroupedAllocationPrice, + Orb::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::NewSubscriptionBulkWithProrationPrice, + Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice, + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice, + Orb::NewSubscriptionCumulativeGroupedBulkPrice, + Orb::NewSubscriptionMaxGroupTieredPackagePrice, + Orb::NewSubscriptionGroupedWithMeteredMinimumPrice, + Orb::NewSubscriptionMatrixWithDisplayNamePrice, + Orb::NewSubscriptionGroupedTieredPackagePrice, + Orb::NewSubscriptionMatrixWithAllocationPrice, + Orb::NewSubscriptionTieredPackageWithMinimumPrice, + Orb::NewSubscriptionGroupedTieredPrice, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, + Orb::NewSubscriptionMinimumCompositePrice + ) end - end - class Minimum < Orb::Internal::Type::BaseModel + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Internal::AnyHash ) end @@ -2262,30 +1610,18 @@ module Orb # The cadence to bill for this price on. sig do returns( - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol ) end attr_accessor :cadence + sig { returns(T::Hash[Symbol, T.anything]) } + attr_accessor :grouped_with_min_max_thresholds_config + # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id - sig do - returns( - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::MinimumConfig - ) - end - attr_reader :minimum_config - - sig do - params( - minimum_config: - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::MinimumConfig::OrHash - ).void - end - attr_writer :minimum_config - sig { returns(Symbol) } attr_accessor :model_type @@ -2390,10 +1726,10 @@ module Orb sig do params( cadence: - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::Cadence::OrSymbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + grouped_with_min_max_thresholds_config: + T::Hash[Symbol, T.anything], item_id: String, - minimum_config: - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::MinimumConfig::OrHash, name: String, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), @@ -2423,9 +1759,9 @@ module Orb def self.new( # The cadence to bill for this price on. cadence:, + grouped_with_min_max_thresholds_config:, # The id of the item the price will be associated with. item_id:, - minimum_config:, # The name of the price. name:, # The id of the billable metric for the price. Only needed if the price is @@ -2463,7 +1799,7 @@ module Orb # A transient ID that can be used to reference this price when adding adjustments # in the same API call. reference_id: nil, - model_type: :minimum + model_type: :grouped_with_min_max_thresholds ) end @@ -2471,10 +1807,10 @@ module Orb override.returns( { cadence: - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::Cadence::OrSymbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + grouped_with_min_max_thresholds_config: + T::Hash[Symbol, T.anything], item_id: String, - minimum_config: - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::MinimumConfig, model_type: Symbol, name: String, billable_metric_id: T.nilable(String), @@ -2513,7 +1849,7 @@ module Orb T.type_alias do T.all( Symbol, - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::Cadence + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -2521,86 +1857,44 @@ module Orb ANNUAL = T.let( :annual, - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) sig do override.returns( T::Array[ - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ] ) end def self.values end end - - class MinimumConfig < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::MinimumConfig, - Orb::Internal::AnyHash - ) - end - - # The minimum amount to apply - sig { returns(String) } - attr_accessor :minimum_amount - - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :prorated - - sig do - params( - minimum_amount: String, - prorated: T.nilable(T::Boolean) - ).returns(T.attached_class) - end - def self.new( - # The minimum amount to apply - minimum_amount:, - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - prorated: nil - ) - end - - sig do - override.returns( - { minimum_amount: String, prorated: T.nilable(T::Boolean) } - ) - end - def to_hash - end - end end sig do diff --git a/sig/orb/models.rbs b/sig/orb/models.rbs index 43e03540..0df776bb 100644 --- a/sig/orb/models.rbs +++ b/sig/orb/models.rbs @@ -265,6 +265,8 @@ module Orb class NewFloatingMaxGroupTieredPackagePrice = Orb::Models::NewFloatingMaxGroupTieredPackagePrice + class NewFloatingMinimumCompositePrice = Orb::Models::NewFloatingMinimumCompositePrice + class NewFloatingPackagePrice = Orb::Models::NewFloatingPackagePrice class NewFloatingPackageWithAllocationPrice = Orb::Models::NewFloatingPackageWithAllocationPrice @@ -321,6 +323,8 @@ module Orb class NewPlanMaxGroupTieredPackagePrice = Orb::Models::NewPlanMaxGroupTieredPackagePrice + class NewPlanMinimumCompositePrice = Orb::Models::NewPlanMinimumCompositePrice + class NewPlanPackagePrice = Orb::Models::NewPlanPackagePrice class NewPlanPackageWithAllocationPrice = Orb::Models::NewPlanPackageWithAllocationPrice @@ -375,6 +379,8 @@ module Orb class NewSubscriptionMaxGroupTieredPackagePrice = Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice + class NewSubscriptionMinimumCompositePrice = Orb::Models::NewSubscriptionMinimumCompositePrice + class NewSubscriptionPackagePrice = Orb::Models::NewSubscriptionPackagePrice class NewSubscriptionPackageWithAllocationPrice = Orb::Models::NewSubscriptionPackageWithAllocationPrice diff --git a/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs b/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs index 5fee9962..fec1ba61 100644 --- a/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs +++ b/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs @@ -146,7 +146,7 @@ module Orb | Orb::NewPlanTieredPackageWithMinimumPrice | Orb::NewPlanMatrixWithAllocationPrice | Orb::NewPlanGroupedTieredPrice - | Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum + | Orb::NewPlanMinimumCompositePrice module Price extend Orb::Internal::Type::Union @@ -274,144 +274,6 @@ module Orb end end - type minimum = - { - cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::cadence, - item_id: String, - minimum_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig, - model_type: :minimum, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::unnamed_type_withobject_parent1?, - currency: String?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String? - } - - class Minimum < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::cadence - - attr_accessor item_id: String - - attr_accessor minimum_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig - - attr_accessor model_type: :minimum - - attr_accessor name: String - - attr_accessor billable_metric_id: String? - - attr_accessor billed_in_advance: bool? - - attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor conversion_rate: Float? - - attr_accessor conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::unnamed_type_withobject_parent1? - - attr_accessor currency: String? - - attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? - - attr_accessor external_price_id: String? - - attr_accessor fixed_price_quantity: Float? - - attr_accessor invoice_grouping_key: String? - - attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor metadata: ::Hash[Symbol, String?]? - - attr_accessor reference_id: String? - - def initialize: ( - cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::cadence, - item_id: String, - minimum_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig, - name: String, - ?billable_metric_id: String?, - ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::unnamed_type_withobject_parent1?, - ?currency: String?, - ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - ?external_price_id: String?, - ?fixed_price_quantity: Float?, - ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?metadata: ::Hash[Symbol, String?]?, - ?reference_id: String?, - ?model_type: :minimum - ) -> void - - def to_hash: -> { - cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::cadence, - item_id: String, - minimum_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig, - model_type: :minimum, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::unnamed_type_withobject_parent1?, - currency: String?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String? - } - - type cadence = - :annual - | :semi_annual - | :monthly - | :quarterly - | :one_time - | :custom - - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL: :annual - SEMI_ANNUAL: :semi_annual - MONTHLY: :monthly - QUARTERLY: :quarterly - ONE_TIME: :one_time - CUSTOM: :custom - - def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Minimum::cadence] - end - - type minimum_config = { minimum_amount: String, prorated: bool? } - - class MinimumConfig < Orb::Internal::Type::BaseModel - attr_accessor minimum_amount: String - - attr_accessor prorated: bool? - - def initialize: ( - minimum_amount: String, - ?prorated: bool? - ) -> void - - def to_hash: -> { minimum_amount: String, prorated: bool? } - end - end - def self?.variants: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::price] end end @@ -545,7 +407,7 @@ module Orb | Orb::NewPlanTieredPackageWithMinimumPrice | Orb::NewPlanMatrixWithAllocationPrice | Orb::NewPlanGroupedTieredPrice - | Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum + | Orb::NewPlanMinimumCompositePrice module Price extend Orb::Internal::Type::Union @@ -561,7 +423,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent2?, + conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent1?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -591,7 +453,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent2? + attr_accessor conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent1? attr_accessor currency: String? @@ -618,7 +480,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent2?, + ?conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent1?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -640,7 +502,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent2?, + conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent1?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -673,144 +535,6 @@ module Orb end end - type minimum = - { - cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::cadence, - item_id: String, - minimum_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig, - model_type: :minimum, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::unnamed_type_withobject_parent3?, - currency: String?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String? - } - - class Minimum < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::cadence - - attr_accessor item_id: String - - attr_accessor minimum_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig - - attr_accessor model_type: :minimum - - attr_accessor name: String - - attr_accessor billable_metric_id: String? - - attr_accessor billed_in_advance: bool? - - attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor conversion_rate: Float? - - attr_accessor conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::unnamed_type_withobject_parent3? - - attr_accessor currency: String? - - attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? - - attr_accessor external_price_id: String? - - attr_accessor fixed_price_quantity: Float? - - attr_accessor invoice_grouping_key: String? - - attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor metadata: ::Hash[Symbol, String?]? - - attr_accessor reference_id: String? - - def initialize: ( - cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::cadence, - item_id: String, - minimum_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig, - name: String, - ?billable_metric_id: String?, - ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::unnamed_type_withobject_parent3?, - ?currency: String?, - ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - ?external_price_id: String?, - ?fixed_price_quantity: Float?, - ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?metadata: ::Hash[Symbol, String?]?, - ?reference_id: String?, - ?model_type: :minimum - ) -> void - - def to_hash: -> { - cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::cadence, - item_id: String, - minimum_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig, - model_type: :minimum, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::unnamed_type_withobject_parent3?, - currency: String?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String? - } - - type cadence = - :annual - | :semi_annual - | :monthly - | :quarterly - | :one_time - | :custom - - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL: :annual - SEMI_ANNUAL: :semi_annual - MONTHLY: :monthly - QUARTERLY: :quarterly - ONE_TIME: :one_time - CUSTOM: :custom - - def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::Minimum::cadence] - end - - type minimum_config = { minimum_amount: String, prorated: bool? } - - class MinimumConfig < Orb::Internal::Type::BaseModel - attr_accessor minimum_amount: String - - attr_accessor prorated: bool? - - def initialize: ( - minimum_amount: String, - ?prorated: bool? - ) -> void - - def to_hash: -> { minimum_amount: String, prorated: bool? } - end - end - def self?.variants: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::price] end end diff --git a/sig/orb/models/beta_create_plan_version_params.rbs b/sig/orb/models/beta_create_plan_version_params.rbs index 9df734d1..a786718e 100644 --- a/sig/orb/models/beta_create_plan_version_params.rbs +++ b/sig/orb/models/beta_create_plan_version_params.rbs @@ -145,7 +145,7 @@ module Orb | Orb::NewPlanTieredPackageWithMinimumPrice | Orb::NewPlanMatrixWithAllocationPrice | Orb::NewPlanGroupedTieredPrice - | Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum + | Orb::NewPlanMinimumCompositePrice module Price extend Orb::Internal::Type::Union @@ -161,7 +161,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent4?, + conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent2?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -191,7 +191,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent4? + attr_accessor conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent2? attr_accessor currency: String? @@ -218,7 +218,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent4?, + ?conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent2?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -240,7 +240,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent4?, + conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent2?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -273,141 +273,6 @@ module Orb end end - type minimum = - { - cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::cadence, - item_id: String, - minimum_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig, - model_type: :minimum, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::unnamed_type_withobject_parent5?, - currency: String?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String? - } - - class Minimum < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::cadence - - attr_accessor item_id: String - - attr_accessor minimum_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig - - attr_accessor model_type: :minimum - - attr_accessor name: String - - attr_accessor billable_metric_id: String? - - attr_accessor billed_in_advance: bool? - - attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor conversion_rate: Float? - - attr_accessor conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::unnamed_type_withobject_parent5? - - attr_accessor currency: String? - - attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? - - attr_accessor external_price_id: String? - - attr_accessor fixed_price_quantity: Float? - - attr_accessor invoice_grouping_key: String? - - attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor metadata: ::Hash[Symbol, String?]? - - attr_accessor reference_id: String? - - def initialize: ( - cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::cadence, - item_id: String, - minimum_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig, - name: String, - ?billable_metric_id: String?, - ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::unnamed_type_withobject_parent5?, - ?currency: String?, - ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - ?external_price_id: String?, - ?fixed_price_quantity: Float?, - ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?metadata: ::Hash[Symbol, String?]?, - ?reference_id: String?, - ?model_type: :minimum - ) -> void - - def to_hash: -> { - cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::cadence, - item_id: String, - minimum_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::MinimumConfig, - model_type: :minimum, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::unnamed_type_withobject_parent5?, - currency: String?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String? - } - - type cadence = - :annual - | :semi_annual - | :monthly - | :quarterly - | :one_time - | :custom - - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL: :annual - SEMI_ANNUAL: :semi_annual - MONTHLY: :monthly - QUARTERLY: :quarterly - ONE_TIME: :one_time - CUSTOM: :custom - - def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::Minimum::cadence] - end - - type minimum_config = { minimum_amount: String, prorated: bool? } - - class MinimumConfig < Orb::Internal::Type::BaseModel - attr_accessor minimum_amount: String - - attr_accessor prorated: bool? - - def initialize: (minimum_amount: String, ?prorated: bool?) -> void - - def to_hash: -> { minimum_amount: String, prorated: bool? } - end - end - def self?.variants: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddPrice::price] end end @@ -538,7 +403,7 @@ module Orb | Orb::NewPlanTieredPackageWithMinimumPrice | Orb::NewPlanMatrixWithAllocationPrice | Orb::NewPlanGroupedTieredPrice - | Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum + | Orb::NewPlanMinimumCompositePrice module Price extend Orb::Internal::Type::Union @@ -554,7 +419,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent6?, + conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent3?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -584,7 +449,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent6? + attr_accessor conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent3? attr_accessor currency: String? @@ -611,7 +476,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent6?, + ?conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent3?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -633,7 +498,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent6?, + conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent3?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -666,141 +531,6 @@ module Orb end end - type minimum = - { - cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::cadence, - item_id: String, - minimum_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig, - model_type: :minimum, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::unnamed_type_withobject_parent7?, - currency: String?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String? - } - - class Minimum < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::cadence - - attr_accessor item_id: String - - attr_accessor minimum_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig - - attr_accessor model_type: :minimum - - attr_accessor name: String - - attr_accessor billable_metric_id: String? - - attr_accessor billed_in_advance: bool? - - attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor conversion_rate: Float? - - attr_accessor conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::unnamed_type_withobject_parent7? - - attr_accessor currency: String? - - attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? - - attr_accessor external_price_id: String? - - attr_accessor fixed_price_quantity: Float? - - attr_accessor invoice_grouping_key: String? - - attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor metadata: ::Hash[Symbol, String?]? - - attr_accessor reference_id: String? - - def initialize: ( - cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::cadence, - item_id: String, - minimum_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig, - name: String, - ?billable_metric_id: String?, - ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::unnamed_type_withobject_parent7?, - ?currency: String?, - ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - ?external_price_id: String?, - ?fixed_price_quantity: Float?, - ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?metadata: ::Hash[Symbol, String?]?, - ?reference_id: String?, - ?model_type: :minimum - ) -> void - - def to_hash: -> { - cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::cadence, - item_id: String, - minimum_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::MinimumConfig, - model_type: :minimum, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::unnamed_type_withobject_parent7?, - currency: String?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String? - } - - type cadence = - :annual - | :semi_annual - | :monthly - | :quarterly - | :one_time - | :custom - - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL: :annual - SEMI_ANNUAL: :semi_annual - MONTHLY: :monthly - QUARTERLY: :quarterly - ONE_TIME: :one_time - CUSTOM: :custom - - def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::Minimum::cadence] - end - - type minimum_config = { minimum_amount: String, prorated: bool? } - - class MinimumConfig < Orb::Internal::Type::BaseModel - attr_accessor minimum_amount: String - - attr_accessor prorated: bool? - - def initialize: (minimum_amount: String, ?prorated: bool?) -> void - - def to_hash: -> { minimum_amount: String, prorated: bool? } - end - end - def self?.variants: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::price] end end diff --git a/sig/orb/models/new_floating_bulk_price.rbs b/sig/orb/models/new_floating_bulk_price.rbs index ba12c932..64c10929 100644 --- a/sig/orb/models/new_floating_bulk_price.rbs +++ b/sig/orb/models/new_floating_bulk_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingBulkPrice::unnamed_type_withobject_parent8?, + conversion_rate_config: Orb::Models::NewFloatingBulkPrice::unnamed_type_withobject_parent4?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingBulkPrice::unnamed_type_withobject_parent8? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingBulkPrice::unnamed_type_withobject_parent4? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingBulkPrice::unnamed_type_withobject_parent8?, + ?conversion_rate_config: Orb::Models::NewFloatingBulkPrice::unnamed_type_withobject_parent4?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingBulkPrice::unnamed_type_withobject_parent8?, + conversion_rate_config: Orb::Models::NewFloatingBulkPrice::unnamed_type_withobject_parent4?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_bulk_with_proration_price.rbs b/sig/orb/models/new_floating_bulk_with_proration_price.rbs index bd52436f..b9ae7adc 100644 --- a/sig/orb/models/new_floating_bulk_with_proration_price.rbs +++ b/sig/orb/models/new_floating_bulk_with_proration_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingBulkWithProrationPrice::unnamed_type_withobject_parent9?, + conversion_rate_config: Orb::Models::NewFloatingBulkWithProrationPrice::unnamed_type_withobject_parent5?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingBulkWithProrationPrice::unnamed_type_withobject_parent9? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingBulkWithProrationPrice::unnamed_type_withobject_parent5? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingBulkWithProrationPrice::unnamed_type_withobject_parent9?, + ?conversion_rate_config: Orb::Models::NewFloatingBulkWithProrationPrice::unnamed_type_withobject_parent5?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingBulkWithProrationPrice::unnamed_type_withobject_parent9?, + conversion_rate_config: Orb::Models::NewFloatingBulkWithProrationPrice::unnamed_type_withobject_parent5?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_cumulative_grouped_bulk_price.rbs b/sig/orb/models/new_floating_cumulative_grouped_bulk_price.rbs index 4163e526..f3514fa1 100644 --- a/sig/orb/models/new_floating_cumulative_grouped_bulk_price.rbs +++ b/sig/orb/models/new_floating_cumulative_grouped_bulk_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::unnamed_type_withobject_parent10?, + conversion_rate_config: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::unnamed_type_withobject_parent6?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::unnamed_type_withobject_parent10? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::unnamed_type_withobject_parent6? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::unnamed_type_withobject_parent10?, + ?conversion_rate_config: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::unnamed_type_withobject_parent6?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::unnamed_type_withobject_parent10?, + conversion_rate_config: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::unnamed_type_withobject_parent6?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_grouped_allocation_price.rbs b/sig/orb/models/new_floating_grouped_allocation_price.rbs index 316a15c9..64ec8e10 100644 --- a/sig/orb/models/new_floating_grouped_allocation_price.rbs +++ b/sig/orb/models/new_floating_grouped_allocation_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedAllocationPrice::unnamed_type_withobject_parent11?, + conversion_rate_config: Orb::Models::NewFloatingGroupedAllocationPrice::unnamed_type_withobject_parent7?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedAllocationPrice::unnamed_type_withobject_parent11? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedAllocationPrice::unnamed_type_withobject_parent7? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingGroupedAllocationPrice::unnamed_type_withobject_parent11?, + ?conversion_rate_config: Orb::Models::NewFloatingGroupedAllocationPrice::unnamed_type_withobject_parent7?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedAllocationPrice::unnamed_type_withobject_parent11?, + conversion_rate_config: Orb::Models::NewFloatingGroupedAllocationPrice::unnamed_type_withobject_parent7?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_grouped_tiered_package_price.rbs b/sig/orb/models/new_floating_grouped_tiered_package_price.rbs index d193cafb..1cfb6d64 100644 --- a/sig/orb/models/new_floating_grouped_tiered_package_price.rbs +++ b/sig/orb/models/new_floating_grouped_tiered_package_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPackagePrice::unnamed_type_withobject_parent12?, + conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPackagePrice::unnamed_type_withobject_parent8?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPackagePrice::unnamed_type_withobject_parent12? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPackagePrice::unnamed_type_withobject_parent8? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPackagePrice::unnamed_type_withobject_parent12?, + ?conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPackagePrice::unnamed_type_withobject_parent8?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPackagePrice::unnamed_type_withobject_parent12?, + conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPackagePrice::unnamed_type_withobject_parent8?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_grouped_tiered_price.rbs b/sig/orb/models/new_floating_grouped_tiered_price.rbs index 8f3e6f49..9e0cd478 100644 --- a/sig/orb/models/new_floating_grouped_tiered_price.rbs +++ b/sig/orb/models/new_floating_grouped_tiered_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPrice::unnamed_type_withobject_parent13?, + conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPrice::unnamed_type_withobject_parent9?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPrice::unnamed_type_withobject_parent13? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPrice::unnamed_type_withobject_parent9? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPrice::unnamed_type_withobject_parent13?, + ?conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPrice::unnamed_type_withobject_parent9?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPrice::unnamed_type_withobject_parent13?, + conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPrice::unnamed_type_withobject_parent9?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_grouped_with_metered_minimum_price.rbs b/sig/orb/models/new_floating_grouped_with_metered_minimum_price.rbs index 06229f62..8c1fd79b 100644 --- a/sig/orb/models/new_floating_grouped_with_metered_minimum_price.rbs +++ b/sig/orb/models/new_floating_grouped_with_metered_minimum_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent14?, + conversion_rate_config: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent10?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent14? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent10? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent14?, + ?conversion_rate_config: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent10?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent14?, + conversion_rate_config: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent10?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_grouped_with_prorated_minimum_price.rbs b/sig/orb/models/new_floating_grouped_with_prorated_minimum_price.rbs index 991262fd..7339de59 100644 --- a/sig/orb/models/new_floating_grouped_with_prorated_minimum_price.rbs +++ b/sig/orb/models/new_floating_grouped_with_prorated_minimum_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent15?, + conversion_rate_config: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent11?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent15? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent11? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent15?, + ?conversion_rate_config: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent11?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent15?, + conversion_rate_config: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent11?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_matrix_price.rbs b/sig/orb/models/new_floating_matrix_price.rbs index 86b8f4aa..4fb3736a 100644 --- a/sig/orb/models/new_floating_matrix_price.rbs +++ b/sig/orb/models/new_floating_matrix_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingMatrixPrice::unnamed_type_withobject_parent16?, + conversion_rate_config: Orb::Models::NewFloatingMatrixPrice::unnamed_type_withobject_parent12?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingMatrixPrice::unnamed_type_withobject_parent16? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingMatrixPrice::unnamed_type_withobject_parent12? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingMatrixPrice::unnamed_type_withobject_parent16?, + ?conversion_rate_config: Orb::Models::NewFloatingMatrixPrice::unnamed_type_withobject_parent12?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingMatrixPrice::unnamed_type_withobject_parent16?, + conversion_rate_config: Orb::Models::NewFloatingMatrixPrice::unnamed_type_withobject_parent12?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_matrix_with_allocation_price.rbs b/sig/orb/models/new_floating_matrix_with_allocation_price.rbs index e407c737..9ed63a1a 100644 --- a/sig/orb/models/new_floating_matrix_with_allocation_price.rbs +++ b/sig/orb/models/new_floating_matrix_with_allocation_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingMatrixWithAllocationPrice::unnamed_type_withobject_parent17?, + conversion_rate_config: Orb::Models::NewFloatingMatrixWithAllocationPrice::unnamed_type_withobject_parent13?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingMatrixWithAllocationPrice::unnamed_type_withobject_parent17? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingMatrixWithAllocationPrice::unnamed_type_withobject_parent13? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingMatrixWithAllocationPrice::unnamed_type_withobject_parent17?, + ?conversion_rate_config: Orb::Models::NewFloatingMatrixWithAllocationPrice::unnamed_type_withobject_parent13?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingMatrixWithAllocationPrice::unnamed_type_withobject_parent17?, + conversion_rate_config: Orb::Models::NewFloatingMatrixWithAllocationPrice::unnamed_type_withobject_parent13?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_matrix_with_display_name_price.rbs b/sig/orb/models/new_floating_matrix_with_display_name_price.rbs index a8747732..bdfb7ef1 100644 --- a/sig/orb/models/new_floating_matrix_with_display_name_price.rbs +++ b/sig/orb/models/new_floating_matrix_with_display_name_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::unnamed_type_withobject_parent18?, + conversion_rate_config: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::unnamed_type_withobject_parent14?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::unnamed_type_withobject_parent18? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::unnamed_type_withobject_parent14? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::unnamed_type_withobject_parent18?, + ?conversion_rate_config: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::unnamed_type_withobject_parent14?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::unnamed_type_withobject_parent18?, + conversion_rate_config: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::unnamed_type_withobject_parent14?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_max_group_tiered_package_price.rbs b/sig/orb/models/new_floating_max_group_tiered_package_price.rbs index 409bbaff..acc9da43 100644 --- a/sig/orb/models/new_floating_max_group_tiered_package_price.rbs +++ b/sig/orb/models/new_floating_max_group_tiered_package_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::unnamed_type_withobject_parent19?, + conversion_rate_config: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::unnamed_type_withobject_parent15?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::unnamed_type_withobject_parent19? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::unnamed_type_withobject_parent15? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::unnamed_type_withobject_parent19?, + ?conversion_rate_config: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::unnamed_type_withobject_parent15?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::unnamed_type_withobject_parent19?, + conversion_rate_config: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::unnamed_type_withobject_parent15?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_minimum_composite_price.rbs b/sig/orb/models/new_floating_minimum_composite_price.rbs new file mode 100644 index 00000000..8781f10c --- /dev/null +++ b/sig/orb/models/new_floating_minimum_composite_price.rbs @@ -0,0 +1,138 @@ +module Orb + module Models + type new_floating_minimum_composite_price = + { + cadence: Orb::Models::NewFloatingMinimumCompositePrice::cadence, + currency: String, + item_id: String, + minimum_config: Orb::NewFloatingMinimumCompositePrice::MinimumConfig, + model_type: Orb::Models::NewFloatingMinimumCompositePrice::model_type, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::NewFloatingMinimumCompositePrice::unnamed_type_withobject_parent16?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]? + } + + class NewFloatingMinimumCompositePrice < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::NewFloatingMinimumCompositePrice::cadence + + attr_accessor currency: String + + attr_accessor item_id: String + + attr_accessor minimum_config: Orb::NewFloatingMinimumCompositePrice::MinimumConfig + + attr_accessor model_type: Orb::Models::NewFloatingMinimumCompositePrice::model_type + + attr_accessor name: String + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::NewFloatingMinimumCompositePrice::unnamed_type_withobject_parent16? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + def initialize: ( + cadence: Orb::Models::NewFloatingMinimumCompositePrice::cadence, + currency: String, + item_id: String, + minimum_config: Orb::NewFloatingMinimumCompositePrice::MinimumConfig, + model_type: Orb::Models::NewFloatingMinimumCompositePrice::model_type, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::NewFloatingMinimumCompositePrice::unnamed_type_withobject_parent16?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]? + ) -> void + + def to_hash: -> { + cadence: Orb::Models::NewFloatingMinimumCompositePrice::cadence, + currency: String, + item_id: String, + minimum_config: Orb::NewFloatingMinimumCompositePrice::MinimumConfig, + model_type: Orb::Models::NewFloatingMinimumCompositePrice::model_type, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::NewFloatingMinimumCompositePrice::unnamed_type_withobject_parent16?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]? + } + + type cadence = + :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::NewFloatingMinimumCompositePrice::cadence] + end + + type minimum_config = { minimum_amount: String, prorated: bool? } + + class MinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor minimum_amount: String + + attr_accessor prorated: bool? + + def initialize: (minimum_amount: String, ?prorated: bool?) -> void + + def to_hash: -> { minimum_amount: String, prorated: bool? } + end + + type model_type = :minimum + + module ModelType + extend Orb::Internal::Type::Enum + + MINIMUM: :minimum + + def self?.values: -> ::Array[Orb::Models::NewFloatingMinimumCompositePrice::model_type] + end + end + end +end diff --git a/sig/orb/models/new_floating_package_price.rbs b/sig/orb/models/new_floating_package_price.rbs index 6478909c..e2159977 100644 --- a/sig/orb/models/new_floating_package_price.rbs +++ b/sig/orb/models/new_floating_package_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingPackagePrice::unnamed_type_withobject_parent20?, + conversion_rate_config: Orb::Models::NewFloatingPackagePrice::unnamed_type_withobject_parent17?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingPackagePrice::unnamed_type_withobject_parent20? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingPackagePrice::unnamed_type_withobject_parent17? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingPackagePrice::unnamed_type_withobject_parent20?, + ?conversion_rate_config: Orb::Models::NewFloatingPackagePrice::unnamed_type_withobject_parent17?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingPackagePrice::unnamed_type_withobject_parent20?, + conversion_rate_config: Orb::Models::NewFloatingPackagePrice::unnamed_type_withobject_parent17?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_package_with_allocation_price.rbs b/sig/orb/models/new_floating_package_with_allocation_price.rbs index 5ddcd518..b3191412 100644 --- a/sig/orb/models/new_floating_package_with_allocation_price.rbs +++ b/sig/orb/models/new_floating_package_with_allocation_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingPackageWithAllocationPrice::unnamed_type_withobject_parent21?, + conversion_rate_config: Orb::Models::NewFloatingPackageWithAllocationPrice::unnamed_type_withobject_parent18?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingPackageWithAllocationPrice::unnamed_type_withobject_parent21? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingPackageWithAllocationPrice::unnamed_type_withobject_parent18? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingPackageWithAllocationPrice::unnamed_type_withobject_parent21?, + ?conversion_rate_config: Orb::Models::NewFloatingPackageWithAllocationPrice::unnamed_type_withobject_parent18?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingPackageWithAllocationPrice::unnamed_type_withobject_parent21?, + conversion_rate_config: Orb::Models::NewFloatingPackageWithAllocationPrice::unnamed_type_withobject_parent18?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbs b/sig/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbs index 08804133..084ab4bf 100644 --- a/sig/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbs +++ b/sig/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent22?, + conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent19?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent22? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent19? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent22?, + ?conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent19?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent22?, + conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent19?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbs b/sig/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbs index 4f56cc85..36ccd36c 100644 --- a/sig/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbs +++ b/sig/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent23?, + conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent20?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent23? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent20? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent23?, + ?conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent20?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent23?, + conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent20?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_threshold_total_amount_price.rbs b/sig/orb/models/new_floating_threshold_total_amount_price.rbs index 9cd23756..eb625008 100644 --- a/sig/orb/models/new_floating_threshold_total_amount_price.rbs +++ b/sig/orb/models/new_floating_threshold_total_amount_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingThresholdTotalAmountPrice::unnamed_type_withobject_parent24?, + conversion_rate_config: Orb::Models::NewFloatingThresholdTotalAmountPrice::unnamed_type_withobject_parent21?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingThresholdTotalAmountPrice::unnamed_type_withobject_parent24? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingThresholdTotalAmountPrice::unnamed_type_withobject_parent21? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingThresholdTotalAmountPrice::unnamed_type_withobject_parent24?, + ?conversion_rate_config: Orb::Models::NewFloatingThresholdTotalAmountPrice::unnamed_type_withobject_parent21?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingThresholdTotalAmountPrice::unnamed_type_withobject_parent24?, + conversion_rate_config: Orb::Models::NewFloatingThresholdTotalAmountPrice::unnamed_type_withobject_parent21?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_tiered_package_price.rbs b/sig/orb/models/new_floating_tiered_package_price.rbs index 06d94efc..de52d63e 100644 --- a/sig/orb/models/new_floating_tiered_package_price.rbs +++ b/sig/orb/models/new_floating_tiered_package_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredPackagePrice::unnamed_type_withobject_parent25?, + conversion_rate_config: Orb::Models::NewFloatingTieredPackagePrice::unnamed_type_withobject_parent22?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredPackagePrice::unnamed_type_withobject_parent25? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredPackagePrice::unnamed_type_withobject_parent22? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingTieredPackagePrice::unnamed_type_withobject_parent25?, + ?conversion_rate_config: Orb::Models::NewFloatingTieredPackagePrice::unnamed_type_withobject_parent22?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredPackagePrice::unnamed_type_withobject_parent25?, + conversion_rate_config: Orb::Models::NewFloatingTieredPackagePrice::unnamed_type_withobject_parent22?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_tiered_package_with_minimum_price.rbs b/sig/orb/models/new_floating_tiered_package_with_minimum_price.rbs index b48e2fe5..561c57e1 100644 --- a/sig/orb/models/new_floating_tiered_package_with_minimum_price.rbs +++ b/sig/orb/models/new_floating_tiered_package_with_minimum_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::unnamed_type_withobject_parent26?, + conversion_rate_config: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::unnamed_type_withobject_parent23?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::unnamed_type_withobject_parent26? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::unnamed_type_withobject_parent23? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::unnamed_type_withobject_parent26?, + ?conversion_rate_config: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::unnamed_type_withobject_parent23?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::unnamed_type_withobject_parent26?, + conversion_rate_config: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::unnamed_type_withobject_parent23?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_tiered_price.rbs b/sig/orb/models/new_floating_tiered_price.rbs index 2a511598..dd01e148 100644 --- a/sig/orb/models/new_floating_tiered_price.rbs +++ b/sig/orb/models/new_floating_tiered_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredPrice::unnamed_type_withobject_parent27?, + conversion_rate_config: Orb::Models::NewFloatingTieredPrice::unnamed_type_withobject_parent24?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredPrice::unnamed_type_withobject_parent27? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredPrice::unnamed_type_withobject_parent24? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingTieredPrice::unnamed_type_withobject_parent27?, + ?conversion_rate_config: Orb::Models::NewFloatingTieredPrice::unnamed_type_withobject_parent24?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredPrice::unnamed_type_withobject_parent27?, + conversion_rate_config: Orb::Models::NewFloatingTieredPrice::unnamed_type_withobject_parent24?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_tiered_with_minimum_price.rbs b/sig/orb/models/new_floating_tiered_with_minimum_price.rbs index 8cea599e..b3f604dc 100644 --- a/sig/orb/models/new_floating_tiered_with_minimum_price.rbs +++ b/sig/orb/models/new_floating_tiered_with_minimum_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredWithMinimumPrice::unnamed_type_withobject_parent28?, + conversion_rate_config: Orb::Models::NewFloatingTieredWithMinimumPrice::unnamed_type_withobject_parent25?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredWithMinimumPrice::unnamed_type_withobject_parent28? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredWithMinimumPrice::unnamed_type_withobject_parent25? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingTieredWithMinimumPrice::unnamed_type_withobject_parent28?, + ?conversion_rate_config: Orb::Models::NewFloatingTieredWithMinimumPrice::unnamed_type_withobject_parent25?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredWithMinimumPrice::unnamed_type_withobject_parent28?, + conversion_rate_config: Orb::Models::NewFloatingTieredWithMinimumPrice::unnamed_type_withobject_parent25?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_tiered_with_proration_price.rbs b/sig/orb/models/new_floating_tiered_with_proration_price.rbs index 1687af13..2bec64c3 100644 --- a/sig/orb/models/new_floating_tiered_with_proration_price.rbs +++ b/sig/orb/models/new_floating_tiered_with_proration_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredWithProrationPrice::unnamed_type_withobject_parent29?, + conversion_rate_config: Orb::Models::NewFloatingTieredWithProrationPrice::unnamed_type_withobject_parent26?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredWithProrationPrice::unnamed_type_withobject_parent29? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredWithProrationPrice::unnamed_type_withobject_parent26? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingTieredWithProrationPrice::unnamed_type_withobject_parent29?, + ?conversion_rate_config: Orb::Models::NewFloatingTieredWithProrationPrice::unnamed_type_withobject_parent26?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredWithProrationPrice::unnamed_type_withobject_parent29?, + conversion_rate_config: Orb::Models::NewFloatingTieredWithProrationPrice::unnamed_type_withobject_parent26?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_unit_price.rbs b/sig/orb/models/new_floating_unit_price.rbs index c66d5e0c..75af3e0f 100644 --- a/sig/orb/models/new_floating_unit_price.rbs +++ b/sig/orb/models/new_floating_unit_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingUnitPrice::unnamed_type_withobject_parent30?, + conversion_rate_config: Orb::Models::NewFloatingUnitPrice::unnamed_type_withobject_parent27?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingUnitPrice::unnamed_type_withobject_parent30? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingUnitPrice::unnamed_type_withobject_parent27? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingUnitPrice::unnamed_type_withobject_parent30?, + ?conversion_rate_config: Orb::Models::NewFloatingUnitPrice::unnamed_type_withobject_parent27?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingUnitPrice::unnamed_type_withobject_parent30?, + conversion_rate_config: Orb::Models::NewFloatingUnitPrice::unnamed_type_withobject_parent27?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_unit_with_percent_price.rbs b/sig/orb/models/new_floating_unit_with_percent_price.rbs index fc85c836..bf20db64 100644 --- a/sig/orb/models/new_floating_unit_with_percent_price.rbs +++ b/sig/orb/models/new_floating_unit_with_percent_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingUnitWithPercentPrice::unnamed_type_withobject_parent31?, + conversion_rate_config: Orb::Models::NewFloatingUnitWithPercentPrice::unnamed_type_withobject_parent28?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingUnitWithPercentPrice::unnamed_type_withobject_parent31? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingUnitWithPercentPrice::unnamed_type_withobject_parent28? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingUnitWithPercentPrice::unnamed_type_withobject_parent31?, + ?conversion_rate_config: Orb::Models::NewFloatingUnitWithPercentPrice::unnamed_type_withobject_parent28?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingUnitWithPercentPrice::unnamed_type_withobject_parent31?, + conversion_rate_config: Orb::Models::NewFloatingUnitWithPercentPrice::unnamed_type_withobject_parent28?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_unit_with_proration_price.rbs b/sig/orb/models/new_floating_unit_with_proration_price.rbs index 4256902c..bc7500a0 100644 --- a/sig/orb/models/new_floating_unit_with_proration_price.rbs +++ b/sig/orb/models/new_floating_unit_with_proration_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingUnitWithProrationPrice::unnamed_type_withobject_parent32?, + conversion_rate_config: Orb::Models::NewFloatingUnitWithProrationPrice::unnamed_type_withobject_parent29?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingUnitWithProrationPrice::unnamed_type_withobject_parent32? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingUnitWithProrationPrice::unnamed_type_withobject_parent29? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingUnitWithProrationPrice::unnamed_type_withobject_parent32?, + ?conversion_rate_config: Orb::Models::NewFloatingUnitWithProrationPrice::unnamed_type_withobject_parent29?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingUnitWithProrationPrice::unnamed_type_withobject_parent32?, + conversion_rate_config: Orb::Models::NewFloatingUnitWithProrationPrice::unnamed_type_withobject_parent29?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_plan_bulk_price.rbs b/sig/orb/models/new_plan_bulk_price.rbs index 1ffbba19..8ff2daab 100644 --- a/sig/orb/models/new_plan_bulk_price.rbs +++ b/sig/orb/models/new_plan_bulk_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanBulkPrice::unnamed_type_withobject_parent33?, + conversion_rate_config: Orb::Models::NewPlanBulkPrice::unnamed_type_withobject_parent30?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanBulkPrice::unnamed_type_withobject_parent33? + attr_accessor conversion_rate_config: Orb::Models::NewPlanBulkPrice::unnamed_type_withobject_parent30? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanBulkPrice::unnamed_type_withobject_parent33?, + ?conversion_rate_config: Orb::Models::NewPlanBulkPrice::unnamed_type_withobject_parent30?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanBulkPrice::unnamed_type_withobject_parent33?, + conversion_rate_config: Orb::Models::NewPlanBulkPrice::unnamed_type_withobject_parent30?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_bulk_with_proration_price.rbs b/sig/orb/models/new_plan_bulk_with_proration_price.rbs index 182b7ab8..a23a89d5 100644 --- a/sig/orb/models/new_plan_bulk_with_proration_price.rbs +++ b/sig/orb/models/new_plan_bulk_with_proration_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanBulkWithProrationPrice::unnamed_type_withobject_parent34?, + conversion_rate_config: Orb::Models::NewPlanBulkWithProrationPrice::unnamed_type_withobject_parent31?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanBulkWithProrationPrice::unnamed_type_withobject_parent34? + attr_accessor conversion_rate_config: Orb::Models::NewPlanBulkWithProrationPrice::unnamed_type_withobject_parent31? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanBulkWithProrationPrice::unnamed_type_withobject_parent34?, + ?conversion_rate_config: Orb::Models::NewPlanBulkWithProrationPrice::unnamed_type_withobject_parent31?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanBulkWithProrationPrice::unnamed_type_withobject_parent34?, + conversion_rate_config: Orb::Models::NewPlanBulkWithProrationPrice::unnamed_type_withobject_parent31?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_cumulative_grouped_bulk_price.rbs b/sig/orb/models/new_plan_cumulative_grouped_bulk_price.rbs index 3befc30a..3426a3b4 100644 --- a/sig/orb/models/new_plan_cumulative_grouped_bulk_price.rbs +++ b/sig/orb/models/new_plan_cumulative_grouped_bulk_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanCumulativeGroupedBulkPrice::unnamed_type_withobject_parent35?, + conversion_rate_config: Orb::Models::NewPlanCumulativeGroupedBulkPrice::unnamed_type_withobject_parent32?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanCumulativeGroupedBulkPrice::unnamed_type_withobject_parent35? + attr_accessor conversion_rate_config: Orb::Models::NewPlanCumulativeGroupedBulkPrice::unnamed_type_withobject_parent32? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanCumulativeGroupedBulkPrice::unnamed_type_withobject_parent35?, + ?conversion_rate_config: Orb::Models::NewPlanCumulativeGroupedBulkPrice::unnamed_type_withobject_parent32?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanCumulativeGroupedBulkPrice::unnamed_type_withobject_parent35?, + conversion_rate_config: Orb::Models::NewPlanCumulativeGroupedBulkPrice::unnamed_type_withobject_parent32?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_grouped_allocation_price.rbs b/sig/orb/models/new_plan_grouped_allocation_price.rbs index 414735be..1f6a2190 100644 --- a/sig/orb/models/new_plan_grouped_allocation_price.rbs +++ b/sig/orb/models/new_plan_grouped_allocation_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedAllocationPrice::unnamed_type_withobject_parent36?, + conversion_rate_config: Orb::Models::NewPlanGroupedAllocationPrice::unnamed_type_withobject_parent33?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedAllocationPrice::unnamed_type_withobject_parent36? + attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedAllocationPrice::unnamed_type_withobject_parent33? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanGroupedAllocationPrice::unnamed_type_withobject_parent36?, + ?conversion_rate_config: Orb::Models::NewPlanGroupedAllocationPrice::unnamed_type_withobject_parent33?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedAllocationPrice::unnamed_type_withobject_parent36?, + conversion_rate_config: Orb::Models::NewPlanGroupedAllocationPrice::unnamed_type_withobject_parent33?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_grouped_tiered_package_price.rbs b/sig/orb/models/new_plan_grouped_tiered_package_price.rbs index 7404ad60..fd4dcd46 100644 --- a/sig/orb/models/new_plan_grouped_tiered_package_price.rbs +++ b/sig/orb/models/new_plan_grouped_tiered_package_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedTieredPackagePrice::unnamed_type_withobject_parent37?, + conversion_rate_config: Orb::Models::NewPlanGroupedTieredPackagePrice::unnamed_type_withobject_parent34?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedTieredPackagePrice::unnamed_type_withobject_parent37? + attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedTieredPackagePrice::unnamed_type_withobject_parent34? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanGroupedTieredPackagePrice::unnamed_type_withobject_parent37?, + ?conversion_rate_config: Orb::Models::NewPlanGroupedTieredPackagePrice::unnamed_type_withobject_parent34?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedTieredPackagePrice::unnamed_type_withobject_parent37?, + conversion_rate_config: Orb::Models::NewPlanGroupedTieredPackagePrice::unnamed_type_withobject_parent34?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_grouped_tiered_price.rbs b/sig/orb/models/new_plan_grouped_tiered_price.rbs index 2a8f6e2b..c4b3e7de 100644 --- a/sig/orb/models/new_plan_grouped_tiered_price.rbs +++ b/sig/orb/models/new_plan_grouped_tiered_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedTieredPrice::unnamed_type_withobject_parent38?, + conversion_rate_config: Orb::Models::NewPlanGroupedTieredPrice::unnamed_type_withobject_parent35?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedTieredPrice::unnamed_type_withobject_parent38? + attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedTieredPrice::unnamed_type_withobject_parent35? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanGroupedTieredPrice::unnamed_type_withobject_parent38?, + ?conversion_rate_config: Orb::Models::NewPlanGroupedTieredPrice::unnamed_type_withobject_parent35?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedTieredPrice::unnamed_type_withobject_parent38?, + conversion_rate_config: Orb::Models::NewPlanGroupedTieredPrice::unnamed_type_withobject_parent35?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_grouped_with_metered_minimum_price.rbs b/sig/orb/models/new_plan_grouped_with_metered_minimum_price.rbs index 943c4b55..269f91e5 100644 --- a/sig/orb/models/new_plan_grouped_with_metered_minimum_price.rbs +++ b/sig/orb/models/new_plan_grouped_with_metered_minimum_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent39?, + conversion_rate_config: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent36?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent39? + attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent36? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent39?, + ?conversion_rate_config: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent36?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent39?, + conversion_rate_config: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent36?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_grouped_with_prorated_minimum_price.rbs b/sig/orb/models/new_plan_grouped_with_prorated_minimum_price.rbs index 46eb3b27..d440626f 100644 --- a/sig/orb/models/new_plan_grouped_with_prorated_minimum_price.rbs +++ b/sig/orb/models/new_plan_grouped_with_prorated_minimum_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent40?, + conversion_rate_config: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent37?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent40? + attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent37? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent40?, + ?conversion_rate_config: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent37?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent40?, + conversion_rate_config: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent37?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_matrix_price.rbs b/sig/orb/models/new_plan_matrix_price.rbs index 1a3107ff..303afd09 100644 --- a/sig/orb/models/new_plan_matrix_price.rbs +++ b/sig/orb/models/new_plan_matrix_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanMatrixPrice::unnamed_type_withobject_parent41?, + conversion_rate_config: Orb::Models::NewPlanMatrixPrice::unnamed_type_withobject_parent38?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanMatrixPrice::unnamed_type_withobject_parent41? + attr_accessor conversion_rate_config: Orb::Models::NewPlanMatrixPrice::unnamed_type_withobject_parent38? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanMatrixPrice::unnamed_type_withobject_parent41?, + ?conversion_rate_config: Orb::Models::NewPlanMatrixPrice::unnamed_type_withobject_parent38?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanMatrixPrice::unnamed_type_withobject_parent41?, + conversion_rate_config: Orb::Models::NewPlanMatrixPrice::unnamed_type_withobject_parent38?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_matrix_with_allocation_price.rbs b/sig/orb/models/new_plan_matrix_with_allocation_price.rbs index 3b303a6f..9b78e1f4 100644 --- a/sig/orb/models/new_plan_matrix_with_allocation_price.rbs +++ b/sig/orb/models/new_plan_matrix_with_allocation_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanMatrixWithAllocationPrice::unnamed_type_withobject_parent42?, + conversion_rate_config: Orb::Models::NewPlanMatrixWithAllocationPrice::unnamed_type_withobject_parent39?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanMatrixWithAllocationPrice::unnamed_type_withobject_parent42? + attr_accessor conversion_rate_config: Orb::Models::NewPlanMatrixWithAllocationPrice::unnamed_type_withobject_parent39? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanMatrixWithAllocationPrice::unnamed_type_withobject_parent42?, + ?conversion_rate_config: Orb::Models::NewPlanMatrixWithAllocationPrice::unnamed_type_withobject_parent39?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanMatrixWithAllocationPrice::unnamed_type_withobject_parent42?, + conversion_rate_config: Orb::Models::NewPlanMatrixWithAllocationPrice::unnamed_type_withobject_parent39?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_matrix_with_display_name_price.rbs b/sig/orb/models/new_plan_matrix_with_display_name_price.rbs index 8066bb84..0c19e6b8 100644 --- a/sig/orb/models/new_plan_matrix_with_display_name_price.rbs +++ b/sig/orb/models/new_plan_matrix_with_display_name_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanMatrixWithDisplayNamePrice::unnamed_type_withobject_parent43?, + conversion_rate_config: Orb::Models::NewPlanMatrixWithDisplayNamePrice::unnamed_type_withobject_parent40?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanMatrixWithDisplayNamePrice::unnamed_type_withobject_parent43? + attr_accessor conversion_rate_config: Orb::Models::NewPlanMatrixWithDisplayNamePrice::unnamed_type_withobject_parent40? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanMatrixWithDisplayNamePrice::unnamed_type_withobject_parent43?, + ?conversion_rate_config: Orb::Models::NewPlanMatrixWithDisplayNamePrice::unnamed_type_withobject_parent40?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanMatrixWithDisplayNamePrice::unnamed_type_withobject_parent43?, + conversion_rate_config: Orb::Models::NewPlanMatrixWithDisplayNamePrice::unnamed_type_withobject_parent40?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_max_group_tiered_package_price.rbs b/sig/orb/models/new_plan_max_group_tiered_package_price.rbs index f0fa8df1..deb6cc0e 100644 --- a/sig/orb/models/new_plan_max_group_tiered_package_price.rbs +++ b/sig/orb/models/new_plan_max_group_tiered_package_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanMaxGroupTieredPackagePrice::unnamed_type_withobject_parent44?, + conversion_rate_config: Orb::Models::NewPlanMaxGroupTieredPackagePrice::unnamed_type_withobject_parent41?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanMaxGroupTieredPackagePrice::unnamed_type_withobject_parent44? + attr_accessor conversion_rate_config: Orb::Models::NewPlanMaxGroupTieredPackagePrice::unnamed_type_withobject_parent41? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanMaxGroupTieredPackagePrice::unnamed_type_withobject_parent44?, + ?conversion_rate_config: Orb::Models::NewPlanMaxGroupTieredPackagePrice::unnamed_type_withobject_parent41?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanMaxGroupTieredPackagePrice::unnamed_type_withobject_parent44?, + conversion_rate_config: Orb::Models::NewPlanMaxGroupTieredPackagePrice::unnamed_type_withobject_parent41?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_minimum_composite_price.rbs b/sig/orb/models/new_plan_minimum_composite_price.rbs new file mode 100644 index 00000000..506d60e5 --- /dev/null +++ b/sig/orb/models/new_plan_minimum_composite_price.rbs @@ -0,0 +1,143 @@ +module Orb + module Models + type new_plan_minimum_composite_price = + { + cadence: Orb::Models::NewPlanMinimumCompositePrice::cadence, + item_id: String, + minimum_config: Orb::NewPlanMinimumCompositePrice::MinimumConfig, + model_type: Orb::Models::NewPlanMinimumCompositePrice::model_type, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::NewPlanMinimumCompositePrice::unnamed_type_withobject_parent42?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + class NewPlanMinimumCompositePrice < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::NewPlanMinimumCompositePrice::cadence + + attr_accessor item_id: String + + attr_accessor minimum_config: Orb::NewPlanMinimumCompositePrice::MinimumConfig + + attr_accessor model_type: Orb::Models::NewPlanMinimumCompositePrice::model_type + + attr_accessor name: String + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::NewPlanMinimumCompositePrice::unnamed_type_withobject_parent42? + + attr_accessor currency: String? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + attr_accessor reference_id: String? + + def initialize: ( + cadence: Orb::Models::NewPlanMinimumCompositePrice::cadence, + item_id: String, + minimum_config: Orb::NewPlanMinimumCompositePrice::MinimumConfig, + model_type: Orb::Models::NewPlanMinimumCompositePrice::model_type, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::NewPlanMinimumCompositePrice::unnamed_type_withobject_parent42?, + ?currency: String?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String? + ) -> void + + def to_hash: -> { + cadence: Orb::Models::NewPlanMinimumCompositePrice::cadence, + item_id: String, + minimum_config: Orb::NewPlanMinimumCompositePrice::MinimumConfig, + model_type: Orb::Models::NewPlanMinimumCompositePrice::model_type, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::NewPlanMinimumCompositePrice::unnamed_type_withobject_parent42?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + type cadence = + :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::NewPlanMinimumCompositePrice::cadence] + end + + type minimum_config = { minimum_amount: String, prorated: bool? } + + class MinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor minimum_amount: String + + attr_accessor prorated: bool? + + def initialize: (minimum_amount: String, ?prorated: bool?) -> void + + def to_hash: -> { minimum_amount: String, prorated: bool? } + end + + type model_type = :minimum + + module ModelType + extend Orb::Internal::Type::Enum + + MINIMUM: :minimum + + def self?.values: -> ::Array[Orb::Models::NewPlanMinimumCompositePrice::model_type] + end + end + end +end diff --git a/sig/orb/models/new_plan_package_price.rbs b/sig/orb/models/new_plan_package_price.rbs index c77aae59..c76f8e5a 100644 --- a/sig/orb/models/new_plan_package_price.rbs +++ b/sig/orb/models/new_plan_package_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanPackagePrice::unnamed_type_withobject_parent45?, + conversion_rate_config: Orb::Models::NewPlanPackagePrice::unnamed_type_withobject_parent43?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanPackagePrice::unnamed_type_withobject_parent45? + attr_accessor conversion_rate_config: Orb::Models::NewPlanPackagePrice::unnamed_type_withobject_parent43? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanPackagePrice::unnamed_type_withobject_parent45?, + ?conversion_rate_config: Orb::Models::NewPlanPackagePrice::unnamed_type_withobject_parent43?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanPackagePrice::unnamed_type_withobject_parent45?, + conversion_rate_config: Orb::Models::NewPlanPackagePrice::unnamed_type_withobject_parent43?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_package_with_allocation_price.rbs b/sig/orb/models/new_plan_package_with_allocation_price.rbs index 7e34d954..efb78f98 100644 --- a/sig/orb/models/new_plan_package_with_allocation_price.rbs +++ b/sig/orb/models/new_plan_package_with_allocation_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanPackageWithAllocationPrice::unnamed_type_withobject_parent46?, + conversion_rate_config: Orb::Models::NewPlanPackageWithAllocationPrice::unnamed_type_withobject_parent44?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanPackageWithAllocationPrice::unnamed_type_withobject_parent46? + attr_accessor conversion_rate_config: Orb::Models::NewPlanPackageWithAllocationPrice::unnamed_type_withobject_parent44? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanPackageWithAllocationPrice::unnamed_type_withobject_parent46?, + ?conversion_rate_config: Orb::Models::NewPlanPackageWithAllocationPrice::unnamed_type_withobject_parent44?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanPackageWithAllocationPrice::unnamed_type_withobject_parent46?, + conversion_rate_config: Orb::Models::NewPlanPackageWithAllocationPrice::unnamed_type_withobject_parent44?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbs b/sig/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbs index 8b6166ef..49e5c3be 100644 --- a/sig/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbs +++ b/sig/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent47?, + conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent45?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent47? + attr_accessor conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent45? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent47?, + ?conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent45?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent47?, + conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent45?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbs b/sig/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbs index c631a893..6e63fb86 100644 --- a/sig/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbs +++ b/sig/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent48?, + conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent46?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent48? + attr_accessor conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent46? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent48?, + ?conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent46?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent48?, + conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent46?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_threshold_total_amount_price.rbs b/sig/orb/models/new_plan_threshold_total_amount_price.rbs index e0d36f77..1ea0d04e 100644 --- a/sig/orb/models/new_plan_threshold_total_amount_price.rbs +++ b/sig/orb/models/new_plan_threshold_total_amount_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanThresholdTotalAmountPrice::unnamed_type_withobject_parent49?, + conversion_rate_config: Orb::Models::NewPlanThresholdTotalAmountPrice::unnamed_type_withobject_parent47?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanThresholdTotalAmountPrice::unnamed_type_withobject_parent49? + attr_accessor conversion_rate_config: Orb::Models::NewPlanThresholdTotalAmountPrice::unnamed_type_withobject_parent47? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanThresholdTotalAmountPrice::unnamed_type_withobject_parent49?, + ?conversion_rate_config: Orb::Models::NewPlanThresholdTotalAmountPrice::unnamed_type_withobject_parent47?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanThresholdTotalAmountPrice::unnamed_type_withobject_parent49?, + conversion_rate_config: Orb::Models::NewPlanThresholdTotalAmountPrice::unnamed_type_withobject_parent47?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_tier_with_proration_price.rbs b/sig/orb/models/new_plan_tier_with_proration_price.rbs index 0f5f24aa..fbab3c78 100644 --- a/sig/orb/models/new_plan_tier_with_proration_price.rbs +++ b/sig/orb/models/new_plan_tier_with_proration_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::unnamed_type_withobject_parent54?, + conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::unnamed_type_withobject_parent52?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::unnamed_type_withobject_parent54? + attr_accessor conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::unnamed_type_withobject_parent52? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::unnamed_type_withobject_parent54?, + ?conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::unnamed_type_withobject_parent52?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::unnamed_type_withobject_parent54?, + conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::unnamed_type_withobject_parent52?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_tiered_package_price.rbs b/sig/orb/models/new_plan_tiered_package_price.rbs index 143db993..dca76b1d 100644 --- a/sig/orb/models/new_plan_tiered_package_price.rbs +++ b/sig/orb/models/new_plan_tiered_package_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredPackagePrice::unnamed_type_withobject_parent50?, + conversion_rate_config: Orb::Models::NewPlanTieredPackagePrice::unnamed_type_withobject_parent48?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredPackagePrice::unnamed_type_withobject_parent50? + attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredPackagePrice::unnamed_type_withobject_parent48? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanTieredPackagePrice::unnamed_type_withobject_parent50?, + ?conversion_rate_config: Orb::Models::NewPlanTieredPackagePrice::unnamed_type_withobject_parent48?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredPackagePrice::unnamed_type_withobject_parent50?, + conversion_rate_config: Orb::Models::NewPlanTieredPackagePrice::unnamed_type_withobject_parent48?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_tiered_package_with_minimum_price.rbs b/sig/orb/models/new_plan_tiered_package_with_minimum_price.rbs index 42b8cbe3..55ea25d1 100644 --- a/sig/orb/models/new_plan_tiered_package_with_minimum_price.rbs +++ b/sig/orb/models/new_plan_tiered_package_with_minimum_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredPackageWithMinimumPrice::unnamed_type_withobject_parent51?, + conversion_rate_config: Orb::Models::NewPlanTieredPackageWithMinimumPrice::unnamed_type_withobject_parent49?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredPackageWithMinimumPrice::unnamed_type_withobject_parent51? + attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredPackageWithMinimumPrice::unnamed_type_withobject_parent49? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanTieredPackageWithMinimumPrice::unnamed_type_withobject_parent51?, + ?conversion_rate_config: Orb::Models::NewPlanTieredPackageWithMinimumPrice::unnamed_type_withobject_parent49?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredPackageWithMinimumPrice::unnamed_type_withobject_parent51?, + conversion_rate_config: Orb::Models::NewPlanTieredPackageWithMinimumPrice::unnamed_type_withobject_parent49?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_tiered_price.rbs b/sig/orb/models/new_plan_tiered_price.rbs index 76ad69b1..8cb8c427 100644 --- a/sig/orb/models/new_plan_tiered_price.rbs +++ b/sig/orb/models/new_plan_tiered_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredPrice::unnamed_type_withobject_parent52?, + conversion_rate_config: Orb::Models::NewPlanTieredPrice::unnamed_type_withobject_parent50?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredPrice::unnamed_type_withobject_parent52? + attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredPrice::unnamed_type_withobject_parent50? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanTieredPrice::unnamed_type_withobject_parent52?, + ?conversion_rate_config: Orb::Models::NewPlanTieredPrice::unnamed_type_withobject_parent50?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredPrice::unnamed_type_withobject_parent52?, + conversion_rate_config: Orb::Models::NewPlanTieredPrice::unnamed_type_withobject_parent50?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_tiered_with_minimum_price.rbs b/sig/orb/models/new_plan_tiered_with_minimum_price.rbs index 0d90afd5..e6edf203 100644 --- a/sig/orb/models/new_plan_tiered_with_minimum_price.rbs +++ b/sig/orb/models/new_plan_tiered_with_minimum_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredWithMinimumPrice::unnamed_type_withobject_parent53?, + conversion_rate_config: Orb::Models::NewPlanTieredWithMinimumPrice::unnamed_type_withobject_parent51?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredWithMinimumPrice::unnamed_type_withobject_parent53? + attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredWithMinimumPrice::unnamed_type_withobject_parent51? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanTieredWithMinimumPrice::unnamed_type_withobject_parent53?, + ?conversion_rate_config: Orb::Models::NewPlanTieredWithMinimumPrice::unnamed_type_withobject_parent51?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredWithMinimumPrice::unnamed_type_withobject_parent53?, + conversion_rate_config: Orb::Models::NewPlanTieredWithMinimumPrice::unnamed_type_withobject_parent51?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_unit_price.rbs b/sig/orb/models/new_plan_unit_price.rbs index 3c8f8162..3ac886a9 100644 --- a/sig/orb/models/new_plan_unit_price.rbs +++ b/sig/orb/models/new_plan_unit_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanUnitPrice::unnamed_type_withobject_parent55?, + conversion_rate_config: Orb::Models::NewPlanUnitPrice::unnamed_type_withobject_parent53?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanUnitPrice::unnamed_type_withobject_parent55? + attr_accessor conversion_rate_config: Orb::Models::NewPlanUnitPrice::unnamed_type_withobject_parent53? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanUnitPrice::unnamed_type_withobject_parent55?, + ?conversion_rate_config: Orb::Models::NewPlanUnitPrice::unnamed_type_withobject_parent53?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanUnitPrice::unnamed_type_withobject_parent55?, + conversion_rate_config: Orb::Models::NewPlanUnitPrice::unnamed_type_withobject_parent53?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_unit_with_percent_price.rbs b/sig/orb/models/new_plan_unit_with_percent_price.rbs index e97fddf7..bcf29fb0 100644 --- a/sig/orb/models/new_plan_unit_with_percent_price.rbs +++ b/sig/orb/models/new_plan_unit_with_percent_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanUnitWithPercentPrice::unnamed_type_withobject_parent56?, + conversion_rate_config: Orb::Models::NewPlanUnitWithPercentPrice::unnamed_type_withobject_parent54?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanUnitWithPercentPrice::unnamed_type_withobject_parent56? + attr_accessor conversion_rate_config: Orb::Models::NewPlanUnitWithPercentPrice::unnamed_type_withobject_parent54? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanUnitWithPercentPrice::unnamed_type_withobject_parent56?, + ?conversion_rate_config: Orb::Models::NewPlanUnitWithPercentPrice::unnamed_type_withobject_parent54?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanUnitWithPercentPrice::unnamed_type_withobject_parent56?, + conversion_rate_config: Orb::Models::NewPlanUnitWithPercentPrice::unnamed_type_withobject_parent54?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_unit_with_proration_price.rbs b/sig/orb/models/new_plan_unit_with_proration_price.rbs index 3afe2a7f..b43cd8a3 100644 --- a/sig/orb/models/new_plan_unit_with_proration_price.rbs +++ b/sig/orb/models/new_plan_unit_with_proration_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanUnitWithProrationPrice::unnamed_type_withobject_parent57?, + conversion_rate_config: Orb::Models::NewPlanUnitWithProrationPrice::unnamed_type_withobject_parent55?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanUnitWithProrationPrice::unnamed_type_withobject_parent57? + attr_accessor conversion_rate_config: Orb::Models::NewPlanUnitWithProrationPrice::unnamed_type_withobject_parent55? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanUnitWithProrationPrice::unnamed_type_withobject_parent57?, + ?conversion_rate_config: Orb::Models::NewPlanUnitWithProrationPrice::unnamed_type_withobject_parent55?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanUnitWithProrationPrice::unnamed_type_withobject_parent57?, + conversion_rate_config: Orb::Models::NewPlanUnitWithProrationPrice::unnamed_type_withobject_parent55?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_bulk_price.rbs b/sig/orb/models/new_subscription_bulk_price.rbs index 80f56638..39503062 100644 --- a/sig/orb/models/new_subscription_bulk_price.rbs +++ b/sig/orb/models/new_subscription_bulk_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionBulkPrice::unnamed_type_withobject_parent58?, + conversion_rate_config: Orb::Models::NewSubscriptionBulkPrice::unnamed_type_withobject_parent56?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionBulkPrice::unnamed_type_withobject_parent58? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionBulkPrice::unnamed_type_withobject_parent56? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionBulkPrice::unnamed_type_withobject_parent58?, + ?conversion_rate_config: Orb::Models::NewSubscriptionBulkPrice::unnamed_type_withobject_parent56?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionBulkPrice::unnamed_type_withobject_parent58?, + conversion_rate_config: Orb::Models::NewSubscriptionBulkPrice::unnamed_type_withobject_parent56?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_bulk_with_proration_price.rbs b/sig/orb/models/new_subscription_bulk_with_proration_price.rbs index 1f513f6a..e823427f 100644 --- a/sig/orb/models/new_subscription_bulk_with_proration_price.rbs +++ b/sig/orb/models/new_subscription_bulk_with_proration_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionBulkWithProrationPrice::unnamed_type_withobject_parent59?, + conversion_rate_config: Orb::Models::NewSubscriptionBulkWithProrationPrice::unnamed_type_withobject_parent57?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionBulkWithProrationPrice::unnamed_type_withobject_parent59? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionBulkWithProrationPrice::unnamed_type_withobject_parent57? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionBulkWithProrationPrice::unnamed_type_withobject_parent59?, + ?conversion_rate_config: Orb::Models::NewSubscriptionBulkWithProrationPrice::unnamed_type_withobject_parent57?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionBulkWithProrationPrice::unnamed_type_withobject_parent59?, + conversion_rate_config: Orb::Models::NewSubscriptionBulkWithProrationPrice::unnamed_type_withobject_parent57?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_cumulative_grouped_bulk_price.rbs b/sig/orb/models/new_subscription_cumulative_grouped_bulk_price.rbs index 016c8ae8..76cc915d 100644 --- a/sig/orb/models/new_subscription_cumulative_grouped_bulk_price.rbs +++ b/sig/orb/models/new_subscription_cumulative_grouped_bulk_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::unnamed_type_withobject_parent60?, + conversion_rate_config: Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::unnamed_type_withobject_parent58?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::unnamed_type_withobject_parent60? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::unnamed_type_withobject_parent58? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::unnamed_type_withobject_parent60?, + ?conversion_rate_config: Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::unnamed_type_withobject_parent58?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::unnamed_type_withobject_parent60?, + conversion_rate_config: Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::unnamed_type_withobject_parent58?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_grouped_allocation_price.rbs b/sig/orb/models/new_subscription_grouped_allocation_price.rbs index d39e6f58..9aed86ac 100644 --- a/sig/orb/models/new_subscription_grouped_allocation_price.rbs +++ b/sig/orb/models/new_subscription_grouped_allocation_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionGroupedAllocationPrice::unnamed_type_withobject_parent61?, + conversion_rate_config: Orb::Models::NewSubscriptionGroupedAllocationPrice::unnamed_type_withobject_parent59?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionGroupedAllocationPrice::unnamed_type_withobject_parent61? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionGroupedAllocationPrice::unnamed_type_withobject_parent59? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionGroupedAllocationPrice::unnamed_type_withobject_parent61?, + ?conversion_rate_config: Orb::Models::NewSubscriptionGroupedAllocationPrice::unnamed_type_withobject_parent59?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionGroupedAllocationPrice::unnamed_type_withobject_parent61?, + conversion_rate_config: Orb::Models::NewSubscriptionGroupedAllocationPrice::unnamed_type_withobject_parent59?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_grouped_tiered_package_price.rbs b/sig/orb/models/new_subscription_grouped_tiered_package_price.rbs index 851b3e94..2143bcc2 100644 --- a/sig/orb/models/new_subscription_grouped_tiered_package_price.rbs +++ b/sig/orb/models/new_subscription_grouped_tiered_package_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPackagePrice::unnamed_type_withobject_parent62?, + conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPackagePrice::unnamed_type_withobject_parent60?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPackagePrice::unnamed_type_withobject_parent62? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPackagePrice::unnamed_type_withobject_parent60? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPackagePrice::unnamed_type_withobject_parent62?, + ?conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPackagePrice::unnamed_type_withobject_parent60?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPackagePrice::unnamed_type_withobject_parent62?, + conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPackagePrice::unnamed_type_withobject_parent60?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_grouped_tiered_price.rbs b/sig/orb/models/new_subscription_grouped_tiered_price.rbs index 80a8c4f8..1cd043a7 100644 --- a/sig/orb/models/new_subscription_grouped_tiered_price.rbs +++ b/sig/orb/models/new_subscription_grouped_tiered_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPrice::unnamed_type_withobject_parent63?, + conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPrice::unnamed_type_withobject_parent61?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPrice::unnamed_type_withobject_parent63? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPrice::unnamed_type_withobject_parent61? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPrice::unnamed_type_withobject_parent63?, + ?conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPrice::unnamed_type_withobject_parent61?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPrice::unnamed_type_withobject_parent63?, + conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPrice::unnamed_type_withobject_parent61?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_grouped_with_metered_minimum_price.rbs b/sig/orb/models/new_subscription_grouped_with_metered_minimum_price.rbs index ffce26be..a1f36b5e 100644 --- a/sig/orb/models/new_subscription_grouped_with_metered_minimum_price.rbs +++ b/sig/orb/models/new_subscription_grouped_with_metered_minimum_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent64?, + conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent62?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent64? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent62? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent64?, + ?conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent62?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent64?, + conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent62?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbs b/sig/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbs index 87d8b15c..5d626891 100644 --- a/sig/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbs +++ b/sig/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent65?, + conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent63?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent65? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent63? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent65?, + ?conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent63?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent65?, + conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent63?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_matrix_price.rbs b/sig/orb/models/new_subscription_matrix_price.rbs index c1416ecf..00af488f 100644 --- a/sig/orb/models/new_subscription_matrix_price.rbs +++ b/sig/orb/models/new_subscription_matrix_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionMatrixPrice::unnamed_type_withobject_parent66?, + conversion_rate_config: Orb::Models::NewSubscriptionMatrixPrice::unnamed_type_withobject_parent64?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionMatrixPrice::unnamed_type_withobject_parent66? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionMatrixPrice::unnamed_type_withobject_parent64? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionMatrixPrice::unnamed_type_withobject_parent66?, + ?conversion_rate_config: Orb::Models::NewSubscriptionMatrixPrice::unnamed_type_withobject_parent64?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionMatrixPrice::unnamed_type_withobject_parent66?, + conversion_rate_config: Orb::Models::NewSubscriptionMatrixPrice::unnamed_type_withobject_parent64?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_matrix_with_allocation_price.rbs b/sig/orb/models/new_subscription_matrix_with_allocation_price.rbs index 5f7a651d..09687cca 100644 --- a/sig/orb/models/new_subscription_matrix_with_allocation_price.rbs +++ b/sig/orb/models/new_subscription_matrix_with_allocation_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithAllocationPrice::unnamed_type_withobject_parent67?, + conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithAllocationPrice::unnamed_type_withobject_parent65?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithAllocationPrice::unnamed_type_withobject_parent67? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithAllocationPrice::unnamed_type_withobject_parent65? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithAllocationPrice::unnamed_type_withobject_parent67?, + ?conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithAllocationPrice::unnamed_type_withobject_parent65?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithAllocationPrice::unnamed_type_withobject_parent67?, + conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithAllocationPrice::unnamed_type_withobject_parent65?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_matrix_with_display_name_price.rbs b/sig/orb/models/new_subscription_matrix_with_display_name_price.rbs index 7d4293dc..2a64c4b2 100644 --- a/sig/orb/models/new_subscription_matrix_with_display_name_price.rbs +++ b/sig/orb/models/new_subscription_matrix_with_display_name_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::unnamed_type_withobject_parent68?, + conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::unnamed_type_withobject_parent66?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::unnamed_type_withobject_parent68? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::unnamed_type_withobject_parent66? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::unnamed_type_withobject_parent68?, + ?conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::unnamed_type_withobject_parent66?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::unnamed_type_withobject_parent68?, + conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::unnamed_type_withobject_parent66?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_max_group_tiered_package_price.rbs b/sig/orb/models/new_subscription_max_group_tiered_package_price.rbs index 77ab0a55..1ef509e6 100644 --- a/sig/orb/models/new_subscription_max_group_tiered_package_price.rbs +++ b/sig/orb/models/new_subscription_max_group_tiered_package_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::unnamed_type_withobject_parent69?, + conversion_rate_config: Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::unnamed_type_withobject_parent67?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::unnamed_type_withobject_parent69? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::unnamed_type_withobject_parent67? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::unnamed_type_withobject_parent69?, + ?conversion_rate_config: Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::unnamed_type_withobject_parent67?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::unnamed_type_withobject_parent69?, + conversion_rate_config: Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::unnamed_type_withobject_parent67?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_minimum_composite_price.rbs b/sig/orb/models/new_subscription_minimum_composite_price.rbs new file mode 100644 index 00000000..ff0faa3c --- /dev/null +++ b/sig/orb/models/new_subscription_minimum_composite_price.rbs @@ -0,0 +1,143 @@ +module Orb + module Models + type new_subscription_minimum_composite_price = + { + cadence: Orb::Models::NewSubscriptionMinimumCompositePrice::cadence, + item_id: String, + minimum_config: Orb::NewSubscriptionMinimumCompositePrice::MinimumConfig, + model_type: Orb::Models::NewSubscriptionMinimumCompositePrice::model_type, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::NewSubscriptionMinimumCompositePrice::unnamed_type_withobject_parent68?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + class NewSubscriptionMinimumCompositePrice < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::NewSubscriptionMinimumCompositePrice::cadence + + attr_accessor item_id: String + + attr_accessor minimum_config: Orb::NewSubscriptionMinimumCompositePrice::MinimumConfig + + attr_accessor model_type: Orb::Models::NewSubscriptionMinimumCompositePrice::model_type + + attr_accessor name: String + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionMinimumCompositePrice::unnamed_type_withobject_parent68? + + attr_accessor currency: String? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + attr_accessor reference_id: String? + + def initialize: ( + cadence: Orb::Models::NewSubscriptionMinimumCompositePrice::cadence, + item_id: String, + minimum_config: Orb::NewSubscriptionMinimumCompositePrice::MinimumConfig, + model_type: Orb::Models::NewSubscriptionMinimumCompositePrice::model_type, + name: String, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::NewSubscriptionMinimumCompositePrice::unnamed_type_withobject_parent68?, + ?currency: String?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String? + ) -> void + + def to_hash: -> { + cadence: Orb::Models::NewSubscriptionMinimumCompositePrice::cadence, + item_id: String, + minimum_config: Orb::NewSubscriptionMinimumCompositePrice::MinimumConfig, + model_type: Orb::Models::NewSubscriptionMinimumCompositePrice::model_type, + name: String, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::NewSubscriptionMinimumCompositePrice::unnamed_type_withobject_parent68?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + type cadence = + :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::NewSubscriptionMinimumCompositePrice::cadence] + end + + type minimum_config = { minimum_amount: String, prorated: bool? } + + class MinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor minimum_amount: String + + attr_accessor prorated: bool? + + def initialize: (minimum_amount: String, ?prorated: bool?) -> void + + def to_hash: -> { minimum_amount: String, prorated: bool? } + end + + type model_type = :minimum + + module ModelType + extend Orb::Internal::Type::Enum + + MINIMUM: :minimum + + def self?.values: -> ::Array[Orb::Models::NewSubscriptionMinimumCompositePrice::model_type] + end + end + end +end diff --git a/sig/orb/models/new_subscription_package_price.rbs b/sig/orb/models/new_subscription_package_price.rbs index b9209b78..a36345ef 100644 --- a/sig/orb/models/new_subscription_package_price.rbs +++ b/sig/orb/models/new_subscription_package_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionPackagePrice::unnamed_type_withobject_parent70?, + conversion_rate_config: Orb::Models::NewSubscriptionPackagePrice::unnamed_type_withobject_parent69?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionPackagePrice::unnamed_type_withobject_parent70? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionPackagePrice::unnamed_type_withobject_parent69? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionPackagePrice::unnamed_type_withobject_parent70?, + ?conversion_rate_config: Orb::Models::NewSubscriptionPackagePrice::unnamed_type_withobject_parent69?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionPackagePrice::unnamed_type_withobject_parent70?, + conversion_rate_config: Orb::Models::NewSubscriptionPackagePrice::unnamed_type_withobject_parent69?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_package_with_allocation_price.rbs b/sig/orb/models/new_subscription_package_with_allocation_price.rbs index 0c688822..1f161bd5 100644 --- a/sig/orb/models/new_subscription_package_with_allocation_price.rbs +++ b/sig/orb/models/new_subscription_package_with_allocation_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionPackageWithAllocationPrice::unnamed_type_withobject_parent71?, + conversion_rate_config: Orb::Models::NewSubscriptionPackageWithAllocationPrice::unnamed_type_withobject_parent70?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionPackageWithAllocationPrice::unnamed_type_withobject_parent71? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionPackageWithAllocationPrice::unnamed_type_withobject_parent70? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionPackageWithAllocationPrice::unnamed_type_withobject_parent71?, + ?conversion_rate_config: Orb::Models::NewSubscriptionPackageWithAllocationPrice::unnamed_type_withobject_parent70?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionPackageWithAllocationPrice::unnamed_type_withobject_parent71?, + conversion_rate_config: Orb::Models::NewSubscriptionPackageWithAllocationPrice::unnamed_type_withobject_parent70?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbs b/sig/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbs index e7636e53..98a6bc74 100644 --- a/sig/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbs +++ b/sig/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent72?, + conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent71?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent72? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent71? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent72?, + ?conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent71?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent72?, + conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent71?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbs b/sig/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbs index 762723e9..687a610a 100644 --- a/sig/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbs +++ b/sig/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent73?, + conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent72?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent73? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent72? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent73?, + ?conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent72?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent73?, + conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent72?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_threshold_total_amount_price.rbs b/sig/orb/models/new_subscription_threshold_total_amount_price.rbs index 62495c74..35825be5 100644 --- a/sig/orb/models/new_subscription_threshold_total_amount_price.rbs +++ b/sig/orb/models/new_subscription_threshold_total_amount_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionThresholdTotalAmountPrice::unnamed_type_withobject_parent74?, + conversion_rate_config: Orb::Models::NewSubscriptionThresholdTotalAmountPrice::unnamed_type_withobject_parent73?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionThresholdTotalAmountPrice::unnamed_type_withobject_parent74? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionThresholdTotalAmountPrice::unnamed_type_withobject_parent73? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionThresholdTotalAmountPrice::unnamed_type_withobject_parent74?, + ?conversion_rate_config: Orb::Models::NewSubscriptionThresholdTotalAmountPrice::unnamed_type_withobject_parent73?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionThresholdTotalAmountPrice::unnamed_type_withobject_parent74?, + conversion_rate_config: Orb::Models::NewSubscriptionThresholdTotalAmountPrice::unnamed_type_withobject_parent73?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_tier_with_proration_price.rbs b/sig/orb/models/new_subscription_tier_with_proration_price.rbs index b67bf349..ad77c544 100644 --- a/sig/orb/models/new_subscription_tier_with_proration_price.rbs +++ b/sig/orb/models/new_subscription_tier_with_proration_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::unnamed_type_withobject_parent79?, + conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::unnamed_type_withobject_parent78?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::unnamed_type_withobject_parent79? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::unnamed_type_withobject_parent78? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::unnamed_type_withobject_parent79?, + ?conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::unnamed_type_withobject_parent78?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::unnamed_type_withobject_parent79?, + conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::unnamed_type_withobject_parent78?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_tiered_package_price.rbs b/sig/orb/models/new_subscription_tiered_package_price.rbs index 9bec1e65..889bc1ba 100644 --- a/sig/orb/models/new_subscription_tiered_package_price.rbs +++ b/sig/orb/models/new_subscription_tiered_package_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredPackagePrice::unnamed_type_withobject_parent75?, + conversion_rate_config: Orb::Models::NewSubscriptionTieredPackagePrice::unnamed_type_withobject_parent74?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredPackagePrice::unnamed_type_withobject_parent75? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredPackagePrice::unnamed_type_withobject_parent74? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionTieredPackagePrice::unnamed_type_withobject_parent75?, + ?conversion_rate_config: Orb::Models::NewSubscriptionTieredPackagePrice::unnamed_type_withobject_parent74?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredPackagePrice::unnamed_type_withobject_parent75?, + conversion_rate_config: Orb::Models::NewSubscriptionTieredPackagePrice::unnamed_type_withobject_parent74?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_tiered_package_with_minimum_price.rbs b/sig/orb/models/new_subscription_tiered_package_with_minimum_price.rbs index e476e90f..eb882183 100644 --- a/sig/orb/models/new_subscription_tiered_package_with_minimum_price.rbs +++ b/sig/orb/models/new_subscription_tiered_package_with_minimum_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::unnamed_type_withobject_parent76?, + conversion_rate_config: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::unnamed_type_withobject_parent75?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::unnamed_type_withobject_parent76? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::unnamed_type_withobject_parent75? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::unnamed_type_withobject_parent76?, + ?conversion_rate_config: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::unnamed_type_withobject_parent75?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::unnamed_type_withobject_parent76?, + conversion_rate_config: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::unnamed_type_withobject_parent75?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_tiered_price.rbs b/sig/orb/models/new_subscription_tiered_price.rbs index 083830d3..14f9255a 100644 --- a/sig/orb/models/new_subscription_tiered_price.rbs +++ b/sig/orb/models/new_subscription_tiered_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredPrice::unnamed_type_withobject_parent77?, + conversion_rate_config: Orb::Models::NewSubscriptionTieredPrice::unnamed_type_withobject_parent76?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredPrice::unnamed_type_withobject_parent77? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredPrice::unnamed_type_withobject_parent76? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionTieredPrice::unnamed_type_withobject_parent77?, + ?conversion_rate_config: Orb::Models::NewSubscriptionTieredPrice::unnamed_type_withobject_parent76?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredPrice::unnamed_type_withobject_parent77?, + conversion_rate_config: Orb::Models::NewSubscriptionTieredPrice::unnamed_type_withobject_parent76?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_tiered_with_minimum_price.rbs b/sig/orb/models/new_subscription_tiered_with_minimum_price.rbs index 7c8a191e..a6a1d916 100644 --- a/sig/orb/models/new_subscription_tiered_with_minimum_price.rbs +++ b/sig/orb/models/new_subscription_tiered_with_minimum_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredWithMinimumPrice::unnamed_type_withobject_parent78?, + conversion_rate_config: Orb::Models::NewSubscriptionTieredWithMinimumPrice::unnamed_type_withobject_parent77?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredWithMinimumPrice::unnamed_type_withobject_parent78? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredWithMinimumPrice::unnamed_type_withobject_parent77? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionTieredWithMinimumPrice::unnamed_type_withobject_parent78?, + ?conversion_rate_config: Orb::Models::NewSubscriptionTieredWithMinimumPrice::unnamed_type_withobject_parent77?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredWithMinimumPrice::unnamed_type_withobject_parent78?, + conversion_rate_config: Orb::Models::NewSubscriptionTieredWithMinimumPrice::unnamed_type_withobject_parent77?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_unit_price.rbs b/sig/orb/models/new_subscription_unit_price.rbs index ea117434..9f0068e8 100644 --- a/sig/orb/models/new_subscription_unit_price.rbs +++ b/sig/orb/models/new_subscription_unit_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionUnitPrice::unnamed_type_withobject_parent80?, + conversion_rate_config: Orb::Models::NewSubscriptionUnitPrice::unnamed_type_withobject_parent79?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionUnitPrice::unnamed_type_withobject_parent80? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionUnitPrice::unnamed_type_withobject_parent79? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionUnitPrice::unnamed_type_withobject_parent80?, + ?conversion_rate_config: Orb::Models::NewSubscriptionUnitPrice::unnamed_type_withobject_parent79?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionUnitPrice::unnamed_type_withobject_parent80?, + conversion_rate_config: Orb::Models::NewSubscriptionUnitPrice::unnamed_type_withobject_parent79?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_unit_with_percent_price.rbs b/sig/orb/models/new_subscription_unit_with_percent_price.rbs index 2de24e27..fecbac88 100644 --- a/sig/orb/models/new_subscription_unit_with_percent_price.rbs +++ b/sig/orb/models/new_subscription_unit_with_percent_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionUnitWithPercentPrice::unnamed_type_withobject_parent81?, + conversion_rate_config: Orb::Models::NewSubscriptionUnitWithPercentPrice::unnamed_type_withobject_parent80?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionUnitWithPercentPrice::unnamed_type_withobject_parent81? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionUnitWithPercentPrice::unnamed_type_withobject_parent80? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionUnitWithPercentPrice::unnamed_type_withobject_parent81?, + ?conversion_rate_config: Orb::Models::NewSubscriptionUnitWithPercentPrice::unnamed_type_withobject_parent80?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionUnitWithPercentPrice::unnamed_type_withobject_parent81?, + conversion_rate_config: Orb::Models::NewSubscriptionUnitWithPercentPrice::unnamed_type_withobject_parent80?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_unit_with_proration_price.rbs b/sig/orb/models/new_subscription_unit_with_proration_price.rbs index fae097cd..a9163e08 100644 --- a/sig/orb/models/new_subscription_unit_with_proration_price.rbs +++ b/sig/orb/models/new_subscription_unit_with_proration_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionUnitWithProrationPrice::unnamed_type_withobject_parent82?, + conversion_rate_config: Orb::Models::NewSubscriptionUnitWithProrationPrice::unnamed_type_withobject_parent81?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionUnitWithProrationPrice::unnamed_type_withobject_parent82? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionUnitWithProrationPrice::unnamed_type_withobject_parent81? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionUnitWithProrationPrice::unnamed_type_withobject_parent82?, + ?conversion_rate_config: Orb::Models::NewSubscriptionUnitWithProrationPrice::unnamed_type_withobject_parent81?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionUnitWithProrationPrice::unnamed_type_withobject_parent82?, + conversion_rate_config: Orb::Models::NewSubscriptionUnitWithProrationPrice::unnamed_type_withobject_parent81?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/plan_create_params.rbs b/sig/orb/models/plan_create_params.rbs index 859d6384..a7cfbdac 100644 --- a/sig/orb/models/plan_create_params.rbs +++ b/sig/orb/models/plan_create_params.rbs @@ -124,7 +124,7 @@ module Orb | Orb::NewPlanTieredPackageWithMinimumPrice | Orb::NewPlanMatrixWithAllocationPrice | Orb::NewPlanGroupedTieredPrice - | Orb::PlanCreateParams::Price::Price::Minimum + | Orb::NewPlanMinimumCompositePrice module Price extend Orb::Internal::Type::Union @@ -140,7 +140,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent83?, + conversion_rate_config: Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent82?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -170,7 +170,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent83? + attr_accessor conversion_rate_config: Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent82? attr_accessor currency: String? @@ -197,7 +197,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent83?, + ?conversion_rate_config: Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent82?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -219,7 +219,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent83?, + conversion_rate_config: Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent82?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -252,141 +252,6 @@ module Orb end end - type minimum = - { - cadence: Orb::Models::PlanCreateParams::Price::Price::Minimum::cadence, - item_id: String, - minimum_config: Orb::PlanCreateParams::Price::Price::Minimum::MinimumConfig, - model_type: :minimum, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::PlanCreateParams::Price::Price::Minimum::unnamed_type_withobject_parent84?, - currency: String?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String? - } - - class Minimum < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::PlanCreateParams::Price::Price::Minimum::cadence - - attr_accessor item_id: String - - attr_accessor minimum_config: Orb::PlanCreateParams::Price::Price::Minimum::MinimumConfig - - attr_accessor model_type: :minimum - - attr_accessor name: String - - attr_accessor billable_metric_id: String? - - attr_accessor billed_in_advance: bool? - - attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor conversion_rate: Float? - - attr_accessor conversion_rate_config: Orb::Models::PlanCreateParams::Price::Price::Minimum::unnamed_type_withobject_parent84? - - attr_accessor currency: String? - - attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? - - attr_accessor external_price_id: String? - - attr_accessor fixed_price_quantity: Float? - - attr_accessor invoice_grouping_key: String? - - attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor metadata: ::Hash[Symbol, String?]? - - attr_accessor reference_id: String? - - def initialize: ( - cadence: Orb::Models::PlanCreateParams::Price::Price::Minimum::cadence, - item_id: String, - minimum_config: Orb::PlanCreateParams::Price::Price::Minimum::MinimumConfig, - name: String, - ?billable_metric_id: String?, - ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::PlanCreateParams::Price::Price::Minimum::unnamed_type_withobject_parent84?, - ?currency: String?, - ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - ?external_price_id: String?, - ?fixed_price_quantity: Float?, - ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?metadata: ::Hash[Symbol, String?]?, - ?reference_id: String?, - ?model_type: :minimum - ) -> void - - def to_hash: -> { - cadence: Orb::Models::PlanCreateParams::Price::Price::Minimum::cadence, - item_id: String, - minimum_config: Orb::PlanCreateParams::Price::Price::Minimum::MinimumConfig, - model_type: :minimum, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::PlanCreateParams::Price::Price::Minimum::unnamed_type_withobject_parent84?, - currency: String?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String? - } - - type cadence = - :annual - | :semi_annual - | :monthly - | :quarterly - | :one_time - | :custom - - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL: :annual - SEMI_ANNUAL: :semi_annual - MONTHLY: :monthly - QUARTERLY: :quarterly - ONE_TIME: :one_time - CUSTOM: :custom - - def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Price::Minimum::cadence] - end - - type minimum_config = { minimum_amount: String, prorated: bool? } - - class MinimumConfig < Orb::Internal::Type::BaseModel - attr_accessor minimum_amount: String - - attr_accessor prorated: bool? - - def initialize: (minimum_amount: String, ?prorated: bool?) -> void - - def to_hash: -> { minimum_amount: String, prorated: bool? } - end - end - def self?.variants: -> ::Array[Orb::Models::PlanCreateParams::Price::price] end end diff --git a/sig/orb/models/price.rbs b/sig/orb/models/price.rbs index cd0083da..cbaf8b27 100644 --- a/sig/orb/models/price.rbs +++ b/sig/orb/models/price.rbs @@ -40,7 +40,7 @@ module Orb cadence: Orb::Models::Price::Unit::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Unit::unnamed_type_withobject_parent85?, + conversion_rate_config: Orb::Models::Price::Unit::unnamed_type_withobject_parent83?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -76,7 +76,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::Unit::unnamed_type_withobject_parent85? + attr_accessor conversion_rate_config: Orb::Models::Price::Unit::unnamed_type_withobject_parent83? attr_accessor created_at: Time @@ -125,7 +125,7 @@ module Orb cadence: Orb::Models::Price::Unit::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Unit::unnamed_type_withobject_parent85?, + conversion_rate_config: Orb::Models::Price::Unit::unnamed_type_withobject_parent83?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -155,7 +155,7 @@ module Orb cadence: Orb::Models::Price::Unit::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Unit::unnamed_type_withobject_parent85?, + conversion_rate_config: Orb::Models::Price::Unit::unnamed_type_withobject_parent83?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -214,7 +214,7 @@ module Orb cadence: Orb::Models::Price::Package::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Package::unnamed_type_withobject_parent86?, + conversion_rate_config: Orb::Models::Price::Package::unnamed_type_withobject_parent84?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -250,7 +250,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::Package::unnamed_type_withobject_parent86? + attr_accessor conversion_rate_config: Orb::Models::Price::Package::unnamed_type_withobject_parent84? attr_accessor created_at: Time @@ -299,7 +299,7 @@ module Orb cadence: Orb::Models::Price::Package::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Package::unnamed_type_withobject_parent86?, + conversion_rate_config: Orb::Models::Price::Package::unnamed_type_withobject_parent84?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -329,7 +329,7 @@ module Orb cadence: Orb::Models::Price::Package::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Package::unnamed_type_withobject_parent86?, + conversion_rate_config: Orb::Models::Price::Package::unnamed_type_withobject_parent84?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -388,7 +388,7 @@ module Orb cadence: Orb::Models::Price::Matrix::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Matrix::unnamed_type_withobject_parent87?, + conversion_rate_config: Orb::Models::Price::Matrix::unnamed_type_withobject_parent85?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -424,7 +424,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::Matrix::unnamed_type_withobject_parent87? + attr_accessor conversion_rate_config: Orb::Models::Price::Matrix::unnamed_type_withobject_parent85? attr_accessor created_at: Time @@ -473,7 +473,7 @@ module Orb cadence: Orb::Models::Price::Matrix::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Matrix::unnamed_type_withobject_parent87?, + conversion_rate_config: Orb::Models::Price::Matrix::unnamed_type_withobject_parent85?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -503,7 +503,7 @@ module Orb cadence: Orb::Models::Price::Matrix::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Matrix::unnamed_type_withobject_parent87?, + conversion_rate_config: Orb::Models::Price::Matrix::unnamed_type_withobject_parent85?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -562,7 +562,7 @@ module Orb cadence: Orb::Models::Price::Tiered::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Tiered::unnamed_type_withobject_parent88?, + conversion_rate_config: Orb::Models::Price::Tiered::unnamed_type_withobject_parent86?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -598,7 +598,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::Tiered::unnamed_type_withobject_parent88? + attr_accessor conversion_rate_config: Orb::Models::Price::Tiered::unnamed_type_withobject_parent86? attr_accessor created_at: Time @@ -647,7 +647,7 @@ module Orb cadence: Orb::Models::Price::Tiered::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Tiered::unnamed_type_withobject_parent88?, + conversion_rate_config: Orb::Models::Price::Tiered::unnamed_type_withobject_parent86?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -677,7 +677,7 @@ module Orb cadence: Orb::Models::Price::Tiered::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Tiered::unnamed_type_withobject_parent88?, + conversion_rate_config: Orb::Models::Price::Tiered::unnamed_type_withobject_parent86?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -737,7 +737,7 @@ module Orb cadence: Orb::Models::Price::Bulk::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Bulk::unnamed_type_withobject_parent89?, + conversion_rate_config: Orb::Models::Price::Bulk::unnamed_type_withobject_parent87?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -774,7 +774,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::Bulk::unnamed_type_withobject_parent89? + attr_accessor conversion_rate_config: Orb::Models::Price::Bulk::unnamed_type_withobject_parent87? attr_accessor created_at: Time @@ -822,7 +822,7 @@ module Orb cadence: Orb::Models::Price::Bulk::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Bulk::unnamed_type_withobject_parent89?, + conversion_rate_config: Orb::Models::Price::Bulk::unnamed_type_withobject_parent87?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -852,7 +852,7 @@ module Orb cadence: Orb::Models::Price::Bulk::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Bulk::unnamed_type_withobject_parent89?, + conversion_rate_config: Orb::Models::Price::Bulk::unnamed_type_withobject_parent87?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -910,7 +910,7 @@ module Orb cadence: Orb::Models::Price::ThresholdTotalAmount::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ThresholdTotalAmount::unnamed_type_withobject_parent90?, + conversion_rate_config: Orb::Models::Price::ThresholdTotalAmount::unnamed_type_withobject_parent88?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -946,7 +946,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::ThresholdTotalAmount::unnamed_type_withobject_parent90? + attr_accessor conversion_rate_config: Orb::Models::Price::ThresholdTotalAmount::unnamed_type_withobject_parent88? attr_accessor created_at: Time @@ -995,7 +995,7 @@ module Orb cadence: Orb::Models::Price::ThresholdTotalAmount::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ThresholdTotalAmount::unnamed_type_withobject_parent90?, + conversion_rate_config: Orb::Models::Price::ThresholdTotalAmount::unnamed_type_withobject_parent88?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1025,7 +1025,7 @@ module Orb cadence: Orb::Models::Price::ThresholdTotalAmount::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ThresholdTotalAmount::unnamed_type_withobject_parent90?, + conversion_rate_config: Orb::Models::Price::ThresholdTotalAmount::unnamed_type_withobject_parent88?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1084,7 +1084,7 @@ module Orb cadence: Orb::Models::Price::TieredPackage::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredPackage::unnamed_type_withobject_parent91?, + conversion_rate_config: Orb::Models::Price::TieredPackage::unnamed_type_withobject_parent89?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1120,7 +1120,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::TieredPackage::unnamed_type_withobject_parent91? + attr_accessor conversion_rate_config: Orb::Models::Price::TieredPackage::unnamed_type_withobject_parent89? attr_accessor created_at: Time @@ -1169,7 +1169,7 @@ module Orb cadence: Orb::Models::Price::TieredPackage::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredPackage::unnamed_type_withobject_parent91?, + conversion_rate_config: Orb::Models::Price::TieredPackage::unnamed_type_withobject_parent89?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1199,7 +1199,7 @@ module Orb cadence: Orb::Models::Price::TieredPackage::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredPackage::unnamed_type_withobject_parent91?, + conversion_rate_config: Orb::Models::Price::TieredPackage::unnamed_type_withobject_parent89?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1258,7 +1258,7 @@ module Orb cadence: Orb::Models::Price::GroupedTiered::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedTiered::unnamed_type_withobject_parent92?, + conversion_rate_config: Orb::Models::Price::GroupedTiered::unnamed_type_withobject_parent90?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1294,7 +1294,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::GroupedTiered::unnamed_type_withobject_parent92? + attr_accessor conversion_rate_config: Orb::Models::Price::GroupedTiered::unnamed_type_withobject_parent90? attr_accessor created_at: Time @@ -1343,7 +1343,7 @@ module Orb cadence: Orb::Models::Price::GroupedTiered::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedTiered::unnamed_type_withobject_parent92?, + conversion_rate_config: Orb::Models::Price::GroupedTiered::unnamed_type_withobject_parent90?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1373,7 +1373,7 @@ module Orb cadence: Orb::Models::Price::GroupedTiered::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedTiered::unnamed_type_withobject_parent92?, + conversion_rate_config: Orb::Models::Price::GroupedTiered::unnamed_type_withobject_parent90?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1432,7 +1432,7 @@ module Orb cadence: Orb::Models::Price::TieredWithMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredWithMinimum::unnamed_type_withobject_parent93?, + conversion_rate_config: Orb::Models::Price::TieredWithMinimum::unnamed_type_withobject_parent91?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1468,7 +1468,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::TieredWithMinimum::unnamed_type_withobject_parent93? + attr_accessor conversion_rate_config: Orb::Models::Price::TieredWithMinimum::unnamed_type_withobject_parent91? attr_accessor created_at: Time @@ -1517,7 +1517,7 @@ module Orb cadence: Orb::Models::Price::TieredWithMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredWithMinimum::unnamed_type_withobject_parent93?, + conversion_rate_config: Orb::Models::Price::TieredWithMinimum::unnamed_type_withobject_parent91?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1547,7 +1547,7 @@ module Orb cadence: Orb::Models::Price::TieredWithMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredWithMinimum::unnamed_type_withobject_parent93?, + conversion_rate_config: Orb::Models::Price::TieredWithMinimum::unnamed_type_withobject_parent91?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1606,7 +1606,7 @@ module Orb cadence: Orb::Models::Price::TieredPackageWithMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredPackageWithMinimum::unnamed_type_withobject_parent94?, + conversion_rate_config: Orb::Models::Price::TieredPackageWithMinimum::unnamed_type_withobject_parent92?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1642,7 +1642,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::TieredPackageWithMinimum::unnamed_type_withobject_parent94? + attr_accessor conversion_rate_config: Orb::Models::Price::TieredPackageWithMinimum::unnamed_type_withobject_parent92? attr_accessor created_at: Time @@ -1691,7 +1691,7 @@ module Orb cadence: Orb::Models::Price::TieredPackageWithMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredPackageWithMinimum::unnamed_type_withobject_parent94?, + conversion_rate_config: Orb::Models::Price::TieredPackageWithMinimum::unnamed_type_withobject_parent92?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1721,7 +1721,7 @@ module Orb cadence: Orb::Models::Price::TieredPackageWithMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredPackageWithMinimum::unnamed_type_withobject_parent94?, + conversion_rate_config: Orb::Models::Price::TieredPackageWithMinimum::unnamed_type_withobject_parent92?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1780,7 +1780,7 @@ module Orb cadence: Orb::Models::Price::PackageWithAllocation::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::PackageWithAllocation::unnamed_type_withobject_parent95?, + conversion_rate_config: Orb::Models::Price::PackageWithAllocation::unnamed_type_withobject_parent93?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1816,7 +1816,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::PackageWithAllocation::unnamed_type_withobject_parent95? + attr_accessor conversion_rate_config: Orb::Models::Price::PackageWithAllocation::unnamed_type_withobject_parent93? attr_accessor created_at: Time @@ -1865,7 +1865,7 @@ module Orb cadence: Orb::Models::Price::PackageWithAllocation::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::PackageWithAllocation::unnamed_type_withobject_parent95?, + conversion_rate_config: Orb::Models::Price::PackageWithAllocation::unnamed_type_withobject_parent93?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1895,7 +1895,7 @@ module Orb cadence: Orb::Models::Price::PackageWithAllocation::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::PackageWithAllocation::unnamed_type_withobject_parent95?, + conversion_rate_config: Orb::Models::Price::PackageWithAllocation::unnamed_type_withobject_parent93?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1954,7 +1954,7 @@ module Orb cadence: Orb::Models::Price::UnitWithPercent::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::UnitWithPercent::unnamed_type_withobject_parent96?, + conversion_rate_config: Orb::Models::Price::UnitWithPercent::unnamed_type_withobject_parent94?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1990,7 +1990,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::UnitWithPercent::unnamed_type_withobject_parent96? + attr_accessor conversion_rate_config: Orb::Models::Price::UnitWithPercent::unnamed_type_withobject_parent94? attr_accessor created_at: Time @@ -2039,7 +2039,7 @@ module Orb cadence: Orb::Models::Price::UnitWithPercent::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::UnitWithPercent::unnamed_type_withobject_parent96?, + conversion_rate_config: Orb::Models::Price::UnitWithPercent::unnamed_type_withobject_parent94?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2069,7 +2069,7 @@ module Orb cadence: Orb::Models::Price::UnitWithPercent::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::UnitWithPercent::unnamed_type_withobject_parent96?, + conversion_rate_config: Orb::Models::Price::UnitWithPercent::unnamed_type_withobject_parent94?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2128,7 +2128,7 @@ module Orb cadence: Orb::Models::Price::MatrixWithAllocation::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MatrixWithAllocation::unnamed_type_withobject_parent97?, + conversion_rate_config: Orb::Models::Price::MatrixWithAllocation::unnamed_type_withobject_parent95?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2164,7 +2164,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::MatrixWithAllocation::unnamed_type_withobject_parent97? + attr_accessor conversion_rate_config: Orb::Models::Price::MatrixWithAllocation::unnamed_type_withobject_parent95? attr_accessor created_at: Time @@ -2213,7 +2213,7 @@ module Orb cadence: Orb::Models::Price::MatrixWithAllocation::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MatrixWithAllocation::unnamed_type_withobject_parent97?, + conversion_rate_config: Orb::Models::Price::MatrixWithAllocation::unnamed_type_withobject_parent95?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2243,7 +2243,7 @@ module Orb cadence: Orb::Models::Price::MatrixWithAllocation::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MatrixWithAllocation::unnamed_type_withobject_parent97?, + conversion_rate_config: Orb::Models::Price::MatrixWithAllocation::unnamed_type_withobject_parent95?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2302,7 +2302,7 @@ module Orb cadence: Orb::Models::Price::TieredWithProration::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredWithProration::unnamed_type_withobject_parent98?, + conversion_rate_config: Orb::Models::Price::TieredWithProration::unnamed_type_withobject_parent96?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2338,7 +2338,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::TieredWithProration::unnamed_type_withobject_parent98? + attr_accessor conversion_rate_config: Orb::Models::Price::TieredWithProration::unnamed_type_withobject_parent96? attr_accessor created_at: Time @@ -2387,7 +2387,7 @@ module Orb cadence: Orb::Models::Price::TieredWithProration::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredWithProration::unnamed_type_withobject_parent98?, + conversion_rate_config: Orb::Models::Price::TieredWithProration::unnamed_type_withobject_parent96?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2417,7 +2417,7 @@ module Orb cadence: Orb::Models::Price::TieredWithProration::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredWithProration::unnamed_type_withobject_parent98?, + conversion_rate_config: Orb::Models::Price::TieredWithProration::unnamed_type_withobject_parent96?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2476,7 +2476,7 @@ module Orb cadence: Orb::Models::Price::UnitWithProration::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::UnitWithProration::unnamed_type_withobject_parent99?, + conversion_rate_config: Orb::Models::Price::UnitWithProration::unnamed_type_withobject_parent97?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2512,7 +2512,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::UnitWithProration::unnamed_type_withobject_parent99? + attr_accessor conversion_rate_config: Orb::Models::Price::UnitWithProration::unnamed_type_withobject_parent97? attr_accessor created_at: Time @@ -2561,7 +2561,7 @@ module Orb cadence: Orb::Models::Price::UnitWithProration::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::UnitWithProration::unnamed_type_withobject_parent99?, + conversion_rate_config: Orb::Models::Price::UnitWithProration::unnamed_type_withobject_parent97?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2591,7 +2591,7 @@ module Orb cadence: Orb::Models::Price::UnitWithProration::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::UnitWithProration::unnamed_type_withobject_parent99?, + conversion_rate_config: Orb::Models::Price::UnitWithProration::unnamed_type_withobject_parent97?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2650,7 +2650,7 @@ module Orb cadence: Orb::Models::Price::GroupedAllocation::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedAllocation::unnamed_type_withobject_parent100?, + conversion_rate_config: Orb::Models::Price::GroupedAllocation::unnamed_type_withobject_parent98?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2686,7 +2686,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::GroupedAllocation::unnamed_type_withobject_parent100? + attr_accessor conversion_rate_config: Orb::Models::Price::GroupedAllocation::unnamed_type_withobject_parent98? attr_accessor created_at: Time @@ -2735,7 +2735,7 @@ module Orb cadence: Orb::Models::Price::GroupedAllocation::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedAllocation::unnamed_type_withobject_parent100?, + conversion_rate_config: Orb::Models::Price::GroupedAllocation::unnamed_type_withobject_parent98?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2765,7 +2765,7 @@ module Orb cadence: Orb::Models::Price::GroupedAllocation::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedAllocation::unnamed_type_withobject_parent100?, + conversion_rate_config: Orb::Models::Price::GroupedAllocation::unnamed_type_withobject_parent98?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2824,7 +2824,7 @@ module Orb cadence: Orb::Models::Price::GroupedWithProratedMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::unnamed_type_withobject_parent101?, + conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::unnamed_type_withobject_parent99?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2860,7 +2860,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::unnamed_type_withobject_parent101? + attr_accessor conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::unnamed_type_withobject_parent99? attr_accessor created_at: Time @@ -2909,7 +2909,7 @@ module Orb cadence: Orb::Models::Price::GroupedWithProratedMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::unnamed_type_withobject_parent101?, + conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::unnamed_type_withobject_parent99?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2939,7 +2939,7 @@ module Orb cadence: Orb::Models::Price::GroupedWithProratedMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::unnamed_type_withobject_parent101?, + conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::unnamed_type_withobject_parent99?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2998,7 +2998,7 @@ module Orb cadence: Orb::Models::Price::GroupedWithMeteredMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::unnamed_type_withobject_parent102?, + conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::unnamed_type_withobject_parent100?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3034,7 +3034,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::unnamed_type_withobject_parent102? + attr_accessor conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::unnamed_type_withobject_parent100? attr_accessor created_at: Time @@ -3083,7 +3083,7 @@ module Orb cadence: Orb::Models::Price::GroupedWithMeteredMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::unnamed_type_withobject_parent102?, + conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::unnamed_type_withobject_parent100?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3113,7 +3113,7 @@ module Orb cadence: Orb::Models::Price::GroupedWithMeteredMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::unnamed_type_withobject_parent102?, + conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::unnamed_type_withobject_parent100?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3172,7 +3172,7 @@ module Orb cadence: Orb::Models::Price::MatrixWithDisplayName::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::unnamed_type_withobject_parent103?, + conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::unnamed_type_withobject_parent101?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3208,7 +3208,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::unnamed_type_withobject_parent103? + attr_accessor conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::unnamed_type_withobject_parent101? attr_accessor created_at: Time @@ -3257,7 +3257,7 @@ module Orb cadence: Orb::Models::Price::MatrixWithDisplayName::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::unnamed_type_withobject_parent103?, + conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::unnamed_type_withobject_parent101?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3287,7 +3287,7 @@ module Orb cadence: Orb::Models::Price::MatrixWithDisplayName::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::unnamed_type_withobject_parent103?, + conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::unnamed_type_withobject_parent101?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3347,7 +3347,7 @@ module Orb cadence: Orb::Models::Price::BulkWithProration::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::BulkWithProration::unnamed_type_withobject_parent104?, + conversion_rate_config: Orb::Models::Price::BulkWithProration::unnamed_type_withobject_parent102?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3384,7 +3384,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::BulkWithProration::unnamed_type_withobject_parent104? + attr_accessor conversion_rate_config: Orb::Models::Price::BulkWithProration::unnamed_type_withobject_parent102? attr_accessor created_at: Time @@ -3432,7 +3432,7 @@ module Orb cadence: Orb::Models::Price::BulkWithProration::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::BulkWithProration::unnamed_type_withobject_parent104?, + conversion_rate_config: Orb::Models::Price::BulkWithProration::unnamed_type_withobject_parent102?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3462,7 +3462,7 @@ module Orb cadence: Orb::Models::Price::BulkWithProration::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::BulkWithProration::unnamed_type_withobject_parent104?, + conversion_rate_config: Orb::Models::Price::BulkWithProration::unnamed_type_withobject_parent102?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3520,7 +3520,7 @@ module Orb cadence: Orb::Models::Price::GroupedTieredPackage::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::unnamed_type_withobject_parent105?, + conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::unnamed_type_withobject_parent103?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3556,7 +3556,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::unnamed_type_withobject_parent105? + attr_accessor conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::unnamed_type_withobject_parent103? attr_accessor created_at: Time @@ -3605,7 +3605,7 @@ module Orb cadence: Orb::Models::Price::GroupedTieredPackage::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::unnamed_type_withobject_parent105?, + conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::unnamed_type_withobject_parent103?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3635,7 +3635,7 @@ module Orb cadence: Orb::Models::Price::GroupedTieredPackage::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::unnamed_type_withobject_parent105?, + conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::unnamed_type_withobject_parent103?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3694,7 +3694,7 @@ module Orb cadence: Orb::Models::Price::MaxGroupTieredPackage::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::unnamed_type_withobject_parent106?, + conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::unnamed_type_withobject_parent104?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3730,7 +3730,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::unnamed_type_withobject_parent106? + attr_accessor conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::unnamed_type_withobject_parent104? attr_accessor created_at: Time @@ -3779,7 +3779,7 @@ module Orb cadence: Orb::Models::Price::MaxGroupTieredPackage::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::unnamed_type_withobject_parent106?, + conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::unnamed_type_withobject_parent104?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3809,7 +3809,7 @@ module Orb cadence: Orb::Models::Price::MaxGroupTieredPackage::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::unnamed_type_withobject_parent106?, + conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::unnamed_type_withobject_parent104?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3868,7 +3868,7 @@ module Orb cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::unnamed_type_withobject_parent107?, + conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::unnamed_type_withobject_parent105?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3904,7 +3904,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::unnamed_type_withobject_parent107? + attr_accessor conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::unnamed_type_withobject_parent105? attr_accessor created_at: Time @@ -3953,7 +3953,7 @@ module Orb cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::unnamed_type_withobject_parent107?, + conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::unnamed_type_withobject_parent105?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3983,7 +3983,7 @@ module Orb cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::unnamed_type_withobject_parent107?, + conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::unnamed_type_withobject_parent105?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4042,7 +4042,7 @@ module Orb cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::unnamed_type_withobject_parent108?, + conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::unnamed_type_withobject_parent106?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4078,7 +4078,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::unnamed_type_withobject_parent108? + attr_accessor conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::unnamed_type_withobject_parent106? attr_accessor created_at: Time @@ -4127,7 +4127,7 @@ module Orb cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::unnamed_type_withobject_parent108?, + conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::unnamed_type_withobject_parent106?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4157,7 +4157,7 @@ module Orb cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::unnamed_type_withobject_parent108?, + conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::unnamed_type_withobject_parent106?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4216,7 +4216,7 @@ module Orb cadence: Orb::Models::Price::CumulativeGroupedBulk::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::unnamed_type_withobject_parent109?, + conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::unnamed_type_withobject_parent107?, created_at: Time, credit_allocation: Orb::Allocation?, cumulative_grouped_bulk_config: ::Hash[Symbol, top], @@ -4252,7 +4252,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::unnamed_type_withobject_parent109? + attr_accessor conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::unnamed_type_withobject_parent107? attr_accessor created_at: Time @@ -4301,7 +4301,7 @@ module Orb cadence: Orb::Models::Price::CumulativeGroupedBulk::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::unnamed_type_withobject_parent109?, + conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::unnamed_type_withobject_parent107?, created_at: Time, credit_allocation: Orb::Allocation?, cumulative_grouped_bulk_config: ::Hash[Symbol, top], @@ -4331,7 +4331,7 @@ module Orb cadence: Orb::Models::Price::CumulativeGroupedBulk::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::unnamed_type_withobject_parent109?, + conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::unnamed_type_withobject_parent107?, created_at: Time, credit_allocation: Orb::Allocation?, cumulative_grouped_bulk_config: ::Hash[Symbol, top], @@ -4390,7 +4390,7 @@ module Orb cadence: Orb::Models::Price::GroupedWithMinMaxThresholds::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent110?, + conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent108?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4426,7 +4426,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent110? + attr_accessor conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent108? attr_accessor created_at: Time @@ -4475,7 +4475,7 @@ module Orb cadence: Orb::Models::Price::GroupedWithMinMaxThresholds::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent110?, + conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent108?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4505,7 +4505,7 @@ module Orb cadence: Orb::Models::Price::GroupedWithMinMaxThresholds::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent110?, + conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent108?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4564,7 +4564,7 @@ module Orb cadence: Orb::Models::Price::Minimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Minimum::unnamed_type_withobject_parent111?, + conversion_rate_config: Orb::Models::Price::Minimum::unnamed_type_withobject_parent109?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4600,7 +4600,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::Minimum::unnamed_type_withobject_parent111? + attr_accessor conversion_rate_config: Orb::Models::Price::Minimum::unnamed_type_withobject_parent109? attr_accessor created_at: Time @@ -4649,7 +4649,7 @@ module Orb cadence: Orb::Models::Price::Minimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Minimum::unnamed_type_withobject_parent111?, + conversion_rate_config: Orb::Models::Price::Minimum::unnamed_type_withobject_parent109?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4679,7 +4679,7 @@ module Orb cadence: Orb::Models::Price::Minimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Minimum::unnamed_type_withobject_parent111?, + conversion_rate_config: Orb::Models::Price::Minimum::unnamed_type_withobject_parent109?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, diff --git a/sig/orb/models/price_evaluate_multiple_params.rbs b/sig/orb/models/price_evaluate_multiple_params.rbs index 7714e4eb..c8f2f9e3 100644 --- a/sig/orb/models/price_evaluate_multiple_params.rbs +++ b/sig/orb/models/price_evaluate_multiple_params.rbs @@ -111,7 +111,7 @@ module Orb | Orb::NewFloatingScalableMatrixWithTieredPricingPrice | Orb::NewFloatingCumulativeGroupedBulkPrice | Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds - | Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum + | Orb::NewFloatingMinimumCompositePrice module Price extend Orb::Internal::Type::Union @@ -128,7 +128,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent112?, + conversion_rate_config: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent110?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -158,7 +158,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent112? + attr_accessor conversion_rate_config: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent110? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -182,7 +182,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent112?, + ?conversion_rate_config: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent110?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -203,7 +203,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent112?, + conversion_rate_config: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent110?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -234,136 +234,6 @@ module Orb end end - type minimum = - { - cadence: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::cadence, - currency: String, - item_id: String, - minimum_config: Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::MinimumConfig, - model_type: :minimum, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::unnamed_type_withobject_parent113?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]? - } - - class Minimum < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::cadence - - attr_accessor currency: String - - attr_accessor item_id: String - - attr_accessor minimum_config: Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::MinimumConfig - - attr_accessor model_type: :minimum - - attr_accessor name: String - - attr_accessor billable_metric_id: String? - - attr_accessor billed_in_advance: bool? - - attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor conversion_rate: Float? - - attr_accessor conversion_rate_config: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::unnamed_type_withobject_parent113? - - attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? - - attr_accessor external_price_id: String? - - attr_accessor fixed_price_quantity: Float? - - attr_accessor invoice_grouping_key: String? - - attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor metadata: ::Hash[Symbol, String?]? - - def initialize: ( - cadence: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::cadence, - currency: String, - item_id: String, - minimum_config: Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::MinimumConfig, - name: String, - ?billable_metric_id: String?, - ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::unnamed_type_withobject_parent113?, - ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - ?external_price_id: String?, - ?fixed_price_quantity: Float?, - ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?metadata: ::Hash[Symbol, String?]?, - ?model_type: :minimum - ) -> void - - def to_hash: -> { - cadence: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::cadence, - currency: String, - item_id: String, - minimum_config: Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::MinimumConfig, - model_type: :minimum, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::unnamed_type_withobject_parent113?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]? - } - - type cadence = - :annual - | :semi_annual - | :monthly - | :quarterly - | :one_time - | :custom - - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL: :annual - SEMI_ANNUAL: :semi_annual - MONTHLY: :monthly - QUARTERLY: :quarterly - ONE_TIME: :one_time - CUSTOM: :custom - - def self?.values: -> ::Array[Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::Minimum::cadence] - end - - type minimum_config = { minimum_amount: String, prorated: bool? } - - class MinimumConfig < Orb::Internal::Type::BaseModel - attr_accessor minimum_amount: String - - attr_accessor prorated: bool? - - def initialize: (minimum_amount: String, ?prorated: bool?) -> void - - def to_hash: -> { minimum_amount: String, prorated: bool? } - end - end - def self?.variants: -> ::Array[Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::price] end end diff --git a/sig/orb/models/price_evaluate_preview_events_params.rbs b/sig/orb/models/price_evaluate_preview_events_params.rbs index 120054eb..dade5f48 100644 --- a/sig/orb/models/price_evaluate_preview_events_params.rbs +++ b/sig/orb/models/price_evaluate_preview_events_params.rbs @@ -157,7 +157,7 @@ module Orb | Orb::NewFloatingScalableMatrixWithTieredPricingPrice | Orb::NewFloatingCumulativeGroupedBulkPrice | Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds - | Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum + | Orb::NewFloatingMinimumCompositePrice module Price extend Orb::Internal::Type::Union @@ -174,7 +174,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent114?, + conversion_rate_config: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent111?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -204,7 +204,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent114? + attr_accessor conversion_rate_config: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent111? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -228,7 +228,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent114?, + ?conversion_rate_config: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent111?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -249,7 +249,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent114?, + conversion_rate_config: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent111?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -280,136 +280,6 @@ module Orb end end - type minimum = - { - cadence: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::cadence, - currency: String, - item_id: String, - minimum_config: Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::MinimumConfig, - model_type: :minimum, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::unnamed_type_withobject_parent115?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]? - } - - class Minimum < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::cadence - - attr_accessor currency: String - - attr_accessor item_id: String - - attr_accessor minimum_config: Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::MinimumConfig - - attr_accessor model_type: :minimum - - attr_accessor name: String - - attr_accessor billable_metric_id: String? - - attr_accessor billed_in_advance: bool? - - attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor conversion_rate: Float? - - attr_accessor conversion_rate_config: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::unnamed_type_withobject_parent115? - - attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? - - attr_accessor external_price_id: String? - - attr_accessor fixed_price_quantity: Float? - - attr_accessor invoice_grouping_key: String? - - attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor metadata: ::Hash[Symbol, String?]? - - def initialize: ( - cadence: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::cadence, - currency: String, - item_id: String, - minimum_config: Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::MinimumConfig, - name: String, - ?billable_metric_id: String?, - ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::unnamed_type_withobject_parent115?, - ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - ?external_price_id: String?, - ?fixed_price_quantity: Float?, - ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?metadata: ::Hash[Symbol, String?]?, - ?model_type: :minimum - ) -> void - - def to_hash: -> { - cadence: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::cadence, - currency: String, - item_id: String, - minimum_config: Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::MinimumConfig, - model_type: :minimum, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::unnamed_type_withobject_parent115?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]? - } - - type cadence = - :annual - | :semi_annual - | :monthly - | :quarterly - | :one_time - | :custom - - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL: :annual - SEMI_ANNUAL: :semi_annual - MONTHLY: :monthly - QUARTERLY: :quarterly - ONE_TIME: :one_time - CUSTOM: :custom - - def self?.values: -> ::Array[Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::Minimum::cadence] - end - - type minimum_config = { minimum_amount: String, prorated: bool? } - - class MinimumConfig < Orb::Internal::Type::BaseModel - attr_accessor minimum_amount: String - - attr_accessor prorated: bool? - - def initialize: (minimum_amount: String, ?prorated: bool?) -> void - - def to_hash: -> { minimum_amount: String, prorated: bool? } - end - end - def self?.variants: -> ::Array[Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::price] end end diff --git a/sig/orb/models/subscription_create_params.rbs b/sig/orb/models/subscription_create_params.rbs index 0dabbc1d..1e3845fd 100644 --- a/sig/orb/models/subscription_create_params.rbs +++ b/sig/orb/models/subscription_create_params.rbs @@ -317,7 +317,7 @@ module Orb | Orb::NewSubscriptionTieredPackageWithMinimumPrice | Orb::NewSubscriptionGroupedTieredPrice | Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds - | Orb::SubscriptionCreateParams::AddPrice::Price::Minimum + | Orb::NewSubscriptionMinimumCompositePrice module Price extend Orb::Internal::Type::Union @@ -333,7 +333,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent116?, + conversion_rate_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent112?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -363,7 +363,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent116? + attr_accessor conversion_rate_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent112? attr_accessor currency: String? @@ -390,7 +390,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent116?, + ?conversion_rate_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent112?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -412,7 +412,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent116?, + conversion_rate_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent112?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -445,141 +445,6 @@ module Orb end end - type minimum = - { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum::cadence, - item_id: String, - minimum_config: Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::MinimumConfig, - model_type: :minimum, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum::unnamed_type_withobject_parent117?, - currency: String?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String? - } - - class Minimum < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum::cadence - - attr_accessor item_id: String - - attr_accessor minimum_config: Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::MinimumConfig - - attr_accessor model_type: :minimum - - attr_accessor name: String - - attr_accessor billable_metric_id: String? - - attr_accessor billed_in_advance: bool? - - attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor conversion_rate: Float? - - attr_accessor conversion_rate_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum::unnamed_type_withobject_parent117? - - attr_accessor currency: String? - - attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? - - attr_accessor external_price_id: String? - - attr_accessor fixed_price_quantity: Float? - - attr_accessor invoice_grouping_key: String? - - attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor metadata: ::Hash[Symbol, String?]? - - attr_accessor reference_id: String? - - def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum::cadence, - item_id: String, - minimum_config: Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::MinimumConfig, - name: String, - ?billable_metric_id: String?, - ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum::unnamed_type_withobject_parent117?, - ?currency: String?, - ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - ?external_price_id: String?, - ?fixed_price_quantity: Float?, - ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?metadata: ::Hash[Symbol, String?]?, - ?reference_id: String?, - ?model_type: :minimum - ) -> void - - def to_hash: -> { - cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum::cadence, - item_id: String, - minimum_config: Orb::SubscriptionCreateParams::AddPrice::Price::Minimum::MinimumConfig, - model_type: :minimum, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum::unnamed_type_withobject_parent117?, - currency: String?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String? - } - - type cadence = - :annual - | :semi_annual - | :monthly - | :quarterly - | :one_time - | :custom - - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL: :annual - SEMI_ANNUAL: :semi_annual - MONTHLY: :monthly - QUARTERLY: :quarterly - ONE_TIME: :one_time - CUSTOM: :custom - - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::Minimum::cadence] - end - - type minimum_config = { minimum_amount: String, prorated: bool? } - - class MinimumConfig < Orb::Internal::Type::BaseModel - attr_accessor minimum_amount: String - - attr_accessor prorated: bool? - - def initialize: (minimum_amount: String, ?prorated: bool?) -> void - - def to_hash: -> { minimum_amount: String, prorated: bool? } - end - end - def self?.variants: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::price] end end @@ -739,7 +604,7 @@ module Orb | Orb::NewSubscriptionTieredPackageWithMinimumPrice | Orb::NewSubscriptionGroupedTieredPrice | Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds - | Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum + | Orb::NewSubscriptionMinimumCompositePrice module Price extend Orb::Internal::Type::Union @@ -755,7 +620,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent118?, + conversion_rate_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent113?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -785,7 +650,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent118? + attr_accessor conversion_rate_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent113? attr_accessor currency: String? @@ -812,7 +677,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent118?, + ?conversion_rate_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent113?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -834,7 +699,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent118?, + conversion_rate_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent113?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -867,141 +732,6 @@ module Orb end end - type minimum = - { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum::cadence, - item_id: String, - minimum_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::MinimumConfig, - model_type: :minimum, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum::unnamed_type_withobject_parent119?, - currency: String?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String? - } - - class Minimum < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum::cadence - - attr_accessor item_id: String - - attr_accessor minimum_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::MinimumConfig - - attr_accessor model_type: :minimum - - attr_accessor name: String - - attr_accessor billable_metric_id: String? - - attr_accessor billed_in_advance: bool? - - attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor conversion_rate: Float? - - attr_accessor conversion_rate_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum::unnamed_type_withobject_parent119? - - attr_accessor currency: String? - - attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? - - attr_accessor external_price_id: String? - - attr_accessor fixed_price_quantity: Float? - - attr_accessor invoice_grouping_key: String? - - attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor metadata: ::Hash[Symbol, String?]? - - attr_accessor reference_id: String? - - def initialize: ( - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum::cadence, - item_id: String, - minimum_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::MinimumConfig, - name: String, - ?billable_metric_id: String?, - ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum::unnamed_type_withobject_parent119?, - ?currency: String?, - ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - ?external_price_id: String?, - ?fixed_price_quantity: Float?, - ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?metadata: ::Hash[Symbol, String?]?, - ?reference_id: String?, - ?model_type: :minimum - ) -> void - - def to_hash: -> { - cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum::cadence, - item_id: String, - minimum_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::Minimum::MinimumConfig, - model_type: :minimum, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum::unnamed_type_withobject_parent119?, - currency: String?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String? - } - - type cadence = - :annual - | :semi_annual - | :monthly - | :quarterly - | :one_time - | :custom - - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL: :annual - SEMI_ANNUAL: :semi_annual - MONTHLY: :monthly - QUARTERLY: :quarterly - ONE_TIME: :one_time - CUSTOM: :custom - - def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::Minimum::cadence] - end - - type minimum_config = { minimum_amount: String, prorated: bool? } - - class MinimumConfig < Orb::Internal::Type::BaseModel - attr_accessor minimum_amount: String - - attr_accessor prorated: bool? - - def initialize: (minimum_amount: String, ?prorated: bool?) -> void - - def to_hash: -> { minimum_amount: String, prorated: bool? } - end - end - def self?.variants: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::price] end end diff --git a/sig/orb/models/subscription_price_intervals_params.rbs b/sig/orb/models/subscription_price_intervals_params.rbs index 8fc02ed3..ced88dec 100644 --- a/sig/orb/models/subscription_price_intervals_params.rbs +++ b/sig/orb/models/subscription_price_intervals_params.rbs @@ -245,7 +245,7 @@ module Orb | Orb::NewFloatingScalableMatrixWithTieredPricingPrice | Orb::NewFloatingCumulativeGroupedBulkPrice | Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds - | Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum + | Orb::NewFloatingMinimumCompositePrice module Price extend Orb::Internal::Type::Union @@ -262,7 +262,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent120?, + conversion_rate_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent114?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -292,7 +292,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent120? + attr_accessor conversion_rate_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent114? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -316,7 +316,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent120?, + ?conversion_rate_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent114?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -337,7 +337,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent120?, + conversion_rate_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent114?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -368,136 +368,6 @@ module Orb end end - type minimum = - { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum::cadence, - currency: String, - item_id: String, - minimum_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::MinimumConfig, - model_type: :minimum, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum::unnamed_type_withobject_parent121?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]? - } - - class Minimum < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum::cadence - - attr_accessor currency: String - - attr_accessor item_id: String - - attr_accessor minimum_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::MinimumConfig - - attr_accessor model_type: :minimum - - attr_accessor name: String - - attr_accessor billable_metric_id: String? - - attr_accessor billed_in_advance: bool? - - attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor conversion_rate: Float? - - attr_accessor conversion_rate_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum::unnamed_type_withobject_parent121? - - attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? - - attr_accessor external_price_id: String? - - attr_accessor fixed_price_quantity: Float? - - attr_accessor invoice_grouping_key: String? - - attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor metadata: ::Hash[Symbol, String?]? - - def initialize: ( - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum::cadence, - currency: String, - item_id: String, - minimum_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::MinimumConfig, - name: String, - ?billable_metric_id: String?, - ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum::unnamed_type_withobject_parent121?, - ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - ?external_price_id: String?, - ?fixed_price_quantity: Float?, - ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?metadata: ::Hash[Symbol, String?]?, - ?model_type: :minimum - ) -> void - - def to_hash: -> { - cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum::cadence, - currency: String, - item_id: String, - minimum_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::Minimum::MinimumConfig, - model_type: :minimum, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum::unnamed_type_withobject_parent121?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]? - } - - type cadence = - :annual - | :semi_annual - | :monthly - | :quarterly - | :one_time - | :custom - - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL: :annual - SEMI_ANNUAL: :semi_annual - MONTHLY: :monthly - QUARTERLY: :quarterly - ONE_TIME: :one_time - CUSTOM: :custom - - def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::Minimum::cadence] - end - - type minimum_config = { minimum_amount: String, prorated: bool? } - - class MinimumConfig < Orb::Internal::Type::BaseModel - attr_accessor minimum_amount: String - - attr_accessor prorated: bool? - - def initialize: (minimum_amount: String, ?prorated: bool?) -> void - - def to_hash: -> { minimum_amount: String, prorated: bool? } - end - end - def self?.variants: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::price] end end diff --git a/sig/orb/models/subscription_schedule_plan_change_params.rbs b/sig/orb/models/subscription_schedule_plan_change_params.rbs index f4f18a2c..e13560ea 100644 --- a/sig/orb/models/subscription_schedule_plan_change_params.rbs +++ b/sig/orb/models/subscription_schedule_plan_change_params.rbs @@ -293,7 +293,7 @@ module Orb | Orb::NewSubscriptionTieredPackageWithMinimumPrice | Orb::NewSubscriptionGroupedTieredPrice | Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds - | Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum + | Orb::NewSubscriptionMinimumCompositePrice module Price extend Orb::Internal::Type::Union @@ -309,7 +309,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent122?, + conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent115?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -339,7 +339,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent122? + attr_accessor conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent115? attr_accessor currency: String? @@ -366,7 +366,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent122?, + ?conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent115?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -388,7 +388,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent122?, + conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent115?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -421,141 +421,6 @@ module Orb end end - type minimum = - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::cadence, - item_id: String, - minimum_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::MinimumConfig, - model_type: :minimum, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::unnamed_type_withobject_parent123?, - currency: String?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String? - } - - class Minimum < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::cadence - - attr_accessor item_id: String - - attr_accessor minimum_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::MinimumConfig - - attr_accessor model_type: :minimum - - attr_accessor name: String - - attr_accessor billable_metric_id: String? - - attr_accessor billed_in_advance: bool? - - attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor conversion_rate: Float? - - attr_accessor conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::unnamed_type_withobject_parent123? - - attr_accessor currency: String? - - attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? - - attr_accessor external_price_id: String? - - attr_accessor fixed_price_quantity: Float? - - attr_accessor invoice_grouping_key: String? - - attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor metadata: ::Hash[Symbol, String?]? - - attr_accessor reference_id: String? - - def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::cadence, - item_id: String, - minimum_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::MinimumConfig, - name: String, - ?billable_metric_id: String?, - ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::unnamed_type_withobject_parent123?, - ?currency: String?, - ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - ?external_price_id: String?, - ?fixed_price_quantity: Float?, - ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?metadata: ::Hash[Symbol, String?]?, - ?reference_id: String?, - ?model_type: :minimum - ) -> void - - def to_hash: -> { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::cadence, - item_id: String, - minimum_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::MinimumConfig, - model_type: :minimum, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::unnamed_type_withobject_parent123?, - currency: String?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String? - } - - type cadence = - :annual - | :semi_annual - | :monthly - | :quarterly - | :one_time - | :custom - - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL: :annual - SEMI_ANNUAL: :semi_annual - MONTHLY: :monthly - QUARTERLY: :quarterly - ONE_TIME: :one_time - CUSTOM: :custom - - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Minimum::cadence] - end - - type minimum_config = { minimum_amount: String, prorated: bool? } - - class MinimumConfig < Orb::Internal::Type::BaseModel - attr_accessor minimum_amount: String - - attr_accessor prorated: bool? - - def initialize: (minimum_amount: String, ?prorated: bool?) -> void - - def to_hash: -> { minimum_amount: String, prorated: bool? } - end - end - def self?.variants: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::price] end end @@ -716,7 +581,7 @@ module Orb | Orb::NewSubscriptionTieredPackageWithMinimumPrice | Orb::NewSubscriptionGroupedTieredPrice | Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds - | Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum + | Orb::NewSubscriptionMinimumCompositePrice module Price extend Orb::Internal::Type::Union @@ -732,7 +597,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent124?, + conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent116?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -762,7 +627,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent124? + attr_accessor conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent116? attr_accessor currency: String? @@ -789,7 +654,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent124?, + ?conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent116?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -811,7 +676,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent124?, + conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent116?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -844,141 +709,6 @@ module Orb end end - type minimum = - { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::cadence, - item_id: String, - minimum_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::MinimumConfig, - model_type: :minimum, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::unnamed_type_withobject_parent125?, - currency: String?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String? - } - - class Minimum < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::cadence - - attr_accessor item_id: String - - attr_accessor minimum_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::MinimumConfig - - attr_accessor model_type: :minimum - - attr_accessor name: String - - attr_accessor billable_metric_id: String? - - attr_accessor billed_in_advance: bool? - - attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor conversion_rate: Float? - - attr_accessor conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::unnamed_type_withobject_parent125? - - attr_accessor currency: String? - - attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? - - attr_accessor external_price_id: String? - - attr_accessor fixed_price_quantity: Float? - - attr_accessor invoice_grouping_key: String? - - attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor metadata: ::Hash[Symbol, String?]? - - attr_accessor reference_id: String? - - def initialize: ( - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::cadence, - item_id: String, - minimum_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::MinimumConfig, - name: String, - ?billable_metric_id: String?, - ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::unnamed_type_withobject_parent125?, - ?currency: String?, - ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - ?external_price_id: String?, - ?fixed_price_quantity: Float?, - ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?metadata: ::Hash[Symbol, String?]?, - ?reference_id: String?, - ?model_type: :minimum - ) -> void - - def to_hash: -> { - cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::cadence, - item_id: String, - minimum_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::MinimumConfig, - model_type: :minimum, - name: String, - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::unnamed_type_withobject_parent125?, - currency: String?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String? - } - - type cadence = - :annual - | :semi_annual - | :monthly - | :quarterly - | :one_time - | :custom - - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL: :annual - SEMI_ANNUAL: :semi_annual - MONTHLY: :monthly - QUARTERLY: :quarterly - ONE_TIME: :one_time - CUSTOM: :custom - - def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::Minimum::cadence] - end - - type minimum_config = { minimum_amount: String, prorated: bool? } - - class MinimumConfig < Orb::Internal::Type::BaseModel - attr_accessor minimum_amount: String - - attr_accessor prorated: bool? - - def initialize: (minimum_amount: String, ?prorated: bool?) -> void - - def to_hash: -> { minimum_amount: String, prorated: bool? } - end - end - def self?.variants: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price] end end diff --git a/test/orb/resources/prices/external_price_id_test.rb b/test/orb/resources/prices/external_price_id_test.rb index 83991db4..f2d3db9f 100644 --- a/test/orb/resources/prices/external_price_id_test.rb +++ b/test/orb/resources/prices/external_price_id_test.rb @@ -52,7 +52,7 @@ def test_update cadence: Orb::Price::Unit::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent85 | nil, + conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent83 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -81,7 +81,7 @@ def test_update cadence: Orb::Price::Package::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent86 | nil, + conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent84 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -110,7 +110,7 @@ def test_update cadence: Orb::Price::Matrix::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent87 | nil, + conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent85 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -139,7 +139,7 @@ def test_update cadence: Orb::Price::Tiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent88 | nil, + conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent86 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -169,7 +169,7 @@ def test_update cadence: Orb::Price::Bulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent89 | nil, + conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent87 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -197,7 +197,7 @@ def test_update cadence: Orb::Price::ThresholdTotalAmount::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent90 | nil, + conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent88 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -226,7 +226,7 @@ def test_update cadence: Orb::Price::TieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent91 | nil, + conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent89 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -255,7 +255,7 @@ def test_update cadence: Orb::Price::GroupedTiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent92 | nil, + conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent90 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -284,7 +284,7 @@ def test_update cadence: Orb::Price::TieredWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent93 | nil, + conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent91 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -313,7 +313,7 @@ def test_update cadence: Orb::Price::TieredPackageWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent94 | nil, + conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent92 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -342,7 +342,7 @@ def test_update cadence: Orb::Price::PackageWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent95 | nil, + conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent93 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -371,7 +371,7 @@ def test_update cadence: Orb::Price::UnitWithPercent::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent96 | nil, + conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent94 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -400,7 +400,7 @@ def test_update cadence: Orb::Price::MatrixWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent97 | nil, + conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent95 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -429,7 +429,7 @@ def test_update cadence: Orb::Price::TieredWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent98 | nil, + conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent96 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -458,7 +458,7 @@ def test_update cadence: Orb::Price::UnitWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent99 | nil, + conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent97 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -487,7 +487,7 @@ def test_update cadence: Orb::Price::GroupedAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent100 | nil, + conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent98 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -516,7 +516,7 @@ def test_update cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent101 | nil, + conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent99 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -545,7 +545,7 @@ def test_update cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent102 | nil, + conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent100 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -574,7 +574,7 @@ def test_update cadence: Orb::Price::MatrixWithDisplayName::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent103 | nil, + conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent101 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -604,7 +604,7 @@ def test_update cadence: Orb::Price::BulkWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent104 | nil, + conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent102 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -632,7 +632,7 @@ def test_update cadence: Orb::Price::GroupedTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent105 | nil, + conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent103 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -661,7 +661,7 @@ def test_update cadence: Orb::Price::MaxGroupTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent106 | nil, + conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent104 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -690,7 +690,7 @@ def test_update cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent107 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent105 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -719,7 +719,7 @@ def test_update cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent108 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent106 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -748,7 +748,7 @@ def test_update cadence: Orb::Price::CumulativeGroupedBulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent109 | nil, + conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent107 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), @@ -777,7 +777,7 @@ def test_update cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent110 | nil, + conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent108 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -806,7 +806,7 @@ def test_update cadence: Orb::Price::Minimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Minimum::UnnamedTypeWithobjectParent111 | nil, + conversion_rate_config: Orb::Price::Minimum::UnnamedTypeWithobjectParent109 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -880,7 +880,7 @@ def test_fetch cadence: Orb::Price::Unit::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent85 | nil, + conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent83 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -909,7 +909,7 @@ def test_fetch cadence: Orb::Price::Package::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent86 | nil, + conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent84 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -938,7 +938,7 @@ def test_fetch cadence: Orb::Price::Matrix::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent87 | nil, + conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent85 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -967,7 +967,7 @@ def test_fetch cadence: Orb::Price::Tiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent88 | nil, + conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent86 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -997,7 +997,7 @@ def test_fetch cadence: Orb::Price::Bulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent89 | nil, + conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent87 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1025,7 +1025,7 @@ def test_fetch cadence: Orb::Price::ThresholdTotalAmount::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent90 | nil, + conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent88 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1054,7 +1054,7 @@ def test_fetch cadence: Orb::Price::TieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent91 | nil, + conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent89 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1083,7 +1083,7 @@ def test_fetch cadence: Orb::Price::GroupedTiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent92 | nil, + conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent90 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1112,7 +1112,7 @@ def test_fetch cadence: Orb::Price::TieredWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent93 | nil, + conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent91 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1141,7 +1141,7 @@ def test_fetch cadence: Orb::Price::TieredPackageWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent94 | nil, + conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent92 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1170,7 +1170,7 @@ def test_fetch cadence: Orb::Price::PackageWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent95 | nil, + conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent93 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1199,7 +1199,7 @@ def test_fetch cadence: Orb::Price::UnitWithPercent::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent96 | nil, + conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent94 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1228,7 +1228,7 @@ def test_fetch cadence: Orb::Price::MatrixWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent97 | nil, + conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent95 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1257,7 +1257,7 @@ def test_fetch cadence: Orb::Price::TieredWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent98 | nil, + conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent96 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1286,7 +1286,7 @@ def test_fetch cadence: Orb::Price::UnitWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent99 | nil, + conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent97 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1315,7 +1315,7 @@ def test_fetch cadence: Orb::Price::GroupedAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent100 | nil, + conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent98 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1344,7 +1344,7 @@ def test_fetch cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent101 | nil, + conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent99 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1373,7 +1373,7 @@ def test_fetch cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent102 | nil, + conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent100 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1402,7 +1402,7 @@ def test_fetch cadence: Orb::Price::MatrixWithDisplayName::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent103 | nil, + conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent101 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1432,7 +1432,7 @@ def test_fetch cadence: Orb::Price::BulkWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent104 | nil, + conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent102 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1460,7 +1460,7 @@ def test_fetch cadence: Orb::Price::GroupedTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent105 | nil, + conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent103 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1489,7 +1489,7 @@ def test_fetch cadence: Orb::Price::MaxGroupTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent106 | nil, + conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent104 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1518,7 +1518,7 @@ def test_fetch cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent107 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent105 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1547,7 +1547,7 @@ def test_fetch cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent108 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent106 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1576,7 +1576,7 @@ def test_fetch cadence: Orb::Price::CumulativeGroupedBulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent109 | nil, + conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent107 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), @@ -1605,7 +1605,7 @@ def test_fetch cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent110 | nil, + conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent108 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1634,7 +1634,7 @@ def test_fetch cadence: Orb::Price::Minimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Minimum::UnnamedTypeWithobjectParent111 | nil, + conversion_rate_config: Orb::Price::Minimum::UnnamedTypeWithobjectParent109 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, diff --git a/test/orb/resources/prices_test.rb b/test/orb/resources/prices_test.rb index 24109385..2635fc68 100644 --- a/test/orb/resources/prices_test.rb +++ b/test/orb/resources/prices_test.rb @@ -60,7 +60,7 @@ def test_create_required_params cadence: Orb::Price::Unit::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent85 | nil, + conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent83 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -89,7 +89,7 @@ def test_create_required_params cadence: Orb::Price::Package::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent86 | nil, + conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent84 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -118,7 +118,7 @@ def test_create_required_params cadence: Orb::Price::Matrix::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent87 | nil, + conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent85 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -147,7 +147,7 @@ def test_create_required_params cadence: Orb::Price::Tiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent88 | nil, + conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent86 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -177,7 +177,7 @@ def test_create_required_params cadence: Orb::Price::Bulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent89 | nil, + conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent87 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -205,7 +205,7 @@ def test_create_required_params cadence: Orb::Price::ThresholdTotalAmount::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent90 | nil, + conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent88 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -234,7 +234,7 @@ def test_create_required_params cadence: Orb::Price::TieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent91 | nil, + conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent89 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -263,7 +263,7 @@ def test_create_required_params cadence: Orb::Price::GroupedTiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent92 | nil, + conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent90 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -292,7 +292,7 @@ def test_create_required_params cadence: Orb::Price::TieredWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent93 | nil, + conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent91 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -321,7 +321,7 @@ def test_create_required_params cadence: Orb::Price::TieredPackageWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent94 | nil, + conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent92 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -350,7 +350,7 @@ def test_create_required_params cadence: Orb::Price::PackageWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent95 | nil, + conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent93 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -379,7 +379,7 @@ def test_create_required_params cadence: Orb::Price::UnitWithPercent::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent96 | nil, + conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent94 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -408,7 +408,7 @@ def test_create_required_params cadence: Orb::Price::MatrixWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent97 | nil, + conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent95 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -437,7 +437,7 @@ def test_create_required_params cadence: Orb::Price::TieredWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent98 | nil, + conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent96 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -466,7 +466,7 @@ def test_create_required_params cadence: Orb::Price::UnitWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent99 | nil, + conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent97 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -495,7 +495,7 @@ def test_create_required_params cadence: Orb::Price::GroupedAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent100 | nil, + conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent98 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -524,7 +524,7 @@ def test_create_required_params cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent101 | nil, + conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent99 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -553,7 +553,7 @@ def test_create_required_params cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent102 | nil, + conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent100 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -582,7 +582,7 @@ def test_create_required_params cadence: Orb::Price::MatrixWithDisplayName::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent103 | nil, + conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent101 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -612,7 +612,7 @@ def test_create_required_params cadence: Orb::Price::BulkWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent104 | nil, + conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent102 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -640,7 +640,7 @@ def test_create_required_params cadence: Orb::Price::GroupedTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent105 | nil, + conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent103 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -669,7 +669,7 @@ def test_create_required_params cadence: Orb::Price::MaxGroupTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent106 | nil, + conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent104 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -698,7 +698,7 @@ def test_create_required_params cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent107 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent105 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -727,7 +727,7 @@ def test_create_required_params cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent108 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent106 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -756,7 +756,7 @@ def test_create_required_params cadence: Orb::Price::CumulativeGroupedBulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent109 | nil, + conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent107 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), @@ -785,7 +785,7 @@ def test_create_required_params cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent110 | nil, + conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent108 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -814,7 +814,7 @@ def test_create_required_params cadence: Orb::Price::Minimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Minimum::UnnamedTypeWithobjectParent111 | nil, + conversion_rate_config: Orb::Price::Minimum::UnnamedTypeWithobjectParent109 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -888,7 +888,7 @@ def test_update cadence: Orb::Price::Unit::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent85 | nil, + conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent83 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -917,7 +917,7 @@ def test_update cadence: Orb::Price::Package::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent86 | nil, + conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent84 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -946,7 +946,7 @@ def test_update cadence: Orb::Price::Matrix::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent87 | nil, + conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent85 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -975,7 +975,7 @@ def test_update cadence: Orb::Price::Tiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent88 | nil, + conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent86 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1005,7 +1005,7 @@ def test_update cadence: Orb::Price::Bulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent89 | nil, + conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent87 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1033,7 +1033,7 @@ def test_update cadence: Orb::Price::ThresholdTotalAmount::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent90 | nil, + conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent88 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1062,7 +1062,7 @@ def test_update cadence: Orb::Price::TieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent91 | nil, + conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent89 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1091,7 +1091,7 @@ def test_update cadence: Orb::Price::GroupedTiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent92 | nil, + conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent90 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1120,7 +1120,7 @@ def test_update cadence: Orb::Price::TieredWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent93 | nil, + conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent91 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1149,7 +1149,7 @@ def test_update cadence: Orb::Price::TieredPackageWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent94 | nil, + conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent92 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1178,7 +1178,7 @@ def test_update cadence: Orb::Price::PackageWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent95 | nil, + conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent93 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1207,7 +1207,7 @@ def test_update cadence: Orb::Price::UnitWithPercent::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent96 | nil, + conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent94 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1236,7 +1236,7 @@ def test_update cadence: Orb::Price::MatrixWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent97 | nil, + conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent95 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1265,7 +1265,7 @@ def test_update cadence: Orb::Price::TieredWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent98 | nil, + conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent96 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1294,7 +1294,7 @@ def test_update cadence: Orb::Price::UnitWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent99 | nil, + conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent97 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1323,7 +1323,7 @@ def test_update cadence: Orb::Price::GroupedAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent100 | nil, + conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent98 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1352,7 +1352,7 @@ def test_update cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent101 | nil, + conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent99 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1381,7 +1381,7 @@ def test_update cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent102 | nil, + conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent100 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1410,7 +1410,7 @@ def test_update cadence: Orb::Price::MatrixWithDisplayName::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent103 | nil, + conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent101 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1440,7 +1440,7 @@ def test_update cadence: Orb::Price::BulkWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent104 | nil, + conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent102 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1468,7 +1468,7 @@ def test_update cadence: Orb::Price::GroupedTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent105 | nil, + conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent103 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1497,7 +1497,7 @@ def test_update cadence: Orb::Price::MaxGroupTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent106 | nil, + conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent104 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1526,7 +1526,7 @@ def test_update cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent107 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent105 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1555,7 +1555,7 @@ def test_update cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent108 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent106 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1584,7 +1584,7 @@ def test_update cadence: Orb::Price::CumulativeGroupedBulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent109 | nil, + conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent107 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), @@ -1613,7 +1613,7 @@ def test_update cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent110 | nil, + conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent108 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1642,7 +1642,7 @@ def test_update cadence: Orb::Price::Minimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Minimum::UnnamedTypeWithobjectParent111 | nil, + conversion_rate_config: Orb::Price::Minimum::UnnamedTypeWithobjectParent109 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1723,7 +1723,7 @@ def test_list cadence: Orb::Price::Unit::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent85 | nil, + conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent83 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1752,7 +1752,7 @@ def test_list cadence: Orb::Price::Package::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent86 | nil, + conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent84 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1781,7 +1781,7 @@ def test_list cadence: Orb::Price::Matrix::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent87 | nil, + conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent85 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1810,7 +1810,7 @@ def test_list cadence: Orb::Price::Tiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent88 | nil, + conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent86 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1840,7 +1840,7 @@ def test_list cadence: Orb::Price::Bulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent89 | nil, + conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent87 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1868,7 +1868,7 @@ def test_list cadence: Orb::Price::ThresholdTotalAmount::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent90 | nil, + conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent88 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1897,7 +1897,7 @@ def test_list cadence: Orb::Price::TieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent91 | nil, + conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent89 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1926,7 +1926,7 @@ def test_list cadence: Orb::Price::GroupedTiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent92 | nil, + conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent90 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1955,7 +1955,7 @@ def test_list cadence: Orb::Price::TieredWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent93 | nil, + conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent91 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1984,7 +1984,7 @@ def test_list cadence: Orb::Price::TieredPackageWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent94 | nil, + conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent92 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2013,7 +2013,7 @@ def test_list cadence: Orb::Price::PackageWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent95 | nil, + conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent93 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2042,7 +2042,7 @@ def test_list cadence: Orb::Price::UnitWithPercent::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent96 | nil, + conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent94 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2071,7 +2071,7 @@ def test_list cadence: Orb::Price::MatrixWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent97 | nil, + conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent95 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2100,7 +2100,7 @@ def test_list cadence: Orb::Price::TieredWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent98 | nil, + conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent96 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2129,7 +2129,7 @@ def test_list cadence: Orb::Price::UnitWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent99 | nil, + conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent97 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2158,7 +2158,7 @@ def test_list cadence: Orb::Price::GroupedAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent100 | nil, + conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent98 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2187,7 +2187,7 @@ def test_list cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent101 | nil, + conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent99 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2216,7 +2216,7 @@ def test_list cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent102 | nil, + conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent100 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2245,7 +2245,7 @@ def test_list cadence: Orb::Price::MatrixWithDisplayName::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent103 | nil, + conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent101 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2275,7 +2275,7 @@ def test_list cadence: Orb::Price::BulkWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent104 | nil, + conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent102 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2303,7 +2303,7 @@ def test_list cadence: Orb::Price::GroupedTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent105 | nil, + conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent103 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2332,7 +2332,7 @@ def test_list cadence: Orb::Price::MaxGroupTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent106 | nil, + conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent104 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2361,7 +2361,7 @@ def test_list cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent107 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent105 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2390,7 +2390,7 @@ def test_list cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent108 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent106 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2419,7 +2419,7 @@ def test_list cadence: Orb::Price::CumulativeGroupedBulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent109 | nil, + conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent107 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), @@ -2448,7 +2448,7 @@ def test_list cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent110 | nil, + conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent108 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2477,7 +2477,7 @@ def test_list cadence: Orb::Price::Minimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Minimum::UnnamedTypeWithobjectParent111 | nil, + conversion_rate_config: Orb::Price::Minimum::UnnamedTypeWithobjectParent109 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2606,7 +2606,7 @@ def test_fetch cadence: Orb::Price::Unit::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent85 | nil, + conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent83 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2635,7 +2635,7 @@ def test_fetch cadence: Orb::Price::Package::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent86 | nil, + conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent84 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2664,7 +2664,7 @@ def test_fetch cadence: Orb::Price::Matrix::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent87 | nil, + conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent85 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2693,7 +2693,7 @@ def test_fetch cadence: Orb::Price::Tiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent88 | nil, + conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent86 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2723,7 +2723,7 @@ def test_fetch cadence: Orb::Price::Bulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent89 | nil, + conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent87 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2751,7 +2751,7 @@ def test_fetch cadence: Orb::Price::ThresholdTotalAmount::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent90 | nil, + conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent88 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2780,7 +2780,7 @@ def test_fetch cadence: Orb::Price::TieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent91 | nil, + conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent89 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2809,7 +2809,7 @@ def test_fetch cadence: Orb::Price::GroupedTiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent92 | nil, + conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent90 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2838,7 +2838,7 @@ def test_fetch cadence: Orb::Price::TieredWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent93 | nil, + conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent91 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2867,7 +2867,7 @@ def test_fetch cadence: Orb::Price::TieredPackageWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent94 | nil, + conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent92 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2896,7 +2896,7 @@ def test_fetch cadence: Orb::Price::PackageWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent95 | nil, + conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent93 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2925,7 +2925,7 @@ def test_fetch cadence: Orb::Price::UnitWithPercent::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent96 | nil, + conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent94 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2954,7 +2954,7 @@ def test_fetch cadence: Orb::Price::MatrixWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent97 | nil, + conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent95 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2983,7 +2983,7 @@ def test_fetch cadence: Orb::Price::TieredWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent98 | nil, + conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent96 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3012,7 +3012,7 @@ def test_fetch cadence: Orb::Price::UnitWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent99 | nil, + conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent97 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3041,7 +3041,7 @@ def test_fetch cadence: Orb::Price::GroupedAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent100 | nil, + conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent98 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3070,7 +3070,7 @@ def test_fetch cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent101 | nil, + conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent99 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3099,7 +3099,7 @@ def test_fetch cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent102 | nil, + conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent100 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3128,7 +3128,7 @@ def test_fetch cadence: Orb::Price::MatrixWithDisplayName::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent103 | nil, + conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent101 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3158,7 +3158,7 @@ def test_fetch cadence: Orb::Price::BulkWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent104 | nil, + conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent102 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3186,7 +3186,7 @@ def test_fetch cadence: Orb::Price::GroupedTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent105 | nil, + conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent103 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3215,7 +3215,7 @@ def test_fetch cadence: Orb::Price::MaxGroupTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent106 | nil, + conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent104 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3244,7 +3244,7 @@ def test_fetch cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent107 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent105 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3273,7 +3273,7 @@ def test_fetch cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent108 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent106 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3302,7 +3302,7 @@ def test_fetch cadence: Orb::Price::CumulativeGroupedBulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent109 | nil, + conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent107 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), @@ -3331,7 +3331,7 @@ def test_fetch cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent110 | nil, + conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent108 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3360,7 +3360,7 @@ def test_fetch cadence: Orb::Price::Minimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Minimum::UnnamedTypeWithobjectParent111 | nil, + conversion_rate_config: Orb::Price::Minimum::UnnamedTypeWithobjectParent109 | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, From d7dd0b8380fd9ec066388c3327ed16fdba9f7fa6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 3 Sep 2025 20:27:30 +0000 Subject: [PATCH 04/24] chore(internal): codegen related update --- ...rnal_plan_id_create_plan_version_params.rb | 4 +- .../models/beta_create_plan_version_params.rb | 4 +- lib/orb/models/new_floating_bulk_price.rb | 2 +- .../new_floating_bulk_with_proration_price.rb | 2 +- ..._floating_cumulative_grouped_bulk_price.rb | 2 +- .../new_floating_grouped_allocation_price.rb | 2 +- ...w_floating_grouped_tiered_package_price.rb | 2 +- .../new_floating_grouped_tiered_price.rb | 2 +- ...ting_grouped_with_metered_minimum_price.rb | 2 +- ...ing_grouped_with_prorated_minimum_price.rb | 2 +- lib/orb/models/new_floating_matrix_price.rb | 2 +- ...w_floating_matrix_with_allocation_price.rb | 2 +- ...floating_matrix_with_display_name_price.rb | 2 +- ...floating_max_group_tiered_package_price.rb | 2 +- .../new_floating_minimum_composite_price.rb | 2 +- lib/orb/models/new_floating_package_price.rb | 2 +- ..._floating_package_with_allocation_price.rb | 2 +- ...alable_matrix_with_tiered_pricing_price.rb | 4 +- ...scalable_matrix_with_unit_pricing_price.rb | 4 +- ...w_floating_threshold_total_amount_price.rb | 2 +- .../new_floating_tiered_package_price.rb | 2 +- ...ating_tiered_package_with_minimum_price.rb | 2 +- lib/orb/models/new_floating_tiered_price.rb | 2 +- .../new_floating_tiered_with_minimum_price.rb | 2 +- ...ew_floating_tiered_with_proration_price.rb | 2 +- lib/orb/models/new_floating_unit_price.rb | 2 +- .../new_floating_unit_with_percent_price.rb | 2 +- .../new_floating_unit_with_proration_price.rb | 2 +- lib/orb/models/new_plan_bulk_price.rb | 4 +- .../new_plan_bulk_with_proration_price.rb | 2 +- .../new_plan_cumulative_grouped_bulk_price.rb | 2 +- .../new_plan_grouped_allocation_price.rb | 2 +- .../new_plan_grouped_tiered_package_price.rb | 2 +- .../models/new_plan_grouped_tiered_price.rb | 2 +- ...plan_grouped_with_metered_minimum_price.rb | 2 +- ...lan_grouped_with_prorated_minimum_price.rb | 2 +- lib/orb/models/new_plan_matrix_price.rb | 4 +- .../new_plan_matrix_with_allocation_price.rb | 2 +- ...new_plan_matrix_with_display_name_price.rb | 2 +- ...new_plan_max_group_tiered_package_price.rb | 2 +- .../new_plan_minimum_composite_price.rb | 2 +- lib/orb/models/new_plan_package_price.rb | 4 +- .../new_plan_package_with_allocation_price.rb | 2 +- ...alable_matrix_with_tiered_pricing_price.rb | 2 +- ...scalable_matrix_with_unit_pricing_price.rb | 2 +- .../new_plan_threshold_total_amount_price.rb | 2 +- .../new_plan_tier_with_proration_price.rb | 2 +- .../models/new_plan_tiered_package_price.rb | 2 +- ..._plan_tiered_package_with_minimum_price.rb | 2 +- lib/orb/models/new_plan_tiered_price.rb | 4 +- .../new_plan_tiered_with_minimum_price.rb | 2 +- lib/orb/models/new_plan_unit_price.rb | 4 +- .../new_plan_unit_with_percent_price.rb | 2 +- .../new_plan_unit_with_proration_price.rb | 2 +- lib/orb/models/new_subscription_bulk_price.rb | 2 +- ..._subscription_bulk_with_proration_price.rb | 2 +- ...scription_cumulative_grouped_bulk_price.rb | 2 +- ...w_subscription_grouped_allocation_price.rb | 2 +- ...bscription_grouped_tiered_package_price.rb | 2 +- .../new_subscription_grouped_tiered_price.rb | 2 +- ...tion_grouped_with_metered_minimum_price.rb | 4 +- ...ion_grouped_with_prorated_minimum_price.rb | 4 +- .../models/new_subscription_matrix_price.rb | 2 +- ...bscription_matrix_with_allocation_price.rb | 2 +- ...cription_matrix_with_display_name_price.rb | 2 +- ...cription_max_group_tiered_package_price.rb | 2 +- ...ew_subscription_minimum_composite_price.rb | 2 +- .../models/new_subscription_package_price.rb | 2 +- ...scription_package_with_allocation_price.rb | 2 +- ...alable_matrix_with_tiered_pricing_price.rb | 4 +- ...scalable_matrix_with_unit_pricing_price.rb | 4 +- ...bscription_threshold_total_amount_price.rb | 2 +- ..._subscription_tier_with_proration_price.rb | 2 +- .../new_subscription_tiered_package_price.rb | 2 +- ...ption_tiered_package_with_minimum_price.rb | 2 +- .../models/new_subscription_tiered_price.rb | 2 +- ..._subscription_tiered_with_minimum_price.rb | 2 +- lib/orb/models/new_subscription_unit_price.rb | 2 +- ...ew_subscription_unit_with_percent_price.rb | 2 +- ..._subscription_unit_with_proration_price.rb | 2 +- lib/orb/models/plan_create_params.rb | 2 +- lib/orb/models/price.rb | 66 +++--- .../models/price_evaluate_multiple_params.rb | 2 +- .../price_evaluate_preview_events_params.rb | 2 +- lib/orb/models/subscription_create_params.rb | 4 +- .../subscription_price_intervals_params.rb | 2 +- ...ubscription_schedule_plan_change_params.rb | 4 +- rbi/orb/models/price.rbi | 140 +++++------- ...nal_plan_id_create_plan_version_params.rbs | 16 +- .../beta_create_plan_version_params.rbs | 16 +- sig/orb/models/new_floating_bulk_price.rbs | 8 +- ...new_floating_bulk_with_proration_price.rbs | 8 +- ...floating_cumulative_grouped_bulk_price.rbs | 8 +- .../new_floating_grouped_allocation_price.rbs | 8 +- ..._floating_grouped_tiered_package_price.rbs | 8 +- .../new_floating_grouped_tiered_price.rbs | 8 +- ...ing_grouped_with_metered_minimum_price.rbs | 8 +- ...ng_grouped_with_prorated_minimum_price.rbs | 8 +- sig/orb/models/new_floating_matrix_price.rbs | 8 +- ..._floating_matrix_with_allocation_price.rbs | 8 +- ...loating_matrix_with_display_name_price.rbs | 8 +- ...loating_max_group_tiered_package_price.rbs | 8 +- .../new_floating_minimum_composite_price.rbs | 8 +- sig/orb/models/new_floating_package_price.rbs | 8 +- ...floating_package_with_allocation_price.rbs | 8 +- ...lable_matrix_with_tiered_pricing_price.rbs | 8 +- ...calable_matrix_with_unit_pricing_price.rbs | 8 +- ..._floating_threshold_total_amount_price.rbs | 8 +- .../new_floating_tiered_package_price.rbs | 8 +- ...ting_tiered_package_with_minimum_price.rbs | 8 +- sig/orb/models/new_floating_tiered_price.rbs | 8 +- ...new_floating_tiered_with_minimum_price.rbs | 8 +- ...w_floating_tiered_with_proration_price.rbs | 8 +- sig/orb/models/new_floating_unit_price.rbs | 8 +- .../new_floating_unit_with_percent_price.rbs | 8 +- ...new_floating_unit_with_proration_price.rbs | 8 +- sig/orb/models/new_plan_bulk_price.rbs | 8 +- .../new_plan_bulk_with_proration_price.rbs | 8 +- ...new_plan_cumulative_grouped_bulk_price.rbs | 8 +- .../new_plan_grouped_allocation_price.rbs | 8 +- .../new_plan_grouped_tiered_package_price.rbs | 8 +- .../models/new_plan_grouped_tiered_price.rbs | 8 +- ...lan_grouped_with_metered_minimum_price.rbs | 8 +- ...an_grouped_with_prorated_minimum_price.rbs | 8 +- sig/orb/models/new_plan_matrix_price.rbs | 8 +- .../new_plan_matrix_with_allocation_price.rbs | 8 +- ...ew_plan_matrix_with_display_name_price.rbs | 8 +- ...ew_plan_max_group_tiered_package_price.rbs | 8 +- .../new_plan_minimum_composite_price.rbs | 8 +- sig/orb/models/new_plan_package_price.rbs | 8 +- ...new_plan_package_with_allocation_price.rbs | 8 +- ...lable_matrix_with_tiered_pricing_price.rbs | 8 +- ...calable_matrix_with_unit_pricing_price.rbs | 8 +- .../new_plan_threshold_total_amount_price.rbs | 8 +- .../new_plan_tier_with_proration_price.rbs | 8 +- .../models/new_plan_tiered_package_price.rbs | 8 +- ...plan_tiered_package_with_minimum_price.rbs | 8 +- sig/orb/models/new_plan_tiered_price.rbs | 8 +- .../new_plan_tiered_with_minimum_price.rbs | 8 +- sig/orb/models/new_plan_unit_price.rbs | 8 +- .../new_plan_unit_with_percent_price.rbs | 8 +- .../new_plan_unit_with_proration_price.rbs | 8 +- .../models/new_subscription_bulk_price.rbs | 8 +- ...subscription_bulk_with_proration_price.rbs | 8 +- ...cription_cumulative_grouped_bulk_price.rbs | 8 +- ..._subscription_grouped_allocation_price.rbs | 8 +- ...scription_grouped_tiered_package_price.rbs | 8 +- .../new_subscription_grouped_tiered_price.rbs | 8 +- ...ion_grouped_with_metered_minimum_price.rbs | 8 +- ...on_grouped_with_prorated_minimum_price.rbs | 8 +- .../models/new_subscription_matrix_price.rbs | 8 +- ...scription_matrix_with_allocation_price.rbs | 8 +- ...ription_matrix_with_display_name_price.rbs | 8 +- ...ription_max_group_tiered_package_price.rbs | 8 +- ...w_subscription_minimum_composite_price.rbs | 8 +- .../models/new_subscription_package_price.rbs | 8 +- ...cription_package_with_allocation_price.rbs | 8 +- ...lable_matrix_with_tiered_pricing_price.rbs | 8 +- ...calable_matrix_with_unit_pricing_price.rbs | 8 +- ...scription_threshold_total_amount_price.rbs | 8 +- ...subscription_tier_with_proration_price.rbs | 8 +- .../new_subscription_tiered_package_price.rbs | 8 +- ...tion_tiered_package_with_minimum_price.rbs | 8 +- .../models/new_subscription_tiered_price.rbs | 8 +- ...subscription_tiered_with_minimum_price.rbs | 8 +- .../models/new_subscription_unit_price.rbs | 8 +- ...w_subscription_unit_with_percent_price.rbs | 8 +- ...subscription_unit_with_proration_price.rbs | 8 +- sig/orb/models/plan_create_params.rbs | 8 +- sig/orb/models/price.rbs | 216 +++++++++--------- .../models/price_evaluate_multiple_params.rbs | 8 +- .../price_evaluate_preview_events_params.rbs | 8 +- sig/orb/models/subscription_create_params.rbs | 16 +- .../subscription_price_intervals_params.rbs | 8 +- ...bscription_schedule_plan_change_params.rbs | 16 +- .../prices/external_price_id_test.rb | 108 ++++----- test/orb/resources/prices_test.rb | 216 +++++++++--------- 177 files changed, 807 insertions(+), 861 deletions(-) diff --git a/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb b/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb index 383f71be..0bb7437a 100644 --- a/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb +++ b/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb @@ -296,7 +296,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, union: -> { - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent0 + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::ConversionRateConfig }, nil?: true @@ -673,7 +673,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, union: -> { - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent1 + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::ConversionRateConfig }, nil?: true diff --git a/lib/orb/models/beta_create_plan_version_params.rb b/lib/orb/models/beta_create_plan_version_params.rb index 2f9f14a4..ac8443f9 100644 --- a/lib/orb/models/beta_create_plan_version_params.rb +++ b/lib/orb/models/beta_create_plan_version_params.rb @@ -280,7 +280,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, union: -> { - Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent2 + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::ConversionRateConfig }, nil?: true @@ -654,7 +654,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, union: -> { - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent3 + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::ConversionRateConfig }, nil?: true diff --git a/lib/orb/models/new_floating_bulk_price.rb b/lib/orb/models/new_floating_bulk_price.rb index 82c89cc2..a5659c0c 100644 --- a/lib/orb/models/new_floating_bulk_price.rb +++ b/lib/orb/models/new_floating_bulk_price.rb @@ -69,7 +69,7 @@ class NewFloatingBulkPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingBulkPrice::UnnamedTypeWithobjectParent4 }, + union: -> { Orb::NewFloatingBulkPrice::ConversionRateConfig }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_bulk_with_proration_price.rb b/lib/orb/models/new_floating_bulk_with_proration_price.rb index 5fc14491..bcf55d55 100644 --- a/lib/orb/models/new_floating_bulk_with_proration_price.rb +++ b/lib/orb/models/new_floating_bulk_with_proration_price.rb @@ -69,7 +69,7 @@ class NewFloatingBulkWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingBulkWithProrationPrice::UnnamedTypeWithobjectParent5 }, + union: -> { Orb::NewFloatingBulkWithProrationPrice::ConversionRateConfig }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_cumulative_grouped_bulk_price.rb b/lib/orb/models/new_floating_cumulative_grouped_bulk_price.rb index 190b6294..008fd85e 100644 --- a/lib/orb/models/new_floating_cumulative_grouped_bulk_price.rb +++ b/lib/orb/models/new_floating_cumulative_grouped_bulk_price.rb @@ -69,7 +69,7 @@ class NewFloatingCumulativeGroupedBulkPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingCumulativeGroupedBulkPrice::UnnamedTypeWithobjectParent6 }, + union: -> { Orb::NewFloatingCumulativeGroupedBulkPrice::ConversionRateConfig }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_grouped_allocation_price.rb b/lib/orb/models/new_floating_grouped_allocation_price.rb index e92d7373..6ecb2356 100644 --- a/lib/orb/models/new_floating_grouped_allocation_price.rb +++ b/lib/orb/models/new_floating_grouped_allocation_price.rb @@ -69,7 +69,7 @@ class NewFloatingGroupedAllocationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingGroupedAllocationPrice::UnnamedTypeWithobjectParent7 }, + union: -> { Orb::NewFloatingGroupedAllocationPrice::ConversionRateConfig }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_grouped_tiered_package_price.rb b/lib/orb/models/new_floating_grouped_tiered_package_price.rb index 6e532abd..2596b8fc 100644 --- a/lib/orb/models/new_floating_grouped_tiered_package_price.rb +++ b/lib/orb/models/new_floating_grouped_tiered_package_price.rb @@ -69,7 +69,7 @@ class NewFloatingGroupedTieredPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingGroupedTieredPackagePrice::UnnamedTypeWithobjectParent8 }, + union: -> { Orb::NewFloatingGroupedTieredPackagePrice::ConversionRateConfig }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_grouped_tiered_price.rb b/lib/orb/models/new_floating_grouped_tiered_price.rb index 0abfdcfe..cccce7b2 100644 --- a/lib/orb/models/new_floating_grouped_tiered_price.rb +++ b/lib/orb/models/new_floating_grouped_tiered_price.rb @@ -69,7 +69,7 @@ class NewFloatingGroupedTieredPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingGroupedTieredPrice::UnnamedTypeWithobjectParent9 }, + union: -> { Orb::NewFloatingGroupedTieredPrice::ConversionRateConfig }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb b/lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb index 1d205edd..8e70ccee 100644 --- a/lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb +++ b/lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb @@ -69,7 +69,7 @@ class NewFloatingGroupedWithMeteredMinimumPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingGroupedWithMeteredMinimumPrice::UnnamedTypeWithobjectParent10 }, + union: -> { Orb::NewFloatingGroupedWithMeteredMinimumPrice::ConversionRateConfig }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_grouped_with_prorated_minimum_price.rb b/lib/orb/models/new_floating_grouped_with_prorated_minimum_price.rb index 001aadb5..f6224afd 100644 --- a/lib/orb/models/new_floating_grouped_with_prorated_minimum_price.rb +++ b/lib/orb/models/new_floating_grouped_with_prorated_minimum_price.rb @@ -69,7 +69,7 @@ class NewFloatingGroupedWithProratedMinimumPrice < Orb::Internal::Type::BaseMode # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingGroupedWithProratedMinimumPrice::UnnamedTypeWithobjectParent11 }, + union: -> { Orb::NewFloatingGroupedWithProratedMinimumPrice::ConversionRateConfig }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_matrix_price.rb b/lib/orb/models/new_floating_matrix_price.rb index 3f600507..e616fbf5 100644 --- a/lib/orb/models/new_floating_matrix_price.rb +++ b/lib/orb/models/new_floating_matrix_price.rb @@ -69,7 +69,7 @@ class NewFloatingMatrixPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingMatrixPrice::UnnamedTypeWithobjectParent12 }, + union: -> { Orb::NewFloatingMatrixPrice::ConversionRateConfig }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_matrix_with_allocation_price.rb b/lib/orb/models/new_floating_matrix_with_allocation_price.rb index 1784ff24..b27867cb 100644 --- a/lib/orb/models/new_floating_matrix_with_allocation_price.rb +++ b/lib/orb/models/new_floating_matrix_with_allocation_price.rb @@ -69,7 +69,7 @@ class NewFloatingMatrixWithAllocationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingMatrixWithAllocationPrice::UnnamedTypeWithobjectParent13 }, + union: -> { Orb::NewFloatingMatrixWithAllocationPrice::ConversionRateConfig }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_matrix_with_display_name_price.rb b/lib/orb/models/new_floating_matrix_with_display_name_price.rb index 5ee17c37..6bc58f8f 100644 --- a/lib/orb/models/new_floating_matrix_with_display_name_price.rb +++ b/lib/orb/models/new_floating_matrix_with_display_name_price.rb @@ -69,7 +69,7 @@ class NewFloatingMatrixWithDisplayNamePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingMatrixWithDisplayNamePrice::UnnamedTypeWithobjectParent14 }, + union: -> { Orb::NewFloatingMatrixWithDisplayNamePrice::ConversionRateConfig }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_max_group_tiered_package_price.rb b/lib/orb/models/new_floating_max_group_tiered_package_price.rb index 75c5abb5..90014885 100644 --- a/lib/orb/models/new_floating_max_group_tiered_package_price.rb +++ b/lib/orb/models/new_floating_max_group_tiered_package_price.rb @@ -69,7 +69,7 @@ class NewFloatingMaxGroupTieredPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingMaxGroupTieredPackagePrice::UnnamedTypeWithobjectParent15 }, + union: -> { Orb::NewFloatingMaxGroupTieredPackagePrice::ConversionRateConfig }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_minimum_composite_price.rb b/lib/orb/models/new_floating_minimum_composite_price.rb index 085468e3..3ad618c3 100644 --- a/lib/orb/models/new_floating_minimum_composite_price.rb +++ b/lib/orb/models/new_floating_minimum_composite_price.rb @@ -69,7 +69,7 @@ class NewFloatingMinimumCompositePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingMinimumCompositePrice::UnnamedTypeWithobjectParent16 }, + union: -> { Orb::NewFloatingMinimumCompositePrice::ConversionRateConfig }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_package_price.rb b/lib/orb/models/new_floating_package_price.rb index 5b447c7f..8a1a583c 100644 --- a/lib/orb/models/new_floating_package_price.rb +++ b/lib/orb/models/new_floating_package_price.rb @@ -69,7 +69,7 @@ class NewFloatingPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingPackagePrice::UnnamedTypeWithobjectParent17 }, + union: -> { Orb::NewFloatingPackagePrice::ConversionRateConfig }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_package_with_allocation_price.rb b/lib/orb/models/new_floating_package_with_allocation_price.rb index c1bb9873..8841b9c8 100644 --- a/lib/orb/models/new_floating_package_with_allocation_price.rb +++ b/lib/orb/models/new_floating_package_with_allocation_price.rb @@ -69,7 +69,7 @@ class NewFloatingPackageWithAllocationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingPackageWithAllocationPrice::UnnamedTypeWithobjectParent18 }, + union: -> { Orb::NewFloatingPackageWithAllocationPrice::ConversionRateConfig }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rb b/lib/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rb index 4a1a5535..87d876a7 100644 --- a/lib/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rb +++ b/lib/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rb @@ -70,9 +70,7 @@ class NewFloatingScalableMatrixWithTieredPricingPrice < Orb::Internal::Type::Bas # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { - Orb::NewFloatingScalableMatrixWithTieredPricingPrice::UnnamedTypeWithobjectParent19 - }, + union: -> { Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ConversionRateConfig }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb b/lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb index 80ef8cf5..a68981ba 100644 --- a/lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb +++ b/lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb @@ -70,9 +70,7 @@ class NewFloatingScalableMatrixWithUnitPricingPrice < Orb::Internal::Type::BaseM # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { - Orb::NewFloatingScalableMatrixWithUnitPricingPrice::UnnamedTypeWithobjectParent20 - }, + union: -> { Orb::NewFloatingScalableMatrixWithUnitPricingPrice::ConversionRateConfig }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_threshold_total_amount_price.rb b/lib/orb/models/new_floating_threshold_total_amount_price.rb index e3a97dbe..1ac74175 100644 --- a/lib/orb/models/new_floating_threshold_total_amount_price.rb +++ b/lib/orb/models/new_floating_threshold_total_amount_price.rb @@ -69,7 +69,7 @@ class NewFloatingThresholdTotalAmountPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingThresholdTotalAmountPrice::UnnamedTypeWithobjectParent21 }, + union: -> { Orb::NewFloatingThresholdTotalAmountPrice::ConversionRateConfig }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_tiered_package_price.rb b/lib/orb/models/new_floating_tiered_package_price.rb index 5c6c47d6..4d390a0a 100644 --- a/lib/orb/models/new_floating_tiered_package_price.rb +++ b/lib/orb/models/new_floating_tiered_package_price.rb @@ -69,7 +69,7 @@ class NewFloatingTieredPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingTieredPackagePrice::UnnamedTypeWithobjectParent22 }, + union: -> { Orb::NewFloatingTieredPackagePrice::ConversionRateConfig }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_tiered_package_with_minimum_price.rb b/lib/orb/models/new_floating_tiered_package_with_minimum_price.rb index 15fc9591..a7b80672 100644 --- a/lib/orb/models/new_floating_tiered_package_with_minimum_price.rb +++ b/lib/orb/models/new_floating_tiered_package_with_minimum_price.rb @@ -69,7 +69,7 @@ class NewFloatingTieredPackageWithMinimumPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingTieredPackageWithMinimumPrice::UnnamedTypeWithobjectParent23 }, + union: -> { Orb::NewFloatingTieredPackageWithMinimumPrice::ConversionRateConfig }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_tiered_price.rb b/lib/orb/models/new_floating_tiered_price.rb index e3fa7b75..be9ed0ec 100644 --- a/lib/orb/models/new_floating_tiered_price.rb +++ b/lib/orb/models/new_floating_tiered_price.rb @@ -69,7 +69,7 @@ class NewFloatingTieredPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingTieredPrice::UnnamedTypeWithobjectParent24 }, + union: -> { Orb::NewFloatingTieredPrice::ConversionRateConfig }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_tiered_with_minimum_price.rb b/lib/orb/models/new_floating_tiered_with_minimum_price.rb index 6c0e88ef..1f30b5ef 100644 --- a/lib/orb/models/new_floating_tiered_with_minimum_price.rb +++ b/lib/orb/models/new_floating_tiered_with_minimum_price.rb @@ -69,7 +69,7 @@ class NewFloatingTieredWithMinimumPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingTieredWithMinimumPrice::UnnamedTypeWithobjectParent25 }, + union: -> { Orb::NewFloatingTieredWithMinimumPrice::ConversionRateConfig }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_tiered_with_proration_price.rb b/lib/orb/models/new_floating_tiered_with_proration_price.rb index 1b5e4908..69e4e108 100644 --- a/lib/orb/models/new_floating_tiered_with_proration_price.rb +++ b/lib/orb/models/new_floating_tiered_with_proration_price.rb @@ -69,7 +69,7 @@ class NewFloatingTieredWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingTieredWithProrationPrice::UnnamedTypeWithobjectParent26 }, + union: -> { Orb::NewFloatingTieredWithProrationPrice::ConversionRateConfig }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_unit_price.rb b/lib/orb/models/new_floating_unit_price.rb index d1a4dd3e..bc183afb 100644 --- a/lib/orb/models/new_floating_unit_price.rb +++ b/lib/orb/models/new_floating_unit_price.rb @@ -69,7 +69,7 @@ class NewFloatingUnitPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingUnitPrice::UnnamedTypeWithobjectParent27 }, + union: -> { Orb::NewFloatingUnitPrice::ConversionRateConfig }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_unit_with_percent_price.rb b/lib/orb/models/new_floating_unit_with_percent_price.rb index 109d65d1..e4daef9e 100644 --- a/lib/orb/models/new_floating_unit_with_percent_price.rb +++ b/lib/orb/models/new_floating_unit_with_percent_price.rb @@ -69,7 +69,7 @@ class NewFloatingUnitWithPercentPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingUnitWithPercentPrice::UnnamedTypeWithobjectParent28 }, + union: -> { Orb::NewFloatingUnitWithPercentPrice::ConversionRateConfig }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_floating_unit_with_proration_price.rb b/lib/orb/models/new_floating_unit_with_proration_price.rb index e02f2159..c0365b93 100644 --- a/lib/orb/models/new_floating_unit_with_proration_price.rb +++ b/lib/orb/models/new_floating_unit_with_proration_price.rb @@ -69,7 +69,7 @@ class NewFloatingUnitWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewFloatingUnitWithProrationPrice::UnnamedTypeWithobjectParent29 }, + union: -> { Orb::NewFloatingUnitWithProrationPrice::ConversionRateConfig }, nil?: true # @!attribute dimensional_price_configuration diff --git a/lib/orb/models/new_plan_bulk_price.rb b/lib/orb/models/new_plan_bulk_price.rb index f4d51243..61dbfca9 100644 --- a/lib/orb/models/new_plan_bulk_price.rb +++ b/lib/orb/models/new_plan_bulk_price.rb @@ -62,9 +62,7 @@ class NewPlanBulkPrice < Orb::Internal::Type::BaseModel # The configuration for the rate of the price currency to the invoicing currency. # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - optional :conversion_rate_config, - union: -> { Orb::NewPlanBulkPrice::UnnamedTypeWithobjectParent30 }, - nil?: true + optional :conversion_rate_config, union: -> { Orb::NewPlanBulkPrice::ConversionRateConfig }, nil?: true # @!attribute currency # An ISO 4217 currency string, or custom pricing unit identifier, in which this diff --git a/lib/orb/models/new_plan_bulk_with_proration_price.rb b/lib/orb/models/new_plan_bulk_with_proration_price.rb index 46115f53..6b34f77f 100644 --- a/lib/orb/models/new_plan_bulk_with_proration_price.rb +++ b/lib/orb/models/new_plan_bulk_with_proration_price.rb @@ -63,7 +63,7 @@ class NewPlanBulkWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanBulkWithProrationPrice::UnnamedTypeWithobjectParent31 }, + union: -> { Orb::NewPlanBulkWithProrationPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb b/lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb index 8ecd30b6..8872c418 100644 --- a/lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb +++ b/lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb @@ -63,7 +63,7 @@ class NewPlanCumulativeGroupedBulkPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanCumulativeGroupedBulkPrice::UnnamedTypeWithobjectParent32 }, + union: -> { Orb::NewPlanCumulativeGroupedBulkPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_grouped_allocation_price.rb b/lib/orb/models/new_plan_grouped_allocation_price.rb index c3b17c0c..d613eaa2 100644 --- a/lib/orb/models/new_plan_grouped_allocation_price.rb +++ b/lib/orb/models/new_plan_grouped_allocation_price.rb @@ -63,7 +63,7 @@ class NewPlanGroupedAllocationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanGroupedAllocationPrice::UnnamedTypeWithobjectParent33 }, + union: -> { Orb::NewPlanGroupedAllocationPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_grouped_tiered_package_price.rb b/lib/orb/models/new_plan_grouped_tiered_package_price.rb index b2b601b4..f9a3069d 100644 --- a/lib/orb/models/new_plan_grouped_tiered_package_price.rb +++ b/lib/orb/models/new_plan_grouped_tiered_package_price.rb @@ -63,7 +63,7 @@ class NewPlanGroupedTieredPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanGroupedTieredPackagePrice::UnnamedTypeWithobjectParent34 }, + union: -> { Orb::NewPlanGroupedTieredPackagePrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_grouped_tiered_price.rb b/lib/orb/models/new_plan_grouped_tiered_price.rb index 615b8998..f2e125e2 100644 --- a/lib/orb/models/new_plan_grouped_tiered_price.rb +++ b/lib/orb/models/new_plan_grouped_tiered_price.rb @@ -63,7 +63,7 @@ class NewPlanGroupedTieredPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanGroupedTieredPrice::UnnamedTypeWithobjectParent35 }, + union: -> { Orb::NewPlanGroupedTieredPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_grouped_with_metered_minimum_price.rb b/lib/orb/models/new_plan_grouped_with_metered_minimum_price.rb index 8d7b0d55..5ab7c388 100644 --- a/lib/orb/models/new_plan_grouped_with_metered_minimum_price.rb +++ b/lib/orb/models/new_plan_grouped_with_metered_minimum_price.rb @@ -63,7 +63,7 @@ class NewPlanGroupedWithMeteredMinimumPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanGroupedWithMeteredMinimumPrice::UnnamedTypeWithobjectParent36 }, + union: -> { Orb::NewPlanGroupedWithMeteredMinimumPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_grouped_with_prorated_minimum_price.rb b/lib/orb/models/new_plan_grouped_with_prorated_minimum_price.rb index b7bc6185..3faee026 100644 --- a/lib/orb/models/new_plan_grouped_with_prorated_minimum_price.rb +++ b/lib/orb/models/new_plan_grouped_with_prorated_minimum_price.rb @@ -63,7 +63,7 @@ class NewPlanGroupedWithProratedMinimumPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanGroupedWithProratedMinimumPrice::UnnamedTypeWithobjectParent37 }, + union: -> { Orb::NewPlanGroupedWithProratedMinimumPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_matrix_price.rb b/lib/orb/models/new_plan_matrix_price.rb index a0cb3138..ce823d9b 100644 --- a/lib/orb/models/new_plan_matrix_price.rb +++ b/lib/orb/models/new_plan_matrix_price.rb @@ -63,7 +63,9 @@ class NewPlanMatrixPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanMatrixPrice::UnnamedTypeWithobjectParent38 }, + union: -> { + Orb::NewPlanMatrixPrice::ConversionRateConfig + }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_matrix_with_allocation_price.rb b/lib/orb/models/new_plan_matrix_with_allocation_price.rb index 720fcdb8..cde540b9 100644 --- a/lib/orb/models/new_plan_matrix_with_allocation_price.rb +++ b/lib/orb/models/new_plan_matrix_with_allocation_price.rb @@ -63,7 +63,7 @@ class NewPlanMatrixWithAllocationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanMatrixWithAllocationPrice::UnnamedTypeWithobjectParent39 }, + union: -> { Orb::NewPlanMatrixWithAllocationPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_matrix_with_display_name_price.rb b/lib/orb/models/new_plan_matrix_with_display_name_price.rb index 56d3d3cc..38d26664 100644 --- a/lib/orb/models/new_plan_matrix_with_display_name_price.rb +++ b/lib/orb/models/new_plan_matrix_with_display_name_price.rb @@ -63,7 +63,7 @@ class NewPlanMatrixWithDisplayNamePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanMatrixWithDisplayNamePrice::UnnamedTypeWithobjectParent40 }, + union: -> { Orb::NewPlanMatrixWithDisplayNamePrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_max_group_tiered_package_price.rb b/lib/orb/models/new_plan_max_group_tiered_package_price.rb index 095f2e64..a2ff8463 100644 --- a/lib/orb/models/new_plan_max_group_tiered_package_price.rb +++ b/lib/orb/models/new_plan_max_group_tiered_package_price.rb @@ -63,7 +63,7 @@ class NewPlanMaxGroupTieredPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanMaxGroupTieredPackagePrice::UnnamedTypeWithobjectParent41 }, + union: -> { Orb::NewPlanMaxGroupTieredPackagePrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_minimum_composite_price.rb b/lib/orb/models/new_plan_minimum_composite_price.rb index 599a2274..2045d769 100644 --- a/lib/orb/models/new_plan_minimum_composite_price.rb +++ b/lib/orb/models/new_plan_minimum_composite_price.rb @@ -63,7 +63,7 @@ class NewPlanMinimumCompositePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanMinimumCompositePrice::UnnamedTypeWithobjectParent42 }, + union: -> { Orb::NewPlanMinimumCompositePrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_package_price.rb b/lib/orb/models/new_plan_package_price.rb index 72bb1ee7..42a3a1c8 100644 --- a/lib/orb/models/new_plan_package_price.rb +++ b/lib/orb/models/new_plan_package_price.rb @@ -63,7 +63,9 @@ class NewPlanPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanPackagePrice::UnnamedTypeWithobjectParent43 }, + union: -> { + Orb::NewPlanPackagePrice::ConversionRateConfig + }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_package_with_allocation_price.rb b/lib/orb/models/new_plan_package_with_allocation_price.rb index 34987367..3e1a2156 100644 --- a/lib/orb/models/new_plan_package_with_allocation_price.rb +++ b/lib/orb/models/new_plan_package_with_allocation_price.rb @@ -63,7 +63,7 @@ class NewPlanPackageWithAllocationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanPackageWithAllocationPrice::UnnamedTypeWithobjectParent44 }, + union: -> { Orb::NewPlanPackageWithAllocationPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rb b/lib/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rb index 0c416cab..36985b9c 100644 --- a/lib/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rb +++ b/lib/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rb @@ -64,7 +64,7 @@ class NewPlanScalableMatrixWithTieredPricingPrice < Orb::Internal::Type::BaseMod # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanScalableMatrixWithTieredPricingPrice::UnnamedTypeWithobjectParent45 }, + union: -> { Orb::NewPlanScalableMatrixWithTieredPricingPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb b/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb index b7450a19..d89e5f14 100644 --- a/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb +++ b/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb @@ -64,7 +64,7 @@ class NewPlanScalableMatrixWithUnitPricingPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanScalableMatrixWithUnitPricingPrice::UnnamedTypeWithobjectParent46 }, + union: -> { Orb::NewPlanScalableMatrixWithUnitPricingPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_threshold_total_amount_price.rb b/lib/orb/models/new_plan_threshold_total_amount_price.rb index e41b13bf..de730e29 100644 --- a/lib/orb/models/new_plan_threshold_total_amount_price.rb +++ b/lib/orb/models/new_plan_threshold_total_amount_price.rb @@ -63,7 +63,7 @@ class NewPlanThresholdTotalAmountPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanThresholdTotalAmountPrice::UnnamedTypeWithobjectParent47 }, + union: -> { Orb::NewPlanThresholdTotalAmountPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_tier_with_proration_price.rb b/lib/orb/models/new_plan_tier_with_proration_price.rb index e90d2fa6..2ba30dad 100644 --- a/lib/orb/models/new_plan_tier_with_proration_price.rb +++ b/lib/orb/models/new_plan_tier_with_proration_price.rb @@ -63,7 +63,7 @@ class NewPlanTierWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanTierWithProrationPrice::UnnamedTypeWithobjectParent52 }, + union: -> { Orb::NewPlanTierWithProrationPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_tiered_package_price.rb b/lib/orb/models/new_plan_tiered_package_price.rb index 1ee4c137..a007b954 100644 --- a/lib/orb/models/new_plan_tiered_package_price.rb +++ b/lib/orb/models/new_plan_tiered_package_price.rb @@ -63,7 +63,7 @@ class NewPlanTieredPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanTieredPackagePrice::UnnamedTypeWithobjectParent48 }, + union: -> { Orb::NewPlanTieredPackagePrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_tiered_package_with_minimum_price.rb b/lib/orb/models/new_plan_tiered_package_with_minimum_price.rb index ca92b81e..1f88c9c5 100644 --- a/lib/orb/models/new_plan_tiered_package_with_minimum_price.rb +++ b/lib/orb/models/new_plan_tiered_package_with_minimum_price.rb @@ -63,7 +63,7 @@ class NewPlanTieredPackageWithMinimumPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanTieredPackageWithMinimumPrice::UnnamedTypeWithobjectParent49 }, + union: -> { Orb::NewPlanTieredPackageWithMinimumPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_tiered_price.rb b/lib/orb/models/new_plan_tiered_price.rb index 09dd78cd..5de14e6d 100644 --- a/lib/orb/models/new_plan_tiered_price.rb +++ b/lib/orb/models/new_plan_tiered_price.rb @@ -63,7 +63,9 @@ class NewPlanTieredPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanTieredPrice::UnnamedTypeWithobjectParent50 }, + union: -> { + Orb::NewPlanTieredPrice::ConversionRateConfig + }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_tiered_with_minimum_price.rb b/lib/orb/models/new_plan_tiered_with_minimum_price.rb index d972523e..087aedae 100644 --- a/lib/orb/models/new_plan_tiered_with_minimum_price.rb +++ b/lib/orb/models/new_plan_tiered_with_minimum_price.rb @@ -63,7 +63,7 @@ class NewPlanTieredWithMinimumPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanTieredWithMinimumPrice::UnnamedTypeWithobjectParent51 }, + union: -> { Orb::NewPlanTieredWithMinimumPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_unit_price.rb b/lib/orb/models/new_plan_unit_price.rb index 40bfd8fe..4a9b0d02 100644 --- a/lib/orb/models/new_plan_unit_price.rb +++ b/lib/orb/models/new_plan_unit_price.rb @@ -62,9 +62,7 @@ class NewPlanUnitPrice < Orb::Internal::Type::BaseModel # The configuration for the rate of the price currency to the invoicing currency. # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - optional :conversion_rate_config, - union: -> { Orb::NewPlanUnitPrice::UnnamedTypeWithobjectParent53 }, - nil?: true + optional :conversion_rate_config, union: -> { Orb::NewPlanUnitPrice::ConversionRateConfig }, nil?: true # @!attribute currency # An ISO 4217 currency string, or custom pricing unit identifier, in which this diff --git a/lib/orb/models/new_plan_unit_with_percent_price.rb b/lib/orb/models/new_plan_unit_with_percent_price.rb index dffeec35..6312bf21 100644 --- a/lib/orb/models/new_plan_unit_with_percent_price.rb +++ b/lib/orb/models/new_plan_unit_with_percent_price.rb @@ -63,7 +63,7 @@ class NewPlanUnitWithPercentPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanUnitWithPercentPrice::UnnamedTypeWithobjectParent54 }, + union: -> { Orb::NewPlanUnitWithPercentPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_plan_unit_with_proration_price.rb b/lib/orb/models/new_plan_unit_with_proration_price.rb index 29ca2fe1..fee715a5 100644 --- a/lib/orb/models/new_plan_unit_with_proration_price.rb +++ b/lib/orb/models/new_plan_unit_with_proration_price.rb @@ -63,7 +63,7 @@ class NewPlanUnitWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewPlanUnitWithProrationPrice::UnnamedTypeWithobjectParent55 }, + union: -> { Orb::NewPlanUnitWithProrationPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_bulk_price.rb b/lib/orb/models/new_subscription_bulk_price.rb index 59a3ce03..be01a439 100644 --- a/lib/orb/models/new_subscription_bulk_price.rb +++ b/lib/orb/models/new_subscription_bulk_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionBulkPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionBulkPrice::UnnamedTypeWithobjectParent56 }, + union: -> { Orb::NewSubscriptionBulkPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_bulk_with_proration_price.rb b/lib/orb/models/new_subscription_bulk_with_proration_price.rb index a5c9f539..f583b930 100644 --- a/lib/orb/models/new_subscription_bulk_with_proration_price.rb +++ b/lib/orb/models/new_subscription_bulk_with_proration_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionBulkWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionBulkWithProrationPrice::UnnamedTypeWithobjectParent57 }, + union: -> { Orb::NewSubscriptionBulkWithProrationPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_cumulative_grouped_bulk_price.rb b/lib/orb/models/new_subscription_cumulative_grouped_bulk_price.rb index b762798d..2c204f95 100644 --- a/lib/orb/models/new_subscription_cumulative_grouped_bulk_price.rb +++ b/lib/orb/models/new_subscription_cumulative_grouped_bulk_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionCumulativeGroupedBulkPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionCumulativeGroupedBulkPrice::UnnamedTypeWithobjectParent58 }, + union: -> { Orb::NewSubscriptionCumulativeGroupedBulkPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_grouped_allocation_price.rb b/lib/orb/models/new_subscription_grouped_allocation_price.rb index e15288fe..290fdc00 100644 --- a/lib/orb/models/new_subscription_grouped_allocation_price.rb +++ b/lib/orb/models/new_subscription_grouped_allocation_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionGroupedAllocationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionGroupedAllocationPrice::UnnamedTypeWithobjectParent59 }, + union: -> { Orb::NewSubscriptionGroupedAllocationPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_grouped_tiered_package_price.rb b/lib/orb/models/new_subscription_grouped_tiered_package_price.rb index 1251964d..15663295 100644 --- a/lib/orb/models/new_subscription_grouped_tiered_package_price.rb +++ b/lib/orb/models/new_subscription_grouped_tiered_package_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionGroupedTieredPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionGroupedTieredPackagePrice::UnnamedTypeWithobjectParent60 }, + union: -> { Orb::NewSubscriptionGroupedTieredPackagePrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_grouped_tiered_price.rb b/lib/orb/models/new_subscription_grouped_tiered_price.rb index 2be0acde..8ec32ec9 100644 --- a/lib/orb/models/new_subscription_grouped_tiered_price.rb +++ b/lib/orb/models/new_subscription_grouped_tiered_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionGroupedTieredPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionGroupedTieredPrice::UnnamedTypeWithobjectParent61 }, + union: -> { Orb::NewSubscriptionGroupedTieredPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_grouped_with_metered_minimum_price.rb b/lib/orb/models/new_subscription_grouped_with_metered_minimum_price.rb index 7faa51f3..3c02d868 100644 --- a/lib/orb/models/new_subscription_grouped_with_metered_minimum_price.rb +++ b/lib/orb/models/new_subscription_grouped_with_metered_minimum_price.rb @@ -63,9 +63,7 @@ class NewSubscriptionGroupedWithMeteredMinimumPrice < Orb::Internal::Type::BaseM # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { - Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::UnnamedTypeWithobjectParent62 - }, + union: -> { Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_grouped_with_prorated_minimum_price.rb b/lib/orb/models/new_subscription_grouped_with_prorated_minimum_price.rb index 385db6ca..94bddfe6 100644 --- a/lib/orb/models/new_subscription_grouped_with_prorated_minimum_price.rb +++ b/lib/orb/models/new_subscription_grouped_with_prorated_minimum_price.rb @@ -63,9 +63,7 @@ class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::Internal::Type::Base # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { - Orb::NewSubscriptionGroupedWithProratedMinimumPrice::UnnamedTypeWithobjectParent63 - }, + union: -> { Orb::NewSubscriptionGroupedWithProratedMinimumPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_matrix_price.rb b/lib/orb/models/new_subscription_matrix_price.rb index ec51554e..f811521b 100644 --- a/lib/orb/models/new_subscription_matrix_price.rb +++ b/lib/orb/models/new_subscription_matrix_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionMatrixPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionMatrixPrice::UnnamedTypeWithobjectParent64 }, + union: -> { Orb::NewSubscriptionMatrixPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_matrix_with_allocation_price.rb b/lib/orb/models/new_subscription_matrix_with_allocation_price.rb index 569275d0..f85dc75a 100644 --- a/lib/orb/models/new_subscription_matrix_with_allocation_price.rb +++ b/lib/orb/models/new_subscription_matrix_with_allocation_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionMatrixWithAllocationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionMatrixWithAllocationPrice::UnnamedTypeWithobjectParent65 }, + union: -> { Orb::NewSubscriptionMatrixWithAllocationPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_matrix_with_display_name_price.rb b/lib/orb/models/new_subscription_matrix_with_display_name_price.rb index 3a351b5f..3825c8da 100644 --- a/lib/orb/models/new_subscription_matrix_with_display_name_price.rb +++ b/lib/orb/models/new_subscription_matrix_with_display_name_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionMatrixWithDisplayNamePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionMatrixWithDisplayNamePrice::UnnamedTypeWithobjectParent66 }, + union: -> { Orb::NewSubscriptionMatrixWithDisplayNamePrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_max_group_tiered_package_price.rb b/lib/orb/models/new_subscription_max_group_tiered_package_price.rb index a14e2485..235dded2 100644 --- a/lib/orb/models/new_subscription_max_group_tiered_package_price.rb +++ b/lib/orb/models/new_subscription_max_group_tiered_package_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionMaxGroupTieredPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionMaxGroupTieredPackagePrice::UnnamedTypeWithobjectParent67 }, + union: -> { Orb::NewSubscriptionMaxGroupTieredPackagePrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_minimum_composite_price.rb b/lib/orb/models/new_subscription_minimum_composite_price.rb index 0aaf73b7..44cbad50 100644 --- a/lib/orb/models/new_subscription_minimum_composite_price.rb +++ b/lib/orb/models/new_subscription_minimum_composite_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionMinimumCompositePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionMinimumCompositePrice::UnnamedTypeWithobjectParent68 }, + union: -> { Orb::NewSubscriptionMinimumCompositePrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_package_price.rb b/lib/orb/models/new_subscription_package_price.rb index 19ad4f20..827c91a4 100644 --- a/lib/orb/models/new_subscription_package_price.rb +++ b/lib/orb/models/new_subscription_package_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionPackagePrice::UnnamedTypeWithobjectParent69 }, + union: -> { Orb::NewSubscriptionPackagePrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_package_with_allocation_price.rb b/lib/orb/models/new_subscription_package_with_allocation_price.rb index e5c67724..9afb6d65 100644 --- a/lib/orb/models/new_subscription_package_with_allocation_price.rb +++ b/lib/orb/models/new_subscription_package_with_allocation_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionPackageWithAllocationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionPackageWithAllocationPrice::UnnamedTypeWithobjectParent70 }, + union: -> { Orb::NewSubscriptionPackageWithAllocationPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rb b/lib/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rb index fb036e77..a62c8a63 100644 --- a/lib/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rb +++ b/lib/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rb @@ -64,9 +64,7 @@ class NewSubscriptionScalableMatrixWithTieredPricingPrice < Orb::Internal::Type: # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { - Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::UnnamedTypeWithobjectParent71 - }, + union: -> { Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rb b/lib/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rb index 16c0f255..aa7164ec 100644 --- a/lib/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rb +++ b/lib/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rb @@ -64,9 +64,7 @@ class NewSubscriptionScalableMatrixWithUnitPricingPrice < Orb::Internal::Type::B # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { - Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::UnnamedTypeWithobjectParent72 - }, + union: -> { Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_threshold_total_amount_price.rb b/lib/orb/models/new_subscription_threshold_total_amount_price.rb index 0f81156b..f4fd1f13 100644 --- a/lib/orb/models/new_subscription_threshold_total_amount_price.rb +++ b/lib/orb/models/new_subscription_threshold_total_amount_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionThresholdTotalAmountPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionThresholdTotalAmountPrice::UnnamedTypeWithobjectParent73 }, + union: -> { Orb::NewSubscriptionThresholdTotalAmountPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_tier_with_proration_price.rb b/lib/orb/models/new_subscription_tier_with_proration_price.rb index 32cf7db4..aef60fa9 100644 --- a/lib/orb/models/new_subscription_tier_with_proration_price.rb +++ b/lib/orb/models/new_subscription_tier_with_proration_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionTierWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionTierWithProrationPrice::UnnamedTypeWithobjectParent78 }, + union: -> { Orb::NewSubscriptionTierWithProrationPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_tiered_package_price.rb b/lib/orb/models/new_subscription_tiered_package_price.rb index 53d81197..2da5209b 100644 --- a/lib/orb/models/new_subscription_tiered_package_price.rb +++ b/lib/orb/models/new_subscription_tiered_package_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionTieredPackagePrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionTieredPackagePrice::UnnamedTypeWithobjectParent74 }, + union: -> { Orb::NewSubscriptionTieredPackagePrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_tiered_package_with_minimum_price.rb b/lib/orb/models/new_subscription_tiered_package_with_minimum_price.rb index cef4b594..4518a4b3 100644 --- a/lib/orb/models/new_subscription_tiered_package_with_minimum_price.rb +++ b/lib/orb/models/new_subscription_tiered_package_with_minimum_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionTieredPackageWithMinimumPrice < Orb::Internal::Type::BaseMo # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionTieredPackageWithMinimumPrice::UnnamedTypeWithobjectParent75 }, + union: -> { Orb::NewSubscriptionTieredPackageWithMinimumPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_tiered_price.rb b/lib/orb/models/new_subscription_tiered_price.rb index 4060f05e..b537c8d8 100644 --- a/lib/orb/models/new_subscription_tiered_price.rb +++ b/lib/orb/models/new_subscription_tiered_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionTieredPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionTieredPrice::UnnamedTypeWithobjectParent76 }, + union: -> { Orb::NewSubscriptionTieredPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_tiered_with_minimum_price.rb b/lib/orb/models/new_subscription_tiered_with_minimum_price.rb index 12701f49..a55be285 100644 --- a/lib/orb/models/new_subscription_tiered_with_minimum_price.rb +++ b/lib/orb/models/new_subscription_tiered_with_minimum_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionTieredWithMinimumPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionTieredWithMinimumPrice::UnnamedTypeWithobjectParent77 }, + union: -> { Orb::NewSubscriptionTieredWithMinimumPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_unit_price.rb b/lib/orb/models/new_subscription_unit_price.rb index 6dbdc3cb..4f02df83 100644 --- a/lib/orb/models/new_subscription_unit_price.rb +++ b/lib/orb/models/new_subscription_unit_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionUnitPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionUnitPrice::UnnamedTypeWithobjectParent79 }, + union: -> { Orb::NewSubscriptionUnitPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_unit_with_percent_price.rb b/lib/orb/models/new_subscription_unit_with_percent_price.rb index 7ea50b90..276a9de9 100644 --- a/lib/orb/models/new_subscription_unit_with_percent_price.rb +++ b/lib/orb/models/new_subscription_unit_with_percent_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionUnitWithPercentPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionUnitWithPercentPrice::UnnamedTypeWithobjectParent80 }, + union: -> { Orb::NewSubscriptionUnitWithPercentPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/new_subscription_unit_with_proration_price.rb b/lib/orb/models/new_subscription_unit_with_proration_price.rb index 4367eda3..2f73bc38 100644 --- a/lib/orb/models/new_subscription_unit_with_proration_price.rb +++ b/lib/orb/models/new_subscription_unit_with_proration_price.rb @@ -63,7 +63,7 @@ class NewSubscriptionUnitWithProrationPrice < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionUnitWithProrationPrice::UnnamedTypeWithobjectParent81 }, + union: -> { Orb::NewSubscriptionUnitWithProrationPrice::ConversionRateConfig }, nil?: true # @!attribute currency diff --git a/lib/orb/models/plan_create_params.rb b/lib/orb/models/plan_create_params.rb index 3d3d8711..e49369f2 100644 --- a/lib/orb/models/plan_create_params.rb +++ b/lib/orb/models/plan_create_params.rb @@ -256,7 +256,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, union: -> { - Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent82 + Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::ConversionRateConfig }, nil?: true diff --git a/lib/orb/models/price.rb b/lib/orb/models/price.rb index af129c7d..d5faf31a 100644 --- a/lib/orb/models/price.rb +++ b/lib/orb/models/price.rb @@ -107,9 +107,7 @@ class Unit < Orb::Internal::Type::BaseModel # @!attribute conversion_rate_config # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - required :conversion_rate_config, - union: -> { Orb::Price::Unit::UnnamedTypeWithobjectParent83 }, - nil?: true + required :conversion_rate_config, union: -> { Orb::Price::Unit::ConversionRateConfig }, nil?: true # @!attribute created_at # @@ -343,9 +341,7 @@ class Package < Orb::Internal::Type::BaseModel # @!attribute conversion_rate_config # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - required :conversion_rate_config, - union: -> { Orb::Price::Package::UnnamedTypeWithobjectParent84 }, - nil?: true + required :conversion_rate_config, union: -> { Orb::Price::Package::ConversionRateConfig }, nil?: true # @!attribute created_at # @@ -579,9 +575,7 @@ class Matrix < Orb::Internal::Type::BaseModel # @!attribute conversion_rate_config # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - required :conversion_rate_config, - union: -> { Orb::Price::Matrix::UnnamedTypeWithobjectParent85 }, - nil?: true + required :conversion_rate_config, union: -> { Orb::Price::Matrix::ConversionRateConfig }, nil?: true # @!attribute created_at # @@ -815,9 +809,7 @@ class Tiered < Orb::Internal::Type::BaseModel # @!attribute conversion_rate_config # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - required :conversion_rate_config, - union: -> { Orb::Price::Tiered::UnnamedTypeWithobjectParent86 }, - nil?: true + required :conversion_rate_config, union: -> { Orb::Price::Tiered::ConversionRateConfig }, nil?: true # @!attribute created_at # @@ -1056,9 +1048,7 @@ class Bulk < Orb::Internal::Type::BaseModel # @!attribute conversion_rate_config # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - required :conversion_rate_config, - union: -> { Orb::Price::Bulk::UnnamedTypeWithobjectParent87 }, - nil?: true + required :conversion_rate_config, union: -> { Orb::Price::Bulk::ConversionRateConfig }, nil?: true # @!attribute created_at # @@ -1288,7 +1278,7 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent88 }, + union: -> { Orb::Price::ThresholdTotalAmount::ConversionRateConfig }, nil?: true # @!attribute created_at @@ -1524,7 +1514,7 @@ class TieredPackage < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::TieredPackage::UnnamedTypeWithobjectParent89 }, + union: -> { Orb::Price::TieredPackage::ConversionRateConfig }, nil?: true # @!attribute created_at @@ -1760,7 +1750,7 @@ class GroupedTiered < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent90 }, + union: -> { Orb::Price::GroupedTiered::ConversionRateConfig }, nil?: true # @!attribute created_at @@ -1996,7 +1986,7 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent91 }, + union: -> { Orb::Price::TieredWithMinimum::ConversionRateConfig }, nil?: true # @!attribute created_at @@ -2232,7 +2222,7 @@ class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent92 }, + union: -> { Orb::Price::TieredPackageWithMinimum::ConversionRateConfig }, nil?: true # @!attribute created_at @@ -2468,7 +2458,7 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent93 }, + union: -> { Orb::Price::PackageWithAllocation::ConversionRateConfig }, nil?: true # @!attribute created_at @@ -2704,7 +2694,7 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent94 }, + union: -> { Orb::Price::UnitWithPercent::ConversionRateConfig }, nil?: true # @!attribute created_at @@ -2940,7 +2930,7 @@ class MatrixWithAllocation < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent95 }, + union: -> { Orb::Price::MatrixWithAllocation::ConversionRateConfig }, nil?: true # @!attribute created_at @@ -3176,7 +3166,7 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent96 }, + union: -> { Orb::Price::TieredWithProration::ConversionRateConfig }, nil?: true # @!attribute created_at @@ -3412,7 +3402,7 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent97 }, + union: -> { Orb::Price::UnitWithProration::ConversionRateConfig }, nil?: true # @!attribute created_at @@ -3648,7 +3638,7 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent98 }, + union: -> { Orb::Price::GroupedAllocation::ConversionRateConfig }, nil?: true # @!attribute created_at @@ -3884,7 +3874,7 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent99 }, + union: -> { Orb::Price::GroupedWithProratedMinimum::ConversionRateConfig }, nil?: true # @!attribute created_at @@ -4120,7 +4110,7 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent100 }, + union: -> { Orb::Price::GroupedWithMeteredMinimum::ConversionRateConfig }, nil?: true # @!attribute created_at @@ -4356,7 +4346,7 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent101 }, + union: -> { Orb::Price::MatrixWithDisplayName::ConversionRateConfig }, nil?: true # @!attribute created_at @@ -4597,7 +4587,7 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent102 }, + union: -> { Orb::Price::BulkWithProration::ConversionRateConfig }, nil?: true # @!attribute created_at @@ -4828,7 +4818,7 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent103 }, + union: -> { Orb::Price::GroupedTieredPackage::ConversionRateConfig }, nil?: true # @!attribute created_at @@ -5064,7 +5054,7 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent104 }, + union: -> { Orb::Price::MaxGroupTieredPackage::ConversionRateConfig }, nil?: true # @!attribute created_at @@ -5300,7 +5290,7 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent105 }, + union: -> { Orb::Price::ScalableMatrixWithUnitPricing::ConversionRateConfig }, nil?: true # @!attribute created_at @@ -5537,7 +5527,7 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent106 }, + union: -> { Orb::Price::ScalableMatrixWithTieredPricing::ConversionRateConfig }, nil?: true # @!attribute created_at @@ -5774,7 +5764,7 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent107 }, + union: -> { Orb::Price::CumulativeGroupedBulk::ConversionRateConfig }, nil?: true # @!attribute created_at @@ -6010,7 +6000,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent108 }, + union: -> { Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig }, nil?: true # @!attribute created_at @@ -6246,9 +6236,7 @@ class Minimum < Orb::Internal::Type::BaseModel # @!attribute conversion_rate_config # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - required :conversion_rate_config, - union: -> { Orb::Price::Minimum::UnnamedTypeWithobjectParent109 }, - nil?: true + required :conversion_rate_config, union: -> { Orb::Price::Minimum::ConversionRateConfig }, nil?: true # @!attribute created_at # diff --git a/lib/orb/models/price_evaluate_multiple_params.rb b/lib/orb/models/price_evaluate_multiple_params.rb index e89d7084..da6c545c 100644 --- a/lib/orb/models/price_evaluate_multiple_params.rb +++ b/lib/orb/models/price_evaluate_multiple_params.rb @@ -235,7 +235,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, union: -> { - Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent110 + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::ConversionRateConfig }, nil?: true diff --git a/lib/orb/models/price_evaluate_preview_events_params.rb b/lib/orb/models/price_evaluate_preview_events_params.rb index 40ee4e64..7020431b 100644 --- a/lib/orb/models/price_evaluate_preview_events_params.rb +++ b/lib/orb/models/price_evaluate_preview_events_params.rb @@ -298,7 +298,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, union: -> { - Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent111 + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::ConversionRateConfig }, nil?: true diff --git a/lib/orb/models/subscription_create_params.rb b/lib/orb/models/subscription_create_params.rb index 7258b7c4..307646a6 100644 --- a/lib/orb/models/subscription_create_params.rb +++ b/lib/orb/models/subscription_create_params.rb @@ -609,7 +609,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, union: -> { - Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent112 + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::ConversionRateConfig }, nil?: true @@ -1032,7 +1032,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, union: -> { - Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent113 + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::ConversionRateConfig }, nil?: true diff --git a/lib/orb/models/subscription_price_intervals_params.rb b/lib/orb/models/subscription_price_intervals_params.rb index 130450f7..0b752c23 100644 --- a/lib/orb/models/subscription_price_intervals_params.rb +++ b/lib/orb/models/subscription_price_intervals_params.rb @@ -439,7 +439,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, union: -> { - Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent114 + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::ConversionRateConfig }, nil?: true diff --git a/lib/orb/models/subscription_schedule_plan_change_params.rb b/lib/orb/models/subscription_schedule_plan_change_params.rb index 4cd45f81..b0ee5567 100644 --- a/lib/orb/models/subscription_schedule_plan_change_params.rb +++ b/lib/orb/models/subscription_schedule_plan_change_params.rb @@ -574,7 +574,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, union: -> { - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent115 + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::ConversionRateConfig }, nil?: true @@ -1005,7 +1005,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] optional :conversion_rate_config, union: -> { - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent116 + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::ConversionRateConfig }, nil?: true diff --git a/rbi/orb/models/price.rbi b/rbi/orb/models/price.rbi index b97e4ed2..9ca9ce1f 100644 --- a/rbi/orb/models/price.rbi +++ b/rbi/orb/models/price.rbi @@ -85,9 +85,7 @@ module Orb attr_accessor :conversion_rate sig do - returns( - T.nilable(Orb::Price::Unit::UnnamedTypeWithobjectParent83::Variants) - ) + returns(T.nilable(Orb::Price::Unit::ConversionRateConfig::Variants)) end attr_accessor :conversion_rate_config @@ -286,9 +284,7 @@ module Orb T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: - T.nilable( - Orb::Price::Unit::UnnamedTypeWithobjectParent83::Variants - ), + T.nilable(Orb::Price::Unit::ConversionRateConfig::Variants), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), currency: String, @@ -399,9 +395,7 @@ module Orb sig do returns( - T.nilable( - Orb::Price::Package::UnnamedTypeWithobjectParent84::Variants - ) + T.nilable(Orb::Price::Package::ConversionRateConfig::Variants) ) end attr_accessor :conversion_rate_config @@ -601,9 +595,7 @@ module Orb T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: - T.nilable( - Orb::Price::Package::UnnamedTypeWithobjectParent84::Variants - ), + T.nilable(Orb::Price::Package::ConversionRateConfig::Variants), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), currency: String, @@ -717,11 +709,7 @@ module Orb attr_accessor :conversion_rate sig do - returns( - T.nilable( - Orb::Price::Matrix::UnnamedTypeWithobjectParent85::Variants - ) - ) + returns(T.nilable(Orb::Price::Matrix::ConversionRateConfig::Variants)) end attr_accessor :conversion_rate_config @@ -920,9 +908,7 @@ module Orb T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: - T.nilable( - Orb::Price::Matrix::UnnamedTypeWithobjectParent85::Variants - ), + T.nilable(Orb::Price::Matrix::ConversionRateConfig::Variants), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), currency: String, @@ -1035,11 +1021,7 @@ module Orb attr_accessor :conversion_rate sig do - returns( - T.nilable( - Orb::Price::Tiered::UnnamedTypeWithobjectParent86::Variants - ) - ) + returns(T.nilable(Orb::Price::Tiered::ConversionRateConfig::Variants)) end attr_accessor :conversion_rate_config @@ -1238,9 +1220,7 @@ module Orb T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: - T.nilable( - Orb::Price::Tiered::UnnamedTypeWithobjectParent86::Variants - ), + T.nilable(Orb::Price::Tiered::ConversionRateConfig::Variants), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), currency: String, @@ -1359,9 +1339,7 @@ module Orb attr_accessor :conversion_rate sig do - returns( - T.nilable(Orb::Price::Bulk::UnnamedTypeWithobjectParent87::Variants) - ) + returns(T.nilable(Orb::Price::Bulk::ConversionRateConfig::Variants)) end attr_accessor :conversion_rate_config @@ -1555,9 +1533,7 @@ module Orb T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: - T.nilable( - Orb::Price::Bulk::UnnamedTypeWithobjectParent87::Variants - ), + T.nilable(Orb::Price::Bulk::ConversionRateConfig::Variants), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), currency: String, @@ -1670,7 +1646,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent88::Variants + Orb::Price::ThresholdTotalAmount::ConversionRateConfig::Variants ) ) end @@ -1871,7 +1847,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent88::Variants + Orb::Price::ThresholdTotalAmount::ConversionRateConfig::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -2023,9 +1999,7 @@ module Orb sig do returns( - T.nilable( - Orb::Price::TieredPackage::UnnamedTypeWithobjectParent89::Variants - ) + T.nilable(Orb::Price::TieredPackage::ConversionRateConfig::Variants) ) end attr_accessor :conversion_rate_config @@ -2223,7 +2197,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::TieredPackage::UnnamedTypeWithobjectParent89::Variants + Orb::Price::TieredPackage::ConversionRateConfig::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -2353,9 +2327,7 @@ module Orb sig do returns( - T.nilable( - Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent90::Variants - ) + T.nilable(Orb::Price::GroupedTiered::ConversionRateConfig::Variants) ) end attr_accessor :conversion_rate_config @@ -2553,7 +2525,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent90::Variants + Orb::Price::GroupedTiered::ConversionRateConfig::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -2684,7 +2656,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent91::Variants + Orb::Price::TieredWithMinimum::ConversionRateConfig::Variants ) ) end @@ -2883,7 +2855,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent91::Variants + Orb::Price::TieredWithMinimum::ConversionRateConfig::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -3030,7 +3002,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent92::Variants + Orb::Price::TieredPackageWithMinimum::ConversionRateConfig::Variants ) ) end @@ -3233,7 +3205,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent92::Variants + Orb::Price::TieredPackageWithMinimum::ConversionRateConfig::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -3390,7 +3362,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent93::Variants + Orb::Price::PackageWithAllocation::ConversionRateConfig::Variants ) ) end @@ -3591,7 +3563,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent93::Variants + Orb::Price::PackageWithAllocation::ConversionRateConfig::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -3744,7 +3716,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent94::Variants + Orb::Price::UnitWithPercent::ConversionRateConfig::Variants ) ) end @@ -3943,7 +3915,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent94::Variants + Orb::Price::UnitWithPercent::ConversionRateConfig::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -4079,7 +4051,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent95::Variants + Orb::Price::MatrixWithAllocation::ConversionRateConfig::Variants ) ) end @@ -4289,7 +4261,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent95::Variants + Orb::Price::MatrixWithAllocation::ConversionRateConfig::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -4442,7 +4414,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent96::Variants + Orb::Price::TieredWithProration::ConversionRateConfig::Variants ) ) end @@ -4643,7 +4615,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent96::Variants + Orb::Price::TieredWithProration::ConversionRateConfig::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -4794,7 +4766,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent97::Variants + Orb::Price::UnitWithProration::ConversionRateConfig::Variants ) ) end @@ -4993,7 +4965,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent97::Variants + Orb::Price::UnitWithProration::ConversionRateConfig::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -5138,7 +5110,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent98::Variants + Orb::Price::GroupedAllocation::ConversionRateConfig::Variants ) ) end @@ -5337,7 +5309,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent98::Variants + Orb::Price::GroupedAllocation::ConversionRateConfig::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -5487,7 +5459,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent99::Variants + Orb::Price::GroupedWithProratedMinimum::ConversionRateConfig::Variants ) ) end @@ -5692,7 +5664,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent99::Variants + Orb::Price::GroupedWithProratedMinimum::ConversionRateConfig::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -5849,7 +5821,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent100::Variants + Orb::Price::GroupedWithMeteredMinimum::ConversionRateConfig::Variants ) ) end @@ -6054,7 +6026,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent100::Variants + Orb::Price::GroupedWithMeteredMinimum::ConversionRateConfig::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -6211,7 +6183,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent101::Variants + Orb::Price::MatrixWithDisplayName::ConversionRateConfig::Variants ) ) end @@ -6412,7 +6384,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent101::Variants + Orb::Price::MatrixWithDisplayName::ConversionRateConfig::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -6568,7 +6540,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent102::Variants + Orb::Price::BulkWithProration::ConversionRateConfig::Variants ) ) end @@ -6765,7 +6737,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent102::Variants + Orb::Price::BulkWithProration::ConversionRateConfig::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -6909,7 +6881,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent103::Variants + Orb::Price::GroupedTieredPackage::ConversionRateConfig::Variants ) ) end @@ -7110,7 +7082,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent103::Variants + Orb::Price::GroupedTieredPackage::ConversionRateConfig::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -7265,7 +7237,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent104::Variants + Orb::Price::MaxGroupTieredPackage::ConversionRateConfig::Variants ) ) end @@ -7466,7 +7438,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent104::Variants + Orb::Price::MaxGroupTieredPackage::ConversionRateConfig::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -7626,7 +7598,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent105::Variants + Orb::Price::ScalableMatrixWithUnitPricing::ConversionRateConfig::Variants ) ) end @@ -7833,7 +7805,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent105::Variants + Orb::Price::ScalableMatrixWithUnitPricing::ConversionRateConfig::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -7999,7 +7971,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent106::Variants + Orb::Price::ScalableMatrixWithTieredPricing::ConversionRateConfig::Variants ) ) end @@ -8206,7 +8178,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent106::Variants + Orb::Price::ScalableMatrixWithTieredPricing::ConversionRateConfig::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -8370,7 +8342,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent107::Variants + Orb::Price::CumulativeGroupedBulk::ConversionRateConfig::Variants ) ) end @@ -8571,7 +8543,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent107::Variants + Orb::Price::CumulativeGroupedBulk::ConversionRateConfig::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -8731,7 +8703,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent108::Variants + Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig::Variants ) ) end @@ -8936,7 +8908,7 @@ module Orb conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent108::Variants + Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -9089,9 +9061,7 @@ module Orb sig do returns( - T.nilable( - Orb::Price::Minimum::UnnamedTypeWithobjectParent109::Variants - ) + T.nilable(Orb::Price::Minimum::ConversionRateConfig::Variants) ) end attr_accessor :conversion_rate_config @@ -9295,9 +9265,7 @@ module Orb T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: - T.nilable( - Orb::Price::Minimum::UnnamedTypeWithobjectParent109::Variants - ), + T.nilable(Orb::Price::Minimum::ConversionRateConfig::Variants), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), currency: String, diff --git a/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs b/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs index fec1ba61..0cfa5eef 100644 --- a/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs +++ b/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs @@ -162,7 +162,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent0?, + conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -192,7 +192,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent0? + attr_accessor conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::conversion_rate_config? attr_accessor currency: String? @@ -219,7 +219,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent0?, + ?conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -241,7 +241,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent0?, + conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -423,7 +423,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent1?, + conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -453,7 +453,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent1? + attr_accessor conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::conversion_rate_config? attr_accessor currency: String? @@ -480,7 +480,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent1?, + ?conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -502,7 +502,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent1?, + conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/beta_create_plan_version_params.rbs b/sig/orb/models/beta_create_plan_version_params.rbs index a786718e..4b444f27 100644 --- a/sig/orb/models/beta_create_plan_version_params.rbs +++ b/sig/orb/models/beta_create_plan_version_params.rbs @@ -161,7 +161,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent2?, + conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -191,7 +191,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent2? + attr_accessor conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::conversion_rate_config? attr_accessor currency: String? @@ -218,7 +218,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent2?, + ?conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -240,7 +240,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent2?, + conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -419,7 +419,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent3?, + conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -449,7 +449,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent3? + attr_accessor conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::conversion_rate_config? attr_accessor currency: String? @@ -476,7 +476,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent3?, + ?conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -498,7 +498,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent3?, + conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_floating_bulk_price.rbs b/sig/orb/models/new_floating_bulk_price.rbs index 64c10929..7157bb89 100644 --- a/sig/orb/models/new_floating_bulk_price.rbs +++ b/sig/orb/models/new_floating_bulk_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingBulkPrice::unnamed_type_withobject_parent4?, + conversion_rate_config: Orb::Models::NewFloatingBulkPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingBulkPrice::unnamed_type_withobject_parent4? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingBulkPrice::conversion_rate_config? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingBulkPrice::unnamed_type_withobject_parent4?, + ?conversion_rate_config: Orb::Models::NewFloatingBulkPrice::conversion_rate_config?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingBulkPrice::unnamed_type_withobject_parent4?, + conversion_rate_config: Orb::Models::NewFloatingBulkPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_bulk_with_proration_price.rbs b/sig/orb/models/new_floating_bulk_with_proration_price.rbs index b9ae7adc..e06750f4 100644 --- a/sig/orb/models/new_floating_bulk_with_proration_price.rbs +++ b/sig/orb/models/new_floating_bulk_with_proration_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingBulkWithProrationPrice::unnamed_type_withobject_parent5?, + conversion_rate_config: Orb::Models::NewFloatingBulkWithProrationPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingBulkWithProrationPrice::unnamed_type_withobject_parent5? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingBulkWithProrationPrice::conversion_rate_config? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingBulkWithProrationPrice::unnamed_type_withobject_parent5?, + ?conversion_rate_config: Orb::Models::NewFloatingBulkWithProrationPrice::conversion_rate_config?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingBulkWithProrationPrice::unnamed_type_withobject_parent5?, + conversion_rate_config: Orb::Models::NewFloatingBulkWithProrationPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_cumulative_grouped_bulk_price.rbs b/sig/orb/models/new_floating_cumulative_grouped_bulk_price.rbs index f3514fa1..04f9ac0e 100644 --- a/sig/orb/models/new_floating_cumulative_grouped_bulk_price.rbs +++ b/sig/orb/models/new_floating_cumulative_grouped_bulk_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::unnamed_type_withobject_parent6?, + conversion_rate_config: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::unnamed_type_withobject_parent6? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::conversion_rate_config? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::unnamed_type_withobject_parent6?, + ?conversion_rate_config: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::conversion_rate_config?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::unnamed_type_withobject_parent6?, + conversion_rate_config: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_grouped_allocation_price.rbs b/sig/orb/models/new_floating_grouped_allocation_price.rbs index 64ec8e10..d88ca90b 100644 --- a/sig/orb/models/new_floating_grouped_allocation_price.rbs +++ b/sig/orb/models/new_floating_grouped_allocation_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedAllocationPrice::unnamed_type_withobject_parent7?, + conversion_rate_config: Orb::Models::NewFloatingGroupedAllocationPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedAllocationPrice::unnamed_type_withobject_parent7? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedAllocationPrice::conversion_rate_config? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingGroupedAllocationPrice::unnamed_type_withobject_parent7?, + ?conversion_rate_config: Orb::Models::NewFloatingGroupedAllocationPrice::conversion_rate_config?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedAllocationPrice::unnamed_type_withobject_parent7?, + conversion_rate_config: Orb::Models::NewFloatingGroupedAllocationPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_grouped_tiered_package_price.rbs b/sig/orb/models/new_floating_grouped_tiered_package_price.rbs index 1cfb6d64..6b9dc781 100644 --- a/sig/orb/models/new_floating_grouped_tiered_package_price.rbs +++ b/sig/orb/models/new_floating_grouped_tiered_package_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPackagePrice::unnamed_type_withobject_parent8?, + conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPackagePrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPackagePrice::unnamed_type_withobject_parent8? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPackagePrice::conversion_rate_config? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPackagePrice::unnamed_type_withobject_parent8?, + ?conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPackagePrice::conversion_rate_config?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPackagePrice::unnamed_type_withobject_parent8?, + conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPackagePrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_grouped_tiered_price.rbs b/sig/orb/models/new_floating_grouped_tiered_price.rbs index 9e0cd478..e61daba9 100644 --- a/sig/orb/models/new_floating_grouped_tiered_price.rbs +++ b/sig/orb/models/new_floating_grouped_tiered_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPrice::unnamed_type_withobject_parent9?, + conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPrice::unnamed_type_withobject_parent9? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPrice::conversion_rate_config? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPrice::unnamed_type_withobject_parent9?, + ?conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPrice::conversion_rate_config?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPrice::unnamed_type_withobject_parent9?, + conversion_rate_config: Orb::Models::NewFloatingGroupedTieredPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_grouped_with_metered_minimum_price.rbs b/sig/orb/models/new_floating_grouped_with_metered_minimum_price.rbs index 8c1fd79b..db75b51f 100644 --- a/sig/orb/models/new_floating_grouped_with_metered_minimum_price.rbs +++ b/sig/orb/models/new_floating_grouped_with_metered_minimum_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent10?, + conversion_rate_config: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent10? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::conversion_rate_config? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent10?, + ?conversion_rate_config: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::conversion_rate_config?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent10?, + conversion_rate_config: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_grouped_with_prorated_minimum_price.rbs b/sig/orb/models/new_floating_grouped_with_prorated_minimum_price.rbs index 7339de59..af7ab490 100644 --- a/sig/orb/models/new_floating_grouped_with_prorated_minimum_price.rbs +++ b/sig/orb/models/new_floating_grouped_with_prorated_minimum_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent11?, + conversion_rate_config: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent11? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::conversion_rate_config? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent11?, + ?conversion_rate_config: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::conversion_rate_config?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent11?, + conversion_rate_config: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_matrix_price.rbs b/sig/orb/models/new_floating_matrix_price.rbs index 4fb3736a..4af0d538 100644 --- a/sig/orb/models/new_floating_matrix_price.rbs +++ b/sig/orb/models/new_floating_matrix_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingMatrixPrice::unnamed_type_withobject_parent12?, + conversion_rate_config: Orb::Models::NewFloatingMatrixPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingMatrixPrice::unnamed_type_withobject_parent12? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingMatrixPrice::conversion_rate_config? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingMatrixPrice::unnamed_type_withobject_parent12?, + ?conversion_rate_config: Orb::Models::NewFloatingMatrixPrice::conversion_rate_config?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingMatrixPrice::unnamed_type_withobject_parent12?, + conversion_rate_config: Orb::Models::NewFloatingMatrixPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_matrix_with_allocation_price.rbs b/sig/orb/models/new_floating_matrix_with_allocation_price.rbs index 9ed63a1a..5028578f 100644 --- a/sig/orb/models/new_floating_matrix_with_allocation_price.rbs +++ b/sig/orb/models/new_floating_matrix_with_allocation_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingMatrixWithAllocationPrice::unnamed_type_withobject_parent13?, + conversion_rate_config: Orb::Models::NewFloatingMatrixWithAllocationPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingMatrixWithAllocationPrice::unnamed_type_withobject_parent13? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingMatrixWithAllocationPrice::conversion_rate_config? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingMatrixWithAllocationPrice::unnamed_type_withobject_parent13?, + ?conversion_rate_config: Orb::Models::NewFloatingMatrixWithAllocationPrice::conversion_rate_config?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingMatrixWithAllocationPrice::unnamed_type_withobject_parent13?, + conversion_rate_config: Orb::Models::NewFloatingMatrixWithAllocationPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_matrix_with_display_name_price.rbs b/sig/orb/models/new_floating_matrix_with_display_name_price.rbs index bdfb7ef1..e9b1f117 100644 --- a/sig/orb/models/new_floating_matrix_with_display_name_price.rbs +++ b/sig/orb/models/new_floating_matrix_with_display_name_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::unnamed_type_withobject_parent14?, + conversion_rate_config: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::unnamed_type_withobject_parent14? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::conversion_rate_config? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::unnamed_type_withobject_parent14?, + ?conversion_rate_config: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::conversion_rate_config?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::unnamed_type_withobject_parent14?, + conversion_rate_config: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_max_group_tiered_package_price.rbs b/sig/orb/models/new_floating_max_group_tiered_package_price.rbs index acc9da43..310bd155 100644 --- a/sig/orb/models/new_floating_max_group_tiered_package_price.rbs +++ b/sig/orb/models/new_floating_max_group_tiered_package_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::unnamed_type_withobject_parent15?, + conversion_rate_config: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::unnamed_type_withobject_parent15? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::conversion_rate_config? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::unnamed_type_withobject_parent15?, + ?conversion_rate_config: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::conversion_rate_config?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::unnamed_type_withobject_parent15?, + conversion_rate_config: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_minimum_composite_price.rbs b/sig/orb/models/new_floating_minimum_composite_price.rbs index 8781f10c..55384bbc 100644 --- a/sig/orb/models/new_floating_minimum_composite_price.rbs +++ b/sig/orb/models/new_floating_minimum_composite_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingMinimumCompositePrice::unnamed_type_withobject_parent16?, + conversion_rate_config: Orb::Models::NewFloatingMinimumCompositePrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingMinimumCompositePrice::unnamed_type_withobject_parent16? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingMinimumCompositePrice::conversion_rate_config? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingMinimumCompositePrice::unnamed_type_withobject_parent16?, + ?conversion_rate_config: Orb::Models::NewFloatingMinimumCompositePrice::conversion_rate_config?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingMinimumCompositePrice::unnamed_type_withobject_parent16?, + conversion_rate_config: Orb::Models::NewFloatingMinimumCompositePrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_package_price.rbs b/sig/orb/models/new_floating_package_price.rbs index e2159977..689344db 100644 --- a/sig/orb/models/new_floating_package_price.rbs +++ b/sig/orb/models/new_floating_package_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingPackagePrice::unnamed_type_withobject_parent17?, + conversion_rate_config: Orb::Models::NewFloatingPackagePrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingPackagePrice::unnamed_type_withobject_parent17? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingPackagePrice::conversion_rate_config? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingPackagePrice::unnamed_type_withobject_parent17?, + ?conversion_rate_config: Orb::Models::NewFloatingPackagePrice::conversion_rate_config?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingPackagePrice::unnamed_type_withobject_parent17?, + conversion_rate_config: Orb::Models::NewFloatingPackagePrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_package_with_allocation_price.rbs b/sig/orb/models/new_floating_package_with_allocation_price.rbs index b3191412..765a53f2 100644 --- a/sig/orb/models/new_floating_package_with_allocation_price.rbs +++ b/sig/orb/models/new_floating_package_with_allocation_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingPackageWithAllocationPrice::unnamed_type_withobject_parent18?, + conversion_rate_config: Orb::Models::NewFloatingPackageWithAllocationPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingPackageWithAllocationPrice::unnamed_type_withobject_parent18? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingPackageWithAllocationPrice::conversion_rate_config? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingPackageWithAllocationPrice::unnamed_type_withobject_parent18?, + ?conversion_rate_config: Orb::Models::NewFloatingPackageWithAllocationPrice::conversion_rate_config?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingPackageWithAllocationPrice::unnamed_type_withobject_parent18?, + conversion_rate_config: Orb::Models::NewFloatingPackageWithAllocationPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbs b/sig/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbs index 084ab4bf..a86e3eef 100644 --- a/sig/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbs +++ b/sig/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent19?, + conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent19? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::conversion_rate_config? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent19?, + ?conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::conversion_rate_config?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent19?, + conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbs b/sig/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbs index 36ccd36c..551723f6 100644 --- a/sig/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbs +++ b/sig/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent20?, + conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent20? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::conversion_rate_config? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent20?, + ?conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::conversion_rate_config?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent20?, + conversion_rate_config: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_threshold_total_amount_price.rbs b/sig/orb/models/new_floating_threshold_total_amount_price.rbs index eb625008..a2f3fabb 100644 --- a/sig/orb/models/new_floating_threshold_total_amount_price.rbs +++ b/sig/orb/models/new_floating_threshold_total_amount_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingThresholdTotalAmountPrice::unnamed_type_withobject_parent21?, + conversion_rate_config: Orb::Models::NewFloatingThresholdTotalAmountPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingThresholdTotalAmountPrice::unnamed_type_withobject_parent21? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingThresholdTotalAmountPrice::conversion_rate_config? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingThresholdTotalAmountPrice::unnamed_type_withobject_parent21?, + ?conversion_rate_config: Orb::Models::NewFloatingThresholdTotalAmountPrice::conversion_rate_config?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingThresholdTotalAmountPrice::unnamed_type_withobject_parent21?, + conversion_rate_config: Orb::Models::NewFloatingThresholdTotalAmountPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_tiered_package_price.rbs b/sig/orb/models/new_floating_tiered_package_price.rbs index de52d63e..8888977b 100644 --- a/sig/orb/models/new_floating_tiered_package_price.rbs +++ b/sig/orb/models/new_floating_tiered_package_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredPackagePrice::unnamed_type_withobject_parent22?, + conversion_rate_config: Orb::Models::NewFloatingTieredPackagePrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredPackagePrice::unnamed_type_withobject_parent22? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredPackagePrice::conversion_rate_config? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingTieredPackagePrice::unnamed_type_withobject_parent22?, + ?conversion_rate_config: Orb::Models::NewFloatingTieredPackagePrice::conversion_rate_config?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredPackagePrice::unnamed_type_withobject_parent22?, + conversion_rate_config: Orb::Models::NewFloatingTieredPackagePrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_tiered_package_with_minimum_price.rbs b/sig/orb/models/new_floating_tiered_package_with_minimum_price.rbs index 561c57e1..ec73b712 100644 --- a/sig/orb/models/new_floating_tiered_package_with_minimum_price.rbs +++ b/sig/orb/models/new_floating_tiered_package_with_minimum_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::unnamed_type_withobject_parent23?, + conversion_rate_config: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::unnamed_type_withobject_parent23? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::conversion_rate_config? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::unnamed_type_withobject_parent23?, + ?conversion_rate_config: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::conversion_rate_config?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::unnamed_type_withobject_parent23?, + conversion_rate_config: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_tiered_price.rbs b/sig/orb/models/new_floating_tiered_price.rbs index dd01e148..4eb29ae3 100644 --- a/sig/orb/models/new_floating_tiered_price.rbs +++ b/sig/orb/models/new_floating_tiered_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredPrice::unnamed_type_withobject_parent24?, + conversion_rate_config: Orb::Models::NewFloatingTieredPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredPrice::unnamed_type_withobject_parent24? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredPrice::conversion_rate_config? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingTieredPrice::unnamed_type_withobject_parent24?, + ?conversion_rate_config: Orb::Models::NewFloatingTieredPrice::conversion_rate_config?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredPrice::unnamed_type_withobject_parent24?, + conversion_rate_config: Orb::Models::NewFloatingTieredPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_tiered_with_minimum_price.rbs b/sig/orb/models/new_floating_tiered_with_minimum_price.rbs index b3f604dc..6565f022 100644 --- a/sig/orb/models/new_floating_tiered_with_minimum_price.rbs +++ b/sig/orb/models/new_floating_tiered_with_minimum_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredWithMinimumPrice::unnamed_type_withobject_parent25?, + conversion_rate_config: Orb::Models::NewFloatingTieredWithMinimumPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredWithMinimumPrice::unnamed_type_withobject_parent25? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredWithMinimumPrice::conversion_rate_config? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingTieredWithMinimumPrice::unnamed_type_withobject_parent25?, + ?conversion_rate_config: Orb::Models::NewFloatingTieredWithMinimumPrice::conversion_rate_config?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredWithMinimumPrice::unnamed_type_withobject_parent25?, + conversion_rate_config: Orb::Models::NewFloatingTieredWithMinimumPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_tiered_with_proration_price.rbs b/sig/orb/models/new_floating_tiered_with_proration_price.rbs index 2bec64c3..4ce23b02 100644 --- a/sig/orb/models/new_floating_tiered_with_proration_price.rbs +++ b/sig/orb/models/new_floating_tiered_with_proration_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredWithProrationPrice::unnamed_type_withobject_parent26?, + conversion_rate_config: Orb::Models::NewFloatingTieredWithProrationPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredWithProrationPrice::unnamed_type_withobject_parent26? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingTieredWithProrationPrice::conversion_rate_config? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingTieredWithProrationPrice::unnamed_type_withobject_parent26?, + ?conversion_rate_config: Orb::Models::NewFloatingTieredWithProrationPrice::conversion_rate_config?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingTieredWithProrationPrice::unnamed_type_withobject_parent26?, + conversion_rate_config: Orb::Models::NewFloatingTieredWithProrationPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_unit_price.rbs b/sig/orb/models/new_floating_unit_price.rbs index 75af3e0f..89b173d3 100644 --- a/sig/orb/models/new_floating_unit_price.rbs +++ b/sig/orb/models/new_floating_unit_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingUnitPrice::unnamed_type_withobject_parent27?, + conversion_rate_config: Orb::Models::NewFloatingUnitPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingUnitPrice::unnamed_type_withobject_parent27? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingUnitPrice::conversion_rate_config? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingUnitPrice::unnamed_type_withobject_parent27?, + ?conversion_rate_config: Orb::Models::NewFloatingUnitPrice::conversion_rate_config?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingUnitPrice::unnamed_type_withobject_parent27?, + conversion_rate_config: Orb::Models::NewFloatingUnitPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_unit_with_percent_price.rbs b/sig/orb/models/new_floating_unit_with_percent_price.rbs index bf20db64..29cb4e7a 100644 --- a/sig/orb/models/new_floating_unit_with_percent_price.rbs +++ b/sig/orb/models/new_floating_unit_with_percent_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingUnitWithPercentPrice::unnamed_type_withobject_parent28?, + conversion_rate_config: Orb::Models::NewFloatingUnitWithPercentPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingUnitWithPercentPrice::unnamed_type_withobject_parent28? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingUnitWithPercentPrice::conversion_rate_config? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingUnitWithPercentPrice::unnamed_type_withobject_parent28?, + ?conversion_rate_config: Orb::Models::NewFloatingUnitWithPercentPrice::conversion_rate_config?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingUnitWithPercentPrice::unnamed_type_withobject_parent28?, + conversion_rate_config: Orb::Models::NewFloatingUnitWithPercentPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_floating_unit_with_proration_price.rbs b/sig/orb/models/new_floating_unit_with_proration_price.rbs index bc7500a0..c466268f 100644 --- a/sig/orb/models/new_floating_unit_with_proration_price.rbs +++ b/sig/orb/models/new_floating_unit_with_proration_price.rbs @@ -12,7 +12,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingUnitWithProrationPrice::unnamed_type_withobject_parent29?, + conversion_rate_config: Orb::Models::NewFloatingUnitWithProrationPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -42,7 +42,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewFloatingUnitWithProrationPrice::unnamed_type_withobject_parent29? + attr_accessor conversion_rate_config: Orb::Models::NewFloatingUnitWithProrationPrice::conversion_rate_config? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -67,7 +67,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewFloatingUnitWithProrationPrice::unnamed_type_withobject_parent29?, + ?conversion_rate_config: Orb::Models::NewFloatingUnitWithProrationPrice::conversion_rate_config?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -87,7 +87,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewFloatingUnitWithProrationPrice::unnamed_type_withobject_parent29?, + conversion_rate_config: Orb::Models::NewFloatingUnitWithProrationPrice::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/new_plan_bulk_price.rbs b/sig/orb/models/new_plan_bulk_price.rbs index 8ff2daab..2d5ffc3e 100644 --- a/sig/orb/models/new_plan_bulk_price.rbs +++ b/sig/orb/models/new_plan_bulk_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanBulkPrice::unnamed_type_withobject_parent30?, + conversion_rate_config: Orb::Models::NewPlanBulkPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanBulkPrice::unnamed_type_withobject_parent30? + attr_accessor conversion_rate_config: Orb::Models::NewPlanBulkPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanBulkPrice::unnamed_type_withobject_parent30?, + ?conversion_rate_config: Orb::Models::NewPlanBulkPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanBulkPrice::unnamed_type_withobject_parent30?, + conversion_rate_config: Orb::Models::NewPlanBulkPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_bulk_with_proration_price.rbs b/sig/orb/models/new_plan_bulk_with_proration_price.rbs index a23a89d5..6e807640 100644 --- a/sig/orb/models/new_plan_bulk_with_proration_price.rbs +++ b/sig/orb/models/new_plan_bulk_with_proration_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanBulkWithProrationPrice::unnamed_type_withobject_parent31?, + conversion_rate_config: Orb::Models::NewPlanBulkWithProrationPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanBulkWithProrationPrice::unnamed_type_withobject_parent31? + attr_accessor conversion_rate_config: Orb::Models::NewPlanBulkWithProrationPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanBulkWithProrationPrice::unnamed_type_withobject_parent31?, + ?conversion_rate_config: Orb::Models::NewPlanBulkWithProrationPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanBulkWithProrationPrice::unnamed_type_withobject_parent31?, + conversion_rate_config: Orb::Models::NewPlanBulkWithProrationPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_cumulative_grouped_bulk_price.rbs b/sig/orb/models/new_plan_cumulative_grouped_bulk_price.rbs index 3426a3b4..425cd3f9 100644 --- a/sig/orb/models/new_plan_cumulative_grouped_bulk_price.rbs +++ b/sig/orb/models/new_plan_cumulative_grouped_bulk_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanCumulativeGroupedBulkPrice::unnamed_type_withobject_parent32?, + conversion_rate_config: Orb::Models::NewPlanCumulativeGroupedBulkPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanCumulativeGroupedBulkPrice::unnamed_type_withobject_parent32? + attr_accessor conversion_rate_config: Orb::Models::NewPlanCumulativeGroupedBulkPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanCumulativeGroupedBulkPrice::unnamed_type_withobject_parent32?, + ?conversion_rate_config: Orb::Models::NewPlanCumulativeGroupedBulkPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanCumulativeGroupedBulkPrice::unnamed_type_withobject_parent32?, + conversion_rate_config: Orb::Models::NewPlanCumulativeGroupedBulkPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_grouped_allocation_price.rbs b/sig/orb/models/new_plan_grouped_allocation_price.rbs index 1f6a2190..f31f24cf 100644 --- a/sig/orb/models/new_plan_grouped_allocation_price.rbs +++ b/sig/orb/models/new_plan_grouped_allocation_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedAllocationPrice::unnamed_type_withobject_parent33?, + conversion_rate_config: Orb::Models::NewPlanGroupedAllocationPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedAllocationPrice::unnamed_type_withobject_parent33? + attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedAllocationPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanGroupedAllocationPrice::unnamed_type_withobject_parent33?, + ?conversion_rate_config: Orb::Models::NewPlanGroupedAllocationPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedAllocationPrice::unnamed_type_withobject_parent33?, + conversion_rate_config: Orb::Models::NewPlanGroupedAllocationPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_grouped_tiered_package_price.rbs b/sig/orb/models/new_plan_grouped_tiered_package_price.rbs index fd4dcd46..c2d21614 100644 --- a/sig/orb/models/new_plan_grouped_tiered_package_price.rbs +++ b/sig/orb/models/new_plan_grouped_tiered_package_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedTieredPackagePrice::unnamed_type_withobject_parent34?, + conversion_rate_config: Orb::Models::NewPlanGroupedTieredPackagePrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedTieredPackagePrice::unnamed_type_withobject_parent34? + attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedTieredPackagePrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanGroupedTieredPackagePrice::unnamed_type_withobject_parent34?, + ?conversion_rate_config: Orb::Models::NewPlanGroupedTieredPackagePrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedTieredPackagePrice::unnamed_type_withobject_parent34?, + conversion_rate_config: Orb::Models::NewPlanGroupedTieredPackagePrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_grouped_tiered_price.rbs b/sig/orb/models/new_plan_grouped_tiered_price.rbs index c4b3e7de..82648ffd 100644 --- a/sig/orb/models/new_plan_grouped_tiered_price.rbs +++ b/sig/orb/models/new_plan_grouped_tiered_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedTieredPrice::unnamed_type_withobject_parent35?, + conversion_rate_config: Orb::Models::NewPlanGroupedTieredPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedTieredPrice::unnamed_type_withobject_parent35? + attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedTieredPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanGroupedTieredPrice::unnamed_type_withobject_parent35?, + ?conversion_rate_config: Orb::Models::NewPlanGroupedTieredPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedTieredPrice::unnamed_type_withobject_parent35?, + conversion_rate_config: Orb::Models::NewPlanGroupedTieredPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_grouped_with_metered_minimum_price.rbs b/sig/orb/models/new_plan_grouped_with_metered_minimum_price.rbs index 269f91e5..7c9e6142 100644 --- a/sig/orb/models/new_plan_grouped_with_metered_minimum_price.rbs +++ b/sig/orb/models/new_plan_grouped_with_metered_minimum_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent36?, + conversion_rate_config: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent36? + attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent36?, + ?conversion_rate_config: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent36?, + conversion_rate_config: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_grouped_with_prorated_minimum_price.rbs b/sig/orb/models/new_plan_grouped_with_prorated_minimum_price.rbs index d440626f..5cf3aace 100644 --- a/sig/orb/models/new_plan_grouped_with_prorated_minimum_price.rbs +++ b/sig/orb/models/new_plan_grouped_with_prorated_minimum_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent37?, + conversion_rate_config: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent37? + attr_accessor conversion_rate_config: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent37?, + ?conversion_rate_config: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent37?, + conversion_rate_config: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_matrix_price.rbs b/sig/orb/models/new_plan_matrix_price.rbs index 303afd09..c95c952e 100644 --- a/sig/orb/models/new_plan_matrix_price.rbs +++ b/sig/orb/models/new_plan_matrix_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanMatrixPrice::unnamed_type_withobject_parent38?, + conversion_rate_config: Orb::Models::NewPlanMatrixPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanMatrixPrice::unnamed_type_withobject_parent38? + attr_accessor conversion_rate_config: Orb::Models::NewPlanMatrixPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanMatrixPrice::unnamed_type_withobject_parent38?, + ?conversion_rate_config: Orb::Models::NewPlanMatrixPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanMatrixPrice::unnamed_type_withobject_parent38?, + conversion_rate_config: Orb::Models::NewPlanMatrixPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_matrix_with_allocation_price.rbs b/sig/orb/models/new_plan_matrix_with_allocation_price.rbs index 9b78e1f4..678fa49d 100644 --- a/sig/orb/models/new_plan_matrix_with_allocation_price.rbs +++ b/sig/orb/models/new_plan_matrix_with_allocation_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanMatrixWithAllocationPrice::unnamed_type_withobject_parent39?, + conversion_rate_config: Orb::Models::NewPlanMatrixWithAllocationPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanMatrixWithAllocationPrice::unnamed_type_withobject_parent39? + attr_accessor conversion_rate_config: Orb::Models::NewPlanMatrixWithAllocationPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanMatrixWithAllocationPrice::unnamed_type_withobject_parent39?, + ?conversion_rate_config: Orb::Models::NewPlanMatrixWithAllocationPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanMatrixWithAllocationPrice::unnamed_type_withobject_parent39?, + conversion_rate_config: Orb::Models::NewPlanMatrixWithAllocationPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_matrix_with_display_name_price.rbs b/sig/orb/models/new_plan_matrix_with_display_name_price.rbs index 0c19e6b8..bb4229a8 100644 --- a/sig/orb/models/new_plan_matrix_with_display_name_price.rbs +++ b/sig/orb/models/new_plan_matrix_with_display_name_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanMatrixWithDisplayNamePrice::unnamed_type_withobject_parent40?, + conversion_rate_config: Orb::Models::NewPlanMatrixWithDisplayNamePrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanMatrixWithDisplayNamePrice::unnamed_type_withobject_parent40? + attr_accessor conversion_rate_config: Orb::Models::NewPlanMatrixWithDisplayNamePrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanMatrixWithDisplayNamePrice::unnamed_type_withobject_parent40?, + ?conversion_rate_config: Orb::Models::NewPlanMatrixWithDisplayNamePrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanMatrixWithDisplayNamePrice::unnamed_type_withobject_parent40?, + conversion_rate_config: Orb::Models::NewPlanMatrixWithDisplayNamePrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_max_group_tiered_package_price.rbs b/sig/orb/models/new_plan_max_group_tiered_package_price.rbs index deb6cc0e..743fa734 100644 --- a/sig/orb/models/new_plan_max_group_tiered_package_price.rbs +++ b/sig/orb/models/new_plan_max_group_tiered_package_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanMaxGroupTieredPackagePrice::unnamed_type_withobject_parent41?, + conversion_rate_config: Orb::Models::NewPlanMaxGroupTieredPackagePrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanMaxGroupTieredPackagePrice::unnamed_type_withobject_parent41? + attr_accessor conversion_rate_config: Orb::Models::NewPlanMaxGroupTieredPackagePrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanMaxGroupTieredPackagePrice::unnamed_type_withobject_parent41?, + ?conversion_rate_config: Orb::Models::NewPlanMaxGroupTieredPackagePrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanMaxGroupTieredPackagePrice::unnamed_type_withobject_parent41?, + conversion_rate_config: Orb::Models::NewPlanMaxGroupTieredPackagePrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_minimum_composite_price.rbs b/sig/orb/models/new_plan_minimum_composite_price.rbs index 506d60e5..834283ea 100644 --- a/sig/orb/models/new_plan_minimum_composite_price.rbs +++ b/sig/orb/models/new_plan_minimum_composite_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanMinimumCompositePrice::unnamed_type_withobject_parent42?, + conversion_rate_config: Orb::Models::NewPlanMinimumCompositePrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanMinimumCompositePrice::unnamed_type_withobject_parent42? + attr_accessor conversion_rate_config: Orb::Models::NewPlanMinimumCompositePrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanMinimumCompositePrice::unnamed_type_withobject_parent42?, + ?conversion_rate_config: Orb::Models::NewPlanMinimumCompositePrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanMinimumCompositePrice::unnamed_type_withobject_parent42?, + conversion_rate_config: Orb::Models::NewPlanMinimumCompositePrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_package_price.rbs b/sig/orb/models/new_plan_package_price.rbs index c76f8e5a..a190c2f4 100644 --- a/sig/orb/models/new_plan_package_price.rbs +++ b/sig/orb/models/new_plan_package_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanPackagePrice::unnamed_type_withobject_parent43?, + conversion_rate_config: Orb::Models::NewPlanPackagePrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanPackagePrice::unnamed_type_withobject_parent43? + attr_accessor conversion_rate_config: Orb::Models::NewPlanPackagePrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanPackagePrice::unnamed_type_withobject_parent43?, + ?conversion_rate_config: Orb::Models::NewPlanPackagePrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanPackagePrice::unnamed_type_withobject_parent43?, + conversion_rate_config: Orb::Models::NewPlanPackagePrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_package_with_allocation_price.rbs b/sig/orb/models/new_plan_package_with_allocation_price.rbs index efb78f98..cac51912 100644 --- a/sig/orb/models/new_plan_package_with_allocation_price.rbs +++ b/sig/orb/models/new_plan_package_with_allocation_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanPackageWithAllocationPrice::unnamed_type_withobject_parent44?, + conversion_rate_config: Orb::Models::NewPlanPackageWithAllocationPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanPackageWithAllocationPrice::unnamed_type_withobject_parent44? + attr_accessor conversion_rate_config: Orb::Models::NewPlanPackageWithAllocationPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanPackageWithAllocationPrice::unnamed_type_withobject_parent44?, + ?conversion_rate_config: Orb::Models::NewPlanPackageWithAllocationPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanPackageWithAllocationPrice::unnamed_type_withobject_parent44?, + conversion_rate_config: Orb::Models::NewPlanPackageWithAllocationPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbs b/sig/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbs index 49e5c3be..b64cb766 100644 --- a/sig/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbs +++ b/sig/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent45?, + conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent45? + attr_accessor conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent45?, + ?conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent45?, + conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbs b/sig/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbs index 6e63fb86..43bf19d0 100644 --- a/sig/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbs +++ b/sig/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent46?, + conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent46? + attr_accessor conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent46?, + ?conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent46?, + conversion_rate_config: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_threshold_total_amount_price.rbs b/sig/orb/models/new_plan_threshold_total_amount_price.rbs index 1ea0d04e..cf8119c6 100644 --- a/sig/orb/models/new_plan_threshold_total_amount_price.rbs +++ b/sig/orb/models/new_plan_threshold_total_amount_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanThresholdTotalAmountPrice::unnamed_type_withobject_parent47?, + conversion_rate_config: Orb::Models::NewPlanThresholdTotalAmountPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanThresholdTotalAmountPrice::unnamed_type_withobject_parent47? + attr_accessor conversion_rate_config: Orb::Models::NewPlanThresholdTotalAmountPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanThresholdTotalAmountPrice::unnamed_type_withobject_parent47?, + ?conversion_rate_config: Orb::Models::NewPlanThresholdTotalAmountPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanThresholdTotalAmountPrice::unnamed_type_withobject_parent47?, + conversion_rate_config: Orb::Models::NewPlanThresholdTotalAmountPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_tier_with_proration_price.rbs b/sig/orb/models/new_plan_tier_with_proration_price.rbs index fbab3c78..b5dd6e73 100644 --- a/sig/orb/models/new_plan_tier_with_proration_price.rbs +++ b/sig/orb/models/new_plan_tier_with_proration_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::unnamed_type_withobject_parent52?, + conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::unnamed_type_withobject_parent52? + attr_accessor conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::unnamed_type_withobject_parent52?, + ?conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::unnamed_type_withobject_parent52?, + conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_tiered_package_price.rbs b/sig/orb/models/new_plan_tiered_package_price.rbs index dca76b1d..029c24e2 100644 --- a/sig/orb/models/new_plan_tiered_package_price.rbs +++ b/sig/orb/models/new_plan_tiered_package_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredPackagePrice::unnamed_type_withobject_parent48?, + conversion_rate_config: Orb::Models::NewPlanTieredPackagePrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredPackagePrice::unnamed_type_withobject_parent48? + attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredPackagePrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanTieredPackagePrice::unnamed_type_withobject_parent48?, + ?conversion_rate_config: Orb::Models::NewPlanTieredPackagePrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredPackagePrice::unnamed_type_withobject_parent48?, + conversion_rate_config: Orb::Models::NewPlanTieredPackagePrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_tiered_package_with_minimum_price.rbs b/sig/orb/models/new_plan_tiered_package_with_minimum_price.rbs index 55ea25d1..6d4ad117 100644 --- a/sig/orb/models/new_plan_tiered_package_with_minimum_price.rbs +++ b/sig/orb/models/new_plan_tiered_package_with_minimum_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredPackageWithMinimumPrice::unnamed_type_withobject_parent49?, + conversion_rate_config: Orb::Models::NewPlanTieredPackageWithMinimumPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredPackageWithMinimumPrice::unnamed_type_withobject_parent49? + attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredPackageWithMinimumPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanTieredPackageWithMinimumPrice::unnamed_type_withobject_parent49?, + ?conversion_rate_config: Orb::Models::NewPlanTieredPackageWithMinimumPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredPackageWithMinimumPrice::unnamed_type_withobject_parent49?, + conversion_rate_config: Orb::Models::NewPlanTieredPackageWithMinimumPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_tiered_price.rbs b/sig/orb/models/new_plan_tiered_price.rbs index 8cb8c427..f86e530f 100644 --- a/sig/orb/models/new_plan_tiered_price.rbs +++ b/sig/orb/models/new_plan_tiered_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredPrice::unnamed_type_withobject_parent50?, + conversion_rate_config: Orb::Models::NewPlanTieredPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredPrice::unnamed_type_withobject_parent50? + attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanTieredPrice::unnamed_type_withobject_parent50?, + ?conversion_rate_config: Orb::Models::NewPlanTieredPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredPrice::unnamed_type_withobject_parent50?, + conversion_rate_config: Orb::Models::NewPlanTieredPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_tiered_with_minimum_price.rbs b/sig/orb/models/new_plan_tiered_with_minimum_price.rbs index e6edf203..2dae5649 100644 --- a/sig/orb/models/new_plan_tiered_with_minimum_price.rbs +++ b/sig/orb/models/new_plan_tiered_with_minimum_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredWithMinimumPrice::unnamed_type_withobject_parent51?, + conversion_rate_config: Orb::Models::NewPlanTieredWithMinimumPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredWithMinimumPrice::unnamed_type_withobject_parent51? + attr_accessor conversion_rate_config: Orb::Models::NewPlanTieredWithMinimumPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanTieredWithMinimumPrice::unnamed_type_withobject_parent51?, + ?conversion_rate_config: Orb::Models::NewPlanTieredWithMinimumPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTieredWithMinimumPrice::unnamed_type_withobject_parent51?, + conversion_rate_config: Orb::Models::NewPlanTieredWithMinimumPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_unit_price.rbs b/sig/orb/models/new_plan_unit_price.rbs index 3ac886a9..69767bc8 100644 --- a/sig/orb/models/new_plan_unit_price.rbs +++ b/sig/orb/models/new_plan_unit_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanUnitPrice::unnamed_type_withobject_parent53?, + conversion_rate_config: Orb::Models::NewPlanUnitPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanUnitPrice::unnamed_type_withobject_parent53? + attr_accessor conversion_rate_config: Orb::Models::NewPlanUnitPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanUnitPrice::unnamed_type_withobject_parent53?, + ?conversion_rate_config: Orb::Models::NewPlanUnitPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanUnitPrice::unnamed_type_withobject_parent53?, + conversion_rate_config: Orb::Models::NewPlanUnitPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_unit_with_percent_price.rbs b/sig/orb/models/new_plan_unit_with_percent_price.rbs index bcf29fb0..e6e33ea6 100644 --- a/sig/orb/models/new_plan_unit_with_percent_price.rbs +++ b/sig/orb/models/new_plan_unit_with_percent_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanUnitWithPercentPrice::unnamed_type_withobject_parent54?, + conversion_rate_config: Orb::Models::NewPlanUnitWithPercentPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanUnitWithPercentPrice::unnamed_type_withobject_parent54? + attr_accessor conversion_rate_config: Orb::Models::NewPlanUnitWithPercentPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanUnitWithPercentPrice::unnamed_type_withobject_parent54?, + ?conversion_rate_config: Orb::Models::NewPlanUnitWithPercentPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanUnitWithPercentPrice::unnamed_type_withobject_parent54?, + conversion_rate_config: Orb::Models::NewPlanUnitWithPercentPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_plan_unit_with_proration_price.rbs b/sig/orb/models/new_plan_unit_with_proration_price.rbs index b43cd8a3..5abefd98 100644 --- a/sig/orb/models/new_plan_unit_with_proration_price.rbs +++ b/sig/orb/models/new_plan_unit_with_proration_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanUnitWithProrationPrice::unnamed_type_withobject_parent55?, + conversion_rate_config: Orb::Models::NewPlanUnitWithProrationPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewPlanUnitWithProrationPrice::unnamed_type_withobject_parent55? + attr_accessor conversion_rate_config: Orb::Models::NewPlanUnitWithProrationPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanUnitWithProrationPrice::unnamed_type_withobject_parent55?, + ?conversion_rate_config: Orb::Models::NewPlanUnitWithProrationPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanUnitWithProrationPrice::unnamed_type_withobject_parent55?, + conversion_rate_config: Orb::Models::NewPlanUnitWithProrationPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_bulk_price.rbs b/sig/orb/models/new_subscription_bulk_price.rbs index 39503062..5e3b1d4d 100644 --- a/sig/orb/models/new_subscription_bulk_price.rbs +++ b/sig/orb/models/new_subscription_bulk_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionBulkPrice::unnamed_type_withobject_parent56?, + conversion_rate_config: Orb::Models::NewSubscriptionBulkPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionBulkPrice::unnamed_type_withobject_parent56? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionBulkPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionBulkPrice::unnamed_type_withobject_parent56?, + ?conversion_rate_config: Orb::Models::NewSubscriptionBulkPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionBulkPrice::unnamed_type_withobject_parent56?, + conversion_rate_config: Orb::Models::NewSubscriptionBulkPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_bulk_with_proration_price.rbs b/sig/orb/models/new_subscription_bulk_with_proration_price.rbs index e823427f..cb18cef8 100644 --- a/sig/orb/models/new_subscription_bulk_with_proration_price.rbs +++ b/sig/orb/models/new_subscription_bulk_with_proration_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionBulkWithProrationPrice::unnamed_type_withobject_parent57?, + conversion_rate_config: Orb::Models::NewSubscriptionBulkWithProrationPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionBulkWithProrationPrice::unnamed_type_withobject_parent57? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionBulkWithProrationPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionBulkWithProrationPrice::unnamed_type_withobject_parent57?, + ?conversion_rate_config: Orb::Models::NewSubscriptionBulkWithProrationPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionBulkWithProrationPrice::unnamed_type_withobject_parent57?, + conversion_rate_config: Orb::Models::NewSubscriptionBulkWithProrationPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_cumulative_grouped_bulk_price.rbs b/sig/orb/models/new_subscription_cumulative_grouped_bulk_price.rbs index 76cc915d..8b363daa 100644 --- a/sig/orb/models/new_subscription_cumulative_grouped_bulk_price.rbs +++ b/sig/orb/models/new_subscription_cumulative_grouped_bulk_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::unnamed_type_withobject_parent58?, + conversion_rate_config: Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::unnamed_type_withobject_parent58? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::unnamed_type_withobject_parent58?, + ?conversion_rate_config: Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::unnamed_type_withobject_parent58?, + conversion_rate_config: Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_grouped_allocation_price.rbs b/sig/orb/models/new_subscription_grouped_allocation_price.rbs index 9aed86ac..3e0c1aee 100644 --- a/sig/orb/models/new_subscription_grouped_allocation_price.rbs +++ b/sig/orb/models/new_subscription_grouped_allocation_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionGroupedAllocationPrice::unnamed_type_withobject_parent59?, + conversion_rate_config: Orb::Models::NewSubscriptionGroupedAllocationPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionGroupedAllocationPrice::unnamed_type_withobject_parent59? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionGroupedAllocationPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionGroupedAllocationPrice::unnamed_type_withobject_parent59?, + ?conversion_rate_config: Orb::Models::NewSubscriptionGroupedAllocationPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionGroupedAllocationPrice::unnamed_type_withobject_parent59?, + conversion_rate_config: Orb::Models::NewSubscriptionGroupedAllocationPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_grouped_tiered_package_price.rbs b/sig/orb/models/new_subscription_grouped_tiered_package_price.rbs index 2143bcc2..7b6ede4c 100644 --- a/sig/orb/models/new_subscription_grouped_tiered_package_price.rbs +++ b/sig/orb/models/new_subscription_grouped_tiered_package_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPackagePrice::unnamed_type_withobject_parent60?, + conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPackagePrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPackagePrice::unnamed_type_withobject_parent60? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPackagePrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPackagePrice::unnamed_type_withobject_parent60?, + ?conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPackagePrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPackagePrice::unnamed_type_withobject_parent60?, + conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPackagePrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_grouped_tiered_price.rbs b/sig/orb/models/new_subscription_grouped_tiered_price.rbs index 1cd043a7..f2694f43 100644 --- a/sig/orb/models/new_subscription_grouped_tiered_price.rbs +++ b/sig/orb/models/new_subscription_grouped_tiered_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPrice::unnamed_type_withobject_parent61?, + conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPrice::unnamed_type_withobject_parent61? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPrice::unnamed_type_withobject_parent61?, + ?conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPrice::unnamed_type_withobject_parent61?, + conversion_rate_config: Orb::Models::NewSubscriptionGroupedTieredPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_grouped_with_metered_minimum_price.rbs b/sig/orb/models/new_subscription_grouped_with_metered_minimum_price.rbs index a1f36b5e..5e225b25 100644 --- a/sig/orb/models/new_subscription_grouped_with_metered_minimum_price.rbs +++ b/sig/orb/models/new_subscription_grouped_with_metered_minimum_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent62?, + conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent62? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent62?, + ?conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::unnamed_type_withobject_parent62?, + conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbs b/sig/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbs index 5d626891..d4b7212c 100644 --- a/sig/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbs +++ b/sig/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent63?, + conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent63? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent63?, + ?conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::unnamed_type_withobject_parent63?, + conversion_rate_config: Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_matrix_price.rbs b/sig/orb/models/new_subscription_matrix_price.rbs index 00af488f..5bcf49b1 100644 --- a/sig/orb/models/new_subscription_matrix_price.rbs +++ b/sig/orb/models/new_subscription_matrix_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionMatrixPrice::unnamed_type_withobject_parent64?, + conversion_rate_config: Orb::Models::NewSubscriptionMatrixPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionMatrixPrice::unnamed_type_withobject_parent64? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionMatrixPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionMatrixPrice::unnamed_type_withobject_parent64?, + ?conversion_rate_config: Orb::Models::NewSubscriptionMatrixPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionMatrixPrice::unnamed_type_withobject_parent64?, + conversion_rate_config: Orb::Models::NewSubscriptionMatrixPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_matrix_with_allocation_price.rbs b/sig/orb/models/new_subscription_matrix_with_allocation_price.rbs index 09687cca..26237a63 100644 --- a/sig/orb/models/new_subscription_matrix_with_allocation_price.rbs +++ b/sig/orb/models/new_subscription_matrix_with_allocation_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithAllocationPrice::unnamed_type_withobject_parent65?, + conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithAllocationPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithAllocationPrice::unnamed_type_withobject_parent65? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithAllocationPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithAllocationPrice::unnamed_type_withobject_parent65?, + ?conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithAllocationPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithAllocationPrice::unnamed_type_withobject_parent65?, + conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithAllocationPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_matrix_with_display_name_price.rbs b/sig/orb/models/new_subscription_matrix_with_display_name_price.rbs index 2a64c4b2..d671492e 100644 --- a/sig/orb/models/new_subscription_matrix_with_display_name_price.rbs +++ b/sig/orb/models/new_subscription_matrix_with_display_name_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::unnamed_type_withobject_parent66?, + conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::unnamed_type_withobject_parent66? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::unnamed_type_withobject_parent66?, + ?conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::unnamed_type_withobject_parent66?, + conversion_rate_config: Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_max_group_tiered_package_price.rbs b/sig/orb/models/new_subscription_max_group_tiered_package_price.rbs index 1ef509e6..4b8241fe 100644 --- a/sig/orb/models/new_subscription_max_group_tiered_package_price.rbs +++ b/sig/orb/models/new_subscription_max_group_tiered_package_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::unnamed_type_withobject_parent67?, + conversion_rate_config: Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::unnamed_type_withobject_parent67? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::unnamed_type_withobject_parent67?, + ?conversion_rate_config: Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::unnamed_type_withobject_parent67?, + conversion_rate_config: Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_minimum_composite_price.rbs b/sig/orb/models/new_subscription_minimum_composite_price.rbs index ff0faa3c..32843836 100644 --- a/sig/orb/models/new_subscription_minimum_composite_price.rbs +++ b/sig/orb/models/new_subscription_minimum_composite_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionMinimumCompositePrice::unnamed_type_withobject_parent68?, + conversion_rate_config: Orb::Models::NewSubscriptionMinimumCompositePrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionMinimumCompositePrice::unnamed_type_withobject_parent68? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionMinimumCompositePrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionMinimumCompositePrice::unnamed_type_withobject_parent68?, + ?conversion_rate_config: Orb::Models::NewSubscriptionMinimumCompositePrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionMinimumCompositePrice::unnamed_type_withobject_parent68?, + conversion_rate_config: Orb::Models::NewSubscriptionMinimumCompositePrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_package_price.rbs b/sig/orb/models/new_subscription_package_price.rbs index a36345ef..2ec1b84c 100644 --- a/sig/orb/models/new_subscription_package_price.rbs +++ b/sig/orb/models/new_subscription_package_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionPackagePrice::unnamed_type_withobject_parent69?, + conversion_rate_config: Orb::Models::NewSubscriptionPackagePrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionPackagePrice::unnamed_type_withobject_parent69? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionPackagePrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionPackagePrice::unnamed_type_withobject_parent69?, + ?conversion_rate_config: Orb::Models::NewSubscriptionPackagePrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionPackagePrice::unnamed_type_withobject_parent69?, + conversion_rate_config: Orb::Models::NewSubscriptionPackagePrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_package_with_allocation_price.rbs b/sig/orb/models/new_subscription_package_with_allocation_price.rbs index 1f161bd5..8cc3d94d 100644 --- a/sig/orb/models/new_subscription_package_with_allocation_price.rbs +++ b/sig/orb/models/new_subscription_package_with_allocation_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionPackageWithAllocationPrice::unnamed_type_withobject_parent70?, + conversion_rate_config: Orb::Models::NewSubscriptionPackageWithAllocationPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionPackageWithAllocationPrice::unnamed_type_withobject_parent70? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionPackageWithAllocationPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionPackageWithAllocationPrice::unnamed_type_withobject_parent70?, + ?conversion_rate_config: Orb::Models::NewSubscriptionPackageWithAllocationPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionPackageWithAllocationPrice::unnamed_type_withobject_parent70?, + conversion_rate_config: Orb::Models::NewSubscriptionPackageWithAllocationPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbs b/sig/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbs index 98a6bc74..fef57aee 100644 --- a/sig/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbs +++ b/sig/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent71?, + conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent71? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent71?, + ?conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::unnamed_type_withobject_parent71?, + conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbs b/sig/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbs index 687a610a..734595a7 100644 --- a/sig/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbs +++ b/sig/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent72?, + conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent72? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent72?, + ?conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::unnamed_type_withobject_parent72?, + conversion_rate_config: Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_threshold_total_amount_price.rbs b/sig/orb/models/new_subscription_threshold_total_amount_price.rbs index 35825be5..910ce363 100644 --- a/sig/orb/models/new_subscription_threshold_total_amount_price.rbs +++ b/sig/orb/models/new_subscription_threshold_total_amount_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionThresholdTotalAmountPrice::unnamed_type_withobject_parent73?, + conversion_rate_config: Orb::Models::NewSubscriptionThresholdTotalAmountPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionThresholdTotalAmountPrice::unnamed_type_withobject_parent73? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionThresholdTotalAmountPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionThresholdTotalAmountPrice::unnamed_type_withobject_parent73?, + ?conversion_rate_config: Orb::Models::NewSubscriptionThresholdTotalAmountPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionThresholdTotalAmountPrice::unnamed_type_withobject_parent73?, + conversion_rate_config: Orb::Models::NewSubscriptionThresholdTotalAmountPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_tier_with_proration_price.rbs b/sig/orb/models/new_subscription_tier_with_proration_price.rbs index ad77c544..a7e3d368 100644 --- a/sig/orb/models/new_subscription_tier_with_proration_price.rbs +++ b/sig/orb/models/new_subscription_tier_with_proration_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::unnamed_type_withobject_parent78?, + conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::unnamed_type_withobject_parent78? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::unnamed_type_withobject_parent78?, + ?conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::unnamed_type_withobject_parent78?, + conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_tiered_package_price.rbs b/sig/orb/models/new_subscription_tiered_package_price.rbs index 889bc1ba..9865ed5f 100644 --- a/sig/orb/models/new_subscription_tiered_package_price.rbs +++ b/sig/orb/models/new_subscription_tiered_package_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredPackagePrice::unnamed_type_withobject_parent74?, + conversion_rate_config: Orb::Models::NewSubscriptionTieredPackagePrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredPackagePrice::unnamed_type_withobject_parent74? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredPackagePrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionTieredPackagePrice::unnamed_type_withobject_parent74?, + ?conversion_rate_config: Orb::Models::NewSubscriptionTieredPackagePrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredPackagePrice::unnamed_type_withobject_parent74?, + conversion_rate_config: Orb::Models::NewSubscriptionTieredPackagePrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_tiered_package_with_minimum_price.rbs b/sig/orb/models/new_subscription_tiered_package_with_minimum_price.rbs index eb882183..f36bd7c3 100644 --- a/sig/orb/models/new_subscription_tiered_package_with_minimum_price.rbs +++ b/sig/orb/models/new_subscription_tiered_package_with_minimum_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::unnamed_type_withobject_parent75?, + conversion_rate_config: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::unnamed_type_withobject_parent75? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::unnamed_type_withobject_parent75?, + ?conversion_rate_config: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::unnamed_type_withobject_parent75?, + conversion_rate_config: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_tiered_price.rbs b/sig/orb/models/new_subscription_tiered_price.rbs index 14f9255a..489c663f 100644 --- a/sig/orb/models/new_subscription_tiered_price.rbs +++ b/sig/orb/models/new_subscription_tiered_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredPrice::unnamed_type_withobject_parent76?, + conversion_rate_config: Orb::Models::NewSubscriptionTieredPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredPrice::unnamed_type_withobject_parent76? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionTieredPrice::unnamed_type_withobject_parent76?, + ?conversion_rate_config: Orb::Models::NewSubscriptionTieredPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredPrice::unnamed_type_withobject_parent76?, + conversion_rate_config: Orb::Models::NewSubscriptionTieredPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_tiered_with_minimum_price.rbs b/sig/orb/models/new_subscription_tiered_with_minimum_price.rbs index a6a1d916..ff58ba43 100644 --- a/sig/orb/models/new_subscription_tiered_with_minimum_price.rbs +++ b/sig/orb/models/new_subscription_tiered_with_minimum_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredWithMinimumPrice::unnamed_type_withobject_parent77?, + conversion_rate_config: Orb::Models::NewSubscriptionTieredWithMinimumPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredWithMinimumPrice::unnamed_type_withobject_parent77? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTieredWithMinimumPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionTieredWithMinimumPrice::unnamed_type_withobject_parent77?, + ?conversion_rate_config: Orb::Models::NewSubscriptionTieredWithMinimumPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTieredWithMinimumPrice::unnamed_type_withobject_parent77?, + conversion_rate_config: Orb::Models::NewSubscriptionTieredWithMinimumPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_unit_price.rbs b/sig/orb/models/new_subscription_unit_price.rbs index 9f0068e8..6f377c98 100644 --- a/sig/orb/models/new_subscription_unit_price.rbs +++ b/sig/orb/models/new_subscription_unit_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionUnitPrice::unnamed_type_withobject_parent79?, + conversion_rate_config: Orb::Models::NewSubscriptionUnitPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionUnitPrice::unnamed_type_withobject_parent79? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionUnitPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionUnitPrice::unnamed_type_withobject_parent79?, + ?conversion_rate_config: Orb::Models::NewSubscriptionUnitPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionUnitPrice::unnamed_type_withobject_parent79?, + conversion_rate_config: Orb::Models::NewSubscriptionUnitPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_unit_with_percent_price.rbs b/sig/orb/models/new_subscription_unit_with_percent_price.rbs index fecbac88..3e7c6ab9 100644 --- a/sig/orb/models/new_subscription_unit_with_percent_price.rbs +++ b/sig/orb/models/new_subscription_unit_with_percent_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionUnitWithPercentPrice::unnamed_type_withobject_parent80?, + conversion_rate_config: Orb::Models::NewSubscriptionUnitWithPercentPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionUnitWithPercentPrice::unnamed_type_withobject_parent80? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionUnitWithPercentPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionUnitWithPercentPrice::unnamed_type_withobject_parent80?, + ?conversion_rate_config: Orb::Models::NewSubscriptionUnitWithPercentPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionUnitWithPercentPrice::unnamed_type_withobject_parent80?, + conversion_rate_config: Orb::Models::NewSubscriptionUnitWithPercentPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/new_subscription_unit_with_proration_price.rbs b/sig/orb/models/new_subscription_unit_with_proration_price.rbs index a9163e08..2e88eb3c 100644 --- a/sig/orb/models/new_subscription_unit_with_proration_price.rbs +++ b/sig/orb/models/new_subscription_unit_with_proration_price.rbs @@ -11,7 +11,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionUnitWithProrationPrice::unnamed_type_withobject_parent81?, + conversion_rate_config: Orb::Models::NewSubscriptionUnitWithProrationPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -41,7 +41,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionUnitWithProrationPrice::unnamed_type_withobject_parent81? + attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionUnitWithProrationPrice::conversion_rate_config? attr_accessor currency: String? @@ -69,7 +69,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionUnitWithProrationPrice::unnamed_type_withobject_parent81?, + ?conversion_rate_config: Orb::Models::NewSubscriptionUnitWithProrationPrice::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -90,7 +90,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionUnitWithProrationPrice::unnamed_type_withobject_parent81?, + conversion_rate_config: Orb::Models::NewSubscriptionUnitWithProrationPrice::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/plan_create_params.rbs b/sig/orb/models/plan_create_params.rbs index a7cfbdac..ed576fdd 100644 --- a/sig/orb/models/plan_create_params.rbs +++ b/sig/orb/models/plan_create_params.rbs @@ -140,7 +140,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent82?, + conversion_rate_config: Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -170,7 +170,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent82? + attr_accessor conversion_rate_config: Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::conversion_rate_config? attr_accessor currency: String? @@ -197,7 +197,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent82?, + ?conversion_rate_config: Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -219,7 +219,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent82?, + conversion_rate_config: Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/price.rbs b/sig/orb/models/price.rbs index cbaf8b27..2bbde231 100644 --- a/sig/orb/models/price.rbs +++ b/sig/orb/models/price.rbs @@ -40,7 +40,7 @@ module Orb cadence: Orb::Models::Price::Unit::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Unit::unnamed_type_withobject_parent83?, + conversion_rate_config: Orb::Models::Price::Unit::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -76,7 +76,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::Unit::unnamed_type_withobject_parent83? + attr_accessor conversion_rate_config: Orb::Models::Price::Unit::conversion_rate_config? attr_accessor created_at: Time @@ -125,7 +125,7 @@ module Orb cadence: Orb::Models::Price::Unit::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Unit::unnamed_type_withobject_parent83?, + conversion_rate_config: Orb::Models::Price::Unit::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -155,7 +155,7 @@ module Orb cadence: Orb::Models::Price::Unit::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Unit::unnamed_type_withobject_parent83?, + conversion_rate_config: Orb::Models::Price::Unit::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -214,7 +214,7 @@ module Orb cadence: Orb::Models::Price::Package::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Package::unnamed_type_withobject_parent84?, + conversion_rate_config: Orb::Models::Price::Package::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -250,7 +250,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::Package::unnamed_type_withobject_parent84? + attr_accessor conversion_rate_config: Orb::Models::Price::Package::conversion_rate_config? attr_accessor created_at: Time @@ -299,7 +299,7 @@ module Orb cadence: Orb::Models::Price::Package::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Package::unnamed_type_withobject_parent84?, + conversion_rate_config: Orb::Models::Price::Package::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -329,7 +329,7 @@ module Orb cadence: Orb::Models::Price::Package::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Package::unnamed_type_withobject_parent84?, + conversion_rate_config: Orb::Models::Price::Package::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -388,7 +388,7 @@ module Orb cadence: Orb::Models::Price::Matrix::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Matrix::unnamed_type_withobject_parent85?, + conversion_rate_config: Orb::Models::Price::Matrix::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -424,7 +424,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::Matrix::unnamed_type_withobject_parent85? + attr_accessor conversion_rate_config: Orb::Models::Price::Matrix::conversion_rate_config? attr_accessor created_at: Time @@ -473,7 +473,7 @@ module Orb cadence: Orb::Models::Price::Matrix::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Matrix::unnamed_type_withobject_parent85?, + conversion_rate_config: Orb::Models::Price::Matrix::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -503,7 +503,7 @@ module Orb cadence: Orb::Models::Price::Matrix::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Matrix::unnamed_type_withobject_parent85?, + conversion_rate_config: Orb::Models::Price::Matrix::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -562,7 +562,7 @@ module Orb cadence: Orb::Models::Price::Tiered::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Tiered::unnamed_type_withobject_parent86?, + conversion_rate_config: Orb::Models::Price::Tiered::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -598,7 +598,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::Tiered::unnamed_type_withobject_parent86? + attr_accessor conversion_rate_config: Orb::Models::Price::Tiered::conversion_rate_config? attr_accessor created_at: Time @@ -647,7 +647,7 @@ module Orb cadence: Orb::Models::Price::Tiered::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Tiered::unnamed_type_withobject_parent86?, + conversion_rate_config: Orb::Models::Price::Tiered::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -677,7 +677,7 @@ module Orb cadence: Orb::Models::Price::Tiered::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Tiered::unnamed_type_withobject_parent86?, + conversion_rate_config: Orb::Models::Price::Tiered::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -737,7 +737,7 @@ module Orb cadence: Orb::Models::Price::Bulk::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Bulk::unnamed_type_withobject_parent87?, + conversion_rate_config: Orb::Models::Price::Bulk::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -774,7 +774,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::Bulk::unnamed_type_withobject_parent87? + attr_accessor conversion_rate_config: Orb::Models::Price::Bulk::conversion_rate_config? attr_accessor created_at: Time @@ -822,7 +822,7 @@ module Orb cadence: Orb::Models::Price::Bulk::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Bulk::unnamed_type_withobject_parent87?, + conversion_rate_config: Orb::Models::Price::Bulk::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -852,7 +852,7 @@ module Orb cadence: Orb::Models::Price::Bulk::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Bulk::unnamed_type_withobject_parent87?, + conversion_rate_config: Orb::Models::Price::Bulk::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -910,7 +910,7 @@ module Orb cadence: Orb::Models::Price::ThresholdTotalAmount::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ThresholdTotalAmount::unnamed_type_withobject_parent88?, + conversion_rate_config: Orb::Models::Price::ThresholdTotalAmount::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -946,7 +946,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::ThresholdTotalAmount::unnamed_type_withobject_parent88? + attr_accessor conversion_rate_config: Orb::Models::Price::ThresholdTotalAmount::conversion_rate_config? attr_accessor created_at: Time @@ -995,7 +995,7 @@ module Orb cadence: Orb::Models::Price::ThresholdTotalAmount::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ThresholdTotalAmount::unnamed_type_withobject_parent88?, + conversion_rate_config: Orb::Models::Price::ThresholdTotalAmount::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1025,7 +1025,7 @@ module Orb cadence: Orb::Models::Price::ThresholdTotalAmount::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ThresholdTotalAmount::unnamed_type_withobject_parent88?, + conversion_rate_config: Orb::Models::Price::ThresholdTotalAmount::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1084,7 +1084,7 @@ module Orb cadence: Orb::Models::Price::TieredPackage::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredPackage::unnamed_type_withobject_parent89?, + conversion_rate_config: Orb::Models::Price::TieredPackage::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1120,7 +1120,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::TieredPackage::unnamed_type_withobject_parent89? + attr_accessor conversion_rate_config: Orb::Models::Price::TieredPackage::conversion_rate_config? attr_accessor created_at: Time @@ -1169,7 +1169,7 @@ module Orb cadence: Orb::Models::Price::TieredPackage::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredPackage::unnamed_type_withobject_parent89?, + conversion_rate_config: Orb::Models::Price::TieredPackage::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1199,7 +1199,7 @@ module Orb cadence: Orb::Models::Price::TieredPackage::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredPackage::unnamed_type_withobject_parent89?, + conversion_rate_config: Orb::Models::Price::TieredPackage::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1258,7 +1258,7 @@ module Orb cadence: Orb::Models::Price::GroupedTiered::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedTiered::unnamed_type_withobject_parent90?, + conversion_rate_config: Orb::Models::Price::GroupedTiered::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1294,7 +1294,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::GroupedTiered::unnamed_type_withobject_parent90? + attr_accessor conversion_rate_config: Orb::Models::Price::GroupedTiered::conversion_rate_config? attr_accessor created_at: Time @@ -1343,7 +1343,7 @@ module Orb cadence: Orb::Models::Price::GroupedTiered::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedTiered::unnamed_type_withobject_parent90?, + conversion_rate_config: Orb::Models::Price::GroupedTiered::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1373,7 +1373,7 @@ module Orb cadence: Orb::Models::Price::GroupedTiered::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedTiered::unnamed_type_withobject_parent90?, + conversion_rate_config: Orb::Models::Price::GroupedTiered::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1432,7 +1432,7 @@ module Orb cadence: Orb::Models::Price::TieredWithMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredWithMinimum::unnamed_type_withobject_parent91?, + conversion_rate_config: Orb::Models::Price::TieredWithMinimum::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1468,7 +1468,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::TieredWithMinimum::unnamed_type_withobject_parent91? + attr_accessor conversion_rate_config: Orb::Models::Price::TieredWithMinimum::conversion_rate_config? attr_accessor created_at: Time @@ -1517,7 +1517,7 @@ module Orb cadence: Orb::Models::Price::TieredWithMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredWithMinimum::unnamed_type_withobject_parent91?, + conversion_rate_config: Orb::Models::Price::TieredWithMinimum::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1547,7 +1547,7 @@ module Orb cadence: Orb::Models::Price::TieredWithMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredWithMinimum::unnamed_type_withobject_parent91?, + conversion_rate_config: Orb::Models::Price::TieredWithMinimum::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1606,7 +1606,7 @@ module Orb cadence: Orb::Models::Price::TieredPackageWithMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredPackageWithMinimum::unnamed_type_withobject_parent92?, + conversion_rate_config: Orb::Models::Price::TieredPackageWithMinimum::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1642,7 +1642,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::TieredPackageWithMinimum::unnamed_type_withobject_parent92? + attr_accessor conversion_rate_config: Orb::Models::Price::TieredPackageWithMinimum::conversion_rate_config? attr_accessor created_at: Time @@ -1691,7 +1691,7 @@ module Orb cadence: Orb::Models::Price::TieredPackageWithMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredPackageWithMinimum::unnamed_type_withobject_parent92?, + conversion_rate_config: Orb::Models::Price::TieredPackageWithMinimum::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1721,7 +1721,7 @@ module Orb cadence: Orb::Models::Price::TieredPackageWithMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredPackageWithMinimum::unnamed_type_withobject_parent92?, + conversion_rate_config: Orb::Models::Price::TieredPackageWithMinimum::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1780,7 +1780,7 @@ module Orb cadence: Orb::Models::Price::PackageWithAllocation::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::PackageWithAllocation::unnamed_type_withobject_parent93?, + conversion_rate_config: Orb::Models::Price::PackageWithAllocation::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1816,7 +1816,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::PackageWithAllocation::unnamed_type_withobject_parent93? + attr_accessor conversion_rate_config: Orb::Models::Price::PackageWithAllocation::conversion_rate_config? attr_accessor created_at: Time @@ -1865,7 +1865,7 @@ module Orb cadence: Orb::Models::Price::PackageWithAllocation::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::PackageWithAllocation::unnamed_type_withobject_parent93?, + conversion_rate_config: Orb::Models::Price::PackageWithAllocation::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1895,7 +1895,7 @@ module Orb cadence: Orb::Models::Price::PackageWithAllocation::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::PackageWithAllocation::unnamed_type_withobject_parent93?, + conversion_rate_config: Orb::Models::Price::PackageWithAllocation::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1954,7 +1954,7 @@ module Orb cadence: Orb::Models::Price::UnitWithPercent::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::UnitWithPercent::unnamed_type_withobject_parent94?, + conversion_rate_config: Orb::Models::Price::UnitWithPercent::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -1990,7 +1990,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::UnitWithPercent::unnamed_type_withobject_parent94? + attr_accessor conversion_rate_config: Orb::Models::Price::UnitWithPercent::conversion_rate_config? attr_accessor created_at: Time @@ -2039,7 +2039,7 @@ module Orb cadence: Orb::Models::Price::UnitWithPercent::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::UnitWithPercent::unnamed_type_withobject_parent94?, + conversion_rate_config: Orb::Models::Price::UnitWithPercent::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2069,7 +2069,7 @@ module Orb cadence: Orb::Models::Price::UnitWithPercent::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::UnitWithPercent::unnamed_type_withobject_parent94?, + conversion_rate_config: Orb::Models::Price::UnitWithPercent::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2128,7 +2128,7 @@ module Orb cadence: Orb::Models::Price::MatrixWithAllocation::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MatrixWithAllocation::unnamed_type_withobject_parent95?, + conversion_rate_config: Orb::Models::Price::MatrixWithAllocation::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2164,7 +2164,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::MatrixWithAllocation::unnamed_type_withobject_parent95? + attr_accessor conversion_rate_config: Orb::Models::Price::MatrixWithAllocation::conversion_rate_config? attr_accessor created_at: Time @@ -2213,7 +2213,7 @@ module Orb cadence: Orb::Models::Price::MatrixWithAllocation::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MatrixWithAllocation::unnamed_type_withobject_parent95?, + conversion_rate_config: Orb::Models::Price::MatrixWithAllocation::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2243,7 +2243,7 @@ module Orb cadence: Orb::Models::Price::MatrixWithAllocation::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MatrixWithAllocation::unnamed_type_withobject_parent95?, + conversion_rate_config: Orb::Models::Price::MatrixWithAllocation::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2302,7 +2302,7 @@ module Orb cadence: Orb::Models::Price::TieredWithProration::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredWithProration::unnamed_type_withobject_parent96?, + conversion_rate_config: Orb::Models::Price::TieredWithProration::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2338,7 +2338,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::TieredWithProration::unnamed_type_withobject_parent96? + attr_accessor conversion_rate_config: Orb::Models::Price::TieredWithProration::conversion_rate_config? attr_accessor created_at: Time @@ -2387,7 +2387,7 @@ module Orb cadence: Orb::Models::Price::TieredWithProration::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredWithProration::unnamed_type_withobject_parent96?, + conversion_rate_config: Orb::Models::Price::TieredWithProration::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2417,7 +2417,7 @@ module Orb cadence: Orb::Models::Price::TieredWithProration::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredWithProration::unnamed_type_withobject_parent96?, + conversion_rate_config: Orb::Models::Price::TieredWithProration::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2476,7 +2476,7 @@ module Orb cadence: Orb::Models::Price::UnitWithProration::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::UnitWithProration::unnamed_type_withobject_parent97?, + conversion_rate_config: Orb::Models::Price::UnitWithProration::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2512,7 +2512,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::UnitWithProration::unnamed_type_withobject_parent97? + attr_accessor conversion_rate_config: Orb::Models::Price::UnitWithProration::conversion_rate_config? attr_accessor created_at: Time @@ -2561,7 +2561,7 @@ module Orb cadence: Orb::Models::Price::UnitWithProration::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::UnitWithProration::unnamed_type_withobject_parent97?, + conversion_rate_config: Orb::Models::Price::UnitWithProration::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2591,7 +2591,7 @@ module Orb cadence: Orb::Models::Price::UnitWithProration::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::UnitWithProration::unnamed_type_withobject_parent97?, + conversion_rate_config: Orb::Models::Price::UnitWithProration::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2650,7 +2650,7 @@ module Orb cadence: Orb::Models::Price::GroupedAllocation::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedAllocation::unnamed_type_withobject_parent98?, + conversion_rate_config: Orb::Models::Price::GroupedAllocation::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2686,7 +2686,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::GroupedAllocation::unnamed_type_withobject_parent98? + attr_accessor conversion_rate_config: Orb::Models::Price::GroupedAllocation::conversion_rate_config? attr_accessor created_at: Time @@ -2735,7 +2735,7 @@ module Orb cadence: Orb::Models::Price::GroupedAllocation::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedAllocation::unnamed_type_withobject_parent98?, + conversion_rate_config: Orb::Models::Price::GroupedAllocation::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2765,7 +2765,7 @@ module Orb cadence: Orb::Models::Price::GroupedAllocation::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedAllocation::unnamed_type_withobject_parent98?, + conversion_rate_config: Orb::Models::Price::GroupedAllocation::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2824,7 +2824,7 @@ module Orb cadence: Orb::Models::Price::GroupedWithProratedMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::unnamed_type_withobject_parent99?, + conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2860,7 +2860,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::unnamed_type_withobject_parent99? + attr_accessor conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::conversion_rate_config? attr_accessor created_at: Time @@ -2909,7 +2909,7 @@ module Orb cadence: Orb::Models::Price::GroupedWithProratedMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::unnamed_type_withobject_parent99?, + conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2939,7 +2939,7 @@ module Orb cadence: Orb::Models::Price::GroupedWithProratedMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::unnamed_type_withobject_parent99?, + conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -2998,7 +2998,7 @@ module Orb cadence: Orb::Models::Price::GroupedWithMeteredMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::unnamed_type_withobject_parent100?, + conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3034,7 +3034,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::unnamed_type_withobject_parent100? + attr_accessor conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::conversion_rate_config? attr_accessor created_at: Time @@ -3083,7 +3083,7 @@ module Orb cadence: Orb::Models::Price::GroupedWithMeteredMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::unnamed_type_withobject_parent100?, + conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3113,7 +3113,7 @@ module Orb cadence: Orb::Models::Price::GroupedWithMeteredMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::unnamed_type_withobject_parent100?, + conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3172,7 +3172,7 @@ module Orb cadence: Orb::Models::Price::MatrixWithDisplayName::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::unnamed_type_withobject_parent101?, + conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3208,7 +3208,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::unnamed_type_withobject_parent101? + attr_accessor conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::conversion_rate_config? attr_accessor created_at: Time @@ -3257,7 +3257,7 @@ module Orb cadence: Orb::Models::Price::MatrixWithDisplayName::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::unnamed_type_withobject_parent101?, + conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3287,7 +3287,7 @@ module Orb cadence: Orb::Models::Price::MatrixWithDisplayName::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::unnamed_type_withobject_parent101?, + conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3347,7 +3347,7 @@ module Orb cadence: Orb::Models::Price::BulkWithProration::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::BulkWithProration::unnamed_type_withobject_parent102?, + conversion_rate_config: Orb::Models::Price::BulkWithProration::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3384,7 +3384,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::BulkWithProration::unnamed_type_withobject_parent102? + attr_accessor conversion_rate_config: Orb::Models::Price::BulkWithProration::conversion_rate_config? attr_accessor created_at: Time @@ -3432,7 +3432,7 @@ module Orb cadence: Orb::Models::Price::BulkWithProration::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::BulkWithProration::unnamed_type_withobject_parent102?, + conversion_rate_config: Orb::Models::Price::BulkWithProration::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3462,7 +3462,7 @@ module Orb cadence: Orb::Models::Price::BulkWithProration::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::BulkWithProration::unnamed_type_withobject_parent102?, + conversion_rate_config: Orb::Models::Price::BulkWithProration::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3520,7 +3520,7 @@ module Orb cadence: Orb::Models::Price::GroupedTieredPackage::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::unnamed_type_withobject_parent103?, + conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3556,7 +3556,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::unnamed_type_withobject_parent103? + attr_accessor conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::conversion_rate_config? attr_accessor created_at: Time @@ -3605,7 +3605,7 @@ module Orb cadence: Orb::Models::Price::GroupedTieredPackage::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::unnamed_type_withobject_parent103?, + conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3635,7 +3635,7 @@ module Orb cadence: Orb::Models::Price::GroupedTieredPackage::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::unnamed_type_withobject_parent103?, + conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3694,7 +3694,7 @@ module Orb cadence: Orb::Models::Price::MaxGroupTieredPackage::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::unnamed_type_withobject_parent104?, + conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3730,7 +3730,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::unnamed_type_withobject_parent104? + attr_accessor conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::conversion_rate_config? attr_accessor created_at: Time @@ -3779,7 +3779,7 @@ module Orb cadence: Orb::Models::Price::MaxGroupTieredPackage::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::unnamed_type_withobject_parent104?, + conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3809,7 +3809,7 @@ module Orb cadence: Orb::Models::Price::MaxGroupTieredPackage::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::unnamed_type_withobject_parent104?, + conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3868,7 +3868,7 @@ module Orb cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::unnamed_type_withobject_parent105?, + conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3904,7 +3904,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::unnamed_type_withobject_parent105? + attr_accessor conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::conversion_rate_config? attr_accessor created_at: Time @@ -3953,7 +3953,7 @@ module Orb cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::unnamed_type_withobject_parent105?, + conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3983,7 +3983,7 @@ module Orb cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::unnamed_type_withobject_parent105?, + conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4042,7 +4042,7 @@ module Orb cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::unnamed_type_withobject_parent106?, + conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4078,7 +4078,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::unnamed_type_withobject_parent106? + attr_accessor conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::conversion_rate_config? attr_accessor created_at: Time @@ -4127,7 +4127,7 @@ module Orb cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::unnamed_type_withobject_parent106?, + conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4157,7 +4157,7 @@ module Orb cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::unnamed_type_withobject_parent106?, + conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4216,7 +4216,7 @@ module Orb cadence: Orb::Models::Price::CumulativeGroupedBulk::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::unnamed_type_withobject_parent107?, + conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, cumulative_grouped_bulk_config: ::Hash[Symbol, top], @@ -4252,7 +4252,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::unnamed_type_withobject_parent107? + attr_accessor conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::conversion_rate_config? attr_accessor created_at: Time @@ -4301,7 +4301,7 @@ module Orb cadence: Orb::Models::Price::CumulativeGroupedBulk::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::unnamed_type_withobject_parent107?, + conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, cumulative_grouped_bulk_config: ::Hash[Symbol, top], @@ -4331,7 +4331,7 @@ module Orb cadence: Orb::Models::Price::CumulativeGroupedBulk::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::unnamed_type_withobject_parent107?, + conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, cumulative_grouped_bulk_config: ::Hash[Symbol, top], @@ -4390,7 +4390,7 @@ module Orb cadence: Orb::Models::Price::GroupedWithMinMaxThresholds::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent108?, + conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4426,7 +4426,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent108? + attr_accessor conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::conversion_rate_config? attr_accessor created_at: Time @@ -4475,7 +4475,7 @@ module Orb cadence: Orb::Models::Price::GroupedWithMinMaxThresholds::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent108?, + conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4505,7 +4505,7 @@ module Orb cadence: Orb::Models::Price::GroupedWithMinMaxThresholds::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent108?, + conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4564,7 +4564,7 @@ module Orb cadence: Orb::Models::Price::Minimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Minimum::unnamed_type_withobject_parent109?, + conversion_rate_config: Orb::Models::Price::Minimum::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4600,7 +4600,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::Minimum::unnamed_type_withobject_parent109? + attr_accessor conversion_rate_config: Orb::Models::Price::Minimum::conversion_rate_config? attr_accessor created_at: Time @@ -4649,7 +4649,7 @@ module Orb cadence: Orb::Models::Price::Minimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Minimum::unnamed_type_withobject_parent109?, + conversion_rate_config: Orb::Models::Price::Minimum::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4679,7 +4679,7 @@ module Orb cadence: Orb::Models::Price::Minimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Minimum::unnamed_type_withobject_parent109?, + conversion_rate_config: Orb::Models::Price::Minimum::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, diff --git a/sig/orb/models/price_evaluate_multiple_params.rbs b/sig/orb/models/price_evaluate_multiple_params.rbs index c8f2f9e3..6e328fb0 100644 --- a/sig/orb/models/price_evaluate_multiple_params.rbs +++ b/sig/orb/models/price_evaluate_multiple_params.rbs @@ -128,7 +128,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent110?, + conversion_rate_config: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -158,7 +158,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent110? + attr_accessor conversion_rate_config: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::conversion_rate_config? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -182,7 +182,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent110?, + ?conversion_rate_config: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -203,7 +203,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent110?, + conversion_rate_config: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/price_evaluate_preview_events_params.rbs b/sig/orb/models/price_evaluate_preview_events_params.rbs index dade5f48..44bbfdbd 100644 --- a/sig/orb/models/price_evaluate_preview_events_params.rbs +++ b/sig/orb/models/price_evaluate_preview_events_params.rbs @@ -174,7 +174,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent111?, + conversion_rate_config: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -204,7 +204,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent111? + attr_accessor conversion_rate_config: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::conversion_rate_config? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -228,7 +228,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent111?, + ?conversion_rate_config: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -249,7 +249,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent111?, + conversion_rate_config: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/subscription_create_params.rbs b/sig/orb/models/subscription_create_params.rbs index 1e3845fd..4f9eb549 100644 --- a/sig/orb/models/subscription_create_params.rbs +++ b/sig/orb/models/subscription_create_params.rbs @@ -333,7 +333,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent112?, + conversion_rate_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -363,7 +363,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent112? + attr_accessor conversion_rate_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::conversion_rate_config? attr_accessor currency: String? @@ -390,7 +390,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent112?, + ?conversion_rate_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -412,7 +412,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent112?, + conversion_rate_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -620,7 +620,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent113?, + conversion_rate_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -650,7 +650,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent113? + attr_accessor conversion_rate_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::conversion_rate_config? attr_accessor currency: String? @@ -677,7 +677,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent113?, + ?conversion_rate_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -699,7 +699,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent113?, + conversion_rate_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/sig/orb/models/subscription_price_intervals_params.rbs b/sig/orb/models/subscription_price_intervals_params.rbs index ced88dec..00f6c3f1 100644 --- a/sig/orb/models/subscription_price_intervals_params.rbs +++ b/sig/orb/models/subscription_price_intervals_params.rbs @@ -262,7 +262,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent114?, + conversion_rate_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, @@ -292,7 +292,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent114? + attr_accessor conversion_rate_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::conversion_rate_config? attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? @@ -316,7 +316,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent114?, + ?conversion_rate_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, ?fixed_price_quantity: Float?, @@ -337,7 +337,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent114?, + conversion_rate_config: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, fixed_price_quantity: Float?, diff --git a/sig/orb/models/subscription_schedule_plan_change_params.rbs b/sig/orb/models/subscription_schedule_plan_change_params.rbs index e13560ea..8ec6f85e 100644 --- a/sig/orb/models/subscription_schedule_plan_change_params.rbs +++ b/sig/orb/models/subscription_schedule_plan_change_params.rbs @@ -309,7 +309,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent115?, + conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -339,7 +339,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent115? + attr_accessor conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::conversion_rate_config? attr_accessor currency: String? @@ -366,7 +366,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent115?, + ?conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -388,7 +388,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent115?, + conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -597,7 +597,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent116?, + conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, @@ -627,7 +627,7 @@ module Orb attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent116? + attr_accessor conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::conversion_rate_config? attr_accessor currency: String? @@ -654,7 +654,7 @@ module Orb ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent116?, + ?conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, ?currency: String?, ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, ?external_price_id: String?, @@ -676,7 +676,7 @@ module Orb billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::unnamed_type_withobject_parent116?, + conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, currency: String?, dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, external_price_id: String?, diff --git a/test/orb/resources/prices/external_price_id_test.rb b/test/orb/resources/prices/external_price_id_test.rb index f2d3db9f..b020f92e 100644 --- a/test/orb/resources/prices/external_price_id_test.rb +++ b/test/orb/resources/prices/external_price_id_test.rb @@ -52,7 +52,7 @@ def test_update cadence: Orb::Price::Unit::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent83 | nil, + conversion_rate_config: Orb::Price::Unit::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -81,7 +81,7 @@ def test_update cadence: Orb::Price::Package::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent84 | nil, + conversion_rate_config: Orb::Price::Package::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -110,7 +110,7 @@ def test_update cadence: Orb::Price::Matrix::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent85 | nil, + conversion_rate_config: Orb::Price::Matrix::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -139,7 +139,7 @@ def test_update cadence: Orb::Price::Tiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent86 | nil, + conversion_rate_config: Orb::Price::Tiered::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -169,7 +169,7 @@ def test_update cadence: Orb::Price::Bulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent87 | nil, + conversion_rate_config: Orb::Price::Bulk::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -197,7 +197,7 @@ def test_update cadence: Orb::Price::ThresholdTotalAmount::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent88 | nil, + conversion_rate_config: Orb::Price::ThresholdTotalAmount::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -226,7 +226,7 @@ def test_update cadence: Orb::Price::TieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent89 | nil, + conversion_rate_config: Orb::Price::TieredPackage::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -255,7 +255,7 @@ def test_update cadence: Orb::Price::GroupedTiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent90 | nil, + conversion_rate_config: Orb::Price::GroupedTiered::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -284,7 +284,7 @@ def test_update cadence: Orb::Price::TieredWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent91 | nil, + conversion_rate_config: Orb::Price::TieredWithMinimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -313,7 +313,7 @@ def test_update cadence: Orb::Price::TieredPackageWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent92 | nil, + conversion_rate_config: Orb::Price::TieredPackageWithMinimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -342,7 +342,7 @@ def test_update cadence: Orb::Price::PackageWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent93 | nil, + conversion_rate_config: Orb::Price::PackageWithAllocation::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -371,7 +371,7 @@ def test_update cadence: Orb::Price::UnitWithPercent::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent94 | nil, + conversion_rate_config: Orb::Price::UnitWithPercent::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -400,7 +400,7 @@ def test_update cadence: Orb::Price::MatrixWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent95 | nil, + conversion_rate_config: Orb::Price::MatrixWithAllocation::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -429,7 +429,7 @@ def test_update cadence: Orb::Price::TieredWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent96 | nil, + conversion_rate_config: Orb::Price::TieredWithProration::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -458,7 +458,7 @@ def test_update cadence: Orb::Price::UnitWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent97 | nil, + conversion_rate_config: Orb::Price::UnitWithProration::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -487,7 +487,7 @@ def test_update cadence: Orb::Price::GroupedAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent98 | nil, + conversion_rate_config: Orb::Price::GroupedAllocation::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -516,7 +516,7 @@ def test_update cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent99 | nil, + conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -545,7 +545,7 @@ def test_update cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent100 | nil, + conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -574,7 +574,7 @@ def test_update cadence: Orb::Price::MatrixWithDisplayName::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent101 | nil, + conversion_rate_config: Orb::Price::MatrixWithDisplayName::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -604,7 +604,7 @@ def test_update cadence: Orb::Price::BulkWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent102 | nil, + conversion_rate_config: Orb::Price::BulkWithProration::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -632,7 +632,7 @@ def test_update cadence: Orb::Price::GroupedTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent103 | nil, + conversion_rate_config: Orb::Price::GroupedTieredPackage::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -661,7 +661,7 @@ def test_update cadence: Orb::Price::MaxGroupTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent104 | nil, + conversion_rate_config: Orb::Price::MaxGroupTieredPackage::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -690,7 +690,7 @@ def test_update cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent105 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -719,7 +719,7 @@ def test_update cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent106 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -748,7 +748,7 @@ def test_update cadence: Orb::Price::CumulativeGroupedBulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent107 | nil, + conversion_rate_config: Orb::Price::CumulativeGroupedBulk::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), @@ -777,7 +777,7 @@ def test_update cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent108 | nil, + conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -806,7 +806,7 @@ def test_update cadence: Orb::Price::Minimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Minimum::UnnamedTypeWithobjectParent109 | nil, + conversion_rate_config: Orb::Price::Minimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -880,7 +880,7 @@ def test_fetch cadence: Orb::Price::Unit::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent83 | nil, + conversion_rate_config: Orb::Price::Unit::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -909,7 +909,7 @@ def test_fetch cadence: Orb::Price::Package::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent84 | nil, + conversion_rate_config: Orb::Price::Package::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -938,7 +938,7 @@ def test_fetch cadence: Orb::Price::Matrix::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent85 | nil, + conversion_rate_config: Orb::Price::Matrix::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -967,7 +967,7 @@ def test_fetch cadence: Orb::Price::Tiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent86 | nil, + conversion_rate_config: Orb::Price::Tiered::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -997,7 +997,7 @@ def test_fetch cadence: Orb::Price::Bulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent87 | nil, + conversion_rate_config: Orb::Price::Bulk::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1025,7 +1025,7 @@ def test_fetch cadence: Orb::Price::ThresholdTotalAmount::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent88 | nil, + conversion_rate_config: Orb::Price::ThresholdTotalAmount::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1054,7 +1054,7 @@ def test_fetch cadence: Orb::Price::TieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent89 | nil, + conversion_rate_config: Orb::Price::TieredPackage::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1083,7 +1083,7 @@ def test_fetch cadence: Orb::Price::GroupedTiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent90 | nil, + conversion_rate_config: Orb::Price::GroupedTiered::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1112,7 +1112,7 @@ def test_fetch cadence: Orb::Price::TieredWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent91 | nil, + conversion_rate_config: Orb::Price::TieredWithMinimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1141,7 +1141,7 @@ def test_fetch cadence: Orb::Price::TieredPackageWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent92 | nil, + conversion_rate_config: Orb::Price::TieredPackageWithMinimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1170,7 +1170,7 @@ def test_fetch cadence: Orb::Price::PackageWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent93 | nil, + conversion_rate_config: Orb::Price::PackageWithAllocation::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1199,7 +1199,7 @@ def test_fetch cadence: Orb::Price::UnitWithPercent::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent94 | nil, + conversion_rate_config: Orb::Price::UnitWithPercent::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1228,7 +1228,7 @@ def test_fetch cadence: Orb::Price::MatrixWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent95 | nil, + conversion_rate_config: Orb::Price::MatrixWithAllocation::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1257,7 +1257,7 @@ def test_fetch cadence: Orb::Price::TieredWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent96 | nil, + conversion_rate_config: Orb::Price::TieredWithProration::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1286,7 +1286,7 @@ def test_fetch cadence: Orb::Price::UnitWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent97 | nil, + conversion_rate_config: Orb::Price::UnitWithProration::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1315,7 +1315,7 @@ def test_fetch cadence: Orb::Price::GroupedAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent98 | nil, + conversion_rate_config: Orb::Price::GroupedAllocation::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1344,7 +1344,7 @@ def test_fetch cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent99 | nil, + conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1373,7 +1373,7 @@ def test_fetch cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent100 | nil, + conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1402,7 +1402,7 @@ def test_fetch cadence: Orb::Price::MatrixWithDisplayName::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent101 | nil, + conversion_rate_config: Orb::Price::MatrixWithDisplayName::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1432,7 +1432,7 @@ def test_fetch cadence: Orb::Price::BulkWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent102 | nil, + conversion_rate_config: Orb::Price::BulkWithProration::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1460,7 +1460,7 @@ def test_fetch cadence: Orb::Price::GroupedTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent103 | nil, + conversion_rate_config: Orb::Price::GroupedTieredPackage::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1489,7 +1489,7 @@ def test_fetch cadence: Orb::Price::MaxGroupTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent104 | nil, + conversion_rate_config: Orb::Price::MaxGroupTieredPackage::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1518,7 +1518,7 @@ def test_fetch cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent105 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1547,7 +1547,7 @@ def test_fetch cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent106 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1576,7 +1576,7 @@ def test_fetch cadence: Orb::Price::CumulativeGroupedBulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent107 | nil, + conversion_rate_config: Orb::Price::CumulativeGroupedBulk::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), @@ -1605,7 +1605,7 @@ def test_fetch cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent108 | nil, + conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1634,7 +1634,7 @@ def test_fetch cadence: Orb::Price::Minimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Minimum::UnnamedTypeWithobjectParent109 | nil, + conversion_rate_config: Orb::Price::Minimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, diff --git a/test/orb/resources/prices_test.rb b/test/orb/resources/prices_test.rb index 2635fc68..bbcd0069 100644 --- a/test/orb/resources/prices_test.rb +++ b/test/orb/resources/prices_test.rb @@ -60,7 +60,7 @@ def test_create_required_params cadence: Orb::Price::Unit::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent83 | nil, + conversion_rate_config: Orb::Price::Unit::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -89,7 +89,7 @@ def test_create_required_params cadence: Orb::Price::Package::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent84 | nil, + conversion_rate_config: Orb::Price::Package::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -118,7 +118,7 @@ def test_create_required_params cadence: Orb::Price::Matrix::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent85 | nil, + conversion_rate_config: Orb::Price::Matrix::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -147,7 +147,7 @@ def test_create_required_params cadence: Orb::Price::Tiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent86 | nil, + conversion_rate_config: Orb::Price::Tiered::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -177,7 +177,7 @@ def test_create_required_params cadence: Orb::Price::Bulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent87 | nil, + conversion_rate_config: Orb::Price::Bulk::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -205,7 +205,7 @@ def test_create_required_params cadence: Orb::Price::ThresholdTotalAmount::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent88 | nil, + conversion_rate_config: Orb::Price::ThresholdTotalAmount::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -234,7 +234,7 @@ def test_create_required_params cadence: Orb::Price::TieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent89 | nil, + conversion_rate_config: Orb::Price::TieredPackage::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -263,7 +263,7 @@ def test_create_required_params cadence: Orb::Price::GroupedTiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent90 | nil, + conversion_rate_config: Orb::Price::GroupedTiered::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -292,7 +292,7 @@ def test_create_required_params cadence: Orb::Price::TieredWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent91 | nil, + conversion_rate_config: Orb::Price::TieredWithMinimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -321,7 +321,7 @@ def test_create_required_params cadence: Orb::Price::TieredPackageWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent92 | nil, + conversion_rate_config: Orb::Price::TieredPackageWithMinimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -350,7 +350,7 @@ def test_create_required_params cadence: Orb::Price::PackageWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent93 | nil, + conversion_rate_config: Orb::Price::PackageWithAllocation::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -379,7 +379,7 @@ def test_create_required_params cadence: Orb::Price::UnitWithPercent::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent94 | nil, + conversion_rate_config: Orb::Price::UnitWithPercent::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -408,7 +408,7 @@ def test_create_required_params cadence: Orb::Price::MatrixWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent95 | nil, + conversion_rate_config: Orb::Price::MatrixWithAllocation::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -437,7 +437,7 @@ def test_create_required_params cadence: Orb::Price::TieredWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent96 | nil, + conversion_rate_config: Orb::Price::TieredWithProration::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -466,7 +466,7 @@ def test_create_required_params cadence: Orb::Price::UnitWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent97 | nil, + conversion_rate_config: Orb::Price::UnitWithProration::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -495,7 +495,7 @@ def test_create_required_params cadence: Orb::Price::GroupedAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent98 | nil, + conversion_rate_config: Orb::Price::GroupedAllocation::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -524,7 +524,7 @@ def test_create_required_params cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent99 | nil, + conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -553,7 +553,7 @@ def test_create_required_params cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent100 | nil, + conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -582,7 +582,7 @@ def test_create_required_params cadence: Orb::Price::MatrixWithDisplayName::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent101 | nil, + conversion_rate_config: Orb::Price::MatrixWithDisplayName::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -612,7 +612,7 @@ def test_create_required_params cadence: Orb::Price::BulkWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent102 | nil, + conversion_rate_config: Orb::Price::BulkWithProration::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -640,7 +640,7 @@ def test_create_required_params cadence: Orb::Price::GroupedTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent103 | nil, + conversion_rate_config: Orb::Price::GroupedTieredPackage::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -669,7 +669,7 @@ def test_create_required_params cadence: Orb::Price::MaxGroupTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent104 | nil, + conversion_rate_config: Orb::Price::MaxGroupTieredPackage::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -698,7 +698,7 @@ def test_create_required_params cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent105 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -727,7 +727,7 @@ def test_create_required_params cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent106 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -756,7 +756,7 @@ def test_create_required_params cadence: Orb::Price::CumulativeGroupedBulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent107 | nil, + conversion_rate_config: Orb::Price::CumulativeGroupedBulk::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), @@ -785,7 +785,7 @@ def test_create_required_params cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent108 | nil, + conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -814,7 +814,7 @@ def test_create_required_params cadence: Orb::Price::Minimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Minimum::UnnamedTypeWithobjectParent109 | nil, + conversion_rate_config: Orb::Price::Minimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -888,7 +888,7 @@ def test_update cadence: Orb::Price::Unit::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent83 | nil, + conversion_rate_config: Orb::Price::Unit::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -917,7 +917,7 @@ def test_update cadence: Orb::Price::Package::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent84 | nil, + conversion_rate_config: Orb::Price::Package::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -946,7 +946,7 @@ def test_update cadence: Orb::Price::Matrix::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent85 | nil, + conversion_rate_config: Orb::Price::Matrix::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -975,7 +975,7 @@ def test_update cadence: Orb::Price::Tiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent86 | nil, + conversion_rate_config: Orb::Price::Tiered::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1005,7 +1005,7 @@ def test_update cadence: Orb::Price::Bulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent87 | nil, + conversion_rate_config: Orb::Price::Bulk::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1033,7 +1033,7 @@ def test_update cadence: Orb::Price::ThresholdTotalAmount::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent88 | nil, + conversion_rate_config: Orb::Price::ThresholdTotalAmount::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1062,7 +1062,7 @@ def test_update cadence: Orb::Price::TieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent89 | nil, + conversion_rate_config: Orb::Price::TieredPackage::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1091,7 +1091,7 @@ def test_update cadence: Orb::Price::GroupedTiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent90 | nil, + conversion_rate_config: Orb::Price::GroupedTiered::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1120,7 +1120,7 @@ def test_update cadence: Orb::Price::TieredWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent91 | nil, + conversion_rate_config: Orb::Price::TieredWithMinimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1149,7 +1149,7 @@ def test_update cadence: Orb::Price::TieredPackageWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent92 | nil, + conversion_rate_config: Orb::Price::TieredPackageWithMinimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1178,7 +1178,7 @@ def test_update cadence: Orb::Price::PackageWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent93 | nil, + conversion_rate_config: Orb::Price::PackageWithAllocation::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1207,7 +1207,7 @@ def test_update cadence: Orb::Price::UnitWithPercent::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent94 | nil, + conversion_rate_config: Orb::Price::UnitWithPercent::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1236,7 +1236,7 @@ def test_update cadence: Orb::Price::MatrixWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent95 | nil, + conversion_rate_config: Orb::Price::MatrixWithAllocation::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1265,7 +1265,7 @@ def test_update cadence: Orb::Price::TieredWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent96 | nil, + conversion_rate_config: Orb::Price::TieredWithProration::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1294,7 +1294,7 @@ def test_update cadence: Orb::Price::UnitWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent97 | nil, + conversion_rate_config: Orb::Price::UnitWithProration::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1323,7 +1323,7 @@ def test_update cadence: Orb::Price::GroupedAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent98 | nil, + conversion_rate_config: Orb::Price::GroupedAllocation::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1352,7 +1352,7 @@ def test_update cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent99 | nil, + conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1381,7 +1381,7 @@ def test_update cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent100 | nil, + conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1410,7 +1410,7 @@ def test_update cadence: Orb::Price::MatrixWithDisplayName::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent101 | nil, + conversion_rate_config: Orb::Price::MatrixWithDisplayName::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1440,7 +1440,7 @@ def test_update cadence: Orb::Price::BulkWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent102 | nil, + conversion_rate_config: Orb::Price::BulkWithProration::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1468,7 +1468,7 @@ def test_update cadence: Orb::Price::GroupedTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent103 | nil, + conversion_rate_config: Orb::Price::GroupedTieredPackage::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1497,7 +1497,7 @@ def test_update cadence: Orb::Price::MaxGroupTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent104 | nil, + conversion_rate_config: Orb::Price::MaxGroupTieredPackage::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1526,7 +1526,7 @@ def test_update cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent105 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1555,7 +1555,7 @@ def test_update cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent106 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1584,7 +1584,7 @@ def test_update cadence: Orb::Price::CumulativeGroupedBulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent107 | nil, + conversion_rate_config: Orb::Price::CumulativeGroupedBulk::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), @@ -1613,7 +1613,7 @@ def test_update cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent108 | nil, + conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1642,7 +1642,7 @@ def test_update cadence: Orb::Price::Minimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Minimum::UnnamedTypeWithobjectParent109 | nil, + conversion_rate_config: Orb::Price::Minimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1723,7 +1723,7 @@ def test_list cadence: Orb::Price::Unit::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent83 | nil, + conversion_rate_config: Orb::Price::Unit::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1752,7 +1752,7 @@ def test_list cadence: Orb::Price::Package::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent84 | nil, + conversion_rate_config: Orb::Price::Package::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1781,7 +1781,7 @@ def test_list cadence: Orb::Price::Matrix::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent85 | nil, + conversion_rate_config: Orb::Price::Matrix::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1810,7 +1810,7 @@ def test_list cadence: Orb::Price::Tiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent86 | nil, + conversion_rate_config: Orb::Price::Tiered::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1840,7 +1840,7 @@ def test_list cadence: Orb::Price::Bulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent87 | nil, + conversion_rate_config: Orb::Price::Bulk::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1868,7 +1868,7 @@ def test_list cadence: Orb::Price::ThresholdTotalAmount::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent88 | nil, + conversion_rate_config: Orb::Price::ThresholdTotalAmount::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1897,7 +1897,7 @@ def test_list cadence: Orb::Price::TieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent89 | nil, + conversion_rate_config: Orb::Price::TieredPackage::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1926,7 +1926,7 @@ def test_list cadence: Orb::Price::GroupedTiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent90 | nil, + conversion_rate_config: Orb::Price::GroupedTiered::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1955,7 +1955,7 @@ def test_list cadence: Orb::Price::TieredWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent91 | nil, + conversion_rate_config: Orb::Price::TieredWithMinimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1984,7 +1984,7 @@ def test_list cadence: Orb::Price::TieredPackageWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent92 | nil, + conversion_rate_config: Orb::Price::TieredPackageWithMinimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2013,7 +2013,7 @@ def test_list cadence: Orb::Price::PackageWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent93 | nil, + conversion_rate_config: Orb::Price::PackageWithAllocation::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2042,7 +2042,7 @@ def test_list cadence: Orb::Price::UnitWithPercent::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent94 | nil, + conversion_rate_config: Orb::Price::UnitWithPercent::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2071,7 +2071,7 @@ def test_list cadence: Orb::Price::MatrixWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent95 | nil, + conversion_rate_config: Orb::Price::MatrixWithAllocation::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2100,7 +2100,7 @@ def test_list cadence: Orb::Price::TieredWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent96 | nil, + conversion_rate_config: Orb::Price::TieredWithProration::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2129,7 +2129,7 @@ def test_list cadence: Orb::Price::UnitWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent97 | nil, + conversion_rate_config: Orb::Price::UnitWithProration::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2158,7 +2158,7 @@ def test_list cadence: Orb::Price::GroupedAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent98 | nil, + conversion_rate_config: Orb::Price::GroupedAllocation::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2187,7 +2187,7 @@ def test_list cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent99 | nil, + conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2216,7 +2216,7 @@ def test_list cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent100 | nil, + conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2245,7 +2245,7 @@ def test_list cadence: Orb::Price::MatrixWithDisplayName::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent101 | nil, + conversion_rate_config: Orb::Price::MatrixWithDisplayName::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2275,7 +2275,7 @@ def test_list cadence: Orb::Price::BulkWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent102 | nil, + conversion_rate_config: Orb::Price::BulkWithProration::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2303,7 +2303,7 @@ def test_list cadence: Orb::Price::GroupedTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent103 | nil, + conversion_rate_config: Orb::Price::GroupedTieredPackage::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2332,7 +2332,7 @@ def test_list cadence: Orb::Price::MaxGroupTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent104 | nil, + conversion_rate_config: Orb::Price::MaxGroupTieredPackage::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2361,7 +2361,7 @@ def test_list cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent105 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2390,7 +2390,7 @@ def test_list cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent106 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2419,7 +2419,7 @@ def test_list cadence: Orb::Price::CumulativeGroupedBulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent107 | nil, + conversion_rate_config: Orb::Price::CumulativeGroupedBulk::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), @@ -2448,7 +2448,7 @@ def test_list cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent108 | nil, + conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2477,7 +2477,7 @@ def test_list cadence: Orb::Price::Minimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Minimum::UnnamedTypeWithobjectParent109 | nil, + conversion_rate_config: Orb::Price::Minimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2606,7 +2606,7 @@ def test_fetch cadence: Orb::Price::Unit::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Unit::UnnamedTypeWithobjectParent83 | nil, + conversion_rate_config: Orb::Price::Unit::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2635,7 +2635,7 @@ def test_fetch cadence: Orb::Price::Package::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Package::UnnamedTypeWithobjectParent84 | nil, + conversion_rate_config: Orb::Price::Package::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2664,7 +2664,7 @@ def test_fetch cadence: Orb::Price::Matrix::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Matrix::UnnamedTypeWithobjectParent85 | nil, + conversion_rate_config: Orb::Price::Matrix::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2693,7 +2693,7 @@ def test_fetch cadence: Orb::Price::Tiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Tiered::UnnamedTypeWithobjectParent86 | nil, + conversion_rate_config: Orb::Price::Tiered::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2723,7 +2723,7 @@ def test_fetch cadence: Orb::Price::Bulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Bulk::UnnamedTypeWithobjectParent87 | nil, + conversion_rate_config: Orb::Price::Bulk::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2751,7 +2751,7 @@ def test_fetch cadence: Orb::Price::ThresholdTotalAmount::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ThresholdTotalAmount::UnnamedTypeWithobjectParent88 | nil, + conversion_rate_config: Orb::Price::ThresholdTotalAmount::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2780,7 +2780,7 @@ def test_fetch cadence: Orb::Price::TieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackage::UnnamedTypeWithobjectParent89 | nil, + conversion_rate_config: Orb::Price::TieredPackage::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2809,7 +2809,7 @@ def test_fetch cadence: Orb::Price::GroupedTiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTiered::UnnamedTypeWithobjectParent90 | nil, + conversion_rate_config: Orb::Price::GroupedTiered::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2838,7 +2838,7 @@ def test_fetch cadence: Orb::Price::TieredWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithMinimum::UnnamedTypeWithobjectParent91 | nil, + conversion_rate_config: Orb::Price::TieredWithMinimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2867,7 +2867,7 @@ def test_fetch cadence: Orb::Price::TieredPackageWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredPackageWithMinimum::UnnamedTypeWithobjectParent92 | nil, + conversion_rate_config: Orb::Price::TieredPackageWithMinimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2896,7 +2896,7 @@ def test_fetch cadence: Orb::Price::PackageWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::PackageWithAllocation::UnnamedTypeWithobjectParent93 | nil, + conversion_rate_config: Orb::Price::PackageWithAllocation::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2925,7 +2925,7 @@ def test_fetch cadence: Orb::Price::UnitWithPercent::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithPercent::UnnamedTypeWithobjectParent94 | nil, + conversion_rate_config: Orb::Price::UnitWithPercent::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2954,7 +2954,7 @@ def test_fetch cadence: Orb::Price::MatrixWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithAllocation::UnnamedTypeWithobjectParent95 | nil, + conversion_rate_config: Orb::Price::MatrixWithAllocation::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2983,7 +2983,7 @@ def test_fetch cadence: Orb::Price::TieredWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithProration::UnnamedTypeWithobjectParent96 | nil, + conversion_rate_config: Orb::Price::TieredWithProration::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3012,7 +3012,7 @@ def test_fetch cadence: Orb::Price::UnitWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::UnitWithProration::UnnamedTypeWithobjectParent97 | nil, + conversion_rate_config: Orb::Price::UnitWithProration::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3041,7 +3041,7 @@ def test_fetch cadence: Orb::Price::GroupedAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedAllocation::UnnamedTypeWithobjectParent98 | nil, + conversion_rate_config: Orb::Price::GroupedAllocation::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3070,7 +3070,7 @@ def test_fetch cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::UnnamedTypeWithobjectParent99 | nil, + conversion_rate_config: Orb::Price::GroupedWithProratedMinimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3099,7 +3099,7 @@ def test_fetch cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::UnnamedTypeWithobjectParent100 | nil, + conversion_rate_config: Orb::Price::GroupedWithMeteredMinimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3128,7 +3128,7 @@ def test_fetch cadence: Orb::Price::MatrixWithDisplayName::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithDisplayName::UnnamedTypeWithobjectParent101 | nil, + conversion_rate_config: Orb::Price::MatrixWithDisplayName::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3158,7 +3158,7 @@ def test_fetch cadence: Orb::Price::BulkWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkWithProration::UnnamedTypeWithobjectParent102 | nil, + conversion_rate_config: Orb::Price::BulkWithProration::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3186,7 +3186,7 @@ def test_fetch cadence: Orb::Price::GroupedTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTieredPackage::UnnamedTypeWithobjectParent103 | nil, + conversion_rate_config: Orb::Price::GroupedTieredPackage::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3215,7 +3215,7 @@ def test_fetch cadence: Orb::Price::MaxGroupTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MaxGroupTieredPackage::UnnamedTypeWithobjectParent104 | nil, + conversion_rate_config: Orb::Price::MaxGroupTieredPackage::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3244,7 +3244,7 @@ def test_fetch cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::UnnamedTypeWithobjectParent105 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithUnitPricing::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3273,7 +3273,7 @@ def test_fetch cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::UnnamedTypeWithobjectParent106 | nil, + conversion_rate_config: Orb::Price::ScalableMatrixWithTieredPricing::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3302,7 +3302,7 @@ def test_fetch cadence: Orb::Price::CumulativeGroupedBulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::CumulativeGroupedBulk::UnnamedTypeWithobjectParent107 | nil, + conversion_rate_config: Orb::Price::CumulativeGroupedBulk::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), @@ -3331,7 +3331,7 @@ def test_fetch cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::UnnamedTypeWithobjectParent108 | nil, + conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3360,7 +3360,7 @@ def test_fetch cadence: Orb::Price::Minimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Minimum::UnnamedTypeWithobjectParent109 | nil, + conversion_rate_config: Orb::Price::Minimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, From bc6c8f9914220783adeb80fa6a9eb87d009fa58d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 3 Sep 2025 22:31:23 +0000 Subject: [PATCH 05/24] feat(api): api update --- .stats.yml | 4 +- lib/orb.rb | 3 - lib/orb/models.rb | 6 - ...rnal_plan_id_create_plan_version_params.rb | 630 ++- .../models/beta_create_plan_version_params.rb | 626 ++- lib/orb/models/bulk_config.rb | 2 + lib/orb/models/bulk_tier.rb | 2 + lib/orb/models/customer_create_params.rb | 27 +- .../customer_update_by_external_id_params.rb | 27 +- lib/orb/models/customer_update_params.rb | 27 +- lib/orb/models/invoice.rb | 4 +- lib/orb/models/invoice_create_params.rb | 3 +- .../models/invoice_fetch_upcoming_response.rb | 4 +- .../invoice_line_item_create_response.rb | 4 +- lib/orb/models/matrix_config.rb | 6 +- lib/orb/models/matrix_value.rb | 9 +- .../models/matrix_with_allocation_config.rb | 44 +- lib/orb/models/new_floating_bulk_price.rb | 8 +- .../new_floating_bulk_with_proration_price.rb | 49 +- ..._floating_cumulative_grouped_bulk_price.rb | 65 +- .../new_floating_grouped_allocation_price.rb | 43 +- ...w_floating_grouped_tiered_package_price.rb | 70 +- .../new_floating_grouped_tiered_price.rb | 61 +- ...ting_grouped_with_metered_minimum_price.rb | 117 +- ...ing_grouped_with_prorated_minimum_price.rb | 43 +- lib/orb/models/new_floating_matrix_price.rb | 8 +- ...w_floating_matrix_with_allocation_price.rb | 8 +- ...floating_matrix_with_display_name_price.rb | 65 +- ...floating_max_group_tiered_package_price.rb | 69 +- .../new_floating_minimum_composite_price.rb | 18 +- lib/orb/models/new_floating_package_price.rb | 8 +- ..._floating_package_with_allocation_price.rb | 43 +- ...alable_matrix_with_tiered_pricing_price.rb | 106 +- ...scalable_matrix_with_unit_pricing_price.rb | 92 +- ...w_floating_threshold_total_amount_price.rb | 62 +- .../new_floating_tiered_package_price.rb | 61 +- ...ating_tiered_package_with_minimum_price.rb | 70 +- lib/orb/models/new_floating_tiered_price.rb | 8 +- .../new_floating_tiered_with_minimum_price.rb | 78 +- ...ew_floating_tiered_with_proration_price.rb | 54 +- lib/orb/models/new_floating_unit_price.rb | 8 +- .../new_floating_unit_with_percent_price.rb | 34 +- .../new_floating_unit_with_proration_price.rb | 27 +- lib/orb/models/new_plan_bulk_price.rb | 8 +- .../new_plan_bulk_with_proration_price.rb | 48 +- .../new_plan_cumulative_grouped_bulk_price.rb | 65 +- .../new_plan_grouped_allocation_price.rb | 42 +- .../new_plan_grouped_tiered_package_price.rb | 70 +- .../models/new_plan_grouped_tiered_price.rb | 60 +- ...plan_grouped_with_metered_minimum_price.rb | 117 +- ...lan_grouped_with_prorated_minimum_price.rb | 43 +- lib/orb/models/new_plan_matrix_price.rb | 8 +- .../new_plan_matrix_with_allocation_price.rb | 8 +- ...new_plan_matrix_with_display_name_price.rb | 65 +- ...new_plan_max_group_tiered_package_price.rb | 69 +- .../new_plan_minimum_composite_price.rb | 18 +- lib/orb/models/new_plan_package_price.rb | 8 +- .../new_plan_package_with_allocation_price.rb | 43 +- ...alable_matrix_with_tiered_pricing_price.rb | 106 +- ...scalable_matrix_with_unit_pricing_price.rb | 88 +- .../new_plan_threshold_total_amount_price.rb | 62 +- .../new_plan_tier_with_proration_price.rb | 191 - .../models/new_plan_tiered_package_price.rb | 60 +- ..._plan_tiered_package_with_minimum_price.rb | 70 +- lib/orb/models/new_plan_tiered_price.rb | 8 +- .../new_plan_tiered_with_minimum_price.rb | 77 +- lib/orb/models/new_plan_unit_price.rb | 8 +- .../new_plan_unit_with_percent_price.rb | 34 +- .../new_plan_unit_with_proration_price.rb | 26 +- lib/orb/models/new_subscription_bulk_price.rb | 8 +- ..._subscription_bulk_with_proration_price.rb | 49 +- ...scription_cumulative_grouped_bulk_price.rb | 65 +- ...w_subscription_grouped_allocation_price.rb | 43 +- ...bscription_grouped_tiered_package_price.rb | 70 +- .../new_subscription_grouped_tiered_price.rb | 61 +- ...tion_grouped_with_metered_minimum_price.rb | 117 +- ...ion_grouped_with_prorated_minimum_price.rb | 43 +- .../models/new_subscription_matrix_price.rb | 8 +- ...bscription_matrix_with_allocation_price.rb | 8 +- ...cription_matrix_with_display_name_price.rb | 65 +- ...cription_max_group_tiered_package_price.rb | 69 +- ...ew_subscription_minimum_composite_price.rb | 19 +- .../models/new_subscription_package_price.rb | 8 +- ...scription_package_with_allocation_price.rb | 43 +- ...alable_matrix_with_tiered_pricing_price.rb | 106 +- ...scalable_matrix_with_unit_pricing_price.rb | 92 +- ...bscription_threshold_total_amount_price.rb | 62 +- ..._subscription_tier_with_proration_price.rb | 191 - .../new_subscription_tiered_package_price.rb | 61 +- ...ption_tiered_package_with_minimum_price.rb | 70 +- .../models/new_subscription_tiered_price.rb | 8 +- ..._subscription_tiered_with_minimum_price.rb | 78 +- lib/orb/models/new_subscription_unit_price.rb | 8 +- ...ew_subscription_unit_with_percent_price.rb | 34 +- ..._subscription_unit_with_proration_price.rb | 27 +- lib/orb/models/package_config.rb | 2 + lib/orb/models/per_price_cost.rb | 4 +- lib/orb/models/plan.rb | 4 +- lib/orb/models/plan_create_params.rb | 309 +- lib/orb/models/plan_version.rb | 4 +- lib/orb/models/price.rb | 1896 +++++++-- lib/orb/models/price_create_params.rb | 1200 +++++- .../models/price_evaluate_multiple_params.rb | 92 +- .../price_evaluate_preview_events_params.rb | 92 +- lib/orb/models/price_interval.rb | 4 +- lib/orb/models/subscription_create_params.rb | 641 ++- .../subscription_price_intervals_params.rb | 90 +- ...ubscription_schedule_plan_change_params.rb | 650 +++- lib/orb/models/tier.rb | 10 +- lib/orb/models/tier_config.rb | 27 - lib/orb/models/tier_sub_line_item.rb | 29 +- lib/orb/models/tiered_config.rb | 2 + lib/orb/models/unit_config.rb | 12 +- lib/orb/resources/customers.rb | 6 +- lib/orb/resources/prices.rb | 66 +- lib/orb/resources/prices/external_price_id.rb | 4 +- rbi/orb/models.rbi | 7 - ...nal_plan_id_create_plan_version_params.rbi | 1784 +++++++-- .../beta_create_plan_version_params.rbi | 1776 +++++++-- rbi/orb/models/bulk_config.rbi | 1 + rbi/orb/models/bulk_tier.rbi | 1 + rbi/orb/models/customer_create_params.rbi | 48 +- .../customer_update_by_external_id_params.rbi | 48 +- rbi/orb/models/customer_update_params.rbi | 48 +- rbi/orb/models/invoice.rbi | 10 +- rbi/orb/models/invoice_create_params.rbi | 2 + .../invoice_fetch_upcoming_response.rbi | 10 +- .../invoice_line_item_create_response.rbi | 10 +- rbi/orb/models/matrix_config.rbi | 5 +- rbi/orb/models/matrix_value.rbi | 9 +- .../models/matrix_with_allocation_config.rbi | 71 +- rbi/orb/models/new_floating_bulk_price.rbi | 5 + ...new_floating_bulk_with_proration_price.rbi | 114 +- ...floating_cumulative_grouped_bulk_price.rbi | 135 +- .../new_floating_grouped_allocation_price.rbi | 77 +- ..._floating_grouped_tiered_package_price.rbi | 131 +- .../new_floating_grouped_tiered_price.rbi | 119 +- ...ing_grouped_with_metered_minimum_price.rbi | 207 +- ...ng_grouped_with_prorated_minimum_price.rbi | 75 +- rbi/orb/models/new_floating_matrix_price.rbi | 5 + ..._floating_matrix_with_allocation_price.rbi | 5 + ...loating_matrix_with_display_name_price.rbi | 135 +- ...loating_max_group_tiered_package_price.rbi | 129 +- .../new_floating_minimum_composite_price.rbi | 28 +- rbi/orb/models/new_floating_package_price.rbi | 5 + ...floating_package_with_allocation_price.rbi | 75 +- ...lable_matrix_with_tiered_pricing_price.rbi | 199 +- ...calable_matrix_with_unit_pricing_price.rbi | 158 +- ..._floating_threshold_total_amount_price.rbi | 121 +- .../new_floating_tiered_package_price.rbi | 119 +- ...ting_tiered_package_with_minimum_price.rbi | 137 +- rbi/orb/models/new_floating_tiered_price.rbi | 5 + ...new_floating_tiered_with_minimum_price.rbi | 149 +- ...w_floating_tiered_with_proration_price.rbi | 115 +- rbi/orb/models/new_floating_unit_price.rbi | 5 + .../new_floating_unit_with_percent_price.rbi | 59 +- ...new_floating_unit_with_proration_price.rbi | 51 +- rbi/orb/models/new_plan_bulk_price.rbi | 5 + .../new_plan_bulk_with_proration_price.rbi | 114 +- ...new_plan_cumulative_grouped_bulk_price.rbi | 135 +- .../new_plan_grouped_allocation_price.rbi | 77 +- .../new_plan_grouped_tiered_package_price.rbi | 131 +- .../models/new_plan_grouped_tiered_price.rbi | 117 +- ...lan_grouped_with_metered_minimum_price.rbi | 207 +- ...an_grouped_with_prorated_minimum_price.rbi | 75 +- rbi/orb/models/new_plan_matrix_price.rbi | 5 + .../new_plan_matrix_with_allocation_price.rbi | 5 + ...ew_plan_matrix_with_display_name_price.rbi | 135 +- ...ew_plan_max_group_tiered_package_price.rbi | 129 +- .../new_plan_minimum_composite_price.rbi | 28 +- rbi/orb/models/new_plan_package_price.rbi | 5 + ...new_plan_package_with_allocation_price.rbi | 75 +- ...lable_matrix_with_tiered_pricing_price.rbi | 199 +- ...calable_matrix_with_unit_pricing_price.rbi | 158 +- .../new_plan_threshold_total_amount_price.rbi | 121 +- .../new_plan_tier_with_proration_price.rbi | 314 -- .../models/new_plan_tiered_package_price.rbi | 117 +- ...plan_tiered_package_with_minimum_price.rbi | 137 +- rbi/orb/models/new_plan_tiered_price.rbi | 5 + .../new_plan_tiered_with_minimum_price.rbi | 149 +- rbi/orb/models/new_plan_unit_price.rbi | 5 + .../new_plan_unit_with_percent_price.rbi | 57 +- .../new_plan_unit_with_proration_price.rbi | 51 +- .../models/new_subscription_bulk_price.rbi | 5 + ...subscription_bulk_with_proration_price.rbi | 116 +- ...cription_cumulative_grouped_bulk_price.rbi | 135 +- ..._subscription_grouped_allocation_price.rbi | 79 +- ...scription_grouped_tiered_package_price.rbi | 131 +- .../new_subscription_grouped_tiered_price.rbi | 121 +- ...ion_grouped_with_metered_minimum_price.rbi | 207 +- ...on_grouped_with_prorated_minimum_price.rbi | 75 +- .../models/new_subscription_matrix_price.rbi | 5 + ...scription_matrix_with_allocation_price.rbi | 5 + ...ription_matrix_with_display_name_price.rbi | 135 +- ...ription_max_group_tiered_package_price.rbi | 129 +- ...w_subscription_minimum_composite_price.rbi | 28 +- .../models/new_subscription_package_price.rbi | 5 + ...cription_package_with_allocation_price.rbi | 75 +- ...lable_matrix_with_tiered_pricing_price.rbi | 199 +- ...calable_matrix_with_unit_pricing_price.rbi | 158 +- ...scription_threshold_total_amount_price.rbi | 121 +- ...subscription_tier_with_proration_price.rbi | 327 -- .../new_subscription_tiered_package_price.rbi | 121 +- ...tion_tiered_package_with_minimum_price.rbi | 137 +- .../models/new_subscription_tiered_price.rbi | 5 + ...subscription_tiered_with_minimum_price.rbi | 151 +- .../models/new_subscription_unit_price.rbi | 5 + ...w_subscription_unit_with_percent_price.rbi | 59 +- ...subscription_unit_with_proration_price.rbi | 53 +- rbi/orb/models/package_config.rbi | 1 + rbi/orb/models/per_price_cost.rbi | 10 +- rbi/orb/models/plan.rbi | 10 +- rbi/orb/models/plan_create_params.rbi | 559 ++- rbi/orb/models/plan_version.rbi | 10 +- rbi/orb/models/price.rbi | 3437 ++++++++++++++--- rbi/orb/models/price_create_params.rbi | 2330 ++++++++++- .../models/price_evaluate_multiple_params.rbi | 157 +- .../price_evaluate_preview_events_params.rbi | 157 +- rbi/orb/models/price_interval.rbi | 10 +- rbi/orb/models/subscription_create_params.rbi | 1948 +++++++--- .../subscription_price_intervals_params.rbi | 154 +- ...bscription_schedule_plan_change_params.rbi | 1964 +++++++--- rbi/orb/models/tier.rbi | 7 +- rbi/orb/models/tier_config.rbi | 40 - rbi/orb/models/tier_sub_line_item.rbi | 46 +- rbi/orb/models/tiered_config.rbi | 1 + rbi/orb/models/unit_config.rbi | 21 +- rbi/orb/resources/customers.rbi | 18 +- rbi/orb/resources/prices.rbi | 107 +- sig/orb/models.rbs | 6 - ...nal_plan_id_create_plan_version_params.rbs | 428 +- .../beta_create_plan_version_params.rbs | 428 +- sig/orb/models/customer_create_params.rbs | 13 + .../customer_update_by_external_id_params.rbs | 13 + sig/orb/models/customer_update_params.rbs | 13 + .../models/matrix_with_allocation_config.rbs | 35 +- ...new_floating_bulk_with_proration_price.rbs | 40 +- ...floating_cumulative_grouped_bulk_price.rbs | 57 +- .../new_floating_grouped_allocation_price.rbs | 31 +- ..._floating_grouped_tiered_package_price.rbs | 47 +- .../new_floating_grouped_tiered_price.rbs | 45 +- ...ing_grouped_with_metered_minimum_price.rbs | 77 +- ...ng_grouped_with_prorated_minimum_price.rbs | 31 +- ...loating_matrix_with_display_name_price.rbs | 53 +- ...loating_max_group_tiered_package_price.rbs | 50 +- .../new_floating_minimum_composite_price.rbs | 10 +- ...floating_package_with_allocation_price.rbs | 31 +- ...lable_matrix_with_tiered_pricing_price.rbs | 82 +- ...calable_matrix_with_unit_pricing_price.rbs | 72 +- ..._floating_threshold_total_amount_price.rbs | 42 +- .../new_floating_tiered_package_price.rbs | 42 +- ...ting_tiered_package_with_minimum_price.rbs | 53 +- ...new_floating_tiered_with_minimum_price.rbs | 66 +- ...w_floating_tiered_with_proration_price.rbs | 40 +- .../new_floating_unit_with_percent_price.rbs | 20 +- ...new_floating_unit_with_proration_price.rbs | 18 +- .../new_plan_bulk_with_proration_price.rbs | 40 +- ...new_plan_cumulative_grouped_bulk_price.rbs | 57 +- .../new_plan_grouped_allocation_price.rbs | 31 +- .../new_plan_grouped_tiered_package_price.rbs | 47 +- .../models/new_plan_grouped_tiered_price.rbs | 45 +- ...lan_grouped_with_metered_minimum_price.rbs | 77 +- ...an_grouped_with_prorated_minimum_price.rbs | 31 +- ...ew_plan_matrix_with_display_name_price.rbs | 53 +- ...ew_plan_max_group_tiered_package_price.rbs | 50 +- .../new_plan_minimum_composite_price.rbs | 10 +- ...new_plan_package_with_allocation_price.rbs | 31 +- ...lable_matrix_with_tiered_pricing_price.rbs | 82 +- ...calable_matrix_with_unit_pricing_price.rbs | 72 +- .../new_plan_threshold_total_amount_price.rbs | 42 +- .../new_plan_tier_with_proration_price.rbs | 131 - .../models/new_plan_tiered_package_price.rbs | 42 +- ...plan_tiered_package_with_minimum_price.rbs | 53 +- .../new_plan_tiered_with_minimum_price.rbs | 66 +- .../new_plan_unit_with_percent_price.rbs | 20 +- .../new_plan_unit_with_proration_price.rbs | 18 +- ...subscription_bulk_with_proration_price.rbs | 40 +- ...cription_cumulative_grouped_bulk_price.rbs | 57 +- ..._subscription_grouped_allocation_price.rbs | 31 +- ...scription_grouped_tiered_package_price.rbs | 47 +- .../new_subscription_grouped_tiered_price.rbs | 45 +- ...ion_grouped_with_metered_minimum_price.rbs | 77 +- ...on_grouped_with_prorated_minimum_price.rbs | 31 +- ...ription_matrix_with_display_name_price.rbs | 53 +- ...ription_max_group_tiered_package_price.rbs | 50 +- ...w_subscription_minimum_composite_price.rbs | 10 +- ...cription_package_with_allocation_price.rbs | 31 +- ...lable_matrix_with_tiered_pricing_price.rbs | 82 +- ...calable_matrix_with_unit_pricing_price.rbs | 72 +- ...scription_threshold_total_amount_price.rbs | 42 +- ...subscription_tier_with_proration_price.rbs | 131 - .../new_subscription_tiered_package_price.rbs | 42 +- ...tion_tiered_package_with_minimum_price.rbs | 53 +- ...subscription_tiered_with_minimum_price.rbs | 66 +- ...w_subscription_unit_with_percent_price.rbs | 20 +- ...subscription_unit_with_proration_price.rbs | 18 +- sig/orb/models/plan_create_params.rbs | 214 +- sig/orb/models/price.rbs | 1670 +++++--- sig/orb/models/price_create_params.rbs | 969 ++++- .../models/price_evaluate_multiple_params.rbs | 56 +- .../price_evaluate_preview_events_params.rbs | 56 +- sig/orb/models/subscription_create_params.rbs | 448 ++- .../subscription_price_intervals_params.rbs | 56 +- ...bscription_schedule_plan_change_params.rbs | 448 ++- sig/orb/models/tier_config.rbs | 26 - sig/orb/models/tier_sub_line_item.rbs | 31 +- sig/orb/models/unit_config.rbs | 8 +- sig/orb/resources/prices.rbs | 44 +- .../prices/external_price_id_test.rb | 356 +- test/orb/resources/prices_test.rb | 720 ++-- 310 files changed, 34778 insertions(+), 7148 deletions(-) delete mode 100644 lib/orb/models/new_plan_tier_with_proration_price.rb delete mode 100644 lib/orb/models/new_subscription_tier_with_proration_price.rb delete mode 100644 lib/orb/models/tier_config.rb delete mode 100644 rbi/orb/models/new_plan_tier_with_proration_price.rbi delete mode 100644 rbi/orb/models/new_subscription_tier_with_proration_price.rbi delete mode 100644 rbi/orb/models/tier_config.rbi delete mode 100644 sig/orb/models/new_plan_tier_with_proration_price.rbs delete mode 100644 sig/orb/models/new_subscription_tier_with_proration_price.rbs delete mode 100644 sig/orb/models/tier_config.rbs diff --git a/.stats.yml b/.stats.yml index 5c39bf21..9f1d47fd 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 118 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-6b2550b95f82872b3825619c109352352b9c92281c8b2470fce158e971142881.yml -openapi_spec_hash: 379df18de1af6a9d0b50d3653aab4d44 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-9dda3e74d276c581c08bea0cad47ae390143d94640f267d827caf234301f2721.yml +openapi_spec_hash: 60daf7a378cdf7dd1f7338c303e2d661 config_hash: 1f73a949b649ecfe6ec68ba1bb459dc2 diff --git a/lib/orb.rb b/lib/orb.rb index baeda135..0daea809 100644 --- a/lib/orb.rb +++ b/lib/orb.rb @@ -281,7 +281,6 @@ require_relative "orb/models/new_plan_tiered_package_with_minimum_price" require_relative "orb/models/new_plan_tiered_price" require_relative "orb/models/new_plan_tiered_with_minimum_price" -require_relative "orb/models/new_plan_tier_with_proration_price" require_relative "orb/models/new_plan_unit_price" require_relative "orb/models/new_plan_unit_with_percent_price" require_relative "orb/models/new_plan_unit_with_proration_price" @@ -309,7 +308,6 @@ require_relative "orb/models/new_subscription_tiered_package_with_minimum_price" require_relative "orb/models/new_subscription_tiered_price" require_relative "orb/models/new_subscription_tiered_with_minimum_price" -require_relative "orb/models/new_subscription_tier_with_proration_price" require_relative "orb/models/new_subscription_unit_price" require_relative "orb/models/new_subscription_unit_with_percent_price" require_relative "orb/models/new_subscription_unit_with_proration_price" @@ -385,7 +383,6 @@ require_relative "orb/models/tax_amount" require_relative "orb/models/threshold" require_relative "orb/models/tier" -require_relative "orb/models/tier_config" require_relative "orb/models/tiered_config" require_relative "orb/models/tiered_conversion_rate_config" require_relative "orb/models/tier_sub_line_item" diff --git a/lib/orb/models.rb b/lib/orb/models.rb index bbe7a194..9de4470a 100644 --- a/lib/orb/models.rb +++ b/lib/orb/models.rb @@ -386,8 +386,6 @@ module Orb NewPlanTieredWithMinimumPrice = Orb::Models::NewPlanTieredWithMinimumPrice - NewPlanTierWithProrationPrice = Orb::Models::NewPlanTierWithProrationPrice - NewPlanUnitPrice = Orb::Models::NewPlanUnitPrice NewPlanUnitWithPercentPrice = Orb::Models::NewPlanUnitWithPercentPrice @@ -446,8 +444,6 @@ module Orb NewSubscriptionTieredWithMinimumPrice = Orb::Models::NewSubscriptionTieredWithMinimumPrice - NewSubscriptionTierWithProrationPrice = Orb::Models::NewSubscriptionTierWithProrationPrice - NewSubscriptionUnitPrice = Orb::Models::NewSubscriptionUnitPrice NewSubscriptionUnitWithPercentPrice = Orb::Models::NewSubscriptionUnitWithPercentPrice @@ -580,8 +576,6 @@ module Orb Tier = Orb::Models::Tier - TierConfig = Orb::Models::TierConfig - TieredConfig = Orb::Models::TieredConfig TieredConversionRateConfig = Orb::Models::TieredConversionRateConfig diff --git a/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb b/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb index 0bb7437a..e2fef6cb 100644 --- a/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb +++ b/lib/orb/models/beta/external_plan_id_create_plan_version_params.rb @@ -155,9 +155,9 @@ class AddPrice < Orb::Internal::Type::BaseModel optional :plan_phase_order, Integer, nil?: true # @!attribute price - # The price to add to the plan + # New plan price request body params. # - # @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanMinimumCompositePrice, nil] + # @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, 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::NewPlanMinimumCompositePrice, nil] optional :price, union: -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price }, nil?: true @@ -167,9 +167,9 @@ class AddPrice < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] The phase to add this price to. # - # @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanMinimumCompositePrice, nil] The price to add to the plan + # @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, 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::NewPlanMinimumCompositePrice, nil] New plan price request body params. - # The price to add to the plan + # New plan price request body params. # # @see Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice#price module Price @@ -179,30 +179,39 @@ module Price variant :unit, -> { Orb::NewPlanUnitPrice } - variant :package, -> { Orb::NewPlanPackagePrice } - - variant :matrix, -> { Orb::NewPlanMatrixPrice } - variant :tiered, -> { Orb::NewPlanTieredPrice } variant :bulk, -> { Orb::NewPlanBulkPrice } + variant :package, -> { Orb::NewPlanPackagePrice } + + variant :matrix, -> { Orb::NewPlanMatrixPrice } + variant :threshold_total_amount, -> { Orb::NewPlanThresholdTotalAmountPrice } variant :tiered_package, -> { Orb::NewPlanTieredPackagePrice } variant :tiered_with_minimum, -> { Orb::NewPlanTieredWithMinimumPrice } - variant :unit_with_percent, -> { Orb::NewPlanUnitWithPercentPrice } + variant :grouped_tiered, -> { Orb::NewPlanGroupedTieredPrice } + + variant :tiered_package_with_minimum, -> { Orb::NewPlanTieredPackageWithMinimumPrice } variant :package_with_allocation, -> { Orb::NewPlanPackageWithAllocationPrice } - variant :tiered_with_proration, -> { Orb::NewPlanTierWithProrationPrice } + variant :unit_with_percent, -> { Orb::NewPlanUnitWithPercentPrice } + + variant :matrix_with_allocation, -> { Orb::NewPlanMatrixWithAllocationPrice } + + variant :tiered_with_proration, + -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration } variant :unit_with_proration, -> { Orb::NewPlanUnitWithProrationPrice } variant :grouped_allocation, -> { Orb::NewPlanGroupedAllocationPrice } + variant :bulk_with_proration, -> { Orb::NewPlanBulkWithProrationPrice } + variant :grouped_with_prorated_minimum, -> { Orb::NewPlanGroupedWithProratedMinimumPrice } variant :grouped_with_metered_minimum, -> { Orb::NewPlanGroupedWithMeteredMinimumPrice } @@ -212,8 +221,6 @@ module Price variant :matrix_with_display_name, -> { Orb::NewPlanMatrixWithDisplayNamePrice } - variant :bulk_with_proration, -> { Orb::NewPlanBulkWithProrationPrice } - variant :grouped_tiered_package, -> { Orb::NewPlanGroupedTieredPackagePrice } variant :max_group_tiered_package, -> { Orb::NewPlanMaxGroupTieredPackagePrice } @@ -224,13 +231,239 @@ module Price variant :cumulative_grouped_bulk, -> { Orb::NewPlanCumulativeGroupedBulkPrice } - variant :tiered_package_with_minimum, -> { Orb::NewPlanTieredPackageWithMinimumPrice } + variant :minimum, -> { Orb::NewPlanMinimumCompositePrice } - variant :matrix_with_allocation, -> { Orb::NewPlanMatrixWithAllocationPrice } + class TieredWithProration < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::Cadence] + required :cadence, + enum: -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::Cadence } - variant :grouped_tiered, -> { Orb::NewPlanGroupedTieredPrice } + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String - variant :minimum, -> { Orb::NewPlanMinimumCompositePrice } + # @!attribute model_type + # The pricing model type + # + # @return [Symbol, :tiered_with_proration] + required :model_type, const: :tiered_with_proration + + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String + + # @!attribute tiered_with_proration_config + # Configuration for tiered_with_proration pricing + # + # @return [Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig] + required :tiered_with_proration_config, + -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig } + + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true + + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::ConversionRateConfig + }, + nil?: true + + # @!attribute currency + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + # + # @return [String, nil] + optional :currency, String, nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, + -> { + Orb::NewDimensionalPriceConfiguration + }, + nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!attribute reference_id + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + # + # @return [String, nil] + optional :reference_id, String, nil?: true + + # @!method initialize(cadence:, item_id:, name:, tiered_with_proration_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :tiered_with_proration) + # Some parameter documentations has been truncated, see + # {Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration} + # for more details. + # + # @param cadence [Symbol, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::Cadence] The cadence to bill for this price on. + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param name [String] The name of the price. + # + # @param tiered_with_proration_config [Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig] Configuration for tiered_with_proration pricing + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments + # + # @param model_type [Symbol, :tiered_with_proration] The pricing model type + + # The cadence to bill for this price on. + # + # @see Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + + # @see Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration#tiered_with_proration_config + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + # @!attribute tiers + # Tiers for rating based on total usage quantities into the specified tier with + # proration + # + # @return [Array] + required :tiers, + -> do + Orb::Internal::Type::ArrayOf[ + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier + ] + end + + # @!method initialize(tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig} + # for more details. + # + # Configuration for tiered_with_proration pricing + # + # @param tiers [Array] Tiers for rating based on total usage quantities into the specified tier with pr + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute tier_lower_bound + # Inclusive tier starting value + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Amount per unit + # + # @return [String] + required :unit_amount, String + + # @!method initialize(tier_lower_bound:, unit_amount:) + # Configuration for a single tiered with proration tier + # + # @param tier_lower_bound [String] Inclusive tier starting value + # + # @param unit_amount [String] Amount per unit + end + end + end class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @!attribute cadence @@ -241,10 +474,11 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel enum: -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence } # @!attribute grouped_with_min_max_thresholds_config + # Configuration for grouped_with_min_max_thresholds pricing # - # @return [Hash{Symbol=>Object}] + # @return [Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig] required :grouped_with_min_max_thresholds_config, - Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig } # @!attribute item_id # The id of the item the price will be associated with. @@ -253,6 +487,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, :grouped_with_min_max_thresholds] required :model_type, const: :grouped_with_min_max_thresholds @@ -365,7 +600,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence] The cadence to bill for this price on. # - # @param grouped_with_min_max_thresholds_config [Hash{Symbol=>Object}] + # @param grouped_with_min_max_thresholds_config [Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig] Configuration for grouped_with_min_max_thresholds pricing # # @param item_id [String] The id of the item the price will be associated with. # @@ -397,7 +632,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments # - # @param model_type [Symbol, :grouped_with_min_max_thresholds] + # @param model_type [Symbol, :grouped_with_min_max_thresholds] The pricing model type # The cadence to bill for this price on. # @@ -415,10 +650,48 @@ module Cadence # @!method self.values # @return [Array] end + + # @see Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds#grouped_with_min_max_thresholds_config + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # The event property used to group before applying thresholds + # + # @return [String] + required :grouping_key, String + + # @!attribute maximum_charge + # The maximum amount to charge each group + # + # @return [String] + required :maximum_charge, String + + # @!attribute minimum_charge + # The minimum amount to charge each group, regardless of usage + # + # @return [String] + required :minimum_charge, String + + # @!attribute per_unit_rate + # The base price charged per group + # + # @return [String] + required :per_unit_rate, String + + # @!method initialize(grouping_key:, maximum_charge:, minimum_charge:, per_unit_rate:) + # Configuration for grouped_with_min_max_thresholds pricing + # + # @param grouping_key [String] The event property used to group before applying thresholds + # + # @param maximum_charge [String] The maximum amount to charge each group + # + # @param minimum_charge [String] The minimum amount to charge each group, regardless of usage + # + # @param per_unit_rate [String] The base price charged per group + end end # @!method self.variants - # @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanMinimumCompositePrice)] + # @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, 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::NewPlanMinimumCompositePrice)] end end @@ -530,9 +803,9 @@ class ReplacePrice < Orb::Internal::Type::BaseModel optional :plan_phase_order, Integer, nil?: true # @!attribute price - # The price to add to the plan + # New plan price request body params. # - # @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanMinimumCompositePrice, nil] + # @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, 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::NewPlanMinimumCompositePrice, nil] optional :price, union: -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price }, nil?: true @@ -544,9 +817,9 @@ class ReplacePrice < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] The phase to replace this price from. # - # @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanMinimumCompositePrice, nil] The price to add to the plan + # @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, 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::NewPlanMinimumCompositePrice, nil] New plan price request body params. - # The price to add to the plan + # New plan price request body params. # # @see Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice#price module Price @@ -556,30 +829,39 @@ module Price variant :unit, -> { Orb::NewPlanUnitPrice } - variant :package, -> { Orb::NewPlanPackagePrice } - - variant :matrix, -> { Orb::NewPlanMatrixPrice } - variant :tiered, -> { Orb::NewPlanTieredPrice } variant :bulk, -> { Orb::NewPlanBulkPrice } + variant :package, -> { Orb::NewPlanPackagePrice } + + variant :matrix, -> { Orb::NewPlanMatrixPrice } + variant :threshold_total_amount, -> { Orb::NewPlanThresholdTotalAmountPrice } variant :tiered_package, -> { Orb::NewPlanTieredPackagePrice } variant :tiered_with_minimum, -> { Orb::NewPlanTieredWithMinimumPrice } - variant :unit_with_percent, -> { Orb::NewPlanUnitWithPercentPrice } + variant :grouped_tiered, -> { Orb::NewPlanGroupedTieredPrice } + + variant :tiered_package_with_minimum, -> { Orb::NewPlanTieredPackageWithMinimumPrice } variant :package_with_allocation, -> { Orb::NewPlanPackageWithAllocationPrice } - variant :tiered_with_proration, -> { Orb::NewPlanTierWithProrationPrice } + variant :unit_with_percent, -> { Orb::NewPlanUnitWithPercentPrice } + + variant :matrix_with_allocation, -> { Orb::NewPlanMatrixWithAllocationPrice } + + variant :tiered_with_proration, + -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration } variant :unit_with_proration, -> { Orb::NewPlanUnitWithProrationPrice } variant :grouped_allocation, -> { Orb::NewPlanGroupedAllocationPrice } + variant :bulk_with_proration, -> { Orb::NewPlanBulkWithProrationPrice } + variant :grouped_with_prorated_minimum, -> { Orb::NewPlanGroupedWithProratedMinimumPrice } variant :grouped_with_metered_minimum, -> { Orb::NewPlanGroupedWithMeteredMinimumPrice } @@ -589,8 +871,6 @@ module Price variant :matrix_with_display_name, -> { Orb::NewPlanMatrixWithDisplayNamePrice } - variant :bulk_with_proration, -> { Orb::NewPlanBulkWithProrationPrice } - variant :grouped_tiered_package, -> { Orb::NewPlanGroupedTieredPackagePrice } variant :max_group_tiered_package, -> { Orb::NewPlanMaxGroupTieredPackagePrice } @@ -601,13 +881,239 @@ module Price variant :cumulative_grouped_bulk, -> { Orb::NewPlanCumulativeGroupedBulkPrice } - variant :tiered_package_with_minimum, -> { Orb::NewPlanTieredPackageWithMinimumPrice } + variant :minimum, -> { Orb::NewPlanMinimumCompositePrice } - variant :matrix_with_allocation, -> { Orb::NewPlanMatrixWithAllocationPrice } + class TieredWithProration < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::Cadence] + required :cadence, + enum: -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::Cadence } - variant :grouped_tiered, -> { Orb::NewPlanGroupedTieredPrice } + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String - variant :minimum, -> { Orb::NewPlanMinimumCompositePrice } + # @!attribute model_type + # The pricing model type + # + # @return [Symbol, :tiered_with_proration] + required :model_type, const: :tiered_with_proration + + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String + + # @!attribute tiered_with_proration_config + # Configuration for tiered_with_proration pricing + # + # @return [Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig] + required :tiered_with_proration_config, + -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig } + + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true + + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::ConversionRateConfig + }, + nil?: true + + # @!attribute currency + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + # + # @return [String, nil] + optional :currency, String, nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, + -> { + Orb::NewDimensionalPriceConfiguration + }, + nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!attribute reference_id + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + # + # @return [String, nil] + optional :reference_id, String, nil?: true + + # @!method initialize(cadence:, item_id:, name:, tiered_with_proration_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :tiered_with_proration) + # Some parameter documentations has been truncated, see + # {Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration} + # for more details. + # + # @param cadence [Symbol, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::Cadence] The cadence to bill for this price on. + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param name [String] The name of the price. + # + # @param tiered_with_proration_config [Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig] Configuration for tiered_with_proration pricing + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments + # + # @param model_type [Symbol, :tiered_with_proration] The pricing model type + + # The cadence to bill for this price on. + # + # @see Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + + # @see Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration#tiered_with_proration_config + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + # @!attribute tiers + # Tiers for rating based on total usage quantities into the specified tier with + # proration + # + # @return [Array] + required :tiers, + -> do + Orb::Internal::Type::ArrayOf[ + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier + ] + end + + # @!method initialize(tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig} + # for more details. + # + # Configuration for tiered_with_proration pricing + # + # @param tiers [Array] Tiers for rating based on total usage quantities into the specified tier with pr + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute tier_lower_bound + # Inclusive tier starting value + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Amount per unit + # + # @return [String] + required :unit_amount, String + + # @!method initialize(tier_lower_bound:, unit_amount:) + # Configuration for a single tiered with proration tier + # + # @param tier_lower_bound [String] Inclusive tier starting value + # + # @param unit_amount [String] Amount per unit + end + end + end class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @!attribute cadence @@ -618,10 +1124,11 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel enum: -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence } # @!attribute grouped_with_min_max_thresholds_config + # Configuration for grouped_with_min_max_thresholds pricing # - # @return [Hash{Symbol=>Object}] + # @return [Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig] required :grouped_with_min_max_thresholds_config, - Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + -> { Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig } # @!attribute item_id # The id of the item the price will be associated with. @@ -630,6 +1137,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, :grouped_with_min_max_thresholds] required :model_type, const: :grouped_with_min_max_thresholds @@ -742,7 +1250,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence] The cadence to bill for this price on. # - # @param grouped_with_min_max_thresholds_config [Hash{Symbol=>Object}] + # @param grouped_with_min_max_thresholds_config [Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig] Configuration for grouped_with_min_max_thresholds pricing # # @param item_id [String] The id of the item the price will be associated with. # @@ -774,7 +1282,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments # - # @param model_type [Symbol, :grouped_with_min_max_thresholds] + # @param model_type [Symbol, :grouped_with_min_max_thresholds] The pricing model type # The cadence to bill for this price on. # @@ -792,10 +1300,48 @@ module Cadence # @!method self.values # @return [Array] end + + # @see Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds#grouped_with_min_max_thresholds_config + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # The event property used to group before applying thresholds + # + # @return [String] + required :grouping_key, String + + # @!attribute maximum_charge + # The maximum amount to charge each group + # + # @return [String] + required :maximum_charge, String + + # @!attribute minimum_charge + # The minimum amount to charge each group, regardless of usage + # + # @return [String] + required :minimum_charge, String + + # @!attribute per_unit_rate + # The base price charged per group + # + # @return [String] + required :per_unit_rate, String + + # @!method initialize(grouping_key:, maximum_charge:, minimum_charge:, per_unit_rate:) + # Configuration for grouped_with_min_max_thresholds pricing + # + # @param grouping_key [String] The event property used to group before applying thresholds + # + # @param maximum_charge [String] The maximum amount to charge each group + # + # @param minimum_charge [String] The minimum amount to charge each group, regardless of usage + # + # @param per_unit_rate [String] The base price charged per group + end end # @!method self.variants - # @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanMinimumCompositePrice)] + # @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, 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::NewPlanMinimumCompositePrice)] end end end diff --git a/lib/orb/models/beta_create_plan_version_params.rb b/lib/orb/models/beta_create_plan_version_params.rb index ac8443f9..1e702dab 100644 --- a/lib/orb/models/beta_create_plan_version_params.rb +++ b/lib/orb/models/beta_create_plan_version_params.rb @@ -141,9 +141,9 @@ class AddPrice < Orb::Internal::Type::BaseModel optional :plan_phase_order, Integer, nil?: true # @!attribute price - # The price to add to the plan + # New plan price request body params. # - # @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanMinimumCompositePrice, nil] + # @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanMinimumCompositePrice, nil] optional :price, union: -> { Orb::BetaCreatePlanVersionParams::AddPrice::Price }, nil?: true # @!method initialize(allocation_price: nil, plan_phase_order: nil, price: nil) @@ -151,9 +151,9 @@ class AddPrice < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] The phase to add this price to. # - # @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanMinimumCompositePrice, nil] The price to add to the plan + # @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanMinimumCompositePrice, nil] New plan price request body params. - # The price to add to the plan + # New plan price request body params. # # @see Orb::Models::BetaCreatePlanVersionParams::AddPrice#price module Price @@ -163,30 +163,39 @@ module Price variant :unit, -> { Orb::NewPlanUnitPrice } - variant :package, -> { Orb::NewPlanPackagePrice } - - variant :matrix, -> { Orb::NewPlanMatrixPrice } - variant :tiered, -> { Orb::NewPlanTieredPrice } variant :bulk, -> { Orb::NewPlanBulkPrice } + variant :package, -> { Orb::NewPlanPackagePrice } + + variant :matrix, -> { Orb::NewPlanMatrixPrice } + variant :threshold_total_amount, -> { Orb::NewPlanThresholdTotalAmountPrice } variant :tiered_package, -> { Orb::NewPlanTieredPackagePrice } variant :tiered_with_minimum, -> { Orb::NewPlanTieredWithMinimumPrice } - variant :unit_with_percent, -> { Orb::NewPlanUnitWithPercentPrice } + variant :grouped_tiered, -> { Orb::NewPlanGroupedTieredPrice } + + variant :tiered_package_with_minimum, -> { Orb::NewPlanTieredPackageWithMinimumPrice } variant :package_with_allocation, -> { Orb::NewPlanPackageWithAllocationPrice } - variant :tiered_with_proration, -> { Orb::NewPlanTierWithProrationPrice } + variant :unit_with_percent, -> { Orb::NewPlanUnitWithPercentPrice } + + variant :matrix_with_allocation, -> { Orb::NewPlanMatrixWithAllocationPrice } + + variant :tiered_with_proration, + -> { Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration } variant :unit_with_proration, -> { Orb::NewPlanUnitWithProrationPrice } variant :grouped_allocation, -> { Orb::NewPlanGroupedAllocationPrice } + variant :bulk_with_proration, -> { Orb::NewPlanBulkWithProrationPrice } + variant :grouped_with_prorated_minimum, -> { Orb::NewPlanGroupedWithProratedMinimumPrice } variant :grouped_with_metered_minimum, -> { Orb::NewPlanGroupedWithMeteredMinimumPrice } @@ -196,8 +205,6 @@ module Price variant :matrix_with_display_name, -> { Orb::NewPlanMatrixWithDisplayNamePrice } - variant :bulk_with_proration, -> { Orb::NewPlanBulkWithProrationPrice } - variant :grouped_tiered_package, -> { Orb::NewPlanGroupedTieredPackagePrice } variant :max_group_tiered_package, -> { Orb::NewPlanMaxGroupTieredPackagePrice } @@ -208,13 +215,235 @@ module Price variant :cumulative_grouped_bulk, -> { Orb::NewPlanCumulativeGroupedBulkPrice } - variant :tiered_package_with_minimum, -> { Orb::NewPlanTieredPackageWithMinimumPrice } + variant :minimum, -> { Orb::NewPlanMinimumCompositePrice } - variant :matrix_with_allocation, -> { Orb::NewPlanMatrixWithAllocationPrice } + class TieredWithProration < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::Cadence] + required :cadence, + enum: -> { Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::Cadence } - variant :grouped_tiered, -> { Orb::NewPlanGroupedTieredPrice } + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String - variant :minimum, -> { Orb::NewPlanMinimumCompositePrice } + # @!attribute model_type + # The pricing model type + # + # @return [Symbol, :tiered_with_proration] + required :model_type, const: :tiered_with_proration + + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String + + # @!attribute tiered_with_proration_config + # Configuration for tiered_with_proration pricing + # + # @return [Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig] + required :tiered_with_proration_config, + -> { Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig } + + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true + + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { + Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::ConversionRateConfig + }, + nil?: true + + # @!attribute currency + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + # + # @return [String, nil] + optional :currency, String, nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, + -> { + Orb::NewDimensionalPriceConfiguration + }, + nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!attribute reference_id + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + # + # @return [String, nil] + optional :reference_id, String, nil?: true + + # @!method initialize(cadence:, item_id:, name:, tiered_with_proration_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :tiered_with_proration) + # Some parameter documentations has been truncated, see + # {Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration} + # for more details. + # + # @param cadence [Symbol, Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::Cadence] The cadence to bill for this price on. + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param name [String] The name of the price. + # + # @param tiered_with_proration_config [Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig] Configuration for tiered_with_proration pricing + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments + # + # @param model_type [Symbol, :tiered_with_proration] The pricing model type + + # The cadence to bill for this price on. + # + # @see Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + + # @see Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration#tiered_with_proration_config + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + # @!attribute tiers + # Tiers for rating based on total usage quantities into the specified tier with + # proration + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] } + + # @!method initialize(tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig} + # for more details. + # + # Configuration for tiered_with_proration pricing + # + # @param tiers [Array] Tiers for rating based on total usage quantities into the specified tier with pr + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute tier_lower_bound + # Inclusive tier starting value + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Amount per unit + # + # @return [String] + required :unit_amount, String + + # @!method initialize(tier_lower_bound:, unit_amount:) + # Configuration for a single tiered with proration tier + # + # @param tier_lower_bound [String] Inclusive tier starting value + # + # @param unit_amount [String] Amount per unit + end + end + end class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @!attribute cadence @@ -225,10 +454,11 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel enum: -> { Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence } # @!attribute grouped_with_min_max_thresholds_config + # Configuration for grouped_with_min_max_thresholds pricing # - # @return [Hash{Symbol=>Object}] + # @return [Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig] required :grouped_with_min_max_thresholds_config, - Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + -> { Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig } # @!attribute item_id # The id of the item the price will be associated with. @@ -237,6 +467,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, :grouped_with_min_max_thresholds] required :model_type, const: :grouped_with_min_max_thresholds @@ -349,7 +580,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence] The cadence to bill for this price on. # - # @param grouped_with_min_max_thresholds_config [Hash{Symbol=>Object}] + # @param grouped_with_min_max_thresholds_config [Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig] Configuration for grouped_with_min_max_thresholds pricing # # @param item_id [String] The id of the item the price will be associated with. # @@ -381,7 +612,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments # - # @param model_type [Symbol, :grouped_with_min_max_thresholds] + # @param model_type [Symbol, :grouped_with_min_max_thresholds] The pricing model type # The cadence to bill for this price on. # @@ -399,10 +630,48 @@ module Cadence # @!method self.values # @return [Array] end + + # @see Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds#grouped_with_min_max_thresholds_config + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # The event property used to group before applying thresholds + # + # @return [String] + required :grouping_key, String + + # @!attribute maximum_charge + # The maximum amount to charge each group + # + # @return [String] + required :maximum_charge, String + + # @!attribute minimum_charge + # The minimum amount to charge each group, regardless of usage + # + # @return [String] + required :minimum_charge, String + + # @!attribute per_unit_rate + # The base price charged per group + # + # @return [String] + required :per_unit_rate, String + + # @!method initialize(grouping_key:, maximum_charge:, minimum_charge:, per_unit_rate:) + # Configuration for grouped_with_min_max_thresholds pricing + # + # @param grouping_key [String] The event property used to group before applying thresholds + # + # @param maximum_charge [String] The maximum amount to charge each group + # + # @param minimum_charge [String] The minimum amount to charge each group, regardless of usage + # + # @param per_unit_rate [String] The base price charged per group + end end # @!method self.variants - # @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanMinimumCompositePrice)] + # @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanMinimumCompositePrice)] end end @@ -513,9 +782,9 @@ class ReplacePrice < Orb::Internal::Type::BaseModel optional :plan_phase_order, Integer, nil?: true # @!attribute price - # The price to add to the plan + # New plan price request body params. # - # @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanMinimumCompositePrice, nil] + # @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanMinimumCompositePrice, nil] optional :price, union: -> { Orb::BetaCreatePlanVersionParams::ReplacePrice::Price }, nil?: true # @!method initialize(replaces_price_id:, allocation_price: nil, plan_phase_order: nil, price: nil) @@ -525,9 +794,9 @@ class ReplacePrice < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] The phase to replace this price from. # - # @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanMinimumCompositePrice, nil] The price to add to the plan + # @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanMinimumCompositePrice, nil] New plan price request body params. - # The price to add to the plan + # New plan price request body params. # # @see Orb::Models::BetaCreatePlanVersionParams::ReplacePrice#price module Price @@ -537,30 +806,39 @@ module Price variant :unit, -> { Orb::NewPlanUnitPrice } - variant :package, -> { Orb::NewPlanPackagePrice } - - variant :matrix, -> { Orb::NewPlanMatrixPrice } - variant :tiered, -> { Orb::NewPlanTieredPrice } variant :bulk, -> { Orb::NewPlanBulkPrice } + variant :package, -> { Orb::NewPlanPackagePrice } + + variant :matrix, -> { Orb::NewPlanMatrixPrice } + variant :threshold_total_amount, -> { Orb::NewPlanThresholdTotalAmountPrice } variant :tiered_package, -> { Orb::NewPlanTieredPackagePrice } variant :tiered_with_minimum, -> { Orb::NewPlanTieredWithMinimumPrice } - variant :unit_with_percent, -> { Orb::NewPlanUnitWithPercentPrice } + variant :grouped_tiered, -> { Orb::NewPlanGroupedTieredPrice } + + variant :tiered_package_with_minimum, -> { Orb::NewPlanTieredPackageWithMinimumPrice } variant :package_with_allocation, -> { Orb::NewPlanPackageWithAllocationPrice } - variant :tiered_with_proration, -> { Orb::NewPlanTierWithProrationPrice } + variant :unit_with_percent, -> { Orb::NewPlanUnitWithPercentPrice } + + variant :matrix_with_allocation, -> { Orb::NewPlanMatrixWithAllocationPrice } + + variant :tiered_with_proration, + -> { Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration } variant :unit_with_proration, -> { Orb::NewPlanUnitWithProrationPrice } variant :grouped_allocation, -> { Orb::NewPlanGroupedAllocationPrice } + variant :bulk_with_proration, -> { Orb::NewPlanBulkWithProrationPrice } + variant :grouped_with_prorated_minimum, -> { Orb::NewPlanGroupedWithProratedMinimumPrice } variant :grouped_with_metered_minimum, -> { Orb::NewPlanGroupedWithMeteredMinimumPrice } @@ -570,8 +848,6 @@ module Price variant :matrix_with_display_name, -> { Orb::NewPlanMatrixWithDisplayNamePrice } - variant :bulk_with_proration, -> { Orb::NewPlanBulkWithProrationPrice } - variant :grouped_tiered_package, -> { Orb::NewPlanGroupedTieredPackagePrice } variant :max_group_tiered_package, -> { Orb::NewPlanMaxGroupTieredPackagePrice } @@ -582,13 +858,239 @@ module Price variant :cumulative_grouped_bulk, -> { Orb::NewPlanCumulativeGroupedBulkPrice } - variant :tiered_package_with_minimum, -> { Orb::NewPlanTieredPackageWithMinimumPrice } + variant :minimum, -> { Orb::NewPlanMinimumCompositePrice } - variant :matrix_with_allocation, -> { Orb::NewPlanMatrixWithAllocationPrice } + class TieredWithProration < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::Cadence] + required :cadence, + enum: -> { Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::Cadence } - variant :grouped_tiered, -> { Orb::NewPlanGroupedTieredPrice } + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String - variant :minimum, -> { Orb::NewPlanMinimumCompositePrice } + # @!attribute model_type + # The pricing model type + # + # @return [Symbol, :tiered_with_proration] + required :model_type, const: :tiered_with_proration + + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String + + # @!attribute tiered_with_proration_config + # Configuration for tiered_with_proration pricing + # + # @return [Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig] + required :tiered_with_proration_config, + -> { Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig } + + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true + + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::ConversionRateConfig + }, + nil?: true + + # @!attribute currency + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + # + # @return [String, nil] + optional :currency, String, nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, + -> { + Orb::NewDimensionalPriceConfiguration + }, + nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!attribute reference_id + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + # + # @return [String, nil] + optional :reference_id, String, nil?: true + + # @!method initialize(cadence:, item_id:, name:, tiered_with_proration_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :tiered_with_proration) + # Some parameter documentations has been truncated, see + # {Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration} + # for more details. + # + # @param cadence [Symbol, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::Cadence] The cadence to bill for this price on. + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param name [String] The name of the price. + # + # @param tiered_with_proration_config [Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig] Configuration for tiered_with_proration pricing + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments + # + # @param model_type [Symbol, :tiered_with_proration] The pricing model type + + # The cadence to bill for this price on. + # + # @see Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + + # @see Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration#tiered_with_proration_config + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + # @!attribute tiers + # Tiers for rating based on total usage quantities into the specified tier with + # proration + # + # @return [Array] + required :tiers, + -> do + Orb::Internal::Type::ArrayOf[ + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier + ] + end + + # @!method initialize(tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig} + # for more details. + # + # Configuration for tiered_with_proration pricing + # + # @param tiers [Array] Tiers for rating based on total usage quantities into the specified tier with pr + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute tier_lower_bound + # Inclusive tier starting value + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Amount per unit + # + # @return [String] + required :unit_amount, String + + # @!method initialize(tier_lower_bound:, unit_amount:) + # Configuration for a single tiered with proration tier + # + # @param tier_lower_bound [String] Inclusive tier starting value + # + # @param unit_amount [String] Amount per unit + end + end + end class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @!attribute cadence @@ -599,10 +1101,11 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel enum: -> { Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence } # @!attribute grouped_with_min_max_thresholds_config + # Configuration for grouped_with_min_max_thresholds pricing # - # @return [Hash{Symbol=>Object}] + # @return [Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig] required :grouped_with_min_max_thresholds_config, - Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + -> { Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig } # @!attribute item_id # The id of the item the price will be associated with. @@ -611,6 +1114,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, :grouped_with_min_max_thresholds] required :model_type, const: :grouped_with_min_max_thresholds @@ -723,7 +1227,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence] The cadence to bill for this price on. # - # @param grouped_with_min_max_thresholds_config [Hash{Symbol=>Object}] + # @param grouped_with_min_max_thresholds_config [Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig] Configuration for grouped_with_min_max_thresholds pricing # # @param item_id [String] The id of the item the price will be associated with. # @@ -755,7 +1259,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments # - # @param model_type [Symbol, :grouped_with_min_max_thresholds] + # @param model_type [Symbol, :grouped_with_min_max_thresholds] The pricing model type # The cadence to bill for this price on. # @@ -773,10 +1277,48 @@ module Cadence # @!method self.values # @return [Array] end + + # @see Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds#grouped_with_min_max_thresholds_config + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # The event property used to group before applying thresholds + # + # @return [String] + required :grouping_key, String + + # @!attribute maximum_charge + # The maximum amount to charge each group + # + # @return [String] + required :maximum_charge, String + + # @!attribute minimum_charge + # The minimum amount to charge each group, regardless of usage + # + # @return [String] + required :minimum_charge, String + + # @!attribute per_unit_rate + # The base price charged per group + # + # @return [String] + required :per_unit_rate, String + + # @!method initialize(grouping_key:, maximum_charge:, minimum_charge:, per_unit_rate:) + # Configuration for grouped_with_min_max_thresholds pricing + # + # @param grouping_key [String] The event property used to group before applying thresholds + # + # @param maximum_charge [String] The maximum amount to charge each group + # + # @param minimum_charge [String] The minimum amount to charge each group, regardless of usage + # + # @param per_unit_rate [String] The base price charged per group + end end # @!method self.variants - # @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanMinimumCompositePrice)] + # @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanMinimumCompositePrice)] end end end diff --git a/lib/orb/models/bulk_config.rb b/lib/orb/models/bulk_config.rb index ec86d7eb..d476d7fe 100644 --- a/lib/orb/models/bulk_config.rb +++ b/lib/orb/models/bulk_config.rb @@ -10,6 +10,8 @@ class BulkConfig < Orb::Internal::Type::BaseModel required :tiers, -> { Orb::Internal::Type::ArrayOf[Orb::BulkTier] } # @!method initialize(tiers:) + # Configuration for bulk pricing + # # @param tiers [Array] Bulk tiers for rating based on total usage volume end end diff --git a/lib/orb/models/bulk_tier.rb b/lib/orb/models/bulk_tier.rb index 29f1890c..18d41ab6 100644 --- a/lib/orb/models/bulk_tier.rb +++ b/lib/orb/models/bulk_tier.rb @@ -16,6 +16,8 @@ class BulkTier < Orb::Internal::Type::BaseModel optional :maximum_units, Float, nil?: true # @!method initialize(unit_amount:, maximum_units: nil) + # Configuration for a single bulk pricing tier + # # @param unit_amount [String] Amount per unit # # @param maximum_units [Float, nil] Upper bound for this tier diff --git a/lib/orb/models/customer_create_params.rb b/lib/orb/models/customer_create_params.rb index 5534be94..206f5280 100644 --- a/lib/orb/models/customer_create_params.rb +++ b/lib/orb/models/customer_create_params.rb @@ -28,7 +28,8 @@ class CustomerCreateParams < Orb::Internal::Type::BaseModel # @!attribute additional_emails # Additional email addresses for this customer. If populated, these email - # addresses will be CC'd for customer communications. + # addresses will be CC'd for customer communications. The total number of email + # addresses (including the primary email) cannot exceed 50. # # @return [Array, nil] optional :additional_emails, Orb::Internal::Type::ArrayOf[String], nil?: true @@ -116,7 +117,7 @@ class CustomerCreateParams < Orb::Internal::Type::BaseModel # @!attribute tax_configuration # - # @return [Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, nil] + # @return [Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, Orb::Models::CustomerCreateParams::TaxConfiguration::Numeral, nil] optional :tax_configuration, union: -> { Orb::CustomerCreateParams::TaxConfiguration }, nil?: true # @!attribute tax_id @@ -312,7 +313,7 @@ class CustomerCreateParams < Orb::Internal::Type::BaseModel # # @param shipping_address [Orb::Models::AddressInput, nil] # - # @param tax_configuration [Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, nil] + # @param tax_configuration [Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, Orb::Models::CustomerCreateParams::TaxConfiguration::Numeral, nil] # # @param tax_id [Orb::Models::CustomerTaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad # @@ -347,8 +348,26 @@ module TaxConfiguration variant :sphere, -> { Orb::NewSphereConfiguration } + variant :numeral, -> { Orb::CustomerCreateParams::TaxConfiguration::Numeral } + + class Numeral < Orb::Internal::Type::BaseModel + # @!attribute tax_exempt + # + # @return [Boolean] + required :tax_exempt, Orb::Internal::Type::Boolean + + # @!attribute tax_provider + # + # @return [Symbol, :numeral] + required :tax_provider, const: :numeral + + # @!method initialize(tax_exempt:, tax_provider: :numeral) + # @param tax_exempt [Boolean] + # @param tax_provider [Symbol, :numeral] + end + # @!method self.variants - # @return [Array(Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration)] + # @return [Array(Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, Orb::Models::CustomerCreateParams::TaxConfiguration::Numeral)] end end end diff --git a/lib/orb/models/customer_update_by_external_id_params.rb b/lib/orb/models/customer_update_by_external_id_params.rb index 30f4ce42..bc47aa84 100644 --- a/lib/orb/models/customer_update_by_external_id_params.rb +++ b/lib/orb/models/customer_update_by_external_id_params.rb @@ -14,7 +14,8 @@ class CustomerUpdateByExternalIDParams < Orb::Internal::Type::BaseModel # @!attribute additional_emails # Additional email addresses for this customer. If populated, these email - # addresses will be CC'd for customer communications. + # addresses will be CC'd for customer communications. The total number of email + # addresses (including the primary email) cannot exceed 50. # # @return [Array, nil] optional :additional_emails, Orb::Internal::Type::ArrayOf[String], nil?: true @@ -122,7 +123,7 @@ class CustomerUpdateByExternalIDParams < Orb::Internal::Type::BaseModel # @!attribute tax_configuration # - # @return [Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, nil] + # @return [Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Numeral, nil] optional :tax_configuration, union: -> { Orb::CustomerUpdateByExternalIDParams::TaxConfiguration }, nil?: true @@ -312,7 +313,7 @@ class CustomerUpdateByExternalIDParams < Orb::Internal::Type::BaseModel # # @param shipping_address [Orb::Models::AddressInput, nil] # - # @param tax_configuration [Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, nil] + # @param tax_configuration [Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Numeral, nil] # # @param tax_id [Orb::Models::CustomerTaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad # @@ -349,8 +350,26 @@ module TaxConfiguration variant :sphere, -> { Orb::NewSphereConfiguration } + variant :numeral, -> { Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Numeral } + + class Numeral < Orb::Internal::Type::BaseModel + # @!attribute tax_exempt + # + # @return [Boolean] + required :tax_exempt, Orb::Internal::Type::Boolean + + # @!attribute tax_provider + # + # @return [Symbol, :numeral] + required :tax_provider, const: :numeral + + # @!method initialize(tax_exempt:, tax_provider: :numeral) + # @param tax_exempt [Boolean] + # @param tax_provider [Symbol, :numeral] + end + # @!method self.variants - # @return [Array(Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration)] + # @return [Array(Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Numeral)] end end end diff --git a/lib/orb/models/customer_update_params.rb b/lib/orb/models/customer_update_params.rb index 954bc8c7..9d499581 100644 --- a/lib/orb/models/customer_update_params.rb +++ b/lib/orb/models/customer_update_params.rb @@ -14,7 +14,8 @@ class CustomerUpdateParams < Orb::Internal::Type::BaseModel # @!attribute additional_emails # Additional email addresses for this customer. If populated, these email - # addresses will be CC'd for customer communications. + # addresses will be CC'd for customer communications. The total number of email + # addresses (including the primary email) cannot exceed 50. # # @return [Array, nil] optional :additional_emails, Orb::Internal::Type::ArrayOf[String], nil?: true @@ -120,7 +121,7 @@ class CustomerUpdateParams < Orb::Internal::Type::BaseModel # @!attribute tax_configuration # - # @return [Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, nil] + # @return [Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, Orb::Models::CustomerUpdateParams::TaxConfiguration::Numeral, nil] optional :tax_configuration, union: -> { Orb::CustomerUpdateParams::TaxConfiguration }, nil?: true # @!attribute tax_id @@ -308,7 +309,7 @@ class CustomerUpdateParams < Orb::Internal::Type::BaseModel # # @param shipping_address [Orb::Models::AddressInput, nil] # - # @param tax_configuration [Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, nil] + # @param tax_configuration [Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, Orb::Models::CustomerUpdateParams::TaxConfiguration::Numeral, nil] # # @param tax_id [Orb::Models::CustomerTaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad # @@ -345,8 +346,26 @@ module TaxConfiguration variant :sphere, -> { Orb::NewSphereConfiguration } + variant :numeral, -> { Orb::CustomerUpdateParams::TaxConfiguration::Numeral } + + class Numeral < Orb::Internal::Type::BaseModel + # @!attribute tax_exempt + # + # @return [Boolean] + required :tax_exempt, Orb::Internal::Type::Boolean + + # @!attribute tax_provider + # + # @return [Symbol, :numeral] + required :tax_provider, const: :numeral + + # @!method initialize(tax_exempt:, tax_provider: :numeral) + # @param tax_exempt [Boolean] + # @param tax_provider [Symbol, :numeral] + end + # @!method self.variants - # @return [Array(Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration)] + # @return [Array(Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, Orb::Models::CustomerUpdateParams::TaxConfiguration::Numeral)] end end end diff --git a/lib/orb/models/invoice.rb b/lib/orb/models/invoice.rb index 36f545d8..ba8fe5d2 100644 --- a/lib/orb/models/invoice.rb +++ b/lib/orb/models/invoice.rb @@ -845,7 +845,7 @@ class LineItem < Orb::Internal::Type::BaseModel # For more on the types of prices, see # [the core concepts documentation](/core-concepts#plan-and-price) # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::Minimum] + # @return [Orb::Models::Price::Unit, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::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::Minimum] required :price, union: -> { Orb::Price } # @!attribute quantity @@ -920,7 +920,7 @@ class LineItem < Orb::Internal::Type::BaseModel # # @param partially_invoiced_amount [String] Any amount applied from a partial invoice # - # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::Minimum] The Price resource represents a price that can be billed on a subscription, resu + # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::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::Minimum] The Price resource represents a price that can be billed on a subscription, resu # # @param quantity [Float] Either the fixed fee quantity or the usage during the service period. # diff --git a/lib/orb/models/invoice_create_params.rb b/lib/orb/models/invoice_create_params.rb index 8654db48..09b33e50 100644 --- a/lib/orb/models/invoice_create_params.rb +++ b/lib/orb/models/invoice_create_params.rb @@ -150,6 +150,7 @@ class LineItem < Orb::Internal::Type::BaseModel required :start_date, Date # @!attribute unit_config + # Configuration for unit pricing # # @return [Orb::Models::UnitConfig] required :unit_config, -> { Orb::UnitConfig } @@ -167,7 +168,7 @@ class LineItem < Orb::Internal::Type::BaseModel # # @param start_date [Date] A date string to specify the line item's start date in the customer's timezone. # - # @param unit_config [Orb::Models::UnitConfig] + # @param unit_config [Orb::Models::UnitConfig] Configuration for unit pricing # @see Orb::Models::InvoiceCreateParams::LineItem#model_type module ModelType diff --git a/lib/orb/models/invoice_fetch_upcoming_response.rb b/lib/orb/models/invoice_fetch_upcoming_response.rb index 9da429c7..f423dc1a 100644 --- a/lib/orb/models/invoice_fetch_upcoming_response.rb +++ b/lib/orb/models/invoice_fetch_upcoming_response.rb @@ -846,7 +846,7 @@ class LineItem < Orb::Internal::Type::BaseModel # For more on the types of prices, see # [the core concepts documentation](/core-concepts#plan-and-price) # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::Minimum] + # @return [Orb::Models::Price::Unit, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::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::Minimum] required :price, union: -> { Orb::Price } # @!attribute quantity @@ -922,7 +922,7 @@ class LineItem < Orb::Internal::Type::BaseModel # # @param partially_invoiced_amount [String] Any amount applied from a partial invoice # - # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::Minimum] The Price resource represents a price that can be billed on a subscription, resu + # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::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::Minimum] The Price resource represents a price that can be billed on a subscription, resu # # @param quantity [Float] Either the fixed fee quantity or the usage during the service period. # diff --git a/lib/orb/models/invoice_line_item_create_response.rb b/lib/orb/models/invoice_line_item_create_response.rb index d5341f5e..d7e10321 100644 --- a/lib/orb/models/invoice_line_item_create_response.rb +++ b/lib/orb/models/invoice_line_item_create_response.rb @@ -123,7 +123,7 @@ class InvoiceLineItemCreateResponse < Orb::Internal::Type::BaseModel # For more on the types of prices, see # [the core concepts documentation](/core-concepts#plan-and-price) # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::Minimum] + # @return [Orb::Models::Price::Unit, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::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::Minimum] required :price, union: -> { Orb::Price } # @!attribute quantity @@ -199,7 +199,7 @@ class InvoiceLineItemCreateResponse < Orb::Internal::Type::BaseModel # # @param partially_invoiced_amount [String] Any amount applied from a partial invoice # - # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::Minimum] The Price resource represents a price that can be billed on a subscription, resu + # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::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::Minimum] The Price resource represents a price that can be billed on a subscription, resu # # @param quantity [Float] Either the fixed fee quantity or the usage during the service period. # diff --git a/lib/orb/models/matrix_config.rb b/lib/orb/models/matrix_config.rb index d1ed0ac2..375f6b9a 100644 --- a/lib/orb/models/matrix_config.rb +++ b/lib/orb/models/matrix_config.rb @@ -16,17 +16,19 @@ class MatrixConfig < Orb::Internal::Type::BaseModel required :dimensions, Orb::Internal::Type::ArrayOf[String, nil?: true] # @!attribute matrix_values - # Matrix values for specified matrix grouping keys + # Matrix values configuration # # @return [Array] required :matrix_values, -> { Orb::Internal::Type::ArrayOf[Orb::MatrixValue] } # @!method initialize(default_unit_amount:, dimensions:, matrix_values:) + # Configuration for matrix pricing + # # @param default_unit_amount [String] Default per unit rate for any usage not bucketed into a specified matrix_value # # @param dimensions [Array] One or two event property values to evaluate matrix groups by # - # @param matrix_values [Array] Matrix values for specified matrix grouping keys + # @param matrix_values [Array] Matrix values configuration end end end diff --git a/lib/orb/models/matrix_value.rb b/lib/orb/models/matrix_value.rb index 6b53fab3..e013a80e 100644 --- a/lib/orb/models/matrix_value.rb +++ b/lib/orb/models/matrix_value.rb @@ -4,9 +4,7 @@ module Orb module Models class MatrixValue < Orb::Internal::Type::BaseModel # @!attribute dimension_values - # One or two matrix keys to filter usage to this Matrix value by. For example, - # ["region", "tier"] could be used to filter cloud usage by a cloud region and an - # instance tier. + # One or two matrix keys to filter usage to this Matrix value by # # @return [Array] required :dimension_values, Orb::Internal::Type::ArrayOf[String, nil?: true] @@ -18,10 +16,9 @@ class MatrixValue < Orb::Internal::Type::BaseModel required :unit_amount, String # @!method initialize(dimension_values:, unit_amount:) - # Some parameter documentations has been truncated, see {Orb::Models::MatrixValue} - # for more details. + # Configuration for a single matrix value # - # @param dimension_values [Array] One or two matrix keys to filter usage to this Matrix value by. For example, ["r + # @param dimension_values [Array] One or two matrix keys to filter usage to this Matrix value by # # @param unit_amount [String] Unit price for the specified dimension_values end diff --git a/lib/orb/models/matrix_with_allocation_config.rb b/lib/orb/models/matrix_with_allocation_config.rb index 2163b81b..78e37797 100644 --- a/lib/orb/models/matrix_with_allocation_config.rb +++ b/lib/orb/models/matrix_with_allocation_config.rb @@ -4,10 +4,10 @@ module Orb module Models class MatrixWithAllocationConfig < Orb::Internal::Type::BaseModel # @!attribute allocation - # Allocation to be used to calculate the price + # Usage allocation # - # @return [Float] - required :allocation, Float + # @return [String] + required :allocation, String # @!attribute default_unit_amount # Default per unit rate for any usage not bucketed into a specified matrix_value @@ -22,19 +22,47 @@ class MatrixWithAllocationConfig < Orb::Internal::Type::BaseModel required :dimensions, Orb::Internal::Type::ArrayOf[String, nil?: true] # @!attribute matrix_values - # Matrix values for specified matrix grouping keys + # Matrix values configuration # - # @return [Array] - required :matrix_values, -> { Orb::Internal::Type::ArrayOf[Orb::MatrixValue] } + # @return [Array] + required :matrix_values, -> { Orb::Internal::Type::ArrayOf[Orb::MatrixWithAllocationConfig::MatrixValue] } # @!method initialize(allocation:, default_unit_amount:, dimensions:, matrix_values:) - # @param allocation [Float] Allocation to be used to calculate the price + # Configuration for matrix pricing with usage allocation + # + # @param allocation [String] Usage allocation # # @param default_unit_amount [String] Default per unit rate for any usage not bucketed into a specified matrix_value # # @param dimensions [Array] One or two event property values to evaluate matrix groups by # - # @param matrix_values [Array] Matrix values for specified matrix grouping keys + # @param matrix_values [Array] Matrix values configuration + + class MatrixValue < Orb::Internal::Type::BaseModel + # @!attribute dimension_values + # One or two matrix keys to filter usage to this Matrix value by. For example, + # ["region", "tier"] could be used to filter cloud usage by a cloud region and an + # instance tier. + # + # @return [Array] + required :dimension_values, Orb::Internal::Type::ArrayOf[String, nil?: true] + + # @!attribute unit_amount + # Unit price for the specified dimension_values + # + # @return [String] + required :unit_amount, String + + # @!method initialize(dimension_values:, unit_amount:) + # Some parameter documentations has been truncated, see + # {Orb::Models::MatrixWithAllocationConfig::MatrixValue} for more details. + # + # Configuration for a single matrix value + # + # @param dimension_values [Array] One or two matrix keys to filter usage to this Matrix value by. For example, ["r + # + # @param unit_amount [String] Unit price for the specified dimension_values + end end end end diff --git a/lib/orb/models/new_floating_bulk_price.rb b/lib/orb/models/new_floating_bulk_price.rb index a5659c0c..c9542e7a 100644 --- a/lib/orb/models/new_floating_bulk_price.rb +++ b/lib/orb/models/new_floating_bulk_price.rb @@ -4,6 +4,7 @@ module Orb module Models class NewFloatingBulkPrice < Orb::Internal::Type::BaseModel # @!attribute bulk_config + # Configuration for bulk pricing # # @return [Orb::Models::BulkConfig] required :bulk_config, -> { Orb::BulkConfig } @@ -27,6 +28,7 @@ class NewFloatingBulkPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewFloatingBulkPrice::ModelType] required :model_type, enum: -> { Orb::NewFloatingBulkPrice::ModelType } @@ -116,7 +118,7 @@ class NewFloatingBulkPrice < Orb::Internal::Type::BaseModel # Some parameter documentations has been truncated, see # {Orb::Models::NewFloatingBulkPrice} for more details. # - # @param bulk_config [Orb::Models::BulkConfig] + # @param bulk_config [Orb::Models::BulkConfig] Configuration for bulk pricing # # @param cadence [Symbol, Orb::Models::NewFloatingBulkPrice::Cadence] The cadence to bill for this price on. # @@ -124,7 +126,7 @@ class NewFloatingBulkPrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewFloatingBulkPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewFloatingBulkPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -167,6 +169,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewFloatingBulkPrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_floating_bulk_with_proration_price.rb b/lib/orb/models/new_floating_bulk_with_proration_price.rb index bcf55d55..c232f558 100644 --- a/lib/orb/models/new_floating_bulk_with_proration_price.rb +++ b/lib/orb/models/new_floating_bulk_with_proration_price.rb @@ -4,9 +4,11 @@ module Orb module Models class NewFloatingBulkWithProrationPrice < Orb::Internal::Type::BaseModel # @!attribute bulk_with_proration_config + # Configuration for bulk_with_proration pricing # - # @return [Hash{Symbol=>Object}] - required :bulk_with_proration_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewFloatingBulkWithProrationPrice::BulkWithProrationConfig] + required :bulk_with_proration_config, + -> { Orb::NewFloatingBulkWithProrationPrice::BulkWithProrationConfig } # @!attribute cadence # The cadence to bill for this price on. @@ -27,6 +29,7 @@ class NewFloatingBulkWithProrationPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewFloatingBulkWithProrationPrice::ModelType] required :model_type, enum: -> { Orb::NewFloatingBulkWithProrationPrice::ModelType } @@ -116,7 +119,7 @@ class NewFloatingBulkWithProrationPrice < Orb::Internal::Type::BaseModel # Some parameter documentations has been truncated, see # {Orb::Models::NewFloatingBulkWithProrationPrice} for more details. # - # @param bulk_with_proration_config [Hash{Symbol=>Object}] + # @param bulk_with_proration_config [Orb::Models::NewFloatingBulkWithProrationPrice::BulkWithProrationConfig] Configuration for bulk_with_proration pricing # # @param cadence [Symbol, Orb::Models::NewFloatingBulkWithProrationPrice::Cadence] The cadence to bill for this price on. # @@ -124,7 +127,7 @@ class NewFloatingBulkWithProrationPrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewFloatingBulkWithProrationPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewFloatingBulkWithProrationPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -150,6 +153,42 @@ class NewFloatingBulkWithProrationPrice < Orb::Internal::Type::BaseModel # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # @see Orb::Models::NewFloatingBulkWithProrationPrice#bulk_with_proration_config + class BulkWithProrationConfig < Orb::Internal::Type::BaseModel + # @!attribute tiers + # Bulk tiers for rating based on total usage volume + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::NewFloatingBulkWithProrationPrice::BulkWithProrationConfig::Tier] } + + # @!method initialize(tiers:) + # Configuration for bulk_with_proration pricing + # + # @param tiers [Array] Bulk tiers for rating based on total usage volume + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute unit_amount + # Cost per unit + # + # @return [String] + required :unit_amount, String + + # @!attribute tier_lower_bound + # The lower bound for this tier + # + # @return [String, nil] + optional :tier_lower_bound, String, nil?: true + + # @!method initialize(unit_amount:, tier_lower_bound: nil) + # Configuration for a single bulk pricing tier with proration + # + # @param unit_amount [String] Cost per unit + # + # @param tier_lower_bound [String, nil] The lower bound for this tier + end + end + # The cadence to bill for this price on. # # @see Orb::Models::NewFloatingBulkWithProrationPrice#cadence @@ -167,6 +206,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewFloatingBulkWithProrationPrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_floating_cumulative_grouped_bulk_price.rb b/lib/orb/models/new_floating_cumulative_grouped_bulk_price.rb index 008fd85e..3c913936 100644 --- a/lib/orb/models/new_floating_cumulative_grouped_bulk_price.rb +++ b/lib/orb/models/new_floating_cumulative_grouped_bulk_price.rb @@ -10,9 +10,11 @@ class NewFloatingCumulativeGroupedBulkPrice < Orb::Internal::Type::BaseModel required :cadence, enum: -> { Orb::NewFloatingCumulativeGroupedBulkPrice::Cadence } # @!attribute cumulative_grouped_bulk_config + # Configuration for cumulative_grouped_bulk pricing # - # @return [Hash{Symbol=>Object}] - required :cumulative_grouped_bulk_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewFloatingCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig] + required :cumulative_grouped_bulk_config, + -> { Orb::NewFloatingCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig } # @!attribute currency # An ISO 4217 currency string for which this price is billed in. @@ -27,6 +29,7 @@ class NewFloatingCumulativeGroupedBulkPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewFloatingCumulativeGroupedBulkPrice::ModelType] required :model_type, enum: -> { Orb::NewFloatingCumulativeGroupedBulkPrice::ModelType } @@ -118,13 +121,13 @@ class NewFloatingCumulativeGroupedBulkPrice < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::NewFloatingCumulativeGroupedBulkPrice::Cadence] The cadence to bill for this price on. # - # @param cumulative_grouped_bulk_config [Hash{Symbol=>Object}] + # @param cumulative_grouped_bulk_config [Orb::Models::NewFloatingCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig] Configuration for cumulative_grouped_bulk pricing # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewFloatingCumulativeGroupedBulkPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewFloatingCumulativeGroupedBulkPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -167,6 +170,60 @@ module Cadence # @return [Array] end + # @see Orb::Models::NewFloatingCumulativeGroupedBulkPrice#cumulative_grouped_bulk_config + class CumulativeGroupedBulkConfig < Orb::Internal::Type::BaseModel + # @!attribute dimension_values + # Each tier lower bound must have the same group of values. + # + # @return [Array] + required :dimension_values, + -> { Orb::Internal::Type::ArrayOf[Orb::NewFloatingCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig::DimensionValue] } + + # @!attribute group + # Grouping key name + # + # @return [String] + required :group, String + + # @!method initialize(dimension_values:, group:) + # Configuration for cumulative_grouped_bulk pricing + # + # @param dimension_values [Array] Each tier lower bound must have the same group of values. + # + # @param group [String] Grouping key name + + class DimensionValue < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # Grouping key value + # + # @return [String] + required :grouping_key, String + + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Unit amount for this combination + # + # @return [String] + required :unit_amount, String + + # @!method initialize(grouping_key:, tier_lower_bound:, unit_amount:) + # Configuration for a dimension value entry + # + # @param grouping_key [String] Grouping key value + # + # @param tier_lower_bound [String] Tier lower bound + # + # @param unit_amount [String] Unit amount for this combination + end + end + + # The pricing model type + # # @see Orb::Models::NewFloatingCumulativeGroupedBulkPrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_floating_grouped_allocation_price.rb b/lib/orb/models/new_floating_grouped_allocation_price.rb index 6ecb2356..e4a085e8 100644 --- a/lib/orb/models/new_floating_grouped_allocation_price.rb +++ b/lib/orb/models/new_floating_grouped_allocation_price.rb @@ -16,9 +16,11 @@ class NewFloatingGroupedAllocationPrice < Orb::Internal::Type::BaseModel required :currency, String # @!attribute grouped_allocation_config + # Configuration for grouped_allocation pricing # - # @return [Hash{Symbol=>Object}] - required :grouped_allocation_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewFloatingGroupedAllocationPrice::GroupedAllocationConfig] + required :grouped_allocation_config, + -> { Orb::NewFloatingGroupedAllocationPrice::GroupedAllocationConfig } # @!attribute item_id # The id of the item the price will be associated with. @@ -27,6 +29,7 @@ class NewFloatingGroupedAllocationPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewFloatingGroupedAllocationPrice::ModelType] required :model_type, enum: -> { Orb::NewFloatingGroupedAllocationPrice::ModelType } @@ -120,11 +123,11 @@ class NewFloatingGroupedAllocationPrice < Orb::Internal::Type::BaseModel # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # - # @param grouped_allocation_config [Hash{Symbol=>Object}] + # @param grouped_allocation_config [Orb::Models::NewFloatingGroupedAllocationPrice::GroupedAllocationConfig] Configuration for grouped_allocation pricing # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewFloatingGroupedAllocationPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewFloatingGroupedAllocationPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -167,6 +170,38 @@ module Cadence # @return [Array] end + # @see Orb::Models::NewFloatingGroupedAllocationPrice#grouped_allocation_config + class GroupedAllocationConfig < Orb::Internal::Type::BaseModel + # @!attribute allocation + # Usage allocation per group + # + # @return [String] + required :allocation, String + + # @!attribute grouping_key + # How to determine the groups that should each be allocated some quantity + # + # @return [String] + required :grouping_key, String + + # @!attribute overage_unit_rate + # Unit rate for post-allocation + # + # @return [String] + required :overage_unit_rate, String + + # @!method initialize(allocation:, grouping_key:, overage_unit_rate:) + # Configuration for grouped_allocation pricing + # + # @param allocation [String] Usage allocation per group + # + # @param grouping_key [String] How to determine the groups that should each be allocated some quantity + # + # @param overage_unit_rate [String] Unit rate for post-allocation + end + + # The pricing model type + # # @see Orb::Models::NewFloatingGroupedAllocationPrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_floating_grouped_tiered_package_price.rb b/lib/orb/models/new_floating_grouped_tiered_package_price.rb index 2596b8fc..631e5097 100644 --- a/lib/orb/models/new_floating_grouped_tiered_package_price.rb +++ b/lib/orb/models/new_floating_grouped_tiered_package_price.rb @@ -16,9 +16,11 @@ class NewFloatingGroupedTieredPackagePrice < Orb::Internal::Type::BaseModel required :currency, String # @!attribute grouped_tiered_package_config + # Configuration for grouped_tiered_package pricing # - # @return [Hash{Symbol=>Object}] - required :grouped_tiered_package_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewFloatingGroupedTieredPackagePrice::GroupedTieredPackageConfig] + required :grouped_tiered_package_config, + -> { Orb::NewFloatingGroupedTieredPackagePrice::GroupedTieredPackageConfig } # @!attribute item_id # The id of the item the price will be associated with. @@ -27,6 +29,7 @@ class NewFloatingGroupedTieredPackagePrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewFloatingGroupedTieredPackagePrice::ModelType] required :model_type, enum: -> { Orb::NewFloatingGroupedTieredPackagePrice::ModelType } @@ -120,11 +123,11 @@ class NewFloatingGroupedTieredPackagePrice < Orb::Internal::Type::BaseModel # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # - # @param grouped_tiered_package_config [Hash{Symbol=>Object}] + # @param grouped_tiered_package_config [Orb::Models::NewFloatingGroupedTieredPackagePrice::GroupedTieredPackageConfig] Configuration for grouped_tiered_package pricing # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewFloatingGroupedTieredPackagePrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewFloatingGroupedTieredPackagePrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -167,6 +170,65 @@ module Cadence # @return [Array] end + # @see Orb::Models::NewFloatingGroupedTieredPackagePrice#grouped_tiered_package_config + class GroupedTieredPackageConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # The event property used to group before tiering + # + # @return [String] + required :grouping_key, String + + # @!attribute package_size + # Package size + # + # @return [String] + required :package_size, String + + # @!attribute tiers + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::NewFloatingGroupedTieredPackagePrice::GroupedTieredPackageConfig::Tier] } + + # @!method initialize(grouping_key:, package_size:, tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::NewFloatingGroupedTieredPackagePrice::GroupedTieredPackageConfig} + # for more details. + # + # Configuration for grouped_tiered_package pricing + # + # @param grouping_key [String] The event property used to group before tiering + # + # @param package_size [String] Package size + # + # @param tiers [Array] Apply tiered pricing after rounding up the quantity to the package size. Tiers a + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute per_unit + # Price per package + # + # @return [String] + required :per_unit, String + + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!method initialize(per_unit:, tier_lower_bound:) + # Configuration for a single tier + # + # @param per_unit [String] Price per package + # + # @param tier_lower_bound [String] Tier lower bound + end + end + + # The pricing model type + # # @see Orb::Models::NewFloatingGroupedTieredPackagePrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_floating_grouped_tiered_price.rb b/lib/orb/models/new_floating_grouped_tiered_price.rb index cccce7b2..c908ee42 100644 --- a/lib/orb/models/new_floating_grouped_tiered_price.rb +++ b/lib/orb/models/new_floating_grouped_tiered_price.rb @@ -16,9 +16,10 @@ class NewFloatingGroupedTieredPrice < Orb::Internal::Type::BaseModel required :currency, String # @!attribute grouped_tiered_config + # Configuration for grouped_tiered pricing # - # @return [Hash{Symbol=>Object}] - required :grouped_tiered_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewFloatingGroupedTieredPrice::GroupedTieredConfig] + required :grouped_tiered_config, -> { Orb::NewFloatingGroupedTieredPrice::GroupedTieredConfig } # @!attribute item_id # The id of the item the price will be associated with. @@ -27,6 +28,7 @@ class NewFloatingGroupedTieredPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewFloatingGroupedTieredPrice::ModelType] required :model_type, enum: -> { Orb::NewFloatingGroupedTieredPrice::ModelType } @@ -120,11 +122,11 @@ class NewFloatingGroupedTieredPrice < Orb::Internal::Type::BaseModel # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # - # @param grouped_tiered_config [Hash{Symbol=>Object}] + # @param grouped_tiered_config [Orb::Models::NewFloatingGroupedTieredPrice::GroupedTieredConfig] Configuration for grouped_tiered pricing # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewFloatingGroupedTieredPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewFloatingGroupedTieredPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -167,6 +169,57 @@ module Cadence # @return [Array] end + # @see Orb::Models::NewFloatingGroupedTieredPrice#grouped_tiered_config + class GroupedTieredConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # The billable metric property used to group before tiering + # + # @return [String] + required :grouping_key, String + + # @!attribute tiers + # Apply tiered pricing to each segment generated after grouping with the provided + # key + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::NewFloatingGroupedTieredPrice::GroupedTieredConfig::Tier] } + + # @!method initialize(grouping_key:, tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::NewFloatingGroupedTieredPrice::GroupedTieredConfig} for more + # details. + # + # Configuration for grouped_tiered pricing + # + # @param grouping_key [String] The billable metric property used to group before tiering + # + # @param tiers [Array] Apply tiered pricing to each segment generated after grouping with the provided + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Per unit amount + # + # @return [String] + required :unit_amount, String + + # @!method initialize(tier_lower_bound:, unit_amount:) + # Configuration for a single tier + # + # @param tier_lower_bound [String] Tier lower bound + # + # @param unit_amount [String] Per unit amount + end + end + + # The pricing model type + # # @see Orb::Models::NewFloatingGroupedTieredPrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb b/lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb index 8e70ccee..00cb58f0 100644 --- a/lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb +++ b/lib/orb/models/new_floating_grouped_with_metered_minimum_price.rb @@ -16,9 +16,11 @@ class NewFloatingGroupedWithMeteredMinimumPrice < Orb::Internal::Type::BaseModel required :currency, String # @!attribute grouped_with_metered_minimum_config + # Configuration for grouped_with_metered_minimum pricing # - # @return [Hash{Symbol=>Object}] - required :grouped_with_metered_minimum_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig] + required :grouped_with_metered_minimum_config, + -> { Orb::NewFloatingGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig } # @!attribute item_id # The id of the item the price will be associated with. @@ -27,6 +29,7 @@ class NewFloatingGroupedWithMeteredMinimumPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::ModelType] required :model_type, enum: -> { Orb::NewFloatingGroupedWithMeteredMinimumPrice::ModelType } @@ -120,11 +123,11 @@ class NewFloatingGroupedWithMeteredMinimumPrice < Orb::Internal::Type::BaseModel # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # - # @param grouped_with_metered_minimum_config [Hash{Symbol=>Object}] + # @param grouped_with_metered_minimum_config [Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig] Configuration for grouped_with_metered_minimum pricing # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -167,6 +170,112 @@ module Cadence # @return [Array] end + # @see Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice#grouped_with_metered_minimum_config + class GroupedWithMeteredMinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # Used to partition the usage into groups. The minimum amount is applied to each + # group. + # + # @return [String] + required :grouping_key, String + + # @!attribute minimum_unit_amount + # The minimum amount to charge per group per unit + # + # @return [String] + required :minimum_unit_amount, String + + # @!attribute pricing_key + # Used to determine the unit rate + # + # @return [String] + required :pricing_key, String + + # @!attribute scaling_factors + # Scale the unit rates by the scaling factor. + # + # @return [Array] + required :scaling_factors, + -> { Orb::Internal::Type::ArrayOf[Orb::NewFloatingGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::ScalingFactor] } + + # @!attribute scaling_key + # Used to determine the unit rate scaling factor + # + # @return [String] + required :scaling_key, String + + # @!attribute unit_amounts + # Apply per unit pricing to each pricing value. The minimum amount is applied any + # unmatched usage. + # + # @return [Array] + required :unit_amounts, + -> { Orb::Internal::Type::ArrayOf[Orb::NewFloatingGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::UnitAmount] } + + # @!method initialize(grouping_key:, minimum_unit_amount:, pricing_key:, scaling_factors:, scaling_key:, unit_amounts:) + # Some parameter documentations has been truncated, see + # {Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig} + # for more details. + # + # Configuration for grouped_with_metered_minimum pricing + # + # @param grouping_key [String] Used to partition the usage into groups. The minimum amount is applied to each g + # + # @param minimum_unit_amount [String] The minimum amount to charge per group per unit + # + # @param pricing_key [String] Used to determine the unit rate + # + # @param scaling_factors [Array] Scale the unit rates by the scaling factor. + # + # @param scaling_key [String] Used to determine the unit rate scaling factor + # + # @param unit_amounts [Array] Apply per unit pricing to each pricing value. The minimum amount is applied any + + class ScalingFactor < Orb::Internal::Type::BaseModel + # @!attribute scaling_factor + # Scaling factor + # + # @return [String] + required :scaling_factor, String + + # @!attribute scaling_value + # Scaling value + # + # @return [String] + required :scaling_value, String + + # @!method initialize(scaling_factor:, scaling_value:) + # Configuration for a scaling factor + # + # @param scaling_factor [String] Scaling factor + # + # @param scaling_value [String] Scaling value + end + + class UnitAmount < Orb::Internal::Type::BaseModel + # @!attribute pricing_value + # Pricing value + # + # @return [String] + required :pricing_value, String + + # @!attribute unit_amount + # Per unit amount + # + # @return [String] + required :unit_amount, String + + # @!method initialize(pricing_value:, unit_amount:) + # Configuration for a unit amount + # + # @param pricing_value [String] Pricing value + # + # @param unit_amount [String] Per unit amount + end + end + + # The pricing model type + # # @see Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_floating_grouped_with_prorated_minimum_price.rb b/lib/orb/models/new_floating_grouped_with_prorated_minimum_price.rb index f6224afd..a4c78956 100644 --- a/lib/orb/models/new_floating_grouped_with_prorated_minimum_price.rb +++ b/lib/orb/models/new_floating_grouped_with_prorated_minimum_price.rb @@ -16,9 +16,11 @@ class NewFloatingGroupedWithProratedMinimumPrice < Orb::Internal::Type::BaseMode required :currency, String # @!attribute grouped_with_prorated_minimum_config + # Configuration for grouped_with_prorated_minimum pricing # - # @return [Hash{Symbol=>Object}] - required :grouped_with_prorated_minimum_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig] + required :grouped_with_prorated_minimum_config, + -> { Orb::NewFloatingGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig } # @!attribute item_id # The id of the item the price will be associated with. @@ -27,6 +29,7 @@ class NewFloatingGroupedWithProratedMinimumPrice < Orb::Internal::Type::BaseMode required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::ModelType] required :model_type, enum: -> { Orb::NewFloatingGroupedWithProratedMinimumPrice::ModelType } @@ -120,11 +123,11 @@ class NewFloatingGroupedWithProratedMinimumPrice < Orb::Internal::Type::BaseMode # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # - # @param grouped_with_prorated_minimum_config [Hash{Symbol=>Object}] + # @param grouped_with_prorated_minimum_config [Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig] Configuration for grouped_with_prorated_minimum pricing # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -167,6 +170,38 @@ module Cadence # @return [Array] end + # @see Orb::Models::NewFloatingGroupedWithProratedMinimumPrice#grouped_with_prorated_minimum_config + class GroupedWithProratedMinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # How to determine the groups that should each have a minimum + # + # @return [String] + required :grouping_key, String + + # @!attribute minimum + # The minimum amount to charge per group + # + # @return [String] + required :minimum, String + + # @!attribute unit_rate + # The amount to charge per unit + # + # @return [String] + required :unit_rate, String + + # @!method initialize(grouping_key:, minimum:, unit_rate:) + # Configuration for grouped_with_prorated_minimum pricing + # + # @param grouping_key [String] How to determine the groups that should each have a minimum + # + # @param minimum [String] The minimum amount to charge per group + # + # @param unit_rate [String] The amount to charge per unit + end + + # The pricing model type + # # @see Orb::Models::NewFloatingGroupedWithProratedMinimumPrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_floating_matrix_price.rb b/lib/orb/models/new_floating_matrix_price.rb index e616fbf5..ca0c5001 100644 --- a/lib/orb/models/new_floating_matrix_price.rb +++ b/lib/orb/models/new_floating_matrix_price.rb @@ -22,11 +22,13 @@ class NewFloatingMatrixPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute matrix_config + # Configuration for matrix pricing # # @return [Orb::Models::MatrixConfig] required :matrix_config, -> { Orb::MatrixConfig } # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewFloatingMatrixPrice::ModelType] required :model_type, enum: -> { Orb::NewFloatingMatrixPrice::ModelType } @@ -122,9 +124,9 @@ class NewFloatingMatrixPrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param matrix_config [Orb::Models::MatrixConfig] + # @param matrix_config [Orb::Models::MatrixConfig] Configuration for matrix pricing # - # @param model_type [Symbol, Orb::Models::NewFloatingMatrixPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewFloatingMatrixPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -167,6 +169,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewFloatingMatrixPrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_floating_matrix_with_allocation_price.rb b/lib/orb/models/new_floating_matrix_with_allocation_price.rb index b27867cb..855d91ac 100644 --- a/lib/orb/models/new_floating_matrix_with_allocation_price.rb +++ b/lib/orb/models/new_floating_matrix_with_allocation_price.rb @@ -22,11 +22,13 @@ class NewFloatingMatrixWithAllocationPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute matrix_with_allocation_config + # Configuration for matrix_with_allocation pricing # # @return [Orb::Models::MatrixWithAllocationConfig] required :matrix_with_allocation_config, -> { Orb::MatrixWithAllocationConfig } # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewFloatingMatrixWithAllocationPrice::ModelType] required :model_type, enum: -> { Orb::NewFloatingMatrixWithAllocationPrice::ModelType } @@ -122,9 +124,9 @@ class NewFloatingMatrixWithAllocationPrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param matrix_with_allocation_config [Orb::Models::MatrixWithAllocationConfig] + # @param matrix_with_allocation_config [Orb::Models::MatrixWithAllocationConfig] Configuration for matrix_with_allocation pricing # - # @param model_type [Symbol, Orb::Models::NewFloatingMatrixWithAllocationPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewFloatingMatrixWithAllocationPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -167,6 +169,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewFloatingMatrixWithAllocationPrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_floating_matrix_with_display_name_price.rb b/lib/orb/models/new_floating_matrix_with_display_name_price.rb index 6bc58f8f..731520aa 100644 --- a/lib/orb/models/new_floating_matrix_with_display_name_price.rb +++ b/lib/orb/models/new_floating_matrix_with_display_name_price.rb @@ -22,11 +22,14 @@ class NewFloatingMatrixWithDisplayNamePrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute matrix_with_display_name_config + # Configuration for matrix_with_display_name pricing # - # @return [Hash{Symbol=>Object}] - required :matrix_with_display_name_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewFloatingMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig] + required :matrix_with_display_name_config, + -> { Orb::NewFloatingMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig } # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewFloatingMatrixWithDisplayNamePrice::ModelType] required :model_type, enum: -> { Orb::NewFloatingMatrixWithDisplayNamePrice::ModelType } @@ -122,9 +125,9 @@ class NewFloatingMatrixWithDisplayNamePrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param matrix_with_display_name_config [Hash{Symbol=>Object}] + # @param matrix_with_display_name_config [Orb::Models::NewFloatingMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig] Configuration for matrix_with_display_name pricing # - # @param model_type [Symbol, Orb::Models::NewFloatingMatrixWithDisplayNamePrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewFloatingMatrixWithDisplayNamePrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -167,6 +170,60 @@ module Cadence # @return [Array] end + # @see Orb::Models::NewFloatingMatrixWithDisplayNamePrice#matrix_with_display_name_config + class MatrixWithDisplayNameConfig < Orb::Internal::Type::BaseModel + # @!attribute dimension + # Used to determine the unit rate + # + # @return [String] + required :dimension, String + + # @!attribute unit_amounts + # Apply per unit pricing to each dimension value + # + # @return [Array] + required :unit_amounts, + -> { Orb::Internal::Type::ArrayOf[Orb::NewFloatingMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::UnitAmount] } + + # @!method initialize(dimension:, unit_amounts:) + # Configuration for matrix_with_display_name pricing + # + # @param dimension [String] Used to determine the unit rate + # + # @param unit_amounts [Array] Apply per unit pricing to each dimension value + + class UnitAmount < Orb::Internal::Type::BaseModel + # @!attribute dimension_value + # The dimension value + # + # @return [String] + required :dimension_value, String + + # @!attribute display_name + # Display name for this dimension value + # + # @return [String] + required :display_name, String + + # @!attribute unit_amount + # Per unit amount + # + # @return [String] + required :unit_amount, String + + # @!method initialize(dimension_value:, display_name:, unit_amount:) + # Configuration for a unit amount item + # + # @param dimension_value [String] The dimension value + # + # @param display_name [String] Display name for this dimension value + # + # @param unit_amount [String] Per unit amount + end + end + + # The pricing model type + # # @see Orb::Models::NewFloatingMatrixWithDisplayNamePrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_floating_max_group_tiered_package_price.rb b/lib/orb/models/new_floating_max_group_tiered_package_price.rb index 90014885..bd2424c5 100644 --- a/lib/orb/models/new_floating_max_group_tiered_package_price.rb +++ b/lib/orb/models/new_floating_max_group_tiered_package_price.rb @@ -22,11 +22,14 @@ class NewFloatingMaxGroupTieredPackagePrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute max_group_tiered_package_config + # Configuration for max_group_tiered_package pricing # - # @return [Hash{Symbol=>Object}] - required :max_group_tiered_package_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewFloatingMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig] + required :max_group_tiered_package_config, + -> { Orb::NewFloatingMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig } # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewFloatingMaxGroupTieredPackagePrice::ModelType] required :model_type, enum: -> { Orb::NewFloatingMaxGroupTieredPackagePrice::ModelType } @@ -122,9 +125,9 @@ class NewFloatingMaxGroupTieredPackagePrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param max_group_tiered_package_config [Hash{Symbol=>Object}] + # @param max_group_tiered_package_config [Orb::Models::NewFloatingMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig] Configuration for max_group_tiered_package pricing # - # @param model_type [Symbol, Orb::Models::NewFloatingMaxGroupTieredPackagePrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewFloatingMaxGroupTieredPackagePrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -167,6 +170,64 @@ module Cadence # @return [Array] end + # @see Orb::Models::NewFloatingMaxGroupTieredPackagePrice#max_group_tiered_package_config + class MaxGroupTieredPackageConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # The event property used to group before tiering the group with the highest value + # + # @return [String] + required :grouping_key, String + + # @!attribute package_size + # Package size + # + # @return [String] + required :package_size, String + + # @!attribute tiers + # Apply tiered pricing to the largest group after grouping with the provided key. + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::NewFloatingMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig::Tier] } + + # @!method initialize(grouping_key:, package_size:, tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::NewFloatingMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig} + # for more details. + # + # Configuration for max_group_tiered_package pricing + # + # @param grouping_key [String] The event property used to group before tiering the group with the highest value + # + # @param package_size [String] Package size + # + # @param tiers [Array] Apply tiered pricing to the largest group after grouping with the provided key. + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Per unit amount + # + # @return [String] + required :unit_amount, String + + # @!method initialize(tier_lower_bound:, unit_amount:) + # Configuration for a single tier + # + # @param tier_lower_bound [String] Tier lower bound + # + # @param unit_amount [String] Per unit amount + end + end + + # The pricing model type + # # @see Orb::Models::NewFloatingMaxGroupTieredPackagePrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_floating_minimum_composite_price.rb b/lib/orb/models/new_floating_minimum_composite_price.rb index 3ad618c3..6ddca0b5 100644 --- a/lib/orb/models/new_floating_minimum_composite_price.rb +++ b/lib/orb/models/new_floating_minimum_composite_price.rb @@ -22,11 +22,13 @@ class NewFloatingMinimumCompositePrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute minimum_config + # Configuration for minimum pricing # # @return [Orb::Models::NewFloatingMinimumCompositePrice::MinimumConfig] required :minimum_config, -> { Orb::NewFloatingMinimumCompositePrice::MinimumConfig } # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewFloatingMinimumCompositePrice::ModelType] required :model_type, enum: -> { Orb::NewFloatingMinimumCompositePrice::ModelType } @@ -122,9 +124,9 @@ class NewFloatingMinimumCompositePrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param minimum_config [Orb::Models::NewFloatingMinimumCompositePrice::MinimumConfig] + # @param minimum_config [Orb::Models::NewFloatingMinimumCompositePrice::MinimumConfig] Configuration for minimum pricing # - # @param model_type [Symbol, Orb::Models::NewFloatingMinimumCompositePrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewFloatingMinimumCompositePrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -176,21 +178,21 @@ class MinimumConfig < Orb::Internal::Type::BaseModel required :minimum_amount, String # @!attribute prorated - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. + # If true, subtotals from this price are prorated based on the service period # # @return [Boolean, nil] - optional :prorated, Orb::Internal::Type::Boolean, nil?: true + optional :prorated, Orb::Internal::Type::Boolean # @!method initialize(minimum_amount:, prorated: nil) - # Some parameter documentations has been truncated, see - # {Orb::Models::NewFloatingMinimumCompositePrice::MinimumConfig} for more details. + # Configuration for minimum pricing # # @param minimum_amount [String] The minimum amount to apply # - # @param prorated [Boolean, nil] By default, subtotals from minimum composite prices are prorated based on the se + # @param prorated [Boolean] If true, subtotals from this price are prorated based on the service period end + # The pricing model type + # # @see Orb::Models::NewFloatingMinimumCompositePrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_floating_package_price.rb b/lib/orb/models/new_floating_package_price.rb index 8a1a583c..453a13f2 100644 --- a/lib/orb/models/new_floating_package_price.rb +++ b/lib/orb/models/new_floating_package_price.rb @@ -22,6 +22,7 @@ class NewFloatingPackagePrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewFloatingPackagePrice::ModelType] required :model_type, enum: -> { Orb::NewFloatingPackagePrice::ModelType } @@ -33,6 +34,7 @@ class NewFloatingPackagePrice < Orb::Internal::Type::BaseModel required :name, String # @!attribute package_config + # Configuration for package pricing # # @return [Orb::Models::PackageConfig] required :package_config, -> { Orb::PackageConfig } @@ -122,11 +124,11 @@ class NewFloatingPackagePrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewFloatingPackagePrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewFloatingPackagePrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param package_config [Orb::Models::PackageConfig] + # @param package_config [Orb::Models::PackageConfig] Configuration for package pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -167,6 +169,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewFloatingPackagePrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_floating_package_with_allocation_price.rb b/lib/orb/models/new_floating_package_with_allocation_price.rb index 8841b9c8..c4bf5d83 100644 --- a/lib/orb/models/new_floating_package_with_allocation_price.rb +++ b/lib/orb/models/new_floating_package_with_allocation_price.rb @@ -22,6 +22,7 @@ class NewFloatingPackageWithAllocationPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewFloatingPackageWithAllocationPrice::ModelType] required :model_type, enum: -> { Orb::NewFloatingPackageWithAllocationPrice::ModelType } @@ -33,9 +34,11 @@ class NewFloatingPackageWithAllocationPrice < Orb::Internal::Type::BaseModel required :name, String # @!attribute package_with_allocation_config + # Configuration for package_with_allocation pricing # - # @return [Hash{Symbol=>Object}] - required :package_with_allocation_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewFloatingPackageWithAllocationPrice::PackageWithAllocationConfig] + required :package_with_allocation_config, + -> { Orb::NewFloatingPackageWithAllocationPrice::PackageWithAllocationConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -122,11 +125,11 @@ class NewFloatingPackageWithAllocationPrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewFloatingPackageWithAllocationPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewFloatingPackageWithAllocationPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param package_with_allocation_config [Hash{Symbol=>Object}] + # @param package_with_allocation_config [Orb::Models::NewFloatingPackageWithAllocationPrice::PackageWithAllocationConfig] Configuration for package_with_allocation pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -167,6 +170,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewFloatingPackageWithAllocationPrice#model_type module ModelType extend Orb::Internal::Type::Enum @@ -176,6 +181,36 @@ module ModelType # @!method self.values # @return [Array] end + + # @see Orb::Models::NewFloatingPackageWithAllocationPrice#package_with_allocation_config + class PackageWithAllocationConfig < Orb::Internal::Type::BaseModel + # @!attribute allocation + # Usage allocation + # + # @return [String] + required :allocation, String + + # @!attribute package_amount + # Price per package + # + # @return [String] + required :package_amount, String + + # @!attribute package_size + # Package size + # + # @return [String] + required :package_size, String + + # @!method initialize(allocation:, package_amount:, package_size:) + # Configuration for package_with_allocation pricing + # + # @param allocation [String] Usage allocation + # + # @param package_amount [String] Price per package + # + # @param package_size [String] Package size + end end end end diff --git a/lib/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rb b/lib/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rb index 87d876a7..e8df8b32 100644 --- a/lib/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rb +++ b/lib/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rb @@ -22,6 +22,7 @@ class NewFloatingScalableMatrixWithTieredPricingPrice < Orb::Internal::Type::Bas required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::ModelType] required :model_type, enum: -> { Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ModelType } @@ -33,10 +34,11 @@ class NewFloatingScalableMatrixWithTieredPricingPrice < Orb::Internal::Type::Bas required :name, String # @!attribute scalable_matrix_with_tiered_pricing_config + # Configuration for scalable_matrix_with_tiered_pricing pricing # - # @return [Hash{Symbol=>Object}] + # @return [Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig] required :scalable_matrix_with_tiered_pricing_config, - Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + -> { Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -123,11 +125,11 @@ class NewFloatingScalableMatrixWithTieredPricingPrice < Orb::Internal::Type::Bas # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param scalable_matrix_with_tiered_pricing_config [Hash{Symbol=>Object}] + # @param scalable_matrix_with_tiered_pricing_config [Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig] Configuration for scalable_matrix_with_tiered_pricing pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -168,6 +170,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice#model_type module ModelType extend Orb::Internal::Type::Enum @@ -177,6 +181,100 @@ module ModelType # @!method self.values # @return [Array] end + + # @see Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice#scalable_matrix_with_tiered_pricing_config + class ScalableMatrixWithTieredPricingConfig < Orb::Internal::Type::BaseModel + # @!attribute first_dimension + # Used for the scalable matrix first dimension + # + # @return [String] + required :first_dimension, String + + # @!attribute matrix_scaling_factors + # Apply a scaling factor to each dimension + # + # @return [Array] + required :matrix_scaling_factors, + -> do + Orb::Internal::Type::ArrayOf[ + Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor + ] + end + + # @!attribute tiers + # Tier pricing structure + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::Tier] } + + # @!attribute second_dimension + # Used for the scalable matrix second dimension (optional) + # + # @return [String, nil] + optional :second_dimension, String, nil?: true + + # @!method initialize(first_dimension:, matrix_scaling_factors:, tiers:, second_dimension: nil) + # Configuration for scalable_matrix_with_tiered_pricing pricing + # + # @param first_dimension [String] Used for the scalable matrix first dimension + # + # @param matrix_scaling_factors [Array] Apply a scaling factor to each dimension + # + # @param tiers [Array] Tier pricing structure + # + # @param second_dimension [String, nil] Used for the scalable matrix second dimension (optional) + + class MatrixScalingFactor < Orb::Internal::Type::BaseModel + # @!attribute first_dimension_value + # First dimension value + # + # @return [String] + required :first_dimension_value, String + + # @!attribute scaling_factor + # Scaling factor + # + # @return [String] + required :scaling_factor, String + + # @!attribute second_dimension_value + # Second dimension value (optional) + # + # @return [String, nil] + optional :second_dimension_value, String, nil?: true + + # @!method initialize(first_dimension_value:, scaling_factor:, second_dimension_value: nil) + # Configuration for a single matrix scaling factor + # + # @param first_dimension_value [String] First dimension value + # + # @param scaling_factor [String] Scaling factor + # + # @param second_dimension_value [String, nil] Second dimension value (optional) + end + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Per unit amount + # + # @return [String] + required :unit_amount, String + + # @!method initialize(tier_lower_bound:, unit_amount:) + # Configuration for a single tier entry with business logic + # + # @param tier_lower_bound [String] Tier lower bound + # + # @param unit_amount [String] Per unit amount + end + end end end end diff --git a/lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb b/lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb index a68981ba..40982d9c 100644 --- a/lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb +++ b/lib/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rb @@ -22,6 +22,7 @@ class NewFloatingScalableMatrixWithUnitPricingPrice < Orb::Internal::Type::BaseM required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::ModelType] required :model_type, enum: -> { Orb::NewFloatingScalableMatrixWithUnitPricingPrice::ModelType } @@ -33,10 +34,11 @@ class NewFloatingScalableMatrixWithUnitPricingPrice < Orb::Internal::Type::BaseM required :name, String # @!attribute scalable_matrix_with_unit_pricing_config + # Configuration for scalable_matrix_with_unit_pricing pricing # - # @return [Hash{Symbol=>Object}] + # @return [Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig] required :scalable_matrix_with_unit_pricing_config, - Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + -> { Orb::NewFloatingScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -123,11 +125,11 @@ class NewFloatingScalableMatrixWithUnitPricingPrice < Orb::Internal::Type::BaseM # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param scalable_matrix_with_unit_pricing_config [Hash{Symbol=>Object}] + # @param scalable_matrix_with_unit_pricing_config [Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig] Configuration for scalable_matrix_with_unit_pricing pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -168,6 +170,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice#model_type module ModelType extend Orb::Internal::Type::Enum @@ -177,6 +181,86 @@ module ModelType # @!method self.values # @return [Array] end + + # @see Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice#scalable_matrix_with_unit_pricing_config + class ScalableMatrixWithUnitPricingConfig < Orb::Internal::Type::BaseModel + # @!attribute first_dimension + # Used to determine the unit rate + # + # @return [String] + required :first_dimension, String + + # @!attribute matrix_scaling_factors + # Apply a scaling factor to each dimension + # + # @return [Array] + required :matrix_scaling_factors, + -> do + Orb::Internal::Type::ArrayOf[ + Orb::NewFloatingScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor + ] + end + + # @!attribute unit_price + # The final unit price to rate against the output of the matrix + # + # @return [String] + required :unit_price, String + + # @!attribute prorate + # If true, the unit price will be prorated to the billing period + # + # @return [Boolean, nil] + optional :prorate, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute second_dimension + # Used to determine the unit rate (optional) + # + # @return [String, nil] + optional :second_dimension, String, nil?: true + + # @!method initialize(first_dimension:, matrix_scaling_factors:, unit_price:, prorate: nil, second_dimension: nil) + # Configuration for scalable_matrix_with_unit_pricing pricing + # + # @param first_dimension [String] Used to determine the unit rate + # + # @param matrix_scaling_factors [Array] Apply a scaling factor to each dimension + # + # @param unit_price [String] The final unit price to rate against the output of the matrix + # + # @param prorate [Boolean, nil] If true, the unit price will be prorated to the billing period + # + # @param second_dimension [String, nil] Used to determine the unit rate (optional) + + class MatrixScalingFactor < Orb::Internal::Type::BaseModel + # @!attribute first_dimension_value + # First dimension value + # + # @return [String] + required :first_dimension_value, String + + # @!attribute scaling_factor + # Scaling factor + # + # @return [String] + required :scaling_factor, String + + # @!attribute second_dimension_value + # Second dimension value (optional) + # + # @return [String, nil] + optional :second_dimension_value, String, nil?: true + + # @!method initialize(first_dimension_value:, scaling_factor:, second_dimension_value: nil) + # Configuration for a single matrix scaling factor + # + # @param first_dimension_value [String] First dimension value + # + # @param scaling_factor [String] Scaling factor + # + # @param second_dimension_value [String, nil] Second dimension value (optional) + end + end end end end diff --git a/lib/orb/models/new_floating_threshold_total_amount_price.rb b/lib/orb/models/new_floating_threshold_total_amount_price.rb index 1ac74175..e07bfa3e 100644 --- a/lib/orb/models/new_floating_threshold_total_amount_price.rb +++ b/lib/orb/models/new_floating_threshold_total_amount_price.rb @@ -22,6 +22,7 @@ class NewFloatingThresholdTotalAmountPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewFloatingThresholdTotalAmountPrice::ModelType] required :model_type, enum: -> { Orb::NewFloatingThresholdTotalAmountPrice::ModelType } @@ -33,9 +34,11 @@ class NewFloatingThresholdTotalAmountPrice < Orb::Internal::Type::BaseModel required :name, String # @!attribute threshold_total_amount_config + # Configuration for threshold_total_amount pricing # - # @return [Hash{Symbol=>Object}] - required :threshold_total_amount_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewFloatingThresholdTotalAmountPrice::ThresholdTotalAmountConfig] + required :threshold_total_amount_config, + -> { Orb::NewFloatingThresholdTotalAmountPrice::ThresholdTotalAmountConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -122,11 +125,11 @@ class NewFloatingThresholdTotalAmountPrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewFloatingThresholdTotalAmountPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewFloatingThresholdTotalAmountPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param threshold_total_amount_config [Hash{Symbol=>Object}] + # @param threshold_total_amount_config [Orb::Models::NewFloatingThresholdTotalAmountPrice::ThresholdTotalAmountConfig] Configuration for threshold_total_amount pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -167,6 +170,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewFloatingThresholdTotalAmountPrice#model_type module ModelType extend Orb::Internal::Type::Enum @@ -176,6 +181,55 @@ module ModelType # @!method self.values # @return [Array] end + + # @see Orb::Models::NewFloatingThresholdTotalAmountPrice#threshold_total_amount_config + class ThresholdTotalAmountConfig < Orb::Internal::Type::BaseModel + # @!attribute consumption_table + # When the quantity consumed passes a provided threshold, the configured total + # will be charged + # + # @return [Array] + required :consumption_table, + -> { Orb::Internal::Type::ArrayOf[Orb::NewFloatingThresholdTotalAmountPrice::ThresholdTotalAmountConfig::ConsumptionTable] } + + # @!attribute prorate + # If true, the unit price will be prorated to the billing period + # + # @return [Boolean, nil] + optional :prorate, Orb::Internal::Type::Boolean, nil?: true + + # @!method initialize(consumption_table:, prorate: nil) + # Some parameter documentations has been truncated, see + # {Orb::Models::NewFloatingThresholdTotalAmountPrice::ThresholdTotalAmountConfig} + # for more details. + # + # Configuration for threshold_total_amount pricing + # + # @param consumption_table [Array] When the quantity consumed passes a provided threshold, the configured total wil + # + # @param prorate [Boolean, nil] If true, the unit price will be prorated to the billing period + + class ConsumptionTable < Orb::Internal::Type::BaseModel + # @!attribute threshold + # Quantity threshold + # + # @return [String] + required :threshold, String + + # @!attribute total_amount + # Total amount for this threshold + # + # @return [String] + required :total_amount, String + + # @!method initialize(threshold:, total_amount:) + # Configuration for a single threshold + # + # @param threshold [String] Quantity threshold + # + # @param total_amount [String] Total amount for this threshold + end + end end end end diff --git a/lib/orb/models/new_floating_tiered_package_price.rb b/lib/orb/models/new_floating_tiered_package_price.rb index 4d390a0a..424c5393 100644 --- a/lib/orb/models/new_floating_tiered_package_price.rb +++ b/lib/orb/models/new_floating_tiered_package_price.rb @@ -22,6 +22,7 @@ class NewFloatingTieredPackagePrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewFloatingTieredPackagePrice::ModelType] required :model_type, enum: -> { Orb::NewFloatingTieredPackagePrice::ModelType } @@ -33,9 +34,10 @@ class NewFloatingTieredPackagePrice < Orb::Internal::Type::BaseModel required :name, String # @!attribute tiered_package_config + # Configuration for tiered_package pricing # - # @return [Hash{Symbol=>Object}] - required :tiered_package_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewFloatingTieredPackagePrice::TieredPackageConfig] + required :tiered_package_config, -> { Orb::NewFloatingTieredPackagePrice::TieredPackageConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -122,11 +124,11 @@ class NewFloatingTieredPackagePrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewFloatingTieredPackagePrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewFloatingTieredPackagePrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param tiered_package_config [Hash{Symbol=>Object}] + # @param tiered_package_config [Orb::Models::NewFloatingTieredPackagePrice::TieredPackageConfig] Configuration for tiered_package pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -167,6 +169,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewFloatingTieredPackagePrice#model_type module ModelType extend Orb::Internal::Type::Enum @@ -176,6 +180,55 @@ module ModelType # @!method self.values # @return [Array] end + + # @see Orb::Models::NewFloatingTieredPackagePrice#tiered_package_config + class TieredPackageConfig < Orb::Internal::Type::BaseModel + # @!attribute package_size + # Package size + # + # @return [String] + required :package_size, String + + # @!attribute tiers + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::NewFloatingTieredPackagePrice::TieredPackageConfig::Tier] } + + # @!method initialize(package_size:, tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::NewFloatingTieredPackagePrice::TieredPackageConfig} for more + # details. + # + # Configuration for tiered_package pricing + # + # @param package_size [String] Package size + # + # @param tiers [Array] Apply tiered pricing after rounding up the quantity to the package size. Tiers a + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute per_unit + # Price per package + # + # @return [String] + required :per_unit, String + + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!method initialize(per_unit:, tier_lower_bound:) + # Configuration for a single tier with business logic + # + # @param per_unit [String] Price per package + # + # @param tier_lower_bound [String] Tier lower bound + end + end end end end diff --git a/lib/orb/models/new_floating_tiered_package_with_minimum_price.rb b/lib/orb/models/new_floating_tiered_package_with_minimum_price.rb index a7b80672..18addae6 100644 --- a/lib/orb/models/new_floating_tiered_package_with_minimum_price.rb +++ b/lib/orb/models/new_floating_tiered_package_with_minimum_price.rb @@ -22,6 +22,7 @@ class NewFloatingTieredPackageWithMinimumPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewFloatingTieredPackageWithMinimumPrice::ModelType] required :model_type, enum: -> { Orb::NewFloatingTieredPackageWithMinimumPrice::ModelType } @@ -33,9 +34,11 @@ class NewFloatingTieredPackageWithMinimumPrice < Orb::Internal::Type::BaseModel required :name, String # @!attribute tiered_package_with_minimum_config + # Configuration for tiered_package_with_minimum pricing # - # @return [Hash{Symbol=>Object}] - required :tiered_package_with_minimum_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewFloatingTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig] + required :tiered_package_with_minimum_config, + -> { Orb::NewFloatingTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -122,11 +125,11 @@ class NewFloatingTieredPackageWithMinimumPrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewFloatingTieredPackageWithMinimumPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewFloatingTieredPackageWithMinimumPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param tiered_package_with_minimum_config [Hash{Symbol=>Object}] + # @param tiered_package_with_minimum_config [Orb::Models::NewFloatingTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig] Configuration for tiered_package_with_minimum pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -167,6 +170,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewFloatingTieredPackageWithMinimumPrice#model_type module ModelType extend Orb::Internal::Type::Enum @@ -176,6 +181,63 @@ module ModelType # @!method self.values # @return [Array] end + + # @see Orb::Models::NewFloatingTieredPackageWithMinimumPrice#tiered_package_with_minimum_config + class TieredPackageWithMinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute package_size + # Package size + # + # @return [Float] + required :package_size, Float + + # @!attribute tiers + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::NewFloatingTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::Tier] } + + # @!method initialize(package_size:, tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::NewFloatingTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig} + # for more details. + # + # Configuration for tiered_package_with_minimum pricing + # + # @param package_size [Float] Package size + # + # @param tiers [Array] Apply tiered pricing after rounding up the quantity to the package size. Tiers a + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute minimum_amount + # Minimum amount + # + # @return [String] + required :minimum_amount, String + + # @!attribute per_unit + # Price per package + # + # @return [String] + required :per_unit, String + + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!method initialize(minimum_amount:, per_unit:, tier_lower_bound:) + # Configuration for a single tier + # + # @param minimum_amount [String] Minimum amount + # + # @param per_unit [String] Price per package + # + # @param tier_lower_bound [String] Tier lower bound + end + end end end end diff --git a/lib/orb/models/new_floating_tiered_price.rb b/lib/orb/models/new_floating_tiered_price.rb index be9ed0ec..c597e213 100644 --- a/lib/orb/models/new_floating_tiered_price.rb +++ b/lib/orb/models/new_floating_tiered_price.rb @@ -22,6 +22,7 @@ class NewFloatingTieredPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewFloatingTieredPrice::ModelType] required :model_type, enum: -> { Orb::NewFloatingTieredPrice::ModelType } @@ -33,6 +34,7 @@ class NewFloatingTieredPrice < Orb::Internal::Type::BaseModel required :name, String # @!attribute tiered_config + # Configuration for tiered pricing # # @return [Orb::Models::TieredConfig] required :tiered_config, -> { Orb::TieredConfig } @@ -122,11 +124,11 @@ class NewFloatingTieredPrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewFloatingTieredPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewFloatingTieredPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param tiered_config [Orb::Models::TieredConfig] + # @param tiered_config [Orb::Models::TieredConfig] Configuration for tiered pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -167,6 +169,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewFloatingTieredPrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_floating_tiered_with_minimum_price.rb b/lib/orb/models/new_floating_tiered_with_minimum_price.rb index 1f30b5ef..ae77d8ff 100644 --- a/lib/orb/models/new_floating_tiered_with_minimum_price.rb +++ b/lib/orb/models/new_floating_tiered_with_minimum_price.rb @@ -22,6 +22,7 @@ class NewFloatingTieredWithMinimumPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewFloatingTieredWithMinimumPrice::ModelType] required :model_type, enum: -> { Orb::NewFloatingTieredWithMinimumPrice::ModelType } @@ -33,9 +34,11 @@ class NewFloatingTieredWithMinimumPrice < Orb::Internal::Type::BaseModel required :name, String # @!attribute tiered_with_minimum_config + # Configuration for tiered_with_minimum pricing # - # @return [Hash{Symbol=>Object}] - required :tiered_with_minimum_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewFloatingTieredWithMinimumPrice::TieredWithMinimumConfig] + required :tiered_with_minimum_config, + -> { Orb::NewFloatingTieredWithMinimumPrice::TieredWithMinimumConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -122,11 +125,11 @@ class NewFloatingTieredWithMinimumPrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewFloatingTieredWithMinimumPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewFloatingTieredWithMinimumPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param tiered_with_minimum_config [Hash{Symbol=>Object}] + # @param tiered_with_minimum_config [Orb::Models::NewFloatingTieredWithMinimumPrice::TieredWithMinimumConfig] Configuration for tiered_with_minimum pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -167,6 +170,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewFloatingTieredWithMinimumPrice#model_type module ModelType extend Orb::Internal::Type::Enum @@ -176,6 +181,71 @@ module ModelType # @!method self.values # @return [Array] end + + # @see Orb::Models::NewFloatingTieredWithMinimumPrice#tiered_with_minimum_config + class TieredWithMinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute tiers + # Tiered pricing with a minimum amount dependent on the volume tier. Tiers are + # defined using exclusive lower bounds. + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::NewFloatingTieredWithMinimumPrice::TieredWithMinimumConfig::Tier] } + + # @!attribute hide_zero_amount_tiers + # If true, tiers with an accrued amount of 0 will not be included in the rating. + # + # @return [Boolean, nil] + optional :hide_zero_amount_tiers, Orb::Internal::Type::Boolean + + # @!attribute prorate + # If true, the unit price will be prorated to the billing period + # + # @return [Boolean, nil] + optional :prorate, Orb::Internal::Type::Boolean + + # @!method initialize(tiers:, hide_zero_amount_tiers: nil, prorate: nil) + # Some parameter documentations has been truncated, see + # {Orb::Models::NewFloatingTieredWithMinimumPrice::TieredWithMinimumConfig} for + # more details. + # + # Configuration for tiered_with_minimum pricing + # + # @param tiers [Array] Tiered pricing with a minimum amount dependent on the volume tier. Tiers are def + # + # @param hide_zero_amount_tiers [Boolean] If true, tiers with an accrued amount of 0 will not be included in the rating. + # + # @param prorate [Boolean] If true, the unit price will be prorated to the billing period + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute minimum_amount + # Minimum amount + # + # @return [String] + required :minimum_amount, String + + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Per unit amount + # + # @return [String] + required :unit_amount, String + + # @!method initialize(minimum_amount:, tier_lower_bound:, unit_amount:) + # Configuration for a single tier + # + # @param minimum_amount [String] Minimum amount + # + # @param tier_lower_bound [String] Tier lower bound + # + # @param unit_amount [String] Per unit amount + end + end end end end diff --git a/lib/orb/models/new_floating_tiered_with_proration_price.rb b/lib/orb/models/new_floating_tiered_with_proration_price.rb index 69e4e108..9085b5c5 100644 --- a/lib/orb/models/new_floating_tiered_with_proration_price.rb +++ b/lib/orb/models/new_floating_tiered_with_proration_price.rb @@ -22,6 +22,7 @@ class NewFloatingTieredWithProrationPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewFloatingTieredWithProrationPrice::ModelType] required :model_type, enum: -> { Orb::NewFloatingTieredWithProrationPrice::ModelType } @@ -33,9 +34,11 @@ class NewFloatingTieredWithProrationPrice < Orb::Internal::Type::BaseModel required :name, String # @!attribute tiered_with_proration_config + # Configuration for tiered_with_proration pricing # - # @return [Hash{Symbol=>Object}] - required :tiered_with_proration_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewFloatingTieredWithProrationPrice::TieredWithProrationConfig] + required :tiered_with_proration_config, + -> { Orb::NewFloatingTieredWithProrationPrice::TieredWithProrationConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -122,11 +125,11 @@ class NewFloatingTieredWithProrationPrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewFloatingTieredWithProrationPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewFloatingTieredWithProrationPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param tiered_with_proration_config [Hash{Symbol=>Object}] + # @param tiered_with_proration_config [Orb::Models::NewFloatingTieredWithProrationPrice::TieredWithProrationConfig] Configuration for tiered_with_proration pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -167,6 +170,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewFloatingTieredWithProrationPrice#model_type module ModelType extend Orb::Internal::Type::Enum @@ -176,6 +181,47 @@ module ModelType # @!method self.values # @return [Array] end + + # @see Orb::Models::NewFloatingTieredWithProrationPrice#tiered_with_proration_config + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + # @!attribute tiers + # Tiers for rating based on total usage quantities into the specified tier with + # proration + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::NewFloatingTieredWithProrationPrice::TieredWithProrationConfig::Tier] } + + # @!method initialize(tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::NewFloatingTieredWithProrationPrice::TieredWithProrationConfig} + # for more details. + # + # Configuration for tiered_with_proration pricing + # + # @param tiers [Array] Tiers for rating based on total usage quantities into the specified tier with pr + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute tier_lower_bound + # Inclusive tier starting value + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Amount per unit + # + # @return [String] + required :unit_amount, String + + # @!method initialize(tier_lower_bound:, unit_amount:) + # Configuration for a single tiered with proration tier + # + # @param tier_lower_bound [String] Inclusive tier starting value + # + # @param unit_amount [String] Amount per unit + end + end end end end diff --git a/lib/orb/models/new_floating_unit_price.rb b/lib/orb/models/new_floating_unit_price.rb index bc183afb..7fdbad42 100644 --- a/lib/orb/models/new_floating_unit_price.rb +++ b/lib/orb/models/new_floating_unit_price.rb @@ -22,6 +22,7 @@ class NewFloatingUnitPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewFloatingUnitPrice::ModelType] required :model_type, enum: -> { Orb::NewFloatingUnitPrice::ModelType } @@ -33,6 +34,7 @@ class NewFloatingUnitPrice < Orb::Internal::Type::BaseModel required :name, String # @!attribute unit_config + # Configuration for unit pricing # # @return [Orb::Models::UnitConfig] required :unit_config, -> { Orb::UnitConfig } @@ -122,11 +124,11 @@ class NewFloatingUnitPrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewFloatingUnitPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewFloatingUnitPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param unit_config [Orb::Models::UnitConfig] + # @param unit_config [Orb::Models::UnitConfig] Configuration for unit pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -167,6 +169,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewFloatingUnitPrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_floating_unit_with_percent_price.rb b/lib/orb/models/new_floating_unit_with_percent_price.rb index e4daef9e..01301957 100644 --- a/lib/orb/models/new_floating_unit_with_percent_price.rb +++ b/lib/orb/models/new_floating_unit_with_percent_price.rb @@ -22,6 +22,7 @@ class NewFloatingUnitWithPercentPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewFloatingUnitWithPercentPrice::ModelType] required :model_type, enum: -> { Orb::NewFloatingUnitWithPercentPrice::ModelType } @@ -33,9 +34,10 @@ class NewFloatingUnitWithPercentPrice < Orb::Internal::Type::BaseModel required :name, String # @!attribute unit_with_percent_config + # Configuration for unit_with_percent pricing # - # @return [Hash{Symbol=>Object}] - required :unit_with_percent_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewFloatingUnitWithPercentPrice::UnitWithPercentConfig] + required :unit_with_percent_config, -> { Orb::NewFloatingUnitWithPercentPrice::UnitWithPercentConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -122,11 +124,11 @@ class NewFloatingUnitWithPercentPrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewFloatingUnitWithPercentPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewFloatingUnitWithPercentPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param unit_with_percent_config [Hash{Symbol=>Object}] + # @param unit_with_percent_config [Orb::Models::NewFloatingUnitWithPercentPrice::UnitWithPercentConfig] Configuration for unit_with_percent pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -167,6 +169,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewFloatingUnitWithPercentPrice#model_type module ModelType extend Orb::Internal::Type::Enum @@ -176,6 +180,28 @@ module ModelType # @!method self.values # @return [Array] end + + # @see Orb::Models::NewFloatingUnitWithPercentPrice#unit_with_percent_config + class UnitWithPercentConfig < Orb::Internal::Type::BaseModel + # @!attribute percent + # What percent, out of 100, of the calculated total to charge + # + # @return [String] + required :percent, String + + # @!attribute unit_amount + # Rate per unit of usage + # + # @return [String] + required :unit_amount, String + + # @!method initialize(percent:, unit_amount:) + # Configuration for unit_with_percent pricing + # + # @param percent [String] What percent, out of 100, of the calculated total to charge + # + # @param unit_amount [String] Rate per unit of usage + end end end end diff --git a/lib/orb/models/new_floating_unit_with_proration_price.rb b/lib/orb/models/new_floating_unit_with_proration_price.rb index c0365b93..3de66e4c 100644 --- a/lib/orb/models/new_floating_unit_with_proration_price.rb +++ b/lib/orb/models/new_floating_unit_with_proration_price.rb @@ -22,6 +22,7 @@ class NewFloatingUnitWithProrationPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewFloatingUnitWithProrationPrice::ModelType] required :model_type, enum: -> { Orb::NewFloatingUnitWithProrationPrice::ModelType } @@ -33,9 +34,11 @@ class NewFloatingUnitWithProrationPrice < Orb::Internal::Type::BaseModel required :name, String # @!attribute unit_with_proration_config + # Configuration for unit_with_proration pricing # - # @return [Hash{Symbol=>Object}] - required :unit_with_proration_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewFloatingUnitWithProrationPrice::UnitWithProrationConfig] + required :unit_with_proration_config, + -> { Orb::NewFloatingUnitWithProrationPrice::UnitWithProrationConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -122,11 +125,11 @@ class NewFloatingUnitWithProrationPrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewFloatingUnitWithProrationPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewFloatingUnitWithProrationPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param unit_with_proration_config [Hash{Symbol=>Object}] + # @param unit_with_proration_config [Orb::Models::NewFloatingUnitWithProrationPrice::UnitWithProrationConfig] Configuration for unit_with_proration pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -167,6 +170,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewFloatingUnitWithProrationPrice#model_type module ModelType extend Orb::Internal::Type::Enum @@ -176,6 +181,20 @@ module ModelType # @!method self.values # @return [Array] end + + # @see Orb::Models::NewFloatingUnitWithProrationPrice#unit_with_proration_config + class UnitWithProrationConfig < Orb::Internal::Type::BaseModel + # @!attribute unit_amount + # Rate per unit of usage + # + # @return [String] + required :unit_amount, String + + # @!method initialize(unit_amount:) + # Configuration for unit_with_proration pricing + # + # @param unit_amount [String] Rate per unit of usage + end end end end diff --git a/lib/orb/models/new_plan_bulk_price.rb b/lib/orb/models/new_plan_bulk_price.rb index 61dbfca9..068fe8c5 100644 --- a/lib/orb/models/new_plan_bulk_price.rb +++ b/lib/orb/models/new_plan_bulk_price.rb @@ -4,6 +4,7 @@ module Orb module Models class NewPlanBulkPrice < Orb::Internal::Type::BaseModel # @!attribute bulk_config + # Configuration for bulk pricing # # @return [Orb::Models::BulkConfig] required :bulk_config, -> { Orb::BulkConfig } @@ -21,6 +22,7 @@ class NewPlanBulkPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewPlanBulkPrice::ModelType] required :model_type, enum: -> { Orb::NewPlanBulkPrice::ModelType } @@ -122,13 +124,13 @@ class NewPlanBulkPrice < Orb::Internal::Type::BaseModel # Some parameter documentations has been truncated, see # {Orb::Models::NewPlanBulkPrice} for more details. # - # @param bulk_config [Orb::Models::BulkConfig] + # @param bulk_config [Orb::Models::BulkConfig] Configuration for bulk pricing # # @param cadence [Symbol, Orb::Models::NewPlanBulkPrice::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewPlanBulkPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewPlanBulkPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -175,6 +177,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewPlanBulkPrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_plan_bulk_with_proration_price.rb b/lib/orb/models/new_plan_bulk_with_proration_price.rb index 6b34f77f..778c635b 100644 --- a/lib/orb/models/new_plan_bulk_with_proration_price.rb +++ b/lib/orb/models/new_plan_bulk_with_proration_price.rb @@ -4,9 +4,10 @@ module Orb module Models class NewPlanBulkWithProrationPrice < Orb::Internal::Type::BaseModel # @!attribute bulk_with_proration_config + # Configuration for bulk_with_proration pricing # - # @return [Hash{Symbol=>Object}] - required :bulk_with_proration_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewPlanBulkWithProrationPrice::BulkWithProrationConfig] + required :bulk_with_proration_config, -> { Orb::NewPlanBulkWithProrationPrice::BulkWithProrationConfig } # @!attribute cadence # The cadence to bill for this price on. @@ -21,6 +22,7 @@ class NewPlanBulkWithProrationPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewPlanBulkWithProrationPrice::ModelType] required :model_type, enum: -> { Orb::NewPlanBulkWithProrationPrice::ModelType } @@ -124,13 +126,13 @@ class NewPlanBulkWithProrationPrice < Orb::Internal::Type::BaseModel # Some parameter documentations has been truncated, see # {Orb::Models::NewPlanBulkWithProrationPrice} for more details. # - # @param bulk_with_proration_config [Hash{Symbol=>Object}] + # @param bulk_with_proration_config [Orb::Models::NewPlanBulkWithProrationPrice::BulkWithProrationConfig] Configuration for bulk_with_proration pricing # # @param cadence [Symbol, Orb::Models::NewPlanBulkWithProrationPrice::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewPlanBulkWithProrationPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewPlanBulkWithProrationPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -160,6 +162,42 @@ class NewPlanBulkWithProrationPrice < Orb::Internal::Type::BaseModel # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments + # @see Orb::Models::NewPlanBulkWithProrationPrice#bulk_with_proration_config + class BulkWithProrationConfig < Orb::Internal::Type::BaseModel + # @!attribute tiers + # Bulk tiers for rating based on total usage volume + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::NewPlanBulkWithProrationPrice::BulkWithProrationConfig::Tier] } + + # @!method initialize(tiers:) + # Configuration for bulk_with_proration pricing + # + # @param tiers [Array] Bulk tiers for rating based on total usage volume + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute unit_amount + # Cost per unit + # + # @return [String] + required :unit_amount, String + + # @!attribute tier_lower_bound + # The lower bound for this tier + # + # @return [String, nil] + optional :tier_lower_bound, String, nil?: true + + # @!method initialize(unit_amount:, tier_lower_bound: nil) + # Configuration for a single bulk pricing tier with proration + # + # @param unit_amount [String] Cost per unit + # + # @param tier_lower_bound [String, nil] The lower bound for this tier + end + end + # The cadence to bill for this price on. # # @see Orb::Models::NewPlanBulkWithProrationPrice#cadence @@ -177,6 +215,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewPlanBulkWithProrationPrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb b/lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb index 8872c418..aade0632 100644 --- a/lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb +++ b/lib/orb/models/new_plan_cumulative_grouped_bulk_price.rb @@ -10,9 +10,11 @@ class NewPlanCumulativeGroupedBulkPrice < Orb::Internal::Type::BaseModel required :cadence, enum: -> { Orb::NewPlanCumulativeGroupedBulkPrice::Cadence } # @!attribute cumulative_grouped_bulk_config + # Configuration for cumulative_grouped_bulk pricing # - # @return [Hash{Symbol=>Object}] - required :cumulative_grouped_bulk_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewPlanCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig] + required :cumulative_grouped_bulk_config, + -> { Orb::NewPlanCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig } # @!attribute item_id # The id of the item the price will be associated with. @@ -21,6 +23,7 @@ class NewPlanCumulativeGroupedBulkPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewPlanCumulativeGroupedBulkPrice::ModelType] required :model_type, enum: -> { Orb::NewPlanCumulativeGroupedBulkPrice::ModelType } @@ -126,11 +129,11 @@ class NewPlanCumulativeGroupedBulkPrice < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::NewPlanCumulativeGroupedBulkPrice::Cadence] The cadence to bill for this price on. # - # @param cumulative_grouped_bulk_config [Hash{Symbol=>Object}] + # @param cumulative_grouped_bulk_config [Orb::Models::NewPlanCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig] Configuration for cumulative_grouped_bulk pricing # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewPlanCumulativeGroupedBulkPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewPlanCumulativeGroupedBulkPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -177,6 +180,60 @@ module Cadence # @return [Array] end + # @see Orb::Models::NewPlanCumulativeGroupedBulkPrice#cumulative_grouped_bulk_config + class CumulativeGroupedBulkConfig < Orb::Internal::Type::BaseModel + # @!attribute dimension_values + # Each tier lower bound must have the same group of values. + # + # @return [Array] + required :dimension_values, + -> { Orb::Internal::Type::ArrayOf[Orb::NewPlanCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig::DimensionValue] } + + # @!attribute group + # Grouping key name + # + # @return [String] + required :group, String + + # @!method initialize(dimension_values:, group:) + # Configuration for cumulative_grouped_bulk pricing + # + # @param dimension_values [Array] Each tier lower bound must have the same group of values. + # + # @param group [String] Grouping key name + + class DimensionValue < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # Grouping key value + # + # @return [String] + required :grouping_key, String + + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Unit amount for this combination + # + # @return [String] + required :unit_amount, String + + # @!method initialize(grouping_key:, tier_lower_bound:, unit_amount:) + # Configuration for a dimension value entry + # + # @param grouping_key [String] Grouping key value + # + # @param tier_lower_bound [String] Tier lower bound + # + # @param unit_amount [String] Unit amount for this combination + end + end + + # The pricing model type + # # @see Orb::Models::NewPlanCumulativeGroupedBulkPrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_plan_grouped_allocation_price.rb b/lib/orb/models/new_plan_grouped_allocation_price.rb index d613eaa2..f4e34740 100644 --- a/lib/orb/models/new_plan_grouped_allocation_price.rb +++ b/lib/orb/models/new_plan_grouped_allocation_price.rb @@ -10,9 +10,10 @@ class NewPlanGroupedAllocationPrice < Orb::Internal::Type::BaseModel required :cadence, enum: -> { Orb::NewPlanGroupedAllocationPrice::Cadence } # @!attribute grouped_allocation_config + # Configuration for grouped_allocation pricing # - # @return [Hash{Symbol=>Object}] - required :grouped_allocation_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewPlanGroupedAllocationPrice::GroupedAllocationConfig] + required :grouped_allocation_config, -> { Orb::NewPlanGroupedAllocationPrice::GroupedAllocationConfig } # @!attribute item_id # The id of the item the price will be associated with. @@ -21,6 +22,7 @@ class NewPlanGroupedAllocationPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewPlanGroupedAllocationPrice::ModelType] required :model_type, enum: -> { Orb::NewPlanGroupedAllocationPrice::ModelType } @@ -126,11 +128,11 @@ class NewPlanGroupedAllocationPrice < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::NewPlanGroupedAllocationPrice::Cadence] The cadence to bill for this price on. # - # @param grouped_allocation_config [Hash{Symbol=>Object}] + # @param grouped_allocation_config [Orb::Models::NewPlanGroupedAllocationPrice::GroupedAllocationConfig] Configuration for grouped_allocation pricing # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewPlanGroupedAllocationPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewPlanGroupedAllocationPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -177,6 +179,38 @@ module Cadence # @return [Array] end + # @see Orb::Models::NewPlanGroupedAllocationPrice#grouped_allocation_config + class GroupedAllocationConfig < Orb::Internal::Type::BaseModel + # @!attribute allocation + # Usage allocation per group + # + # @return [String] + required :allocation, String + + # @!attribute grouping_key + # How to determine the groups that should each be allocated some quantity + # + # @return [String] + required :grouping_key, String + + # @!attribute overage_unit_rate + # Unit rate for post-allocation + # + # @return [String] + required :overage_unit_rate, String + + # @!method initialize(allocation:, grouping_key:, overage_unit_rate:) + # Configuration for grouped_allocation pricing + # + # @param allocation [String] Usage allocation per group + # + # @param grouping_key [String] How to determine the groups that should each be allocated some quantity + # + # @param overage_unit_rate [String] Unit rate for post-allocation + end + + # The pricing model type + # # @see Orb::Models::NewPlanGroupedAllocationPrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_plan_grouped_tiered_package_price.rb b/lib/orb/models/new_plan_grouped_tiered_package_price.rb index f9a3069d..bf7e7ca3 100644 --- a/lib/orb/models/new_plan_grouped_tiered_package_price.rb +++ b/lib/orb/models/new_plan_grouped_tiered_package_price.rb @@ -10,9 +10,11 @@ class NewPlanGroupedTieredPackagePrice < Orb::Internal::Type::BaseModel required :cadence, enum: -> { Orb::NewPlanGroupedTieredPackagePrice::Cadence } # @!attribute grouped_tiered_package_config + # Configuration for grouped_tiered_package pricing # - # @return [Hash{Symbol=>Object}] - required :grouped_tiered_package_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewPlanGroupedTieredPackagePrice::GroupedTieredPackageConfig] + required :grouped_tiered_package_config, + -> { Orb::NewPlanGroupedTieredPackagePrice::GroupedTieredPackageConfig } # @!attribute item_id # The id of the item the price will be associated with. @@ -21,6 +23,7 @@ class NewPlanGroupedTieredPackagePrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewPlanGroupedTieredPackagePrice::ModelType] required :model_type, enum: -> { Orb::NewPlanGroupedTieredPackagePrice::ModelType } @@ -126,11 +129,11 @@ class NewPlanGroupedTieredPackagePrice < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::NewPlanGroupedTieredPackagePrice::Cadence] The cadence to bill for this price on. # - # @param grouped_tiered_package_config [Hash{Symbol=>Object}] + # @param grouped_tiered_package_config [Orb::Models::NewPlanGroupedTieredPackagePrice::GroupedTieredPackageConfig] Configuration for grouped_tiered_package pricing # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewPlanGroupedTieredPackagePrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewPlanGroupedTieredPackagePrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -177,6 +180,65 @@ module Cadence # @return [Array] end + # @see Orb::Models::NewPlanGroupedTieredPackagePrice#grouped_tiered_package_config + class GroupedTieredPackageConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # The event property used to group before tiering + # + # @return [String] + required :grouping_key, String + + # @!attribute package_size + # Package size + # + # @return [String] + required :package_size, String + + # @!attribute tiers + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::NewPlanGroupedTieredPackagePrice::GroupedTieredPackageConfig::Tier] } + + # @!method initialize(grouping_key:, package_size:, tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::NewPlanGroupedTieredPackagePrice::GroupedTieredPackageConfig} for + # more details. + # + # Configuration for grouped_tiered_package pricing + # + # @param grouping_key [String] The event property used to group before tiering + # + # @param package_size [String] Package size + # + # @param tiers [Array] Apply tiered pricing after rounding up the quantity to the package size. Tiers a + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute per_unit + # Price per package + # + # @return [String] + required :per_unit, String + + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!method initialize(per_unit:, tier_lower_bound:) + # Configuration for a single tier + # + # @param per_unit [String] Price per package + # + # @param tier_lower_bound [String] Tier lower bound + end + end + + # The pricing model type + # # @see Orb::Models::NewPlanGroupedTieredPackagePrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_plan_grouped_tiered_price.rb b/lib/orb/models/new_plan_grouped_tiered_price.rb index f2e125e2..809640ad 100644 --- a/lib/orb/models/new_plan_grouped_tiered_price.rb +++ b/lib/orb/models/new_plan_grouped_tiered_price.rb @@ -10,9 +10,10 @@ class NewPlanGroupedTieredPrice < Orb::Internal::Type::BaseModel required :cadence, enum: -> { Orb::NewPlanGroupedTieredPrice::Cadence } # @!attribute grouped_tiered_config + # Configuration for grouped_tiered pricing # - # @return [Hash{Symbol=>Object}] - required :grouped_tiered_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewPlanGroupedTieredPrice::GroupedTieredConfig] + required :grouped_tiered_config, -> { Orb::NewPlanGroupedTieredPrice::GroupedTieredConfig } # @!attribute item_id # The id of the item the price will be associated with. @@ -21,6 +22,7 @@ class NewPlanGroupedTieredPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewPlanGroupedTieredPrice::ModelType] required :model_type, enum: -> { Orb::NewPlanGroupedTieredPrice::ModelType } @@ -126,11 +128,11 @@ class NewPlanGroupedTieredPrice < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::NewPlanGroupedTieredPrice::Cadence] The cadence to bill for this price on. # - # @param grouped_tiered_config [Hash{Symbol=>Object}] + # @param grouped_tiered_config [Orb::Models::NewPlanGroupedTieredPrice::GroupedTieredConfig] Configuration for grouped_tiered pricing # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewPlanGroupedTieredPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewPlanGroupedTieredPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -177,6 +179,56 @@ module Cadence # @return [Array] end + # @see Orb::Models::NewPlanGroupedTieredPrice#grouped_tiered_config + class GroupedTieredConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # The billable metric property used to group before tiering + # + # @return [String] + required :grouping_key, String + + # @!attribute tiers + # Apply tiered pricing to each segment generated after grouping with the provided + # key + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::NewPlanGroupedTieredPrice::GroupedTieredConfig::Tier] } + + # @!method initialize(grouping_key:, tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::NewPlanGroupedTieredPrice::GroupedTieredConfig} for more details. + # + # Configuration for grouped_tiered pricing + # + # @param grouping_key [String] The billable metric property used to group before tiering + # + # @param tiers [Array] Apply tiered pricing to each segment generated after grouping with the provided + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Per unit amount + # + # @return [String] + required :unit_amount, String + + # @!method initialize(tier_lower_bound:, unit_amount:) + # Configuration for a single tier + # + # @param tier_lower_bound [String] Tier lower bound + # + # @param unit_amount [String] Per unit amount + end + end + + # The pricing model type + # # @see Orb::Models::NewPlanGroupedTieredPrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_plan_grouped_with_metered_minimum_price.rb b/lib/orb/models/new_plan_grouped_with_metered_minimum_price.rb index 5ab7c388..b6a581e5 100644 --- a/lib/orb/models/new_plan_grouped_with_metered_minimum_price.rb +++ b/lib/orb/models/new_plan_grouped_with_metered_minimum_price.rb @@ -10,9 +10,11 @@ class NewPlanGroupedWithMeteredMinimumPrice < Orb::Internal::Type::BaseModel required :cadence, enum: -> { Orb::NewPlanGroupedWithMeteredMinimumPrice::Cadence } # @!attribute grouped_with_metered_minimum_config + # Configuration for grouped_with_metered_minimum pricing # - # @return [Hash{Symbol=>Object}] - required :grouped_with_metered_minimum_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig] + required :grouped_with_metered_minimum_config, + -> { Orb::NewPlanGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig } # @!attribute item_id # The id of the item the price will be associated with. @@ -21,6 +23,7 @@ class NewPlanGroupedWithMeteredMinimumPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::ModelType] required :model_type, enum: -> { Orb::NewPlanGroupedWithMeteredMinimumPrice::ModelType } @@ -126,11 +129,11 @@ class NewPlanGroupedWithMeteredMinimumPrice < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::Cadence] The cadence to bill for this price on. # - # @param grouped_with_metered_minimum_config [Hash{Symbol=>Object}] + # @param grouped_with_metered_minimum_config [Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig] Configuration for grouped_with_metered_minimum pricing # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -177,6 +180,112 @@ module Cadence # @return [Array] end + # @see Orb::Models::NewPlanGroupedWithMeteredMinimumPrice#grouped_with_metered_minimum_config + class GroupedWithMeteredMinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # Used to partition the usage into groups. The minimum amount is applied to each + # group. + # + # @return [String] + required :grouping_key, String + + # @!attribute minimum_unit_amount + # The minimum amount to charge per group per unit + # + # @return [String] + required :minimum_unit_amount, String + + # @!attribute pricing_key + # Used to determine the unit rate + # + # @return [String] + required :pricing_key, String + + # @!attribute scaling_factors + # Scale the unit rates by the scaling factor. + # + # @return [Array] + required :scaling_factors, + -> { Orb::Internal::Type::ArrayOf[Orb::NewPlanGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::ScalingFactor] } + + # @!attribute scaling_key + # Used to determine the unit rate scaling factor + # + # @return [String] + required :scaling_key, String + + # @!attribute unit_amounts + # Apply per unit pricing to each pricing value. The minimum amount is applied any + # unmatched usage. + # + # @return [Array] + required :unit_amounts, + -> { Orb::Internal::Type::ArrayOf[Orb::NewPlanGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::UnitAmount] } + + # @!method initialize(grouping_key:, minimum_unit_amount:, pricing_key:, scaling_factors:, scaling_key:, unit_amounts:) + # Some parameter documentations has been truncated, see + # {Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig} + # for more details. + # + # Configuration for grouped_with_metered_minimum pricing + # + # @param grouping_key [String] Used to partition the usage into groups. The minimum amount is applied to each g + # + # @param minimum_unit_amount [String] The minimum amount to charge per group per unit + # + # @param pricing_key [String] Used to determine the unit rate + # + # @param scaling_factors [Array] Scale the unit rates by the scaling factor. + # + # @param scaling_key [String] Used to determine the unit rate scaling factor + # + # @param unit_amounts [Array] Apply per unit pricing to each pricing value. The minimum amount is applied any + + class ScalingFactor < Orb::Internal::Type::BaseModel + # @!attribute scaling_factor + # Scaling factor + # + # @return [String] + required :scaling_factor, String + + # @!attribute scaling_value + # Scaling value + # + # @return [String] + required :scaling_value, String + + # @!method initialize(scaling_factor:, scaling_value:) + # Configuration for a scaling factor + # + # @param scaling_factor [String] Scaling factor + # + # @param scaling_value [String] Scaling value + end + + class UnitAmount < Orb::Internal::Type::BaseModel + # @!attribute pricing_value + # Pricing value + # + # @return [String] + required :pricing_value, String + + # @!attribute unit_amount + # Per unit amount + # + # @return [String] + required :unit_amount, String + + # @!method initialize(pricing_value:, unit_amount:) + # Configuration for a unit amount + # + # @param pricing_value [String] Pricing value + # + # @param unit_amount [String] Per unit amount + end + end + + # The pricing model type + # # @see Orb::Models::NewPlanGroupedWithMeteredMinimumPrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_plan_grouped_with_prorated_minimum_price.rb b/lib/orb/models/new_plan_grouped_with_prorated_minimum_price.rb index 3faee026..0506e984 100644 --- a/lib/orb/models/new_plan_grouped_with_prorated_minimum_price.rb +++ b/lib/orb/models/new_plan_grouped_with_prorated_minimum_price.rb @@ -10,9 +10,11 @@ class NewPlanGroupedWithProratedMinimumPrice < Orb::Internal::Type::BaseModel required :cadence, enum: -> { Orb::NewPlanGroupedWithProratedMinimumPrice::Cadence } # @!attribute grouped_with_prorated_minimum_config + # Configuration for grouped_with_prorated_minimum pricing # - # @return [Hash{Symbol=>Object}] - required :grouped_with_prorated_minimum_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewPlanGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig] + required :grouped_with_prorated_minimum_config, + -> { Orb::NewPlanGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig } # @!attribute item_id # The id of the item the price will be associated with. @@ -21,6 +23,7 @@ class NewPlanGroupedWithProratedMinimumPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewPlanGroupedWithProratedMinimumPrice::ModelType] required :model_type, enum: -> { Orb::NewPlanGroupedWithProratedMinimumPrice::ModelType } @@ -126,11 +129,11 @@ class NewPlanGroupedWithProratedMinimumPrice < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::NewPlanGroupedWithProratedMinimumPrice::Cadence] The cadence to bill for this price on. # - # @param grouped_with_prorated_minimum_config [Hash{Symbol=>Object}] + # @param grouped_with_prorated_minimum_config [Orb::Models::NewPlanGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig] Configuration for grouped_with_prorated_minimum pricing # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewPlanGroupedWithProratedMinimumPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewPlanGroupedWithProratedMinimumPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -177,6 +180,38 @@ module Cadence # @return [Array] end + # @see Orb::Models::NewPlanGroupedWithProratedMinimumPrice#grouped_with_prorated_minimum_config + class GroupedWithProratedMinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # How to determine the groups that should each have a minimum + # + # @return [String] + required :grouping_key, String + + # @!attribute minimum + # The minimum amount to charge per group + # + # @return [String] + required :minimum, String + + # @!attribute unit_rate + # The amount to charge per unit + # + # @return [String] + required :unit_rate, String + + # @!method initialize(grouping_key:, minimum:, unit_rate:) + # Configuration for grouped_with_prorated_minimum pricing + # + # @param grouping_key [String] How to determine the groups that should each have a minimum + # + # @param minimum [String] The minimum amount to charge per group + # + # @param unit_rate [String] The amount to charge per unit + end + + # The pricing model type + # # @see Orb::Models::NewPlanGroupedWithProratedMinimumPrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_plan_matrix_price.rb b/lib/orb/models/new_plan_matrix_price.rb index ce823d9b..ace57dda 100644 --- a/lib/orb/models/new_plan_matrix_price.rb +++ b/lib/orb/models/new_plan_matrix_price.rb @@ -16,11 +16,13 @@ class NewPlanMatrixPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute matrix_config + # Configuration for matrix pricing # # @return [Orb::Models::MatrixConfig] required :matrix_config, -> { Orb::MatrixConfig } # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewPlanMatrixPrice::ModelType] required :model_type, enum: -> { Orb::NewPlanMatrixPrice::ModelType } @@ -130,9 +132,9 @@ class NewPlanMatrixPrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param matrix_config [Orb::Models::MatrixConfig] + # @param matrix_config [Orb::Models::MatrixConfig] Configuration for matrix pricing # - # @param model_type [Symbol, Orb::Models::NewPlanMatrixPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewPlanMatrixPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -179,6 +181,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewPlanMatrixPrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_plan_matrix_with_allocation_price.rb b/lib/orb/models/new_plan_matrix_with_allocation_price.rb index cde540b9..e48c37ca 100644 --- a/lib/orb/models/new_plan_matrix_with_allocation_price.rb +++ b/lib/orb/models/new_plan_matrix_with_allocation_price.rb @@ -16,11 +16,13 @@ class NewPlanMatrixWithAllocationPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute matrix_with_allocation_config + # Configuration for matrix_with_allocation pricing # # @return [Orb::Models::MatrixWithAllocationConfig] required :matrix_with_allocation_config, -> { Orb::MatrixWithAllocationConfig } # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewPlanMatrixWithAllocationPrice::ModelType] required :model_type, enum: -> { Orb::NewPlanMatrixWithAllocationPrice::ModelType } @@ -128,9 +130,9 @@ class NewPlanMatrixWithAllocationPrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param matrix_with_allocation_config [Orb::Models::MatrixWithAllocationConfig] + # @param matrix_with_allocation_config [Orb::Models::MatrixWithAllocationConfig] Configuration for matrix_with_allocation pricing # - # @param model_type [Symbol, Orb::Models::NewPlanMatrixWithAllocationPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewPlanMatrixWithAllocationPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -177,6 +179,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewPlanMatrixWithAllocationPrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_plan_matrix_with_display_name_price.rb b/lib/orb/models/new_plan_matrix_with_display_name_price.rb index 38d26664..3aaa6fa4 100644 --- a/lib/orb/models/new_plan_matrix_with_display_name_price.rb +++ b/lib/orb/models/new_plan_matrix_with_display_name_price.rb @@ -16,11 +16,14 @@ class NewPlanMatrixWithDisplayNamePrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute matrix_with_display_name_config + # Configuration for matrix_with_display_name pricing # - # @return [Hash{Symbol=>Object}] - required :matrix_with_display_name_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewPlanMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig] + required :matrix_with_display_name_config, + -> { Orb::NewPlanMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig } # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewPlanMatrixWithDisplayNamePrice::ModelType] required :model_type, enum: -> { Orb::NewPlanMatrixWithDisplayNamePrice::ModelType } @@ -128,9 +131,9 @@ class NewPlanMatrixWithDisplayNamePrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param matrix_with_display_name_config [Hash{Symbol=>Object}] + # @param matrix_with_display_name_config [Orb::Models::NewPlanMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig] Configuration for matrix_with_display_name pricing # - # @param model_type [Symbol, Orb::Models::NewPlanMatrixWithDisplayNamePrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewPlanMatrixWithDisplayNamePrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -177,6 +180,60 @@ module Cadence # @return [Array] end + # @see Orb::Models::NewPlanMatrixWithDisplayNamePrice#matrix_with_display_name_config + class MatrixWithDisplayNameConfig < Orb::Internal::Type::BaseModel + # @!attribute dimension + # Used to determine the unit rate + # + # @return [String] + required :dimension, String + + # @!attribute unit_amounts + # Apply per unit pricing to each dimension value + # + # @return [Array] + required :unit_amounts, + -> { Orb::Internal::Type::ArrayOf[Orb::NewPlanMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::UnitAmount] } + + # @!method initialize(dimension:, unit_amounts:) + # Configuration for matrix_with_display_name pricing + # + # @param dimension [String] Used to determine the unit rate + # + # @param unit_amounts [Array] Apply per unit pricing to each dimension value + + class UnitAmount < Orb::Internal::Type::BaseModel + # @!attribute dimension_value + # The dimension value + # + # @return [String] + required :dimension_value, String + + # @!attribute display_name + # Display name for this dimension value + # + # @return [String] + required :display_name, String + + # @!attribute unit_amount + # Per unit amount + # + # @return [String] + required :unit_amount, String + + # @!method initialize(dimension_value:, display_name:, unit_amount:) + # Configuration for a unit amount item + # + # @param dimension_value [String] The dimension value + # + # @param display_name [String] Display name for this dimension value + # + # @param unit_amount [String] Per unit amount + end + end + + # The pricing model type + # # @see Orb::Models::NewPlanMatrixWithDisplayNamePrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_plan_max_group_tiered_package_price.rb b/lib/orb/models/new_plan_max_group_tiered_package_price.rb index a2ff8463..88b527ad 100644 --- a/lib/orb/models/new_plan_max_group_tiered_package_price.rb +++ b/lib/orb/models/new_plan_max_group_tiered_package_price.rb @@ -16,11 +16,14 @@ class NewPlanMaxGroupTieredPackagePrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute max_group_tiered_package_config + # Configuration for max_group_tiered_package pricing # - # @return [Hash{Symbol=>Object}] - required :max_group_tiered_package_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewPlanMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig] + required :max_group_tiered_package_config, + -> { Orb::NewPlanMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig } # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewPlanMaxGroupTieredPackagePrice::ModelType] required :model_type, enum: -> { Orb::NewPlanMaxGroupTieredPackagePrice::ModelType } @@ -128,9 +131,9 @@ class NewPlanMaxGroupTieredPackagePrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param max_group_tiered_package_config [Hash{Symbol=>Object}] + # @param max_group_tiered_package_config [Orb::Models::NewPlanMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig] Configuration for max_group_tiered_package pricing # - # @param model_type [Symbol, Orb::Models::NewPlanMaxGroupTieredPackagePrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewPlanMaxGroupTieredPackagePrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -177,6 +180,64 @@ module Cadence # @return [Array] end + # @see Orb::Models::NewPlanMaxGroupTieredPackagePrice#max_group_tiered_package_config + class MaxGroupTieredPackageConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # The event property used to group before tiering the group with the highest value + # + # @return [String] + required :grouping_key, String + + # @!attribute package_size + # Package size + # + # @return [String] + required :package_size, String + + # @!attribute tiers + # Apply tiered pricing to the largest group after grouping with the provided key. + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::NewPlanMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig::Tier] } + + # @!method initialize(grouping_key:, package_size:, tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::NewPlanMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig} + # for more details. + # + # Configuration for max_group_tiered_package pricing + # + # @param grouping_key [String] The event property used to group before tiering the group with the highest value + # + # @param package_size [String] Package size + # + # @param tiers [Array] Apply tiered pricing to the largest group after grouping with the provided key. + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Per unit amount + # + # @return [String] + required :unit_amount, String + + # @!method initialize(tier_lower_bound:, unit_amount:) + # Configuration for a single tier + # + # @param tier_lower_bound [String] Tier lower bound + # + # @param unit_amount [String] Per unit amount + end + end + + # The pricing model type + # # @see Orb::Models::NewPlanMaxGroupTieredPackagePrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_plan_minimum_composite_price.rb b/lib/orb/models/new_plan_minimum_composite_price.rb index 2045d769..7f3248fd 100644 --- a/lib/orb/models/new_plan_minimum_composite_price.rb +++ b/lib/orb/models/new_plan_minimum_composite_price.rb @@ -16,11 +16,13 @@ class NewPlanMinimumCompositePrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute minimum_config + # Configuration for minimum pricing # # @return [Orb::Models::NewPlanMinimumCompositePrice::MinimumConfig] required :minimum_config, -> { Orb::NewPlanMinimumCompositePrice::MinimumConfig } # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewPlanMinimumCompositePrice::ModelType] required :model_type, enum: -> { Orb::NewPlanMinimumCompositePrice::ModelType } @@ -128,9 +130,9 @@ class NewPlanMinimumCompositePrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param minimum_config [Orb::Models::NewPlanMinimumCompositePrice::MinimumConfig] + # @param minimum_config [Orb::Models::NewPlanMinimumCompositePrice::MinimumConfig] Configuration for minimum pricing # - # @param model_type [Symbol, Orb::Models::NewPlanMinimumCompositePrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewPlanMinimumCompositePrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -186,21 +188,21 @@ class MinimumConfig < Orb::Internal::Type::BaseModel required :minimum_amount, String # @!attribute prorated - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. + # If true, subtotals from this price are prorated based on the service period # # @return [Boolean, nil] - optional :prorated, Orb::Internal::Type::Boolean, nil?: true + optional :prorated, Orb::Internal::Type::Boolean # @!method initialize(minimum_amount:, prorated: nil) - # Some parameter documentations has been truncated, see - # {Orb::Models::NewPlanMinimumCompositePrice::MinimumConfig} for more details. + # Configuration for minimum pricing # # @param minimum_amount [String] The minimum amount to apply # - # @param prorated [Boolean, nil] By default, subtotals from minimum composite prices are prorated based on the se + # @param prorated [Boolean] If true, subtotals from this price are prorated based on the service period end + # The pricing model type + # # @see Orb::Models::NewPlanMinimumCompositePrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_plan_package_price.rb b/lib/orb/models/new_plan_package_price.rb index 42a3a1c8..a9d40a6e 100644 --- a/lib/orb/models/new_plan_package_price.rb +++ b/lib/orb/models/new_plan_package_price.rb @@ -16,6 +16,7 @@ class NewPlanPackagePrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewPlanPackagePrice::ModelType] required :model_type, enum: -> { Orb::NewPlanPackagePrice::ModelType } @@ -27,6 +28,7 @@ class NewPlanPackagePrice < Orb::Internal::Type::BaseModel required :name, String # @!attribute package_config + # Configuration for package pricing # # @return [Orb::Models::PackageConfig] required :package_config, -> { Orb::PackageConfig } @@ -130,11 +132,11 @@ class NewPlanPackagePrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewPlanPackagePrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewPlanPackagePrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param package_config [Orb::Models::PackageConfig] + # @param package_config [Orb::Models::PackageConfig] Configuration for package pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -179,6 +181,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewPlanPackagePrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_plan_package_with_allocation_price.rb b/lib/orb/models/new_plan_package_with_allocation_price.rb index 3e1a2156..049f4ef6 100644 --- a/lib/orb/models/new_plan_package_with_allocation_price.rb +++ b/lib/orb/models/new_plan_package_with_allocation_price.rb @@ -16,6 +16,7 @@ class NewPlanPackageWithAllocationPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewPlanPackageWithAllocationPrice::ModelType] required :model_type, enum: -> { Orb::NewPlanPackageWithAllocationPrice::ModelType } @@ -27,9 +28,11 @@ class NewPlanPackageWithAllocationPrice < Orb::Internal::Type::BaseModel required :name, String # @!attribute package_with_allocation_config + # Configuration for package_with_allocation pricing # - # @return [Hash{Symbol=>Object}] - required :package_with_allocation_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewPlanPackageWithAllocationPrice::PackageWithAllocationConfig] + required :package_with_allocation_config, + -> { Orb::NewPlanPackageWithAllocationPrice::PackageWithAllocationConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -128,11 +131,11 @@ class NewPlanPackageWithAllocationPrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewPlanPackageWithAllocationPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewPlanPackageWithAllocationPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param package_with_allocation_config [Hash{Symbol=>Object}] + # @param package_with_allocation_config [Orb::Models::NewPlanPackageWithAllocationPrice::PackageWithAllocationConfig] Configuration for package_with_allocation pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -177,6 +180,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewPlanPackageWithAllocationPrice#model_type module ModelType extend Orb::Internal::Type::Enum @@ -186,6 +191,36 @@ module ModelType # @!method self.values # @return [Array] end + + # @see Orb::Models::NewPlanPackageWithAllocationPrice#package_with_allocation_config + class PackageWithAllocationConfig < Orb::Internal::Type::BaseModel + # @!attribute allocation + # Usage allocation + # + # @return [String] + required :allocation, String + + # @!attribute package_amount + # Price per package + # + # @return [String] + required :package_amount, String + + # @!attribute package_size + # Package size + # + # @return [String] + required :package_size, String + + # @!method initialize(allocation:, package_amount:, package_size:) + # Configuration for package_with_allocation pricing + # + # @param allocation [String] Usage allocation + # + # @param package_amount [String] Price per package + # + # @param package_size [String] Package size + end end end end diff --git a/lib/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rb b/lib/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rb index 36985b9c..e1494b2a 100644 --- a/lib/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rb +++ b/lib/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rb @@ -16,6 +16,7 @@ class NewPlanScalableMatrixWithTieredPricingPrice < Orb::Internal::Type::BaseMod required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::ModelType] required :model_type, enum: -> { Orb::NewPlanScalableMatrixWithTieredPricingPrice::ModelType } @@ -27,10 +28,11 @@ class NewPlanScalableMatrixWithTieredPricingPrice < Orb::Internal::Type::BaseMod required :name, String # @!attribute scalable_matrix_with_tiered_pricing_config + # Configuration for scalable_matrix_with_tiered_pricing pricing # - # @return [Hash{Symbol=>Object}] + # @return [Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig] required :scalable_matrix_with_tiered_pricing_config, - Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + -> { Orb::NewPlanScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -129,11 +131,11 @@ class NewPlanScalableMatrixWithTieredPricingPrice < Orb::Internal::Type::BaseMod # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param scalable_matrix_with_tiered_pricing_config [Hash{Symbol=>Object}] + # @param scalable_matrix_with_tiered_pricing_config [Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig] Configuration for scalable_matrix_with_tiered_pricing pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -178,6 +180,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice#model_type module ModelType extend Orb::Internal::Type::Enum @@ -187,6 +191,100 @@ module ModelType # @!method self.values # @return [Array] end + + # @see Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice#scalable_matrix_with_tiered_pricing_config + class ScalableMatrixWithTieredPricingConfig < Orb::Internal::Type::BaseModel + # @!attribute first_dimension + # Used for the scalable matrix first dimension + # + # @return [String] + required :first_dimension, String + + # @!attribute matrix_scaling_factors + # Apply a scaling factor to each dimension + # + # @return [Array] + required :matrix_scaling_factors, + -> do + Orb::Internal::Type::ArrayOf[ + Orb::NewPlanScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor + ] + end + + # @!attribute tiers + # Tier pricing structure + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::NewPlanScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::Tier] } + + # @!attribute second_dimension + # Used for the scalable matrix second dimension (optional) + # + # @return [String, nil] + optional :second_dimension, String, nil?: true + + # @!method initialize(first_dimension:, matrix_scaling_factors:, tiers:, second_dimension: nil) + # Configuration for scalable_matrix_with_tiered_pricing pricing + # + # @param first_dimension [String] Used for the scalable matrix first dimension + # + # @param matrix_scaling_factors [Array] Apply a scaling factor to each dimension + # + # @param tiers [Array] Tier pricing structure + # + # @param second_dimension [String, nil] Used for the scalable matrix second dimension (optional) + + class MatrixScalingFactor < Orb::Internal::Type::BaseModel + # @!attribute first_dimension_value + # First dimension value + # + # @return [String] + required :first_dimension_value, String + + # @!attribute scaling_factor + # Scaling factor + # + # @return [String] + required :scaling_factor, String + + # @!attribute second_dimension_value + # Second dimension value (optional) + # + # @return [String, nil] + optional :second_dimension_value, String, nil?: true + + # @!method initialize(first_dimension_value:, scaling_factor:, second_dimension_value: nil) + # Configuration for a single matrix scaling factor + # + # @param first_dimension_value [String] First dimension value + # + # @param scaling_factor [String] Scaling factor + # + # @param second_dimension_value [String, nil] Second dimension value (optional) + end + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Per unit amount + # + # @return [String] + required :unit_amount, String + + # @!method initialize(tier_lower_bound:, unit_amount:) + # Configuration for a single tier entry with business logic + # + # @param tier_lower_bound [String] Tier lower bound + # + # @param unit_amount [String] Per unit amount + end + end end end end diff --git a/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb b/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb index d89e5f14..b1fb6e39 100644 --- a/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb +++ b/lib/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rb @@ -16,6 +16,7 @@ class NewPlanScalableMatrixWithUnitPricingPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::ModelType] required :model_type, enum: -> { Orb::NewPlanScalableMatrixWithUnitPricingPrice::ModelType } @@ -27,10 +28,11 @@ class NewPlanScalableMatrixWithUnitPricingPrice < Orb::Internal::Type::BaseModel required :name, String # @!attribute scalable_matrix_with_unit_pricing_config + # Configuration for scalable_matrix_with_unit_pricing pricing # - # @return [Hash{Symbol=>Object}] + # @return [Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig] required :scalable_matrix_with_unit_pricing_config, - Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + -> { Orb::NewPlanScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -129,11 +131,11 @@ class NewPlanScalableMatrixWithUnitPricingPrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param scalable_matrix_with_unit_pricing_config [Hash{Symbol=>Object}] + # @param scalable_matrix_with_unit_pricing_config [Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig] Configuration for scalable_matrix_with_unit_pricing pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -178,6 +180,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice#model_type module ModelType extend Orb::Internal::Type::Enum @@ -187,6 +191,82 @@ module ModelType # @!method self.values # @return [Array] end + + # @see Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice#scalable_matrix_with_unit_pricing_config + class ScalableMatrixWithUnitPricingConfig < Orb::Internal::Type::BaseModel + # @!attribute first_dimension + # Used to determine the unit rate + # + # @return [String] + required :first_dimension, String + + # @!attribute matrix_scaling_factors + # Apply a scaling factor to each dimension + # + # @return [Array] + required :matrix_scaling_factors, + -> { Orb::Internal::Type::ArrayOf[Orb::NewPlanScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor] } + + # @!attribute unit_price + # The final unit price to rate against the output of the matrix + # + # @return [String] + required :unit_price, String + + # @!attribute prorate + # If true, the unit price will be prorated to the billing period + # + # @return [Boolean, nil] + optional :prorate, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute second_dimension + # Used to determine the unit rate (optional) + # + # @return [String, nil] + optional :second_dimension, String, nil?: true + + # @!method initialize(first_dimension:, matrix_scaling_factors:, unit_price:, prorate: nil, second_dimension: nil) + # Configuration for scalable_matrix_with_unit_pricing pricing + # + # @param first_dimension [String] Used to determine the unit rate + # + # @param matrix_scaling_factors [Array] Apply a scaling factor to each dimension + # + # @param unit_price [String] The final unit price to rate against the output of the matrix + # + # @param prorate [Boolean, nil] If true, the unit price will be prorated to the billing period + # + # @param second_dimension [String, nil] Used to determine the unit rate (optional) + + class MatrixScalingFactor < Orb::Internal::Type::BaseModel + # @!attribute first_dimension_value + # First dimension value + # + # @return [String] + required :first_dimension_value, String + + # @!attribute scaling_factor + # Scaling factor + # + # @return [String] + required :scaling_factor, String + + # @!attribute second_dimension_value + # Second dimension value (optional) + # + # @return [String, nil] + optional :second_dimension_value, String, nil?: true + + # @!method initialize(first_dimension_value:, scaling_factor:, second_dimension_value: nil) + # Configuration for a single matrix scaling factor + # + # @param first_dimension_value [String] First dimension value + # + # @param scaling_factor [String] Scaling factor + # + # @param second_dimension_value [String, nil] Second dimension value (optional) + end + end end end end diff --git a/lib/orb/models/new_plan_threshold_total_amount_price.rb b/lib/orb/models/new_plan_threshold_total_amount_price.rb index de730e29..4916e9a7 100644 --- a/lib/orb/models/new_plan_threshold_total_amount_price.rb +++ b/lib/orb/models/new_plan_threshold_total_amount_price.rb @@ -16,6 +16,7 @@ class NewPlanThresholdTotalAmountPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewPlanThresholdTotalAmountPrice::ModelType] required :model_type, enum: -> { Orb::NewPlanThresholdTotalAmountPrice::ModelType } @@ -27,9 +28,11 @@ class NewPlanThresholdTotalAmountPrice < Orb::Internal::Type::BaseModel required :name, String # @!attribute threshold_total_amount_config + # Configuration for threshold_total_amount pricing # - # @return [Hash{Symbol=>Object}] - required :threshold_total_amount_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewPlanThresholdTotalAmountPrice::ThresholdTotalAmountConfig] + required :threshold_total_amount_config, + -> { Orb::NewPlanThresholdTotalAmountPrice::ThresholdTotalAmountConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -128,11 +131,11 @@ class NewPlanThresholdTotalAmountPrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewPlanThresholdTotalAmountPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewPlanThresholdTotalAmountPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param threshold_total_amount_config [Hash{Symbol=>Object}] + # @param threshold_total_amount_config [Orb::Models::NewPlanThresholdTotalAmountPrice::ThresholdTotalAmountConfig] Configuration for threshold_total_amount pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -177,6 +180,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewPlanThresholdTotalAmountPrice#model_type module ModelType extend Orb::Internal::Type::Enum @@ -186,6 +191,55 @@ module ModelType # @!method self.values # @return [Array] end + + # @see Orb::Models::NewPlanThresholdTotalAmountPrice#threshold_total_amount_config + class ThresholdTotalAmountConfig < Orb::Internal::Type::BaseModel + # @!attribute consumption_table + # When the quantity consumed passes a provided threshold, the configured total + # will be charged + # + # @return [Array] + required :consumption_table, + -> { Orb::Internal::Type::ArrayOf[Orb::NewPlanThresholdTotalAmountPrice::ThresholdTotalAmountConfig::ConsumptionTable] } + + # @!attribute prorate + # If true, the unit price will be prorated to the billing period + # + # @return [Boolean, nil] + optional :prorate, Orb::Internal::Type::Boolean, nil?: true + + # @!method initialize(consumption_table:, prorate: nil) + # Some parameter documentations has been truncated, see + # {Orb::Models::NewPlanThresholdTotalAmountPrice::ThresholdTotalAmountConfig} for + # more details. + # + # Configuration for threshold_total_amount pricing + # + # @param consumption_table [Array] When the quantity consumed passes a provided threshold, the configured total wil + # + # @param prorate [Boolean, nil] If true, the unit price will be prorated to the billing period + + class ConsumptionTable < Orb::Internal::Type::BaseModel + # @!attribute threshold + # Quantity threshold + # + # @return [String] + required :threshold, String + + # @!attribute total_amount + # Total amount for this threshold + # + # @return [String] + required :total_amount, String + + # @!method initialize(threshold:, total_amount:) + # Configuration for a single threshold + # + # @param threshold [String] Quantity threshold + # + # @param total_amount [String] Total amount for this threshold + end + end end end end diff --git a/lib/orb/models/new_plan_tier_with_proration_price.rb b/lib/orb/models/new_plan_tier_with_proration_price.rb deleted file mode 100644 index 2ba30dad..00000000 --- a/lib/orb/models/new_plan_tier_with_proration_price.rb +++ /dev/null @@ -1,191 +0,0 @@ -# frozen_string_literal: true - -module Orb - module Models - class NewPlanTierWithProrationPrice < Orb::Internal::Type::BaseModel - # @!attribute cadence - # The cadence to bill for this price on. - # - # @return [Symbol, Orb::Models::NewPlanTierWithProrationPrice::Cadence] - required :cadence, enum: -> { Orb::NewPlanTierWithProrationPrice::Cadence } - - # @!attribute item_id - # The id of the item the price will be associated with. - # - # @return [String] - required :item_id, String - - # @!attribute model_type - # - # @return [Symbol, Orb::Models::NewPlanTierWithProrationPrice::ModelType] - required :model_type, enum: -> { Orb::NewPlanTierWithProrationPrice::ModelType } - - # @!attribute name - # The name of the price. - # - # @return [String] - required :name, String - - # @!attribute tiered_with_proration_config - # - # @return [Hash{Symbol=>Object}] - required :tiered_with_proration_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] - - # @!attribute billable_metric_id - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - # - # @return [String, nil] - optional :billable_metric_id, String, nil?: true - - # @!attribute billed_in_advance - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - # - # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true - - # @!attribute billing_cycle_configuration - # For custom cadence: specifies the duration of the billing period in days or - # months. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute conversion_rate - # The per unit conversion rate of the price currency to the invoicing currency. - # - # @return [Float, nil] - optional :conversion_rate, Float, nil?: true - - # @!attribute conversion_rate_config - # The configuration for the rate of the price currency to the invoicing currency. - # - # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - optional :conversion_rate_config, - union: -> { Orb::NewPlanTierWithProrationPrice::ConversionRateConfig }, - nil?: true - - # @!attribute currency - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - # - # @return [String, nil] - optional :currency, String, nil?: true - - # @!attribute dimensional_price_configuration - # For dimensional price: specifies a price group and dimension values - # - # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] - optional :dimensional_price_configuration, -> { Orb::NewDimensionalPriceConfiguration }, nil?: true - - # @!attribute external_price_id - # An alias for the price. - # - # @return [String, nil] - optional :external_price_id, String, nil?: true - - # @!attribute fixed_price_quantity - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - # - # @return [Float, nil] - optional :fixed_price_quantity, Float, nil?: true - - # @!attribute invoice_grouping_key - # The property used to group this price on an invoice - # - # @return [String, nil] - optional :invoice_grouping_key, String, nil?: true - - # @!attribute invoicing_cycle_configuration - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute metadata - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - # - # @return [Hash{Symbol=>String, nil}, nil] - optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true - - # @!attribute reference_id - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - # - # @return [String, nil] - optional :reference_id, String, nil?: true - - # @!method initialize(cadence:, item_id:, model_type:, name:, tiered_with_proration_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil) - # Some parameter documentations has been truncated, see - # {Orb::Models::NewPlanTierWithProrationPrice} for more details. - # - # @param cadence [Symbol, Orb::Models::NewPlanTierWithProrationPrice::Cadence] The cadence to bill for this price on. - # - # @param item_id [String] The id of the item the price will be associated with. - # - # @param model_type [Symbol, Orb::Models::NewPlanTierWithProrationPrice::ModelType] - # - # @param name [String] The name of the price. - # - # @param tiered_with_proration_config [Hash{Symbol=>Object}] - # - # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # - # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # - # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # - # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. - # - # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. - # - # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # - # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values - # - # @param external_price_id [String, nil] An alias for the price. - # - # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # - # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice - # - # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # - # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # - # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - - # The cadence to bill for this price on. - # - # @see Orb::Models::NewPlanTierWithProrationPrice#cadence - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom - - # @!method self.values - # @return [Array] - end - - # @see Orb::Models::NewPlanTierWithProrationPrice#model_type - module ModelType - extend Orb::Internal::Type::Enum - - TIERED_WITH_PRORATION = :tiered_with_proration - - # @!method self.values - # @return [Array] - end - end - end -end diff --git a/lib/orb/models/new_plan_tiered_package_price.rb b/lib/orb/models/new_plan_tiered_package_price.rb index a007b954..5af0d6b2 100644 --- a/lib/orb/models/new_plan_tiered_package_price.rb +++ b/lib/orb/models/new_plan_tiered_package_price.rb @@ -16,6 +16,7 @@ class NewPlanTieredPackagePrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewPlanTieredPackagePrice::ModelType] required :model_type, enum: -> { Orb::NewPlanTieredPackagePrice::ModelType } @@ -27,9 +28,10 @@ class NewPlanTieredPackagePrice < Orb::Internal::Type::BaseModel required :name, String # @!attribute tiered_package_config + # Configuration for tiered_package pricing # - # @return [Hash{Symbol=>Object}] - required :tiered_package_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewPlanTieredPackagePrice::TieredPackageConfig] + required :tiered_package_config, -> { Orb::NewPlanTieredPackagePrice::TieredPackageConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -128,11 +130,11 @@ class NewPlanTieredPackagePrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewPlanTieredPackagePrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewPlanTieredPackagePrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param tiered_package_config [Hash{Symbol=>Object}] + # @param tiered_package_config [Orb::Models::NewPlanTieredPackagePrice::TieredPackageConfig] Configuration for tiered_package pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -177,6 +179,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewPlanTieredPackagePrice#model_type module ModelType extend Orb::Internal::Type::Enum @@ -186,6 +190,54 @@ module ModelType # @!method self.values # @return [Array] end + + # @see Orb::Models::NewPlanTieredPackagePrice#tiered_package_config + class TieredPackageConfig < Orb::Internal::Type::BaseModel + # @!attribute package_size + # Package size + # + # @return [String] + required :package_size, String + + # @!attribute tiers + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::NewPlanTieredPackagePrice::TieredPackageConfig::Tier] } + + # @!method initialize(package_size:, tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::NewPlanTieredPackagePrice::TieredPackageConfig} for more details. + # + # Configuration for tiered_package pricing + # + # @param package_size [String] Package size + # + # @param tiers [Array] Apply tiered pricing after rounding up the quantity to the package size. Tiers a + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute per_unit + # Price per package + # + # @return [String] + required :per_unit, String + + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!method initialize(per_unit:, tier_lower_bound:) + # Configuration for a single tier with business logic + # + # @param per_unit [String] Price per package + # + # @param tier_lower_bound [String] Tier lower bound + end + end end end end diff --git a/lib/orb/models/new_plan_tiered_package_with_minimum_price.rb b/lib/orb/models/new_plan_tiered_package_with_minimum_price.rb index 1f88c9c5..11ef5ab5 100644 --- a/lib/orb/models/new_plan_tiered_package_with_minimum_price.rb +++ b/lib/orb/models/new_plan_tiered_package_with_minimum_price.rb @@ -16,6 +16,7 @@ class NewPlanTieredPackageWithMinimumPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewPlanTieredPackageWithMinimumPrice::ModelType] required :model_type, enum: -> { Orb::NewPlanTieredPackageWithMinimumPrice::ModelType } @@ -27,9 +28,11 @@ class NewPlanTieredPackageWithMinimumPrice < Orb::Internal::Type::BaseModel required :name, String # @!attribute tiered_package_with_minimum_config + # Configuration for tiered_package_with_minimum pricing # - # @return [Hash{Symbol=>Object}] - required :tiered_package_with_minimum_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewPlanTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig] + required :tiered_package_with_minimum_config, + -> { Orb::NewPlanTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -128,11 +131,11 @@ class NewPlanTieredPackageWithMinimumPrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewPlanTieredPackageWithMinimumPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewPlanTieredPackageWithMinimumPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param tiered_package_with_minimum_config [Hash{Symbol=>Object}] + # @param tiered_package_with_minimum_config [Orb::Models::NewPlanTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig] Configuration for tiered_package_with_minimum pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -177,6 +180,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewPlanTieredPackageWithMinimumPrice#model_type module ModelType extend Orb::Internal::Type::Enum @@ -186,6 +191,63 @@ module ModelType # @!method self.values # @return [Array] end + + # @see Orb::Models::NewPlanTieredPackageWithMinimumPrice#tiered_package_with_minimum_config + class TieredPackageWithMinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute package_size + # Package size + # + # @return [Float] + required :package_size, Float + + # @!attribute tiers + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::NewPlanTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::Tier] } + + # @!method initialize(package_size:, tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::NewPlanTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig} + # for more details. + # + # Configuration for tiered_package_with_minimum pricing + # + # @param package_size [Float] Package size + # + # @param tiers [Array] Apply tiered pricing after rounding up the quantity to the package size. Tiers a + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute minimum_amount + # Minimum amount + # + # @return [String] + required :minimum_amount, String + + # @!attribute per_unit + # Price per package + # + # @return [String] + required :per_unit, String + + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!method initialize(minimum_amount:, per_unit:, tier_lower_bound:) + # Configuration for a single tier + # + # @param minimum_amount [String] Minimum amount + # + # @param per_unit [String] Price per package + # + # @param tier_lower_bound [String] Tier lower bound + end + end end end end diff --git a/lib/orb/models/new_plan_tiered_price.rb b/lib/orb/models/new_plan_tiered_price.rb index 5de14e6d..801f3c4f 100644 --- a/lib/orb/models/new_plan_tiered_price.rb +++ b/lib/orb/models/new_plan_tiered_price.rb @@ -16,6 +16,7 @@ class NewPlanTieredPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewPlanTieredPrice::ModelType] required :model_type, enum: -> { Orb::NewPlanTieredPrice::ModelType } @@ -27,6 +28,7 @@ class NewPlanTieredPrice < Orb::Internal::Type::BaseModel required :name, String # @!attribute tiered_config + # Configuration for tiered pricing # # @return [Orb::Models::TieredConfig] required :tiered_config, -> { Orb::TieredConfig } @@ -130,11 +132,11 @@ class NewPlanTieredPrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewPlanTieredPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewPlanTieredPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param tiered_config [Orb::Models::TieredConfig] + # @param tiered_config [Orb::Models::TieredConfig] Configuration for tiered pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -179,6 +181,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewPlanTieredPrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_plan_tiered_with_minimum_price.rb b/lib/orb/models/new_plan_tiered_with_minimum_price.rb index 087aedae..365f1c3e 100644 --- a/lib/orb/models/new_plan_tiered_with_minimum_price.rb +++ b/lib/orb/models/new_plan_tiered_with_minimum_price.rb @@ -16,6 +16,7 @@ class NewPlanTieredWithMinimumPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewPlanTieredWithMinimumPrice::ModelType] required :model_type, enum: -> { Orb::NewPlanTieredWithMinimumPrice::ModelType } @@ -27,9 +28,10 @@ class NewPlanTieredWithMinimumPrice < Orb::Internal::Type::BaseModel required :name, String # @!attribute tiered_with_minimum_config + # Configuration for tiered_with_minimum pricing # - # @return [Hash{Symbol=>Object}] - required :tiered_with_minimum_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewPlanTieredWithMinimumPrice::TieredWithMinimumConfig] + required :tiered_with_minimum_config, -> { Orb::NewPlanTieredWithMinimumPrice::TieredWithMinimumConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -128,11 +130,11 @@ class NewPlanTieredWithMinimumPrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewPlanTieredWithMinimumPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewPlanTieredWithMinimumPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param tiered_with_minimum_config [Hash{Symbol=>Object}] + # @param tiered_with_minimum_config [Orb::Models::NewPlanTieredWithMinimumPrice::TieredWithMinimumConfig] Configuration for tiered_with_minimum pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -177,6 +179,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewPlanTieredWithMinimumPrice#model_type module ModelType extend Orb::Internal::Type::Enum @@ -186,6 +190,71 @@ module ModelType # @!method self.values # @return [Array] end + + # @see Orb::Models::NewPlanTieredWithMinimumPrice#tiered_with_minimum_config + class TieredWithMinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute tiers + # Tiered pricing with a minimum amount dependent on the volume tier. Tiers are + # defined using exclusive lower bounds. + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::NewPlanTieredWithMinimumPrice::TieredWithMinimumConfig::Tier] } + + # @!attribute hide_zero_amount_tiers + # If true, tiers with an accrued amount of 0 will not be included in the rating. + # + # @return [Boolean, nil] + optional :hide_zero_amount_tiers, Orb::Internal::Type::Boolean + + # @!attribute prorate + # If true, the unit price will be prorated to the billing period + # + # @return [Boolean, nil] + optional :prorate, Orb::Internal::Type::Boolean + + # @!method initialize(tiers:, hide_zero_amount_tiers: nil, prorate: nil) + # Some parameter documentations has been truncated, see + # {Orb::Models::NewPlanTieredWithMinimumPrice::TieredWithMinimumConfig} for more + # details. + # + # Configuration for tiered_with_minimum pricing + # + # @param tiers [Array] Tiered pricing with a minimum amount dependent on the volume tier. Tiers are def + # + # @param hide_zero_amount_tiers [Boolean] If true, tiers with an accrued amount of 0 will not be included in the rating. + # + # @param prorate [Boolean] If true, the unit price will be prorated to the billing period + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute minimum_amount + # Minimum amount + # + # @return [String] + required :minimum_amount, String + + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Per unit amount + # + # @return [String] + required :unit_amount, String + + # @!method initialize(minimum_amount:, tier_lower_bound:, unit_amount:) + # Configuration for a single tier + # + # @param minimum_amount [String] Minimum amount + # + # @param tier_lower_bound [String] Tier lower bound + # + # @param unit_amount [String] Per unit amount + end + end end end end diff --git a/lib/orb/models/new_plan_unit_price.rb b/lib/orb/models/new_plan_unit_price.rb index 4a9b0d02..700c82e6 100644 --- a/lib/orb/models/new_plan_unit_price.rb +++ b/lib/orb/models/new_plan_unit_price.rb @@ -16,6 +16,7 @@ class NewPlanUnitPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewPlanUnitPrice::ModelType] required :model_type, enum: -> { Orb::NewPlanUnitPrice::ModelType } @@ -27,6 +28,7 @@ class NewPlanUnitPrice < Orb::Internal::Type::BaseModel required :name, String # @!attribute unit_config + # Configuration for unit pricing # # @return [Orb::Models::UnitConfig] required :unit_config, -> { Orb::UnitConfig } @@ -126,11 +128,11 @@ class NewPlanUnitPrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewPlanUnitPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewPlanUnitPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param unit_config [Orb::Models::UnitConfig] + # @param unit_config [Orb::Models::UnitConfig] Configuration for unit pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -175,6 +177,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewPlanUnitPrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_plan_unit_with_percent_price.rb b/lib/orb/models/new_plan_unit_with_percent_price.rb index 6312bf21..3bfa2718 100644 --- a/lib/orb/models/new_plan_unit_with_percent_price.rb +++ b/lib/orb/models/new_plan_unit_with_percent_price.rb @@ -16,6 +16,7 @@ class NewPlanUnitWithPercentPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewPlanUnitWithPercentPrice::ModelType] required :model_type, enum: -> { Orb::NewPlanUnitWithPercentPrice::ModelType } @@ -27,9 +28,10 @@ class NewPlanUnitWithPercentPrice < Orb::Internal::Type::BaseModel required :name, String # @!attribute unit_with_percent_config + # Configuration for unit_with_percent pricing # - # @return [Hash{Symbol=>Object}] - required :unit_with_percent_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewPlanUnitWithPercentPrice::UnitWithPercentConfig] + required :unit_with_percent_config, -> { Orb::NewPlanUnitWithPercentPrice::UnitWithPercentConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -128,11 +130,11 @@ class NewPlanUnitWithPercentPrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewPlanUnitWithPercentPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewPlanUnitWithPercentPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param unit_with_percent_config [Hash{Symbol=>Object}] + # @param unit_with_percent_config [Orb::Models::NewPlanUnitWithPercentPrice::UnitWithPercentConfig] Configuration for unit_with_percent pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -177,6 +179,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewPlanUnitWithPercentPrice#model_type module ModelType extend Orb::Internal::Type::Enum @@ -186,6 +190,28 @@ module ModelType # @!method self.values # @return [Array] end + + # @see Orb::Models::NewPlanUnitWithPercentPrice#unit_with_percent_config + class UnitWithPercentConfig < Orb::Internal::Type::BaseModel + # @!attribute percent + # What percent, out of 100, of the calculated total to charge + # + # @return [String] + required :percent, String + + # @!attribute unit_amount + # Rate per unit of usage + # + # @return [String] + required :unit_amount, String + + # @!method initialize(percent:, unit_amount:) + # Configuration for unit_with_percent pricing + # + # @param percent [String] What percent, out of 100, of the calculated total to charge + # + # @param unit_amount [String] Rate per unit of usage + end end end end diff --git a/lib/orb/models/new_plan_unit_with_proration_price.rb b/lib/orb/models/new_plan_unit_with_proration_price.rb index fee715a5..e2972712 100644 --- a/lib/orb/models/new_plan_unit_with_proration_price.rb +++ b/lib/orb/models/new_plan_unit_with_proration_price.rb @@ -16,6 +16,7 @@ class NewPlanUnitWithProrationPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewPlanUnitWithProrationPrice::ModelType] required :model_type, enum: -> { Orb::NewPlanUnitWithProrationPrice::ModelType } @@ -27,9 +28,10 @@ class NewPlanUnitWithProrationPrice < Orb::Internal::Type::BaseModel required :name, String # @!attribute unit_with_proration_config + # Configuration for unit_with_proration pricing # - # @return [Hash{Symbol=>Object}] - required :unit_with_proration_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewPlanUnitWithProrationPrice::UnitWithProrationConfig] + required :unit_with_proration_config, -> { Orb::NewPlanUnitWithProrationPrice::UnitWithProrationConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -128,11 +130,11 @@ class NewPlanUnitWithProrationPrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewPlanUnitWithProrationPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewPlanUnitWithProrationPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param unit_with_proration_config [Hash{Symbol=>Object}] + # @param unit_with_proration_config [Orb::Models::NewPlanUnitWithProrationPrice::UnitWithProrationConfig] Configuration for unit_with_proration pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -177,6 +179,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewPlanUnitWithProrationPrice#model_type module ModelType extend Orb::Internal::Type::Enum @@ -186,6 +190,20 @@ module ModelType # @!method self.values # @return [Array] end + + # @see Orb::Models::NewPlanUnitWithProrationPrice#unit_with_proration_config + class UnitWithProrationConfig < Orb::Internal::Type::BaseModel + # @!attribute unit_amount + # Rate per unit of usage + # + # @return [String] + required :unit_amount, String + + # @!method initialize(unit_amount:) + # Configuration for unit_with_proration pricing + # + # @param unit_amount [String] Rate per unit of usage + end end end end diff --git a/lib/orb/models/new_subscription_bulk_price.rb b/lib/orb/models/new_subscription_bulk_price.rb index be01a439..a275d526 100644 --- a/lib/orb/models/new_subscription_bulk_price.rb +++ b/lib/orb/models/new_subscription_bulk_price.rb @@ -4,6 +4,7 @@ module Orb module Models class NewSubscriptionBulkPrice < Orb::Internal::Type::BaseModel # @!attribute bulk_config + # Configuration for bulk pricing # # @return [Orb::Models::BulkConfig] required :bulk_config, -> { Orb::BulkConfig } @@ -21,6 +22,7 @@ class NewSubscriptionBulkPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewSubscriptionBulkPrice::ModelType] required :model_type, enum: -> { Orb::NewSubscriptionBulkPrice::ModelType } @@ -124,13 +126,13 @@ class NewSubscriptionBulkPrice < Orb::Internal::Type::BaseModel # Some parameter documentations has been truncated, see # {Orb::Models::NewSubscriptionBulkPrice} for more details. # - # @param bulk_config [Orb::Models::BulkConfig] + # @param bulk_config [Orb::Models::BulkConfig] Configuration for bulk pricing # # @param cadence [Symbol, Orb::Models::NewSubscriptionBulkPrice::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewSubscriptionBulkPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewSubscriptionBulkPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -177,6 +179,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewSubscriptionBulkPrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_subscription_bulk_with_proration_price.rb b/lib/orb/models/new_subscription_bulk_with_proration_price.rb index f583b930..75472631 100644 --- a/lib/orb/models/new_subscription_bulk_with_proration_price.rb +++ b/lib/orb/models/new_subscription_bulk_with_proration_price.rb @@ -4,9 +4,11 @@ module Orb module Models class NewSubscriptionBulkWithProrationPrice < Orb::Internal::Type::BaseModel # @!attribute bulk_with_proration_config + # Configuration for bulk_with_proration pricing # - # @return [Hash{Symbol=>Object}] - required :bulk_with_proration_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewSubscriptionBulkWithProrationPrice::BulkWithProrationConfig] + required :bulk_with_proration_config, + -> { Orb::NewSubscriptionBulkWithProrationPrice::BulkWithProrationConfig } # @!attribute cadence # The cadence to bill for this price on. @@ -21,6 +23,7 @@ class NewSubscriptionBulkWithProrationPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewSubscriptionBulkWithProrationPrice::ModelType] required :model_type, enum: -> { Orb::NewSubscriptionBulkWithProrationPrice::ModelType } @@ -124,13 +127,13 @@ class NewSubscriptionBulkWithProrationPrice < Orb::Internal::Type::BaseModel # Some parameter documentations has been truncated, see # {Orb::Models::NewSubscriptionBulkWithProrationPrice} for more details. # - # @param bulk_with_proration_config [Hash{Symbol=>Object}] + # @param bulk_with_proration_config [Orb::Models::NewSubscriptionBulkWithProrationPrice::BulkWithProrationConfig] Configuration for bulk_with_proration pricing # # @param cadence [Symbol, Orb::Models::NewSubscriptionBulkWithProrationPrice::Cadence] The cadence to bill for this price on. # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewSubscriptionBulkWithProrationPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewSubscriptionBulkWithProrationPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -160,6 +163,42 @@ class NewSubscriptionBulkWithProrationPrice < Orb::Internal::Type::BaseModel # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments + # @see Orb::Models::NewSubscriptionBulkWithProrationPrice#bulk_with_proration_config + class BulkWithProrationConfig < Orb::Internal::Type::BaseModel + # @!attribute tiers + # Bulk tiers for rating based on total usage volume + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::NewSubscriptionBulkWithProrationPrice::BulkWithProrationConfig::Tier] } + + # @!method initialize(tiers:) + # Configuration for bulk_with_proration pricing + # + # @param tiers [Array] Bulk tiers for rating based on total usage volume + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute unit_amount + # Cost per unit + # + # @return [String] + required :unit_amount, String + + # @!attribute tier_lower_bound + # The lower bound for this tier + # + # @return [String, nil] + optional :tier_lower_bound, String, nil?: true + + # @!method initialize(unit_amount:, tier_lower_bound: nil) + # Configuration for a single bulk pricing tier with proration + # + # @param unit_amount [String] Cost per unit + # + # @param tier_lower_bound [String, nil] The lower bound for this tier + end + end + # The cadence to bill for this price on. # # @see Orb::Models::NewSubscriptionBulkWithProrationPrice#cadence @@ -177,6 +216,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewSubscriptionBulkWithProrationPrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_subscription_cumulative_grouped_bulk_price.rb b/lib/orb/models/new_subscription_cumulative_grouped_bulk_price.rb index 2c204f95..26f035f5 100644 --- a/lib/orb/models/new_subscription_cumulative_grouped_bulk_price.rb +++ b/lib/orb/models/new_subscription_cumulative_grouped_bulk_price.rb @@ -10,9 +10,11 @@ class NewSubscriptionCumulativeGroupedBulkPrice < Orb::Internal::Type::BaseModel required :cadence, enum: -> { Orb::NewSubscriptionCumulativeGroupedBulkPrice::Cadence } # @!attribute cumulative_grouped_bulk_config + # Configuration for cumulative_grouped_bulk pricing # - # @return [Hash{Symbol=>Object}] - required :cumulative_grouped_bulk_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig] + required :cumulative_grouped_bulk_config, + -> { Orb::NewSubscriptionCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig } # @!attribute item_id # The id of the item the price will be associated with. @@ -21,6 +23,7 @@ class NewSubscriptionCumulativeGroupedBulkPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::ModelType] required :model_type, enum: -> { Orb::NewSubscriptionCumulativeGroupedBulkPrice::ModelType } @@ -126,11 +129,11 @@ class NewSubscriptionCumulativeGroupedBulkPrice < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::Cadence] The cadence to bill for this price on. # - # @param cumulative_grouped_bulk_config [Hash{Symbol=>Object}] + # @param cumulative_grouped_bulk_config [Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig] Configuration for cumulative_grouped_bulk pricing # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -177,6 +180,60 @@ module Cadence # @return [Array] end + # @see Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice#cumulative_grouped_bulk_config + class CumulativeGroupedBulkConfig < Orb::Internal::Type::BaseModel + # @!attribute dimension_values + # Each tier lower bound must have the same group of values. + # + # @return [Array] + required :dimension_values, + -> { Orb::Internal::Type::ArrayOf[Orb::NewSubscriptionCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig::DimensionValue] } + + # @!attribute group + # Grouping key name + # + # @return [String] + required :group, String + + # @!method initialize(dimension_values:, group:) + # Configuration for cumulative_grouped_bulk pricing + # + # @param dimension_values [Array] Each tier lower bound must have the same group of values. + # + # @param group [String] Grouping key name + + class DimensionValue < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # Grouping key value + # + # @return [String] + required :grouping_key, String + + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Unit amount for this combination + # + # @return [String] + required :unit_amount, String + + # @!method initialize(grouping_key:, tier_lower_bound:, unit_amount:) + # Configuration for a dimension value entry + # + # @param grouping_key [String] Grouping key value + # + # @param tier_lower_bound [String] Tier lower bound + # + # @param unit_amount [String] Unit amount for this combination + end + end + + # The pricing model type + # # @see Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_subscription_grouped_allocation_price.rb b/lib/orb/models/new_subscription_grouped_allocation_price.rb index 290fdc00..a9076e31 100644 --- a/lib/orb/models/new_subscription_grouped_allocation_price.rb +++ b/lib/orb/models/new_subscription_grouped_allocation_price.rb @@ -10,9 +10,11 @@ class NewSubscriptionGroupedAllocationPrice < Orb::Internal::Type::BaseModel required :cadence, enum: -> { Orb::NewSubscriptionGroupedAllocationPrice::Cadence } # @!attribute grouped_allocation_config + # Configuration for grouped_allocation pricing # - # @return [Hash{Symbol=>Object}] - required :grouped_allocation_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewSubscriptionGroupedAllocationPrice::GroupedAllocationConfig] + required :grouped_allocation_config, + -> { Orb::NewSubscriptionGroupedAllocationPrice::GroupedAllocationConfig } # @!attribute item_id # The id of the item the price will be associated with. @@ -21,6 +23,7 @@ class NewSubscriptionGroupedAllocationPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewSubscriptionGroupedAllocationPrice::ModelType] required :model_type, enum: -> { Orb::NewSubscriptionGroupedAllocationPrice::ModelType } @@ -126,11 +129,11 @@ class NewSubscriptionGroupedAllocationPrice < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::NewSubscriptionGroupedAllocationPrice::Cadence] The cadence to bill for this price on. # - # @param grouped_allocation_config [Hash{Symbol=>Object}] + # @param grouped_allocation_config [Orb::Models::NewSubscriptionGroupedAllocationPrice::GroupedAllocationConfig] Configuration for grouped_allocation pricing # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewSubscriptionGroupedAllocationPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewSubscriptionGroupedAllocationPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -177,6 +180,38 @@ module Cadence # @return [Array] end + # @see Orb::Models::NewSubscriptionGroupedAllocationPrice#grouped_allocation_config + class GroupedAllocationConfig < Orb::Internal::Type::BaseModel + # @!attribute allocation + # Usage allocation per group + # + # @return [String] + required :allocation, String + + # @!attribute grouping_key + # How to determine the groups that should each be allocated some quantity + # + # @return [String] + required :grouping_key, String + + # @!attribute overage_unit_rate + # Unit rate for post-allocation + # + # @return [String] + required :overage_unit_rate, String + + # @!method initialize(allocation:, grouping_key:, overage_unit_rate:) + # Configuration for grouped_allocation pricing + # + # @param allocation [String] Usage allocation per group + # + # @param grouping_key [String] How to determine the groups that should each be allocated some quantity + # + # @param overage_unit_rate [String] Unit rate for post-allocation + end + + # The pricing model type + # # @see Orb::Models::NewSubscriptionGroupedAllocationPrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_subscription_grouped_tiered_package_price.rb b/lib/orb/models/new_subscription_grouped_tiered_package_price.rb index 15663295..e937c7d3 100644 --- a/lib/orb/models/new_subscription_grouped_tiered_package_price.rb +++ b/lib/orb/models/new_subscription_grouped_tiered_package_price.rb @@ -10,9 +10,11 @@ class NewSubscriptionGroupedTieredPackagePrice < Orb::Internal::Type::BaseModel required :cadence, enum: -> { Orb::NewSubscriptionGroupedTieredPackagePrice::Cadence } # @!attribute grouped_tiered_package_config + # Configuration for grouped_tiered_package pricing # - # @return [Hash{Symbol=>Object}] - required :grouped_tiered_package_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewSubscriptionGroupedTieredPackagePrice::GroupedTieredPackageConfig] + required :grouped_tiered_package_config, + -> { Orb::NewSubscriptionGroupedTieredPackagePrice::GroupedTieredPackageConfig } # @!attribute item_id # The id of the item the price will be associated with. @@ -21,6 +23,7 @@ class NewSubscriptionGroupedTieredPackagePrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewSubscriptionGroupedTieredPackagePrice::ModelType] required :model_type, enum: -> { Orb::NewSubscriptionGroupedTieredPackagePrice::ModelType } @@ -126,11 +129,11 @@ class NewSubscriptionGroupedTieredPackagePrice < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::NewSubscriptionGroupedTieredPackagePrice::Cadence] The cadence to bill for this price on. # - # @param grouped_tiered_package_config [Hash{Symbol=>Object}] + # @param grouped_tiered_package_config [Orb::Models::NewSubscriptionGroupedTieredPackagePrice::GroupedTieredPackageConfig] Configuration for grouped_tiered_package pricing # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewSubscriptionGroupedTieredPackagePrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewSubscriptionGroupedTieredPackagePrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -177,6 +180,65 @@ module Cadence # @return [Array] end + # @see Orb::Models::NewSubscriptionGroupedTieredPackagePrice#grouped_tiered_package_config + class GroupedTieredPackageConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # The event property used to group before tiering + # + # @return [String] + required :grouping_key, String + + # @!attribute package_size + # Package size + # + # @return [String] + required :package_size, String + + # @!attribute tiers + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::NewSubscriptionGroupedTieredPackagePrice::GroupedTieredPackageConfig::Tier] } + + # @!method initialize(grouping_key:, package_size:, tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::NewSubscriptionGroupedTieredPackagePrice::GroupedTieredPackageConfig} + # for more details. + # + # Configuration for grouped_tiered_package pricing + # + # @param grouping_key [String] The event property used to group before tiering + # + # @param package_size [String] Package size + # + # @param tiers [Array] Apply tiered pricing after rounding up the quantity to the package size. Tiers a + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute per_unit + # Price per package + # + # @return [String] + required :per_unit, String + + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!method initialize(per_unit:, tier_lower_bound:) + # Configuration for a single tier + # + # @param per_unit [String] Price per package + # + # @param tier_lower_bound [String] Tier lower bound + end + end + + # The pricing model type + # # @see Orb::Models::NewSubscriptionGroupedTieredPackagePrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_subscription_grouped_tiered_price.rb b/lib/orb/models/new_subscription_grouped_tiered_price.rb index 8ec32ec9..8121d728 100644 --- a/lib/orb/models/new_subscription_grouped_tiered_price.rb +++ b/lib/orb/models/new_subscription_grouped_tiered_price.rb @@ -10,9 +10,10 @@ class NewSubscriptionGroupedTieredPrice < Orb::Internal::Type::BaseModel required :cadence, enum: -> { Orb::NewSubscriptionGroupedTieredPrice::Cadence } # @!attribute grouped_tiered_config + # Configuration for grouped_tiered pricing # - # @return [Hash{Symbol=>Object}] - required :grouped_tiered_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewSubscriptionGroupedTieredPrice::GroupedTieredConfig] + required :grouped_tiered_config, -> { Orb::NewSubscriptionGroupedTieredPrice::GroupedTieredConfig } # @!attribute item_id # The id of the item the price will be associated with. @@ -21,6 +22,7 @@ class NewSubscriptionGroupedTieredPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewSubscriptionGroupedTieredPrice::ModelType] required :model_type, enum: -> { Orb::NewSubscriptionGroupedTieredPrice::ModelType } @@ -126,11 +128,11 @@ class NewSubscriptionGroupedTieredPrice < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::NewSubscriptionGroupedTieredPrice::Cadence] The cadence to bill for this price on. # - # @param grouped_tiered_config [Hash{Symbol=>Object}] + # @param grouped_tiered_config [Orb::Models::NewSubscriptionGroupedTieredPrice::GroupedTieredConfig] Configuration for grouped_tiered pricing # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewSubscriptionGroupedTieredPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewSubscriptionGroupedTieredPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -177,6 +179,57 @@ module Cadence # @return [Array] end + # @see Orb::Models::NewSubscriptionGroupedTieredPrice#grouped_tiered_config + class GroupedTieredConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # The billable metric property used to group before tiering + # + # @return [String] + required :grouping_key, String + + # @!attribute tiers + # Apply tiered pricing to each segment generated after grouping with the provided + # key + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::NewSubscriptionGroupedTieredPrice::GroupedTieredConfig::Tier] } + + # @!method initialize(grouping_key:, tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::NewSubscriptionGroupedTieredPrice::GroupedTieredConfig} for more + # details. + # + # Configuration for grouped_tiered pricing + # + # @param grouping_key [String] The billable metric property used to group before tiering + # + # @param tiers [Array] Apply tiered pricing to each segment generated after grouping with the provided + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Per unit amount + # + # @return [String] + required :unit_amount, String + + # @!method initialize(tier_lower_bound:, unit_amount:) + # Configuration for a single tier + # + # @param tier_lower_bound [String] Tier lower bound + # + # @param unit_amount [String] Per unit amount + end + end + + # The pricing model type + # # @see Orb::Models::NewSubscriptionGroupedTieredPrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_subscription_grouped_with_metered_minimum_price.rb b/lib/orb/models/new_subscription_grouped_with_metered_minimum_price.rb index 3c02d868..10f79482 100644 --- a/lib/orb/models/new_subscription_grouped_with_metered_minimum_price.rb +++ b/lib/orb/models/new_subscription_grouped_with_metered_minimum_price.rb @@ -10,9 +10,11 @@ class NewSubscriptionGroupedWithMeteredMinimumPrice < Orb::Internal::Type::BaseM required :cadence, enum: -> { Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence } # @!attribute grouped_with_metered_minimum_config + # Configuration for grouped_with_metered_minimum pricing # - # @return [Hash{Symbol=>Object}] - required :grouped_with_metered_minimum_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig] + required :grouped_with_metered_minimum_config, + -> { Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig } # @!attribute item_id # The id of the item the price will be associated with. @@ -21,6 +23,7 @@ class NewSubscriptionGroupedWithMeteredMinimumPrice < Orb::Internal::Type::BaseM required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::ModelType] required :model_type, enum: -> { Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::ModelType } @@ -126,11 +129,11 @@ class NewSubscriptionGroupedWithMeteredMinimumPrice < Orb::Internal::Type::BaseM # # @param cadence [Symbol, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence] The cadence to bill for this price on. # - # @param grouped_with_metered_minimum_config [Hash{Symbol=>Object}] + # @param grouped_with_metered_minimum_config [Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig] Configuration for grouped_with_metered_minimum pricing # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -177,6 +180,112 @@ module Cadence # @return [Array] end + # @see Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice#grouped_with_metered_minimum_config + class GroupedWithMeteredMinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # Used to partition the usage into groups. The minimum amount is applied to each + # group. + # + # @return [String] + required :grouping_key, String + + # @!attribute minimum_unit_amount + # The minimum amount to charge per group per unit + # + # @return [String] + required :minimum_unit_amount, String + + # @!attribute pricing_key + # Used to determine the unit rate + # + # @return [String] + required :pricing_key, String + + # @!attribute scaling_factors + # Scale the unit rates by the scaling factor. + # + # @return [Array] + required :scaling_factors, + -> { Orb::Internal::Type::ArrayOf[Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::ScalingFactor] } + + # @!attribute scaling_key + # Used to determine the unit rate scaling factor + # + # @return [String] + required :scaling_key, String + + # @!attribute unit_amounts + # Apply per unit pricing to each pricing value. The minimum amount is applied any + # unmatched usage. + # + # @return [Array] + required :unit_amounts, + -> { Orb::Internal::Type::ArrayOf[Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::UnitAmount] } + + # @!method initialize(grouping_key:, minimum_unit_amount:, pricing_key:, scaling_factors:, scaling_key:, unit_amounts:) + # Some parameter documentations has been truncated, see + # {Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig} + # for more details. + # + # Configuration for grouped_with_metered_minimum pricing + # + # @param grouping_key [String] Used to partition the usage into groups. The minimum amount is applied to each g + # + # @param minimum_unit_amount [String] The minimum amount to charge per group per unit + # + # @param pricing_key [String] Used to determine the unit rate + # + # @param scaling_factors [Array] Scale the unit rates by the scaling factor. + # + # @param scaling_key [String] Used to determine the unit rate scaling factor + # + # @param unit_amounts [Array] Apply per unit pricing to each pricing value. The minimum amount is applied any + + class ScalingFactor < Orb::Internal::Type::BaseModel + # @!attribute scaling_factor + # Scaling factor + # + # @return [String] + required :scaling_factor, String + + # @!attribute scaling_value + # Scaling value + # + # @return [String] + required :scaling_value, String + + # @!method initialize(scaling_factor:, scaling_value:) + # Configuration for a scaling factor + # + # @param scaling_factor [String] Scaling factor + # + # @param scaling_value [String] Scaling value + end + + class UnitAmount < Orb::Internal::Type::BaseModel + # @!attribute pricing_value + # Pricing value + # + # @return [String] + required :pricing_value, String + + # @!attribute unit_amount + # Per unit amount + # + # @return [String] + required :unit_amount, String + + # @!method initialize(pricing_value:, unit_amount:) + # Configuration for a unit amount + # + # @param pricing_value [String] Pricing value + # + # @param unit_amount [String] Per unit amount + end + end + + # The pricing model type + # # @see Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_subscription_grouped_with_prorated_minimum_price.rb b/lib/orb/models/new_subscription_grouped_with_prorated_minimum_price.rb index 94bddfe6..877209d7 100644 --- a/lib/orb/models/new_subscription_grouped_with_prorated_minimum_price.rb +++ b/lib/orb/models/new_subscription_grouped_with_prorated_minimum_price.rb @@ -10,9 +10,11 @@ class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::Internal::Type::Base required :cadence, enum: -> { Orb::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence } # @!attribute grouped_with_prorated_minimum_config + # Configuration for grouped_with_prorated_minimum pricing # - # @return [Hash{Symbol=>Object}] - required :grouped_with_prorated_minimum_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig] + required :grouped_with_prorated_minimum_config, + -> { Orb::NewSubscriptionGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig } # @!attribute item_id # The id of the item the price will be associated with. @@ -21,6 +23,7 @@ class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::Internal::Type::Base required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::ModelType] required :model_type, enum: -> { Orb::NewSubscriptionGroupedWithProratedMinimumPrice::ModelType } @@ -126,11 +129,11 @@ class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::Internal::Type::Base # # @param cadence [Symbol, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence] The cadence to bill for this price on. # - # @param grouped_with_prorated_minimum_config [Hash{Symbol=>Object}] + # @param grouped_with_prorated_minimum_config [Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig] Configuration for grouped_with_prorated_minimum pricing # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -177,6 +180,38 @@ module Cadence # @return [Array] end + # @see Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice#grouped_with_prorated_minimum_config + class GroupedWithProratedMinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # How to determine the groups that should each have a minimum + # + # @return [String] + required :grouping_key, String + + # @!attribute minimum + # The minimum amount to charge per group + # + # @return [String] + required :minimum, String + + # @!attribute unit_rate + # The amount to charge per unit + # + # @return [String] + required :unit_rate, String + + # @!method initialize(grouping_key:, minimum:, unit_rate:) + # Configuration for grouped_with_prorated_minimum pricing + # + # @param grouping_key [String] How to determine the groups that should each have a minimum + # + # @param minimum [String] The minimum amount to charge per group + # + # @param unit_rate [String] The amount to charge per unit + end + + # The pricing model type + # # @see Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_subscription_matrix_price.rb b/lib/orb/models/new_subscription_matrix_price.rb index f811521b..32caabd8 100644 --- a/lib/orb/models/new_subscription_matrix_price.rb +++ b/lib/orb/models/new_subscription_matrix_price.rb @@ -16,11 +16,13 @@ class NewSubscriptionMatrixPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute matrix_config + # Configuration for matrix pricing # # @return [Orb::Models::MatrixConfig] required :matrix_config, -> { Orb::MatrixConfig } # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewSubscriptionMatrixPrice::ModelType] required :model_type, enum: -> { Orb::NewSubscriptionMatrixPrice::ModelType } @@ -128,9 +130,9 @@ class NewSubscriptionMatrixPrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param matrix_config [Orb::Models::MatrixConfig] + # @param matrix_config [Orb::Models::MatrixConfig] Configuration for matrix pricing # - # @param model_type [Symbol, Orb::Models::NewSubscriptionMatrixPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewSubscriptionMatrixPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -177,6 +179,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewSubscriptionMatrixPrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_subscription_matrix_with_allocation_price.rb b/lib/orb/models/new_subscription_matrix_with_allocation_price.rb index f85dc75a..7dba2894 100644 --- a/lib/orb/models/new_subscription_matrix_with_allocation_price.rb +++ b/lib/orb/models/new_subscription_matrix_with_allocation_price.rb @@ -16,11 +16,13 @@ class NewSubscriptionMatrixWithAllocationPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute matrix_with_allocation_config + # Configuration for matrix_with_allocation pricing # # @return [Orb::Models::MatrixWithAllocationConfig] required :matrix_with_allocation_config, -> { Orb::MatrixWithAllocationConfig } # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewSubscriptionMatrixWithAllocationPrice::ModelType] required :model_type, enum: -> { Orb::NewSubscriptionMatrixWithAllocationPrice::ModelType } @@ -128,9 +130,9 @@ class NewSubscriptionMatrixWithAllocationPrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param matrix_with_allocation_config [Orb::Models::MatrixWithAllocationConfig] + # @param matrix_with_allocation_config [Orb::Models::MatrixWithAllocationConfig] Configuration for matrix_with_allocation pricing # - # @param model_type [Symbol, Orb::Models::NewSubscriptionMatrixWithAllocationPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewSubscriptionMatrixWithAllocationPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -177,6 +179,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewSubscriptionMatrixWithAllocationPrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_subscription_matrix_with_display_name_price.rb b/lib/orb/models/new_subscription_matrix_with_display_name_price.rb index 3825c8da..40b3c03d 100644 --- a/lib/orb/models/new_subscription_matrix_with_display_name_price.rb +++ b/lib/orb/models/new_subscription_matrix_with_display_name_price.rb @@ -16,11 +16,14 @@ class NewSubscriptionMatrixWithDisplayNamePrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute matrix_with_display_name_config + # Configuration for matrix_with_display_name pricing # - # @return [Hash{Symbol=>Object}] - required :matrix_with_display_name_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig] + required :matrix_with_display_name_config, + -> { Orb::NewSubscriptionMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig } # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::ModelType] required :model_type, enum: -> { Orb::NewSubscriptionMatrixWithDisplayNamePrice::ModelType } @@ -128,9 +131,9 @@ class NewSubscriptionMatrixWithDisplayNamePrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param matrix_with_display_name_config [Hash{Symbol=>Object}] + # @param matrix_with_display_name_config [Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig] Configuration for matrix_with_display_name pricing # - # @param model_type [Symbol, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -177,6 +180,60 @@ module Cadence # @return [Array] end + # @see Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice#matrix_with_display_name_config + class MatrixWithDisplayNameConfig < Orb::Internal::Type::BaseModel + # @!attribute dimension + # Used to determine the unit rate + # + # @return [String] + required :dimension, String + + # @!attribute unit_amounts + # Apply per unit pricing to each dimension value + # + # @return [Array] + required :unit_amounts, + -> { Orb::Internal::Type::ArrayOf[Orb::NewSubscriptionMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::UnitAmount] } + + # @!method initialize(dimension:, unit_amounts:) + # Configuration for matrix_with_display_name pricing + # + # @param dimension [String] Used to determine the unit rate + # + # @param unit_amounts [Array] Apply per unit pricing to each dimension value + + class UnitAmount < Orb::Internal::Type::BaseModel + # @!attribute dimension_value + # The dimension value + # + # @return [String] + required :dimension_value, String + + # @!attribute display_name + # Display name for this dimension value + # + # @return [String] + required :display_name, String + + # @!attribute unit_amount + # Per unit amount + # + # @return [String] + required :unit_amount, String + + # @!method initialize(dimension_value:, display_name:, unit_amount:) + # Configuration for a unit amount item + # + # @param dimension_value [String] The dimension value + # + # @param display_name [String] Display name for this dimension value + # + # @param unit_amount [String] Per unit amount + end + end + + # The pricing model type + # # @see Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_subscription_max_group_tiered_package_price.rb b/lib/orb/models/new_subscription_max_group_tiered_package_price.rb index 235dded2..d9b8b344 100644 --- a/lib/orb/models/new_subscription_max_group_tiered_package_price.rb +++ b/lib/orb/models/new_subscription_max_group_tiered_package_price.rb @@ -16,11 +16,14 @@ class NewSubscriptionMaxGroupTieredPackagePrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute max_group_tiered_package_config + # Configuration for max_group_tiered_package pricing # - # @return [Hash{Symbol=>Object}] - required :max_group_tiered_package_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig] + required :max_group_tiered_package_config, + -> { Orb::NewSubscriptionMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig } # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::ModelType] required :model_type, enum: -> { Orb::NewSubscriptionMaxGroupTieredPackagePrice::ModelType } @@ -128,9 +131,9 @@ class NewSubscriptionMaxGroupTieredPackagePrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param max_group_tiered_package_config [Hash{Symbol=>Object}] + # @param max_group_tiered_package_config [Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig] Configuration for max_group_tiered_package pricing # - # @param model_type [Symbol, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -177,6 +180,64 @@ module Cadence # @return [Array] end + # @see Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice#max_group_tiered_package_config + class MaxGroupTieredPackageConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # The event property used to group before tiering the group with the highest value + # + # @return [String] + required :grouping_key, String + + # @!attribute package_size + # Package size + # + # @return [String] + required :package_size, String + + # @!attribute tiers + # Apply tiered pricing to the largest group after grouping with the provided key. + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::NewSubscriptionMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig::Tier] } + + # @!method initialize(grouping_key:, package_size:, tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig} + # for more details. + # + # Configuration for max_group_tiered_package pricing + # + # @param grouping_key [String] The event property used to group before tiering the group with the highest value + # + # @param package_size [String] Package size + # + # @param tiers [Array] Apply tiered pricing to the largest group after grouping with the provided key. + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Per unit amount + # + # @return [String] + required :unit_amount, String + + # @!method initialize(tier_lower_bound:, unit_amount:) + # Configuration for a single tier + # + # @param tier_lower_bound [String] Tier lower bound + # + # @param unit_amount [String] Per unit amount + end + end + + # The pricing model type + # # @see Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_subscription_minimum_composite_price.rb b/lib/orb/models/new_subscription_minimum_composite_price.rb index 44cbad50..c0a7b342 100644 --- a/lib/orb/models/new_subscription_minimum_composite_price.rb +++ b/lib/orb/models/new_subscription_minimum_composite_price.rb @@ -16,11 +16,13 @@ class NewSubscriptionMinimumCompositePrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute minimum_config + # Configuration for minimum pricing # # @return [Orb::Models::NewSubscriptionMinimumCompositePrice::MinimumConfig] required :minimum_config, -> { Orb::NewSubscriptionMinimumCompositePrice::MinimumConfig } # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewSubscriptionMinimumCompositePrice::ModelType] required :model_type, enum: -> { Orb::NewSubscriptionMinimumCompositePrice::ModelType } @@ -128,9 +130,9 @@ class NewSubscriptionMinimumCompositePrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param minimum_config [Orb::Models::NewSubscriptionMinimumCompositePrice::MinimumConfig] + # @param minimum_config [Orb::Models::NewSubscriptionMinimumCompositePrice::MinimumConfig] Configuration for minimum pricing # - # @param model_type [Symbol, Orb::Models::NewSubscriptionMinimumCompositePrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewSubscriptionMinimumCompositePrice::ModelType] The pricing model type # # @param name [String] The name of the price. # @@ -186,22 +188,21 @@ class MinimumConfig < Orb::Internal::Type::BaseModel required :minimum_amount, String # @!attribute prorated - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. + # If true, subtotals from this price are prorated based on the service period # # @return [Boolean, nil] - optional :prorated, Orb::Internal::Type::Boolean, nil?: true + optional :prorated, Orb::Internal::Type::Boolean # @!method initialize(minimum_amount:, prorated: nil) - # Some parameter documentations has been truncated, see - # {Orb::Models::NewSubscriptionMinimumCompositePrice::MinimumConfig} for more - # details. + # Configuration for minimum pricing # # @param minimum_amount [String] The minimum amount to apply # - # @param prorated [Boolean, nil] By default, subtotals from minimum composite prices are prorated based on the se + # @param prorated [Boolean] If true, subtotals from this price are prorated based on the service period end + # The pricing model type + # # @see Orb::Models::NewSubscriptionMinimumCompositePrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_subscription_package_price.rb b/lib/orb/models/new_subscription_package_price.rb index 827c91a4..d559ba9c 100644 --- a/lib/orb/models/new_subscription_package_price.rb +++ b/lib/orb/models/new_subscription_package_price.rb @@ -16,6 +16,7 @@ class NewSubscriptionPackagePrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewSubscriptionPackagePrice::ModelType] required :model_type, enum: -> { Orb::NewSubscriptionPackagePrice::ModelType } @@ -27,6 +28,7 @@ class NewSubscriptionPackagePrice < Orb::Internal::Type::BaseModel required :name, String # @!attribute package_config + # Configuration for package pricing # # @return [Orb::Models::PackageConfig] required :package_config, -> { Orb::PackageConfig } @@ -128,11 +130,11 @@ class NewSubscriptionPackagePrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewSubscriptionPackagePrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewSubscriptionPackagePrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param package_config [Orb::Models::PackageConfig] + # @param package_config [Orb::Models::PackageConfig] Configuration for package pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -177,6 +179,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewSubscriptionPackagePrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_subscription_package_with_allocation_price.rb b/lib/orb/models/new_subscription_package_with_allocation_price.rb index 9afb6d65..161fa710 100644 --- a/lib/orb/models/new_subscription_package_with_allocation_price.rb +++ b/lib/orb/models/new_subscription_package_with_allocation_price.rb @@ -16,6 +16,7 @@ class NewSubscriptionPackageWithAllocationPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewSubscriptionPackageWithAllocationPrice::ModelType] required :model_type, enum: -> { Orb::NewSubscriptionPackageWithAllocationPrice::ModelType } @@ -27,9 +28,11 @@ class NewSubscriptionPackageWithAllocationPrice < Orb::Internal::Type::BaseModel required :name, String # @!attribute package_with_allocation_config + # Configuration for package_with_allocation pricing # - # @return [Hash{Symbol=>Object}] - required :package_with_allocation_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewSubscriptionPackageWithAllocationPrice::PackageWithAllocationConfig] + required :package_with_allocation_config, + -> { Orb::NewSubscriptionPackageWithAllocationPrice::PackageWithAllocationConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -128,11 +131,11 @@ class NewSubscriptionPackageWithAllocationPrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewSubscriptionPackageWithAllocationPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewSubscriptionPackageWithAllocationPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param package_with_allocation_config [Hash{Symbol=>Object}] + # @param package_with_allocation_config [Orb::Models::NewSubscriptionPackageWithAllocationPrice::PackageWithAllocationConfig] Configuration for package_with_allocation pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -177,6 +180,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewSubscriptionPackageWithAllocationPrice#model_type module ModelType extend Orb::Internal::Type::Enum @@ -186,6 +191,36 @@ module ModelType # @!method self.values # @return [Array] end + + # @see Orb::Models::NewSubscriptionPackageWithAllocationPrice#package_with_allocation_config + class PackageWithAllocationConfig < Orb::Internal::Type::BaseModel + # @!attribute allocation + # Usage allocation + # + # @return [String] + required :allocation, String + + # @!attribute package_amount + # Price per package + # + # @return [String] + required :package_amount, String + + # @!attribute package_size + # Package size + # + # @return [String] + required :package_size, String + + # @!method initialize(allocation:, package_amount:, package_size:) + # Configuration for package_with_allocation pricing + # + # @param allocation [String] Usage allocation + # + # @param package_amount [String] Price per package + # + # @param package_size [String] Package size + end end end end diff --git a/lib/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rb b/lib/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rb index a62c8a63..f060c587 100644 --- a/lib/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rb +++ b/lib/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rb @@ -16,6 +16,7 @@ class NewSubscriptionScalableMatrixWithTieredPricingPrice < Orb::Internal::Type: required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::ModelType] required :model_type, enum: -> { Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ModelType } @@ -27,10 +28,11 @@ class NewSubscriptionScalableMatrixWithTieredPricingPrice < Orb::Internal::Type: required :name, String # @!attribute scalable_matrix_with_tiered_pricing_config + # Configuration for scalable_matrix_with_tiered_pricing pricing # - # @return [Hash{Symbol=>Object}] + # @return [Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig] required :scalable_matrix_with_tiered_pricing_config, - Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + -> { Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -130,11 +132,11 @@ class NewSubscriptionScalableMatrixWithTieredPricingPrice < Orb::Internal::Type: # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param scalable_matrix_with_tiered_pricing_config [Hash{Symbol=>Object}] + # @param scalable_matrix_with_tiered_pricing_config [Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig] Configuration for scalable_matrix_with_tiered_pricing pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -179,6 +181,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice#model_type module ModelType extend Orb::Internal::Type::Enum @@ -188,6 +192,100 @@ module ModelType # @!method self.values # @return [Array] end + + # @see Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice#scalable_matrix_with_tiered_pricing_config + class ScalableMatrixWithTieredPricingConfig < Orb::Internal::Type::BaseModel + # @!attribute first_dimension + # Used for the scalable matrix first dimension + # + # @return [String] + required :first_dimension, String + + # @!attribute matrix_scaling_factors + # Apply a scaling factor to each dimension + # + # @return [Array] + required :matrix_scaling_factors, + -> do + Orb::Internal::Type::ArrayOf[ + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor + ] + end + + # @!attribute tiers + # Tier pricing structure + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::Tier] } + + # @!attribute second_dimension + # Used for the scalable matrix second dimension (optional) + # + # @return [String, nil] + optional :second_dimension, String, nil?: true + + # @!method initialize(first_dimension:, matrix_scaling_factors:, tiers:, second_dimension: nil) + # Configuration for scalable_matrix_with_tiered_pricing pricing + # + # @param first_dimension [String] Used for the scalable matrix first dimension + # + # @param matrix_scaling_factors [Array] Apply a scaling factor to each dimension + # + # @param tiers [Array] Tier pricing structure + # + # @param second_dimension [String, nil] Used for the scalable matrix second dimension (optional) + + class MatrixScalingFactor < Orb::Internal::Type::BaseModel + # @!attribute first_dimension_value + # First dimension value + # + # @return [String] + required :first_dimension_value, String + + # @!attribute scaling_factor + # Scaling factor + # + # @return [String] + required :scaling_factor, String + + # @!attribute second_dimension_value + # Second dimension value (optional) + # + # @return [String, nil] + optional :second_dimension_value, String, nil?: true + + # @!method initialize(first_dimension_value:, scaling_factor:, second_dimension_value: nil) + # Configuration for a single matrix scaling factor + # + # @param first_dimension_value [String] First dimension value + # + # @param scaling_factor [String] Scaling factor + # + # @param second_dimension_value [String, nil] Second dimension value (optional) + end + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Per unit amount + # + # @return [String] + required :unit_amount, String + + # @!method initialize(tier_lower_bound:, unit_amount:) + # Configuration for a single tier entry with business logic + # + # @param tier_lower_bound [String] Tier lower bound + # + # @param unit_amount [String] Per unit amount + end + end end end end diff --git a/lib/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rb b/lib/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rb index aa7164ec..f909c86e 100644 --- a/lib/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rb +++ b/lib/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rb @@ -16,6 +16,7 @@ class NewSubscriptionScalableMatrixWithUnitPricingPrice < Orb::Internal::Type::B required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::ModelType] required :model_type, enum: -> { Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::ModelType } @@ -27,10 +28,11 @@ class NewSubscriptionScalableMatrixWithUnitPricingPrice < Orb::Internal::Type::B required :name, String # @!attribute scalable_matrix_with_unit_pricing_config + # Configuration for scalable_matrix_with_unit_pricing pricing # - # @return [Hash{Symbol=>Object}] + # @return [Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig] required :scalable_matrix_with_unit_pricing_config, - Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + -> { Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -130,11 +132,11 @@ class NewSubscriptionScalableMatrixWithUnitPricingPrice < Orb::Internal::Type::B # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param scalable_matrix_with_unit_pricing_config [Hash{Symbol=>Object}] + # @param scalable_matrix_with_unit_pricing_config [Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig] Configuration for scalable_matrix_with_unit_pricing pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -179,6 +181,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice#model_type module ModelType extend Orb::Internal::Type::Enum @@ -188,6 +192,86 @@ module ModelType # @!method self.values # @return [Array] end + + # @see Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice#scalable_matrix_with_unit_pricing_config + class ScalableMatrixWithUnitPricingConfig < Orb::Internal::Type::BaseModel + # @!attribute first_dimension + # Used to determine the unit rate + # + # @return [String] + required :first_dimension, String + + # @!attribute matrix_scaling_factors + # Apply a scaling factor to each dimension + # + # @return [Array] + required :matrix_scaling_factors, + -> do + Orb::Internal::Type::ArrayOf[ + Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor + ] + end + + # @!attribute unit_price + # The final unit price to rate against the output of the matrix + # + # @return [String] + required :unit_price, String + + # @!attribute prorate + # If true, the unit price will be prorated to the billing period + # + # @return [Boolean, nil] + optional :prorate, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute second_dimension + # Used to determine the unit rate (optional) + # + # @return [String, nil] + optional :second_dimension, String, nil?: true + + # @!method initialize(first_dimension:, matrix_scaling_factors:, unit_price:, prorate: nil, second_dimension: nil) + # Configuration for scalable_matrix_with_unit_pricing pricing + # + # @param first_dimension [String] Used to determine the unit rate + # + # @param matrix_scaling_factors [Array] Apply a scaling factor to each dimension + # + # @param unit_price [String] The final unit price to rate against the output of the matrix + # + # @param prorate [Boolean, nil] If true, the unit price will be prorated to the billing period + # + # @param second_dimension [String, nil] Used to determine the unit rate (optional) + + class MatrixScalingFactor < Orb::Internal::Type::BaseModel + # @!attribute first_dimension_value + # First dimension value + # + # @return [String] + required :first_dimension_value, String + + # @!attribute scaling_factor + # Scaling factor + # + # @return [String] + required :scaling_factor, String + + # @!attribute second_dimension_value + # Second dimension value (optional) + # + # @return [String, nil] + optional :second_dimension_value, String, nil?: true + + # @!method initialize(first_dimension_value:, scaling_factor:, second_dimension_value: nil) + # Configuration for a single matrix scaling factor + # + # @param first_dimension_value [String] First dimension value + # + # @param scaling_factor [String] Scaling factor + # + # @param second_dimension_value [String, nil] Second dimension value (optional) + end + end end end end diff --git a/lib/orb/models/new_subscription_threshold_total_amount_price.rb b/lib/orb/models/new_subscription_threshold_total_amount_price.rb index f4fd1f13..7382775e 100644 --- a/lib/orb/models/new_subscription_threshold_total_amount_price.rb +++ b/lib/orb/models/new_subscription_threshold_total_amount_price.rb @@ -16,6 +16,7 @@ class NewSubscriptionThresholdTotalAmountPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewSubscriptionThresholdTotalAmountPrice::ModelType] required :model_type, enum: -> { Orb::NewSubscriptionThresholdTotalAmountPrice::ModelType } @@ -27,9 +28,11 @@ class NewSubscriptionThresholdTotalAmountPrice < Orb::Internal::Type::BaseModel required :name, String # @!attribute threshold_total_amount_config + # Configuration for threshold_total_amount pricing # - # @return [Hash{Symbol=>Object}] - required :threshold_total_amount_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewSubscriptionThresholdTotalAmountPrice::ThresholdTotalAmountConfig] + required :threshold_total_amount_config, + -> { Orb::NewSubscriptionThresholdTotalAmountPrice::ThresholdTotalAmountConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -128,11 +131,11 @@ class NewSubscriptionThresholdTotalAmountPrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewSubscriptionThresholdTotalAmountPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewSubscriptionThresholdTotalAmountPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param threshold_total_amount_config [Hash{Symbol=>Object}] + # @param threshold_total_amount_config [Orb::Models::NewSubscriptionThresholdTotalAmountPrice::ThresholdTotalAmountConfig] Configuration for threshold_total_amount pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -177,6 +180,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewSubscriptionThresholdTotalAmountPrice#model_type module ModelType extend Orb::Internal::Type::Enum @@ -186,6 +191,55 @@ module ModelType # @!method self.values # @return [Array] end + + # @see Orb::Models::NewSubscriptionThresholdTotalAmountPrice#threshold_total_amount_config + class ThresholdTotalAmountConfig < Orb::Internal::Type::BaseModel + # @!attribute consumption_table + # When the quantity consumed passes a provided threshold, the configured total + # will be charged + # + # @return [Array] + required :consumption_table, + -> { Orb::Internal::Type::ArrayOf[Orb::NewSubscriptionThresholdTotalAmountPrice::ThresholdTotalAmountConfig::ConsumptionTable] } + + # @!attribute prorate + # If true, the unit price will be prorated to the billing period + # + # @return [Boolean, nil] + optional :prorate, Orb::Internal::Type::Boolean, nil?: true + + # @!method initialize(consumption_table:, prorate: nil) + # Some parameter documentations has been truncated, see + # {Orb::Models::NewSubscriptionThresholdTotalAmountPrice::ThresholdTotalAmountConfig} + # for more details. + # + # Configuration for threshold_total_amount pricing + # + # @param consumption_table [Array] When the quantity consumed passes a provided threshold, the configured total wil + # + # @param prorate [Boolean, nil] If true, the unit price will be prorated to the billing period + + class ConsumptionTable < Orb::Internal::Type::BaseModel + # @!attribute threshold + # Quantity threshold + # + # @return [String] + required :threshold, String + + # @!attribute total_amount + # Total amount for this threshold + # + # @return [String] + required :total_amount, String + + # @!method initialize(threshold:, total_amount:) + # Configuration for a single threshold + # + # @param threshold [String] Quantity threshold + # + # @param total_amount [String] Total amount for this threshold + end + end end end end diff --git a/lib/orb/models/new_subscription_tier_with_proration_price.rb b/lib/orb/models/new_subscription_tier_with_proration_price.rb deleted file mode 100644 index aef60fa9..00000000 --- a/lib/orb/models/new_subscription_tier_with_proration_price.rb +++ /dev/null @@ -1,191 +0,0 @@ -# frozen_string_literal: true - -module Orb - module Models - class NewSubscriptionTierWithProrationPrice < Orb::Internal::Type::BaseModel - # @!attribute cadence - # The cadence to bill for this price on. - # - # @return [Symbol, Orb::Models::NewSubscriptionTierWithProrationPrice::Cadence] - required :cadence, enum: -> { Orb::NewSubscriptionTierWithProrationPrice::Cadence } - - # @!attribute item_id - # The id of the item the price will be associated with. - # - # @return [String] - required :item_id, String - - # @!attribute model_type - # - # @return [Symbol, Orb::Models::NewSubscriptionTierWithProrationPrice::ModelType] - required :model_type, enum: -> { Orb::NewSubscriptionTierWithProrationPrice::ModelType } - - # @!attribute name - # The name of the price. - # - # @return [String] - required :name, String - - # @!attribute tiered_with_proration_config - # - # @return [Hash{Symbol=>Object}] - required :tiered_with_proration_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] - - # @!attribute billable_metric_id - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - # - # @return [String, nil] - optional :billable_metric_id, String, nil?: true - - # @!attribute billed_in_advance - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - # - # @return [Boolean, nil] - optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true - - # @!attribute billing_cycle_configuration - # For custom cadence: specifies the duration of the billing period in days or - # months. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute conversion_rate - # The per unit conversion rate of the price currency to the invoicing currency. - # - # @return [Float, nil] - optional :conversion_rate, Float, nil?: true - - # @!attribute conversion_rate_config - # The configuration for the rate of the price currency to the invoicing currency. - # - # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - optional :conversion_rate_config, - union: -> { Orb::NewSubscriptionTierWithProrationPrice::ConversionRateConfig }, - nil?: true - - # @!attribute currency - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - # - # @return [String, nil] - optional :currency, String, nil?: true - - # @!attribute dimensional_price_configuration - # For dimensional price: specifies a price group and dimension values - # - # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] - optional :dimensional_price_configuration, -> { Orb::NewDimensionalPriceConfiguration }, nil?: true - - # @!attribute external_price_id - # An alias for the price. - # - # @return [String, nil] - optional :external_price_id, String, nil?: true - - # @!attribute fixed_price_quantity - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - # - # @return [Float, nil] - optional :fixed_price_quantity, Float, nil?: true - - # @!attribute invoice_grouping_key - # The property used to group this price on an invoice - # - # @return [String, nil] - optional :invoice_grouping_key, String, nil?: true - - # @!attribute invoicing_cycle_configuration - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - # - # @return [Orb::Models::NewBillingCycleConfiguration, nil] - optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true - - # @!attribute metadata - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - # - # @return [Hash{Symbol=>String, nil}, nil] - optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true - - # @!attribute reference_id - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - # - # @return [String, nil] - optional :reference_id, String, nil?: true - - # @!method initialize(cadence:, item_id:, model_type:, name:, tiered_with_proration_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil) - # Some parameter documentations has been truncated, see - # {Orb::Models::NewSubscriptionTierWithProrationPrice} for more details. - # - # @param cadence [Symbol, Orb::Models::NewSubscriptionTierWithProrationPrice::Cadence] The cadence to bill for this price on. - # - # @param item_id [String] The id of the item the price will be associated with. - # - # @param model_type [Symbol, Orb::Models::NewSubscriptionTierWithProrationPrice::ModelType] - # - # @param name [String] The name of the price. - # - # @param tiered_with_proration_config [Hash{Symbol=>Object}] - # - # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b - # - # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi - # - # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont - # - # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. - # - # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. - # - # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr - # - # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values - # - # @param external_price_id [String, nil] An alias for the price. - # - # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl - # - # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice - # - # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. - # - # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed - # - # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments - - # The cadence to bill for this price on. - # - # @see Orb::Models::NewSubscriptionTierWithProrationPrice#cadence - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL = :annual - SEMI_ANNUAL = :semi_annual - MONTHLY = :monthly - QUARTERLY = :quarterly - ONE_TIME = :one_time - CUSTOM = :custom - - # @!method self.values - # @return [Array] - end - - # @see Orb::Models::NewSubscriptionTierWithProrationPrice#model_type - module ModelType - extend Orb::Internal::Type::Enum - - TIERED_WITH_PRORATION = :tiered_with_proration - - # @!method self.values - # @return [Array] - end - end - end -end diff --git a/lib/orb/models/new_subscription_tiered_package_price.rb b/lib/orb/models/new_subscription_tiered_package_price.rb index 2da5209b..8bf1ae7b 100644 --- a/lib/orb/models/new_subscription_tiered_package_price.rb +++ b/lib/orb/models/new_subscription_tiered_package_price.rb @@ -16,6 +16,7 @@ class NewSubscriptionTieredPackagePrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewSubscriptionTieredPackagePrice::ModelType] required :model_type, enum: -> { Orb::NewSubscriptionTieredPackagePrice::ModelType } @@ -27,9 +28,10 @@ class NewSubscriptionTieredPackagePrice < Orb::Internal::Type::BaseModel required :name, String # @!attribute tiered_package_config + # Configuration for tiered_package pricing # - # @return [Hash{Symbol=>Object}] - required :tiered_package_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewSubscriptionTieredPackagePrice::TieredPackageConfig] + required :tiered_package_config, -> { Orb::NewSubscriptionTieredPackagePrice::TieredPackageConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -128,11 +130,11 @@ class NewSubscriptionTieredPackagePrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewSubscriptionTieredPackagePrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewSubscriptionTieredPackagePrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param tiered_package_config [Hash{Symbol=>Object}] + # @param tiered_package_config [Orb::Models::NewSubscriptionTieredPackagePrice::TieredPackageConfig] Configuration for tiered_package pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -177,6 +179,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewSubscriptionTieredPackagePrice#model_type module ModelType extend Orb::Internal::Type::Enum @@ -186,6 +190,55 @@ module ModelType # @!method self.values # @return [Array] end + + # @see Orb::Models::NewSubscriptionTieredPackagePrice#tiered_package_config + class TieredPackageConfig < Orb::Internal::Type::BaseModel + # @!attribute package_size + # Package size + # + # @return [String] + required :package_size, String + + # @!attribute tiers + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::NewSubscriptionTieredPackagePrice::TieredPackageConfig::Tier] } + + # @!method initialize(package_size:, tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::NewSubscriptionTieredPackagePrice::TieredPackageConfig} for more + # details. + # + # Configuration for tiered_package pricing + # + # @param package_size [String] Package size + # + # @param tiers [Array] Apply tiered pricing after rounding up the quantity to the package size. Tiers a + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute per_unit + # Price per package + # + # @return [String] + required :per_unit, String + + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!method initialize(per_unit:, tier_lower_bound:) + # Configuration for a single tier with business logic + # + # @param per_unit [String] Price per package + # + # @param tier_lower_bound [String] Tier lower bound + end + end end end end diff --git a/lib/orb/models/new_subscription_tiered_package_with_minimum_price.rb b/lib/orb/models/new_subscription_tiered_package_with_minimum_price.rb index 4518a4b3..0ef6dff1 100644 --- a/lib/orb/models/new_subscription_tiered_package_with_minimum_price.rb +++ b/lib/orb/models/new_subscription_tiered_package_with_minimum_price.rb @@ -16,6 +16,7 @@ class NewSubscriptionTieredPackageWithMinimumPrice < Orb::Internal::Type::BaseMo required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::ModelType] required :model_type, enum: -> { Orb::NewSubscriptionTieredPackageWithMinimumPrice::ModelType } @@ -27,9 +28,11 @@ class NewSubscriptionTieredPackageWithMinimumPrice < Orb::Internal::Type::BaseMo required :name, String # @!attribute tiered_package_with_minimum_config + # Configuration for tiered_package_with_minimum pricing # - # @return [Hash{Symbol=>Object}] - required :tiered_package_with_minimum_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig] + required :tiered_package_with_minimum_config, + -> { Orb::NewSubscriptionTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -128,11 +131,11 @@ class NewSubscriptionTieredPackageWithMinimumPrice < Orb::Internal::Type::BaseMo # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param tiered_package_with_minimum_config [Hash{Symbol=>Object}] + # @param tiered_package_with_minimum_config [Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig] Configuration for tiered_package_with_minimum pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -177,6 +180,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice#model_type module ModelType extend Orb::Internal::Type::Enum @@ -186,6 +191,63 @@ module ModelType # @!method self.values # @return [Array] end + + # @see Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice#tiered_package_with_minimum_config + class TieredPackageWithMinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute package_size + # Package size + # + # @return [Float] + required :package_size, Float + + # @!attribute tiers + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::NewSubscriptionTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::Tier] } + + # @!method initialize(package_size:, tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig} + # for more details. + # + # Configuration for tiered_package_with_minimum pricing + # + # @param package_size [Float] Package size + # + # @param tiers [Array] Apply tiered pricing after rounding up the quantity to the package size. Tiers a + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute minimum_amount + # Minimum amount + # + # @return [String] + required :minimum_amount, String + + # @!attribute per_unit + # Price per package + # + # @return [String] + required :per_unit, String + + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!method initialize(minimum_amount:, per_unit:, tier_lower_bound:) + # Configuration for a single tier + # + # @param minimum_amount [String] Minimum amount + # + # @param per_unit [String] Price per package + # + # @param tier_lower_bound [String] Tier lower bound + end + end end end end diff --git a/lib/orb/models/new_subscription_tiered_price.rb b/lib/orb/models/new_subscription_tiered_price.rb index b537c8d8..5e5054da 100644 --- a/lib/orb/models/new_subscription_tiered_price.rb +++ b/lib/orb/models/new_subscription_tiered_price.rb @@ -16,6 +16,7 @@ class NewSubscriptionTieredPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewSubscriptionTieredPrice::ModelType] required :model_type, enum: -> { Orb::NewSubscriptionTieredPrice::ModelType } @@ -27,6 +28,7 @@ class NewSubscriptionTieredPrice < Orb::Internal::Type::BaseModel required :name, String # @!attribute tiered_config + # Configuration for tiered pricing # # @return [Orb::Models::TieredConfig] required :tiered_config, -> { Orb::TieredConfig } @@ -128,11 +130,11 @@ class NewSubscriptionTieredPrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewSubscriptionTieredPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewSubscriptionTieredPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param tiered_config [Orb::Models::TieredConfig] + # @param tiered_config [Orb::Models::TieredConfig] Configuration for tiered pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -177,6 +179,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewSubscriptionTieredPrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_subscription_tiered_with_minimum_price.rb b/lib/orb/models/new_subscription_tiered_with_minimum_price.rb index a55be285..3a6d5e4f 100644 --- a/lib/orb/models/new_subscription_tiered_with_minimum_price.rb +++ b/lib/orb/models/new_subscription_tiered_with_minimum_price.rb @@ -16,6 +16,7 @@ class NewSubscriptionTieredWithMinimumPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewSubscriptionTieredWithMinimumPrice::ModelType] required :model_type, enum: -> { Orb::NewSubscriptionTieredWithMinimumPrice::ModelType } @@ -27,9 +28,11 @@ class NewSubscriptionTieredWithMinimumPrice < Orb::Internal::Type::BaseModel required :name, String # @!attribute tiered_with_minimum_config + # Configuration for tiered_with_minimum pricing # - # @return [Hash{Symbol=>Object}] - required :tiered_with_minimum_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewSubscriptionTieredWithMinimumPrice::TieredWithMinimumConfig] + required :tiered_with_minimum_config, + -> { Orb::NewSubscriptionTieredWithMinimumPrice::TieredWithMinimumConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -128,11 +131,11 @@ class NewSubscriptionTieredWithMinimumPrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewSubscriptionTieredWithMinimumPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewSubscriptionTieredWithMinimumPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param tiered_with_minimum_config [Hash{Symbol=>Object}] + # @param tiered_with_minimum_config [Orb::Models::NewSubscriptionTieredWithMinimumPrice::TieredWithMinimumConfig] Configuration for tiered_with_minimum pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -177,6 +180,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewSubscriptionTieredWithMinimumPrice#model_type module ModelType extend Orb::Internal::Type::Enum @@ -186,6 +191,71 @@ module ModelType # @!method self.values # @return [Array] end + + # @see Orb::Models::NewSubscriptionTieredWithMinimumPrice#tiered_with_minimum_config + class TieredWithMinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute tiers + # Tiered pricing with a minimum amount dependent on the volume tier. Tiers are + # defined using exclusive lower bounds. + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::NewSubscriptionTieredWithMinimumPrice::TieredWithMinimumConfig::Tier] } + + # @!attribute hide_zero_amount_tiers + # If true, tiers with an accrued amount of 0 will not be included in the rating. + # + # @return [Boolean, nil] + optional :hide_zero_amount_tiers, Orb::Internal::Type::Boolean + + # @!attribute prorate + # If true, the unit price will be prorated to the billing period + # + # @return [Boolean, nil] + optional :prorate, Orb::Internal::Type::Boolean + + # @!method initialize(tiers:, hide_zero_amount_tiers: nil, prorate: nil) + # Some parameter documentations has been truncated, see + # {Orb::Models::NewSubscriptionTieredWithMinimumPrice::TieredWithMinimumConfig} + # for more details. + # + # Configuration for tiered_with_minimum pricing + # + # @param tiers [Array] Tiered pricing with a minimum amount dependent on the volume tier. Tiers are def + # + # @param hide_zero_amount_tiers [Boolean] If true, tiers with an accrued amount of 0 will not be included in the rating. + # + # @param prorate [Boolean] If true, the unit price will be prorated to the billing period + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute minimum_amount + # Minimum amount + # + # @return [String] + required :minimum_amount, String + + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Per unit amount + # + # @return [String] + required :unit_amount, String + + # @!method initialize(minimum_amount:, tier_lower_bound:, unit_amount:) + # Configuration for a single tier + # + # @param minimum_amount [String] Minimum amount + # + # @param tier_lower_bound [String] Tier lower bound + # + # @param unit_amount [String] Per unit amount + end + end end end end diff --git a/lib/orb/models/new_subscription_unit_price.rb b/lib/orb/models/new_subscription_unit_price.rb index 4f02df83..91c802a1 100644 --- a/lib/orb/models/new_subscription_unit_price.rb +++ b/lib/orb/models/new_subscription_unit_price.rb @@ -16,6 +16,7 @@ class NewSubscriptionUnitPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewSubscriptionUnitPrice::ModelType] required :model_type, enum: -> { Orb::NewSubscriptionUnitPrice::ModelType } @@ -27,6 +28,7 @@ class NewSubscriptionUnitPrice < Orb::Internal::Type::BaseModel required :name, String # @!attribute unit_config + # Configuration for unit pricing # # @return [Orb::Models::UnitConfig] required :unit_config, -> { Orb::UnitConfig } @@ -128,11 +130,11 @@ class NewSubscriptionUnitPrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewSubscriptionUnitPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewSubscriptionUnitPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param unit_config [Orb::Models::UnitConfig] + # @param unit_config [Orb::Models::UnitConfig] Configuration for unit pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -177,6 +179,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewSubscriptionUnitPrice#model_type module ModelType extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/new_subscription_unit_with_percent_price.rb b/lib/orb/models/new_subscription_unit_with_percent_price.rb index 276a9de9..53036b59 100644 --- a/lib/orb/models/new_subscription_unit_with_percent_price.rb +++ b/lib/orb/models/new_subscription_unit_with_percent_price.rb @@ -16,6 +16,7 @@ class NewSubscriptionUnitWithPercentPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewSubscriptionUnitWithPercentPrice::ModelType] required :model_type, enum: -> { Orb::NewSubscriptionUnitWithPercentPrice::ModelType } @@ -27,9 +28,10 @@ class NewSubscriptionUnitWithPercentPrice < Orb::Internal::Type::BaseModel required :name, String # @!attribute unit_with_percent_config + # Configuration for unit_with_percent pricing # - # @return [Hash{Symbol=>Object}] - required :unit_with_percent_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewSubscriptionUnitWithPercentPrice::UnitWithPercentConfig] + required :unit_with_percent_config, -> { Orb::NewSubscriptionUnitWithPercentPrice::UnitWithPercentConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -128,11 +130,11 @@ class NewSubscriptionUnitWithPercentPrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewSubscriptionUnitWithPercentPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewSubscriptionUnitWithPercentPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param unit_with_percent_config [Hash{Symbol=>Object}] + # @param unit_with_percent_config [Orb::Models::NewSubscriptionUnitWithPercentPrice::UnitWithPercentConfig] Configuration for unit_with_percent pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -177,6 +179,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewSubscriptionUnitWithPercentPrice#model_type module ModelType extend Orb::Internal::Type::Enum @@ -186,6 +190,28 @@ module ModelType # @!method self.values # @return [Array] end + + # @see Orb::Models::NewSubscriptionUnitWithPercentPrice#unit_with_percent_config + class UnitWithPercentConfig < Orb::Internal::Type::BaseModel + # @!attribute percent + # What percent, out of 100, of the calculated total to charge + # + # @return [String] + required :percent, String + + # @!attribute unit_amount + # Rate per unit of usage + # + # @return [String] + required :unit_amount, String + + # @!method initialize(percent:, unit_amount:) + # Configuration for unit_with_percent pricing + # + # @param percent [String] What percent, out of 100, of the calculated total to charge + # + # @param unit_amount [String] Rate per unit of usage + end end end end diff --git a/lib/orb/models/new_subscription_unit_with_proration_price.rb b/lib/orb/models/new_subscription_unit_with_proration_price.rb index 2f73bc38..523ad62c 100644 --- a/lib/orb/models/new_subscription_unit_with_proration_price.rb +++ b/lib/orb/models/new_subscription_unit_with_proration_price.rb @@ -16,6 +16,7 @@ class NewSubscriptionUnitWithProrationPrice < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::NewSubscriptionUnitWithProrationPrice::ModelType] required :model_type, enum: -> { Orb::NewSubscriptionUnitWithProrationPrice::ModelType } @@ -27,9 +28,11 @@ class NewSubscriptionUnitWithProrationPrice < Orb::Internal::Type::BaseModel required :name, String # @!attribute unit_with_proration_config + # Configuration for unit_with_proration pricing # - # @return [Hash{Symbol=>Object}] - required :unit_with_proration_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::NewSubscriptionUnitWithProrationPrice::UnitWithProrationConfig] + required :unit_with_proration_config, + -> { Orb::NewSubscriptionUnitWithProrationPrice::UnitWithProrationConfig } # @!attribute billable_metric_id # The id of the billable metric for the price. Only needed if the price is @@ -128,11 +131,11 @@ class NewSubscriptionUnitWithProrationPrice < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::NewSubscriptionUnitWithProrationPrice::ModelType] + # @param model_type [Symbol, Orb::Models::NewSubscriptionUnitWithProrationPrice::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param unit_with_proration_config [Hash{Symbol=>Object}] + # @param unit_with_proration_config [Orb::Models::NewSubscriptionUnitWithProrationPrice::UnitWithProrationConfig] Configuration for unit_with_proration pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -177,6 +180,8 @@ module Cadence # @return [Array] end + # The pricing model type + # # @see Orb::Models::NewSubscriptionUnitWithProrationPrice#model_type module ModelType extend Orb::Internal::Type::Enum @@ -186,6 +191,20 @@ module ModelType # @!method self.values # @return [Array] end + + # @see Orb::Models::NewSubscriptionUnitWithProrationPrice#unit_with_proration_config + class UnitWithProrationConfig < Orb::Internal::Type::BaseModel + # @!attribute unit_amount + # Rate per unit of usage + # + # @return [String] + required :unit_amount, String + + # @!method initialize(unit_amount:) + # Configuration for unit_with_proration pricing + # + # @param unit_amount [String] Rate per unit of usage + end end end end diff --git a/lib/orb/models/package_config.rb b/lib/orb/models/package_config.rb index f5fe33f3..9c9946a8 100644 --- a/lib/orb/models/package_config.rb +++ b/lib/orb/models/package_config.rb @@ -20,6 +20,8 @@ class PackageConfig < Orb::Internal::Type::BaseModel # Some parameter documentations has been truncated, see # {Orb::Models::PackageConfig} for more details. # + # Configuration for package pricing + # # @param package_amount [String] A currency amount to rate usage by # # @param package_size [Integer] An integer amount to represent package size. For example, 1000 here would divide diff --git a/lib/orb/models/per_price_cost.rb b/lib/orb/models/per_price_cost.rb index d8f23e35..6d007440 100644 --- a/lib/orb/models/per_price_cost.rb +++ b/lib/orb/models/per_price_cost.rb @@ -6,7 +6,7 @@ class PerPriceCost < Orb::Internal::Type::BaseModel # @!attribute price # The price object # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::Minimum] + # @return [Orb::Models::Price::Unit, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::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::Minimum] required :price, union: -> { Orb::Price } # @!attribute price_id @@ -34,7 +34,7 @@ class PerPriceCost < Orb::Internal::Type::BaseModel optional :quantity, Float, nil?: true # @!method initialize(price:, price_id:, subtotal:, total:, quantity: nil) - # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::Minimum] The price object + # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::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::Minimum] The price object # # @param price_id [String] The price the cost is associated with # diff --git a/lib/orb/models/plan.rb b/lib/orb/models/plan.rb index d9664e92..cabcb53f 100644 --- a/lib/orb/models/plan.rb +++ b/lib/orb/models/plan.rb @@ -132,7 +132,7 @@ class Plan < Orb::Internal::Type::BaseModel # Prices for this plan. If the plan has phases, this includes prices across all # phases of the plan. # - # @return [Array] + # @return [Array] required :prices, -> { Orb::Internal::Type::ArrayOf[union: Orb::Price] } # @!attribute product @@ -202,7 +202,7 @@ class Plan < Orb::Internal::Type::BaseModel # # @param plan_phases [Array, nil] # - # @param prices [Array] Prices for this plan. If the plan has phases, this includes prices across all ph + # @param prices [Array] Prices for this plan. If the plan has phases, this includes prices across all ph # # @param product [Orb::Models::Plan::Product] # diff --git a/lib/orb/models/plan_create_params.rb b/lib/orb/models/plan_create_params.rb index e49369f2..1459085e 100644 --- a/lib/orb/models/plan_create_params.rb +++ b/lib/orb/models/plan_create_params.rb @@ -118,9 +118,9 @@ class Price < Orb::Internal::Type::BaseModel optional :plan_phase_order, Integer, nil?: true # @!attribute price - # The price to add to the plan + # New plan price request body params. # - # @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanMinimumCompositePrice, nil] + # @return [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::PlanCreateParams::Price::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanMinimumCompositePrice, nil] optional :price, union: -> { Orb::PlanCreateParams::Price::Price }, nil?: true # @!method initialize(allocation_price: nil, plan_phase_order: nil, price: nil) @@ -128,9 +128,9 @@ class Price < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] The phase to add this price to. # - # @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanMinimumCompositePrice, nil] The price to add to the plan + # @param price [Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::PlanCreateParams::Price::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanMinimumCompositePrice, nil] New plan price request body params. - # The price to add to the plan + # New plan price request body params. # # @see Orb::Models::PlanCreateParams::Price#price module Price @@ -140,30 +140,38 @@ module Price variant :unit, -> { Orb::NewPlanUnitPrice } - variant :package, -> { Orb::NewPlanPackagePrice } - - variant :matrix, -> { Orb::NewPlanMatrixPrice } - variant :tiered, -> { Orb::NewPlanTieredPrice } variant :bulk, -> { Orb::NewPlanBulkPrice } + variant :package, -> { Orb::NewPlanPackagePrice } + + variant :matrix, -> { Orb::NewPlanMatrixPrice } + variant :threshold_total_amount, -> { Orb::NewPlanThresholdTotalAmountPrice } variant :tiered_package, -> { Orb::NewPlanTieredPackagePrice } variant :tiered_with_minimum, -> { Orb::NewPlanTieredWithMinimumPrice } - variant :unit_with_percent, -> { Orb::NewPlanUnitWithPercentPrice } + variant :grouped_tiered, -> { Orb::NewPlanGroupedTieredPrice } + + variant :tiered_package_with_minimum, -> { Orb::NewPlanTieredPackageWithMinimumPrice } variant :package_with_allocation, -> { Orb::NewPlanPackageWithAllocationPrice } - variant :tiered_with_proration, -> { Orb::NewPlanTierWithProrationPrice } + variant :unit_with_percent, -> { Orb::NewPlanUnitWithPercentPrice } + + variant :matrix_with_allocation, -> { Orb::NewPlanMatrixWithAllocationPrice } + + variant :tiered_with_proration, -> { Orb::PlanCreateParams::Price::Price::TieredWithProration } variant :unit_with_proration, -> { Orb::NewPlanUnitWithProrationPrice } variant :grouped_allocation, -> { Orb::NewPlanGroupedAllocationPrice } + variant :bulk_with_proration, -> { Orb::NewPlanBulkWithProrationPrice } + variant :grouped_with_prorated_minimum, -> { Orb::NewPlanGroupedWithProratedMinimumPrice } variant :grouped_with_metered_minimum, -> { Orb::NewPlanGroupedWithMeteredMinimumPrice } @@ -173,8 +181,6 @@ module Price variant :matrix_with_display_name, -> { Orb::NewPlanMatrixWithDisplayNamePrice } - variant :bulk_with_proration, -> { Orb::NewPlanBulkWithProrationPrice } - variant :grouped_tiered_package, -> { Orb::NewPlanGroupedTieredPackagePrice } variant :max_group_tiered_package, -> { Orb::NewPlanMaxGroupTieredPackagePrice } @@ -185,13 +191,234 @@ module Price variant :cumulative_grouped_bulk, -> { Orb::NewPlanCumulativeGroupedBulkPrice } - variant :tiered_package_with_minimum, -> { Orb::NewPlanTieredPackageWithMinimumPrice } + variant :minimum, -> { Orb::NewPlanMinimumCompositePrice } - variant :matrix_with_allocation, -> { Orb::NewPlanMatrixWithAllocationPrice } + class TieredWithProration < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::PlanCreateParams::Price::Price::TieredWithProration::Cadence] + required :cadence, enum: -> { Orb::PlanCreateParams::Price::Price::TieredWithProration::Cadence } - variant :grouped_tiered, -> { Orb::NewPlanGroupedTieredPrice } + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String - variant :minimum, -> { Orb::NewPlanMinimumCompositePrice } + # @!attribute model_type + # The pricing model type + # + # @return [Symbol, :tiered_with_proration] + required :model_type, const: :tiered_with_proration + + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String + + # @!attribute tiered_with_proration_config + # Configuration for tiered_with_proration pricing + # + # @return [Orb::Models::PlanCreateParams::Price::Price::TieredWithProration::TieredWithProrationConfig] + required :tiered_with_proration_config, + -> { Orb::PlanCreateParams::Price::Price::TieredWithProration::TieredWithProrationConfig } + + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true + + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { + Orb::PlanCreateParams::Price::Price::TieredWithProration::ConversionRateConfig + }, + nil?: true + + # @!attribute currency + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + # + # @return [String, nil] + optional :currency, String, nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, + -> { + Orb::NewDimensionalPriceConfiguration + }, + nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!attribute reference_id + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + # + # @return [String, nil] + optional :reference_id, String, nil?: true + + # @!method initialize(cadence:, item_id:, name:, tiered_with_proration_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :tiered_with_proration) + # Some parameter documentations has been truncated, see + # {Orb::Models::PlanCreateParams::Price::Price::TieredWithProration} for more + # details. + # + # @param cadence [Symbol, Orb::Models::PlanCreateParams::Price::Price::TieredWithProration::Cadence] The cadence to bill for this price on. + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param name [String] The name of the price. + # + # @param tiered_with_proration_config [Orb::Models::PlanCreateParams::Price::Price::TieredWithProration::TieredWithProrationConfig] Configuration for tiered_with_proration pricing + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments + # + # @param model_type [Symbol, :tiered_with_proration] The pricing model type + + # The cadence to bill for this price on. + # + # @see Orb::Models::PlanCreateParams::Price::Price::TieredWithProration#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + + # @see Orb::Models::PlanCreateParams::Price::Price::TieredWithProration#tiered_with_proration_config + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + # @!attribute tiers + # Tiers for rating based on total usage quantities into the specified tier with + # proration + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::PlanCreateParams::Price::Price::TieredWithProration::TieredWithProrationConfig::Tier] } + + # @!method initialize(tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::PlanCreateParams::Price::Price::TieredWithProration::TieredWithProrationConfig} + # for more details. + # + # Configuration for tiered_with_proration pricing + # + # @param tiers [Array] Tiers for rating based on total usage quantities into the specified tier with pr + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute tier_lower_bound + # Inclusive tier starting value + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Amount per unit + # + # @return [String] + required :unit_amount, String + + # @!method initialize(tier_lower_bound:, unit_amount:) + # Configuration for a single tiered with proration tier + # + # @param tier_lower_bound [String] Inclusive tier starting value + # + # @param unit_amount [String] Amount per unit + end + end + end class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @!attribute cadence @@ -201,10 +428,11 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel required :cadence, enum: -> { Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::Cadence } # @!attribute grouped_with_min_max_thresholds_config + # Configuration for grouped_with_min_max_thresholds pricing # - # @return [Hash{Symbol=>Object}] + # @return [Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig] required :grouped_with_min_max_thresholds_config, - Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + -> { Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig } # @!attribute item_id # The id of the item the price will be associated with. @@ -213,6 +441,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, :grouped_with_min_max_thresholds] required :model_type, const: :grouped_with_min_max_thresholds @@ -325,7 +554,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::Cadence] The cadence to bill for this price on. # - # @param grouped_with_min_max_thresholds_config [Hash{Symbol=>Object}] + # @param grouped_with_min_max_thresholds_config [Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig] Configuration for grouped_with_min_max_thresholds pricing # # @param item_id [String] The id of the item the price will be associated with. # @@ -357,7 +586,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments # - # @param model_type [Symbol, :grouped_with_min_max_thresholds] + # @param model_type [Symbol, :grouped_with_min_max_thresholds] The pricing model type # The cadence to bill for this price on. # @@ -375,10 +604,48 @@ module Cadence # @!method self.values # @return [Array] end + + # @see Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds#grouped_with_min_max_thresholds_config + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # The event property used to group before applying thresholds + # + # @return [String] + required :grouping_key, String + + # @!attribute maximum_charge + # The maximum amount to charge each group + # + # @return [String] + required :maximum_charge, String + + # @!attribute minimum_charge + # The minimum amount to charge each group, regardless of usage + # + # @return [String] + required :minimum_charge, String + + # @!attribute per_unit_rate + # The base price charged per group + # + # @return [String] + required :per_unit_rate, String + + # @!method initialize(grouping_key:, maximum_charge:, minimum_charge:, per_unit_rate:) + # Configuration for grouped_with_min_max_thresholds pricing + # + # @param grouping_key [String] The event property used to group before applying thresholds + # + # @param maximum_charge [String] The maximum amount to charge each group + # + # @param minimum_charge [String] The minimum amount to charge each group, regardless of usage + # + # @param per_unit_rate [String] The base price charged per group + end end # @!method self.variants - # @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanTierWithProrationPrice, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanMinimumCompositePrice)] + # @return [Array(Orb::Models::NewPlanUnitPrice, Orb::Models::NewPlanTieredPrice, Orb::Models::NewPlanBulkPrice, Orb::Models::NewPlanPackagePrice, Orb::Models::NewPlanMatrixPrice, Orb::Models::NewPlanThresholdTotalAmountPrice, Orb::Models::NewPlanTieredPackagePrice, Orb::Models::NewPlanTieredWithMinimumPrice, Orb::Models::NewPlanGroupedTieredPrice, Orb::Models::NewPlanTieredPackageWithMinimumPrice, Orb::Models::NewPlanPackageWithAllocationPrice, Orb::Models::NewPlanUnitWithPercentPrice, Orb::Models::NewPlanMatrixWithAllocationPrice, Orb::Models::PlanCreateParams::Price::Price::TieredWithProration, Orb::Models::NewPlanUnitWithProrationPrice, Orb::Models::NewPlanGroupedAllocationPrice, Orb::Models::NewPlanBulkWithProrationPrice, Orb::Models::NewPlanGroupedWithProratedMinimumPrice, Orb::Models::NewPlanGroupedWithMeteredMinimumPrice, Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds, Orb::Models::NewPlanMatrixWithDisplayNamePrice, Orb::Models::NewPlanGroupedTieredPackagePrice, Orb::Models::NewPlanMaxGroupTieredPackagePrice, Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice, Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice, Orb::Models::NewPlanCumulativeGroupedBulkPrice, Orb::Models::NewPlanMinimumCompositePrice)] end end diff --git a/lib/orb/models/plan_version.rb b/lib/orb/models/plan_version.rb index 3af47fd8..43054141 100644 --- a/lib/orb/models/plan_version.rb +++ b/lib/orb/models/plan_version.rb @@ -25,7 +25,7 @@ class PlanVersion < Orb::Internal::Type::BaseModel # Prices for this plan. If the plan has phases, this includes prices across all # phases of the plan. # - # @return [Array] + # @return [Array] required :prices, -> { Orb::Internal::Type::ArrayOf[union: Orb::Price] } # @!attribute version @@ -46,7 +46,7 @@ class PlanVersion < Orb::Internal::Type::BaseModel # # @param plan_phases [Array, nil] # - # @param prices [Array] Prices for this plan. If the plan has phases, this includes prices across all ph + # @param prices [Array] Prices for this plan. If the plan has phases, this includes prices across all ph # # @param version [Integer] diff --git a/lib/orb/models/price.rb b/lib/orb/models/price.rb index d5faf31a..3bb16d6c 100644 --- a/lib/orb/models/price.rb +++ b/lib/orb/models/price.rb @@ -19,22 +19,22 @@ module Price variant :unit, -> { Orb::Price::Unit } - variant :package, -> { Orb::Price::Package } - - variant :matrix, -> { Orb::Price::Matrix } - variant :tiered, -> { Orb::Price::Tiered } variant :bulk, -> { Orb::Price::Bulk } + variant :package, -> { Orb::Price::Package } + + variant :matrix, -> { Orb::Price::Matrix } + variant :threshold_total_amount, -> { Orb::Price::ThresholdTotalAmount } variant :tiered_package, -> { Orb::Price::TieredPackage } - variant :grouped_tiered, -> { Orb::Price::GroupedTiered } - variant :tiered_with_minimum, -> { Orb::Price::TieredWithMinimum } + variant :grouped_tiered, -> { Orb::Price::GroupedTiered } + variant :tiered_package_with_minimum, -> { Orb::Price::TieredPackageWithMinimum } variant :package_with_allocation, -> { Orb::Price::PackageWithAllocation } @@ -49,13 +49,15 @@ module Price variant :grouped_allocation, -> { Orb::Price::GroupedAllocation } + variant :bulk_with_proration, -> { Orb::Price::BulkWithProration } + variant :grouped_with_prorated_minimum, -> { Orb::Price::GroupedWithProratedMinimum } variant :grouped_with_metered_minimum, -> { Orb::Price::GroupedWithMeteredMinimum } - variant :matrix_with_display_name, -> { Orb::Price::MatrixWithDisplayName } + variant :grouped_with_min_max_thresholds, -> { Orb::Price::GroupedWithMinMaxThresholds } - variant :bulk_with_proration, -> { Orb::Price::BulkWithProration } + variant :matrix_with_display_name, -> { Orb::Price::MatrixWithDisplayName } variant :grouped_tiered_package, -> { Orb::Price::GroupedTieredPackage } @@ -67,8 +69,6 @@ module Price variant :cumulative_grouped_bulk, -> { Orb::Price::CumulativeGroupedBulk } - variant :grouped_with_min_max_thresholds, -> { Orb::Price::GroupedWithMinMaxThresholds } - variant :minimum, -> { Orb::Price::Minimum } class Unit < Orb::Internal::Type::BaseModel @@ -184,6 +184,7 @@ class Unit < Orb::Internal::Type::BaseModel required :minimum_amount, String, nil?: true # @!attribute model_type + # The pricing model type # # @return [Symbol, :unit] required :model_type, const: :unit @@ -211,6 +212,7 @@ class Unit < Orb::Internal::Type::BaseModel required :replaces_price_id, String, nil?: true # @!attribute unit_config + # Configuration for unit pricing # # @return [Orb::Models::UnitConfig] required :unit_config, -> { Orb::UnitConfig } @@ -272,11 +274,11 @@ class Unit < Orb::Internal::Type::BaseModel # # @param replaces_price_id [String, nil] The price id this price replaces. This price will take the place of the replaced # - # @param unit_config [Orb::Models::UnitConfig] + # @param unit_config [Orb::Models::UnitConfig] Configuration for unit pricing # # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] # - # @param model_type [Symbol, :unit] + # @param model_type [Symbol, :unit] The pricing model type # @see Orb::Models::Price::Unit#cadence module Cadence @@ -305,7 +307,7 @@ module PriceType end end - class Package < Orb::Internal::Type::BaseModel + class Tiered < Orb::Internal::Type::BaseModel # @!attribute id # # @return [String] @@ -323,8 +325,8 @@ class Package < Orb::Internal::Type::BaseModel # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::Package::Cadence] - required :cadence, enum: -> { Orb::Price::Package::Cadence } + # @return [Symbol, Orb::Models::Price::Tiered::Cadence] + required :cadence, enum: -> { Orb::Price::Tiered::Cadence } # @!attribute composite_price_filters # @@ -341,7 +343,7 @@ class Package < Orb::Internal::Type::BaseModel # @!attribute conversion_rate_config # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - required :conversion_rate_config, union: -> { Orb::Price::Package::ConversionRateConfig }, nil?: true + required :conversion_rate_config, union: -> { Orb::Price::Tiered::ConversionRateConfig }, nil?: true # @!attribute created_at # @@ -418,20 +420,16 @@ class Package < Orb::Internal::Type::BaseModel required :minimum_amount, String, nil?: true # @!attribute model_type + # The pricing model type # - # @return [Symbol, :package] - required :model_type, const: :package + # @return [Symbol, :tiered] + required :model_type, const: :tiered # @!attribute name # # @return [String] required :name, String - # @!attribute package_config - # - # @return [Orb::Models::PackageConfig] - required :package_config, -> { Orb::PackageConfig } - # @!attribute plan_phase_order # # @return [Integer, nil] @@ -439,8 +437,8 @@ class Package < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::Package::PriceType] - required :price_type, enum: -> { Orb::Price::Package::PriceType } + # @return [Symbol, Orb::Models::Price::Tiered::PriceType] + required :price_type, enum: -> { Orb::Price::Tiered::PriceType } # @!attribute replaces_price_id # The price id this price replaces. This price will take the place of the replaced @@ -449,14 +447,20 @@ class Package < Orb::Internal::Type::BaseModel # @return [String, nil] required :replaces_price_id, String, nil?: true + # @!attribute tiered_config + # Configuration for tiered pricing + # + # @return [Orb::Models::TieredConfig] + required :tiered_config, -> { Orb::TieredConfig } + # @!attribute dimensional_price_configuration # # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, package_config:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :package) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, tiered_config:, dimensional_price_configuration: nil, model_type: :tiered) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::Package} for more details. + # {Orb::Models::Price::Tiered} for more details. # # @param id [String] # @@ -464,7 +468,7 @@ class Package < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::Package::Cadence] + # @param cadence [Symbol, Orb::Models::Price::Tiered::Cadence] # # @param composite_price_filters [Array, nil] # @@ -500,19 +504,19 @@ class Package < Orb::Internal::Type::BaseModel # # @param name [String] # - # @param package_config [Orb::Models::PackageConfig] - # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::Package::PriceType] + # @param price_type [Symbol, Orb::Models::Price::Tiered::PriceType] # # @param replaces_price_id [String, nil] The price id this price replaces. This price will take the place of the replaced # + # @param tiered_config [Orb::Models::TieredConfig] Configuration for tiered pricing + # # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] # - # @param model_type [Symbol, :package] + # @param model_type [Symbol, :tiered] The pricing model type - # @see Orb::Models::Price::Package#cadence + # @see Orb::Models::Price::Tiered#cadence module Cadence extend Orb::Internal::Type::Enum @@ -527,7 +531,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::Package#price_type + # @see Orb::Models::Price::Tiered#price_type module PriceType extend Orb::Internal::Type::Enum @@ -539,7 +543,7 @@ module PriceType end end - class Matrix < Orb::Internal::Type::BaseModel + class Bulk < Orb::Internal::Type::BaseModel # @!attribute id # # @return [String] @@ -555,10 +559,16 @@ class Matrix < Orb::Internal::Type::BaseModel # @return [Orb::Models::BillingCycleConfiguration] required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } + # @!attribute bulk_config + # Configuration for bulk pricing + # + # @return [Orb::Models::BulkConfig] + required :bulk_config, -> { Orb::BulkConfig } + # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::Matrix::Cadence] - required :cadence, enum: -> { Orb::Price::Matrix::Cadence } + # @return [Symbol, Orb::Models::Price::Bulk::Cadence] + required :cadence, enum: -> { Orb::Price::Bulk::Cadence } # @!attribute composite_price_filters # @@ -575,7 +585,7 @@ class Matrix < Orb::Internal::Type::BaseModel # @!attribute conversion_rate_config # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - required :conversion_rate_config, union: -> { Orb::Price::Matrix::ConversionRateConfig }, nil?: true + required :conversion_rate_config, union: -> { Orb::Price::Bulk::ConversionRateConfig }, nil?: true # @!attribute created_at # @@ -618,11 +628,6 @@ class Matrix < Orb::Internal::Type::BaseModel # @return [Orb::Models::ItemSlim] required :item, -> { Orb::ItemSlim } - # @!attribute matrix_config - # - # @return [Orb::Models::MatrixConfig] - required :matrix_config, -> { Orb::MatrixConfig } - # @!attribute maximum # @deprecated # @@ -657,9 +662,10 @@ class Matrix < Orb::Internal::Type::BaseModel required :minimum_amount, String, nil?: true # @!attribute model_type + # The pricing model type # - # @return [Symbol, :matrix] - required :model_type, const: :matrix + # @return [Symbol, :bulk] + required :model_type, const: :bulk # @!attribute name # @@ -673,8 +679,8 @@ class Matrix < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::Matrix::PriceType] - required :price_type, enum: -> { Orb::Price::Matrix::PriceType } + # @return [Symbol, Orb::Models::Price::Bulk::PriceType] + required :price_type, enum: -> { Orb::Price::Bulk::PriceType } # @!attribute replaces_price_id # The price id this price replaces. This price will take the place of the replaced @@ -688,9 +694,9 @@ class Matrix < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, matrix_config:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :matrix) - # Some parameter documentations has been truncated, see - # {Orb::Models::Price::Matrix} for more details. + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, bulk_config:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :bulk) + # Some parameter documentations has been truncated, see {Orb::Models::Price::Bulk} + # for more details. # # @param id [String] # @@ -698,7 +704,9 @@ class Matrix < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::Matrix::Cadence] + # @param bulk_config [Orb::Models::BulkConfig] Configuration for bulk pricing + # + # @param cadence [Symbol, Orb::Models::Price::Bulk::Cadence] # # @param composite_price_filters [Array, nil] # @@ -722,8 +730,6 @@ class Matrix < Orb::Internal::Type::BaseModel # # @param item [Orb::Models::ItemSlim] # - # @param matrix_config [Orb::Models::MatrixConfig] - # # @param maximum [Orb::Models::Maximum, nil] # # @param maximum_amount [String, nil] @@ -738,15 +744,15 @@ class Matrix < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::Matrix::PriceType] + # @param price_type [Symbol, Orb::Models::Price::Bulk::PriceType] # # @param replaces_price_id [String, nil] The price id this price replaces. This price will take the place of the replaced # # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] # - # @param model_type [Symbol, :matrix] + # @param model_type [Symbol, :bulk] The pricing model type - # @see Orb::Models::Price::Matrix#cadence + # @see Orb::Models::Price::Bulk#cadence module Cadence extend Orb::Internal::Type::Enum @@ -761,7 +767,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::Matrix#price_type + # @see Orb::Models::Price::Bulk#price_type module PriceType extend Orb::Internal::Type::Enum @@ -773,7 +779,7 @@ module PriceType end end - class Tiered < Orb::Internal::Type::BaseModel + class Package < Orb::Internal::Type::BaseModel # @!attribute id # # @return [String] @@ -791,8 +797,8 @@ class Tiered < Orb::Internal::Type::BaseModel # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::Tiered::Cadence] - required :cadence, enum: -> { Orb::Price::Tiered::Cadence } + # @return [Symbol, Orb::Models::Price::Package::Cadence] + required :cadence, enum: -> { Orb::Price::Package::Cadence } # @!attribute composite_price_filters # @@ -809,7 +815,7 @@ class Tiered < Orb::Internal::Type::BaseModel # @!attribute conversion_rate_config # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - required :conversion_rate_config, union: -> { Orb::Price::Tiered::ConversionRateConfig }, nil?: true + required :conversion_rate_config, union: -> { Orb::Price::Package::ConversionRateConfig }, nil?: true # @!attribute created_at # @@ -886,15 +892,22 @@ class Tiered < Orb::Internal::Type::BaseModel required :minimum_amount, String, nil?: true # @!attribute model_type + # The pricing model type # - # @return [Symbol, :tiered] - required :model_type, const: :tiered + # @return [Symbol, :package] + required :model_type, const: :package # @!attribute name # # @return [String] required :name, String + # @!attribute package_config + # Configuration for package pricing + # + # @return [Orb::Models::PackageConfig] + required :package_config, -> { Orb::PackageConfig } + # @!attribute plan_phase_order # # @return [Integer, nil] @@ -902,8 +915,8 @@ class Tiered < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::Tiered::PriceType] - required :price_type, enum: -> { Orb::Price::Tiered::PriceType } + # @return [Symbol, Orb::Models::Price::Package::PriceType] + required :price_type, enum: -> { Orb::Price::Package::PriceType } # @!attribute replaces_price_id # The price id this price replaces. This price will take the place of the replaced @@ -912,19 +925,14 @@ class Tiered < Orb::Internal::Type::BaseModel # @return [String, nil] required :replaces_price_id, String, nil?: true - # @!attribute tiered_config - # - # @return [Orb::Models::TieredConfig] - required :tiered_config, -> { Orb::TieredConfig } - # @!attribute dimensional_price_configuration # # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, tiered_config:, dimensional_price_configuration: nil, model_type: :tiered) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, package_config:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :package) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::Tiered} for more details. + # {Orb::Models::Price::Package} for more details. # # @param id [String] # @@ -932,7 +940,7 @@ class Tiered < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::Tiered::Cadence] + # @param cadence [Symbol, Orb::Models::Price::Package::Cadence] # # @param composite_price_filters [Array, nil] # @@ -968,19 +976,19 @@ class Tiered < Orb::Internal::Type::BaseModel # # @param name [String] # + # @param package_config [Orb::Models::PackageConfig] Configuration for package pricing + # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::Tiered::PriceType] + # @param price_type [Symbol, Orb::Models::Price::Package::PriceType] # # @param replaces_price_id [String, nil] The price id this price replaces. This price will take the place of the replaced # - # @param tiered_config [Orb::Models::TieredConfig] - # # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] # - # @param model_type [Symbol, :tiered] + # @param model_type [Symbol, :package] The pricing model type - # @see Orb::Models::Price::Tiered#cadence + # @see Orb::Models::Price::Package#cadence module Cadence extend Orb::Internal::Type::Enum @@ -995,7 +1003,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::Tiered#price_type + # @see Orb::Models::Price::Package#price_type module PriceType extend Orb::Internal::Type::Enum @@ -1007,7 +1015,7 @@ module PriceType end end - class Bulk < Orb::Internal::Type::BaseModel + class Matrix < Orb::Internal::Type::BaseModel # @!attribute id # # @return [String] @@ -1023,15 +1031,10 @@ class Bulk < Orb::Internal::Type::BaseModel # @return [Orb::Models::BillingCycleConfiguration] required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } - # @!attribute bulk_config - # - # @return [Orb::Models::BulkConfig] - required :bulk_config, -> { Orb::BulkConfig } - # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::Bulk::Cadence] - required :cadence, enum: -> { Orb::Price::Bulk::Cadence } + # @return [Symbol, Orb::Models::Price::Matrix::Cadence] + required :cadence, enum: -> { Orb::Price::Matrix::Cadence } # @!attribute composite_price_filters # @@ -1048,7 +1051,7 @@ class Bulk < Orb::Internal::Type::BaseModel # @!attribute conversion_rate_config # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] - required :conversion_rate_config, union: -> { Orb::Price::Bulk::ConversionRateConfig }, nil?: true + required :conversion_rate_config, union: -> { Orb::Price::Matrix::ConversionRateConfig }, nil?: true # @!attribute created_at # @@ -1091,6 +1094,12 @@ class Bulk < Orb::Internal::Type::BaseModel # @return [Orb::Models::ItemSlim] required :item, -> { Orb::ItemSlim } + # @!attribute matrix_config + # Configuration for matrix pricing + # + # @return [Orb::Models::MatrixConfig] + required :matrix_config, -> { Orb::MatrixConfig } + # @!attribute maximum # @deprecated # @@ -1125,9 +1134,10 @@ class Bulk < Orb::Internal::Type::BaseModel required :minimum_amount, String, nil?: true # @!attribute model_type + # The pricing model type # - # @return [Symbol, :bulk] - required :model_type, const: :bulk + # @return [Symbol, :matrix] + required :model_type, const: :matrix # @!attribute name # @@ -1141,8 +1151,8 @@ class Bulk < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::Bulk::PriceType] - required :price_type, enum: -> { Orb::Price::Bulk::PriceType } + # @return [Symbol, Orb::Models::Price::Matrix::PriceType] + required :price_type, enum: -> { Orb::Price::Matrix::PriceType } # @!attribute replaces_price_id # The price id this price replaces. This price will take the place of the replaced @@ -1156,9 +1166,9 @@ class Bulk < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, bulk_config:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :bulk) - # Some parameter documentations has been truncated, see {Orb::Models::Price::Bulk} - # for more details. + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, matrix_config:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :matrix) + # Some parameter documentations has been truncated, see + # {Orb::Models::Price::Matrix} for more details. # # @param id [String] # @@ -1166,9 +1176,7 @@ class Bulk < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # - # @param bulk_config [Orb::Models::BulkConfig] - # - # @param cadence [Symbol, Orb::Models::Price::Bulk::Cadence] + # @param cadence [Symbol, Orb::Models::Price::Matrix::Cadence] # # @param composite_price_filters [Array, nil] # @@ -1192,6 +1200,8 @@ class Bulk < Orb::Internal::Type::BaseModel # # @param item [Orb::Models::ItemSlim] # + # @param matrix_config [Orb::Models::MatrixConfig] Configuration for matrix pricing + # # @param maximum [Orb::Models::Maximum, nil] # # @param maximum_amount [String, nil] @@ -1206,15 +1216,15 @@ class Bulk < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::Bulk::PriceType] + # @param price_type [Symbol, Orb::Models::Price::Matrix::PriceType] # # @param replaces_price_id [String, nil] The price id this price replaces. This price will take the place of the replaced # # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] # - # @param model_type [Symbol, :bulk] + # @param model_type [Symbol, :matrix] The pricing model type - # @see Orb::Models::Price::Bulk#cadence + # @see Orb::Models::Price::Matrix#cadence module Cadence extend Orb::Internal::Type::Enum @@ -1229,7 +1239,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::Bulk#price_type + # @see Orb::Models::Price::Matrix#price_type module PriceType extend Orb::Internal::Type::Enum @@ -1356,6 +1366,7 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel required :minimum_amount, String, nil?: true # @!attribute model_type + # The pricing model type # # @return [Symbol, :threshold_total_amount] required :model_type, const: :threshold_total_amount @@ -1383,9 +1394,11 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel required :replaces_price_id, String, nil?: true # @!attribute threshold_total_amount_config + # Configuration for threshold_total_amount pricing # - # @return [Hash{Symbol=>Object}] - required :threshold_total_amount_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::Price::ThresholdTotalAmount::ThresholdTotalAmountConfig] + required :threshold_total_amount_config, + -> { Orb::Price::ThresholdTotalAmount::ThresholdTotalAmountConfig } # @!attribute dimensional_price_configuration # @@ -1444,11 +1457,11 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # # @param replaces_price_id [String, nil] The price id this price replaces. This price will take the place of the replaced # - # @param threshold_total_amount_config [Hash{Symbol=>Object}] + # @param threshold_total_amount_config [Orb::Models::Price::ThresholdTotalAmount::ThresholdTotalAmountConfig] Configuration for threshold_total_amount pricing # # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] # - # @param model_type [Symbol, :threshold_total_amount] + # @param model_type [Symbol, :threshold_total_amount] The pricing model type # @see Orb::Models::Price::ThresholdTotalAmount#cadence module Cadence @@ -1475,6 +1488,55 @@ module PriceType # @!method self.values # @return [Array] end + + # @see Orb::Models::Price::ThresholdTotalAmount#threshold_total_amount_config + class ThresholdTotalAmountConfig < Orb::Internal::Type::BaseModel + # @!attribute consumption_table + # When the quantity consumed passes a provided threshold, the configured total + # will be charged + # + # @return [Array] + required :consumption_table, + -> { Orb::Internal::Type::ArrayOf[Orb::Price::ThresholdTotalAmount::ThresholdTotalAmountConfig::ConsumptionTable] } + + # @!attribute prorate + # If true, the unit price will be prorated to the billing period + # + # @return [Boolean, nil] + optional :prorate, Orb::Internal::Type::Boolean, nil?: true + + # @!method initialize(consumption_table:, prorate: nil) + # Some parameter documentations has been truncated, see + # {Orb::Models::Price::ThresholdTotalAmount::ThresholdTotalAmountConfig} for more + # details. + # + # Configuration for threshold_total_amount pricing + # + # @param consumption_table [Array] When the quantity consumed passes a provided threshold, the configured total wil + # + # @param prorate [Boolean, nil] If true, the unit price will be prorated to the billing period + + class ConsumptionTable < Orb::Internal::Type::BaseModel + # @!attribute threshold + # Quantity threshold + # + # @return [String] + required :threshold, String + + # @!attribute total_amount + # Total amount for this threshold + # + # @return [String] + required :total_amount, String + + # @!method initialize(threshold:, total_amount:) + # Configuration for a single threshold + # + # @param threshold [String] Quantity threshold + # + # @param total_amount [String] Total amount for this threshold + end + end end class TieredPackage < Orb::Internal::Type::BaseModel @@ -1592,6 +1654,7 @@ class TieredPackage < Orb::Internal::Type::BaseModel required :minimum_amount, String, nil?: true # @!attribute model_type + # The pricing model type # # @return [Symbol, :tiered_package] required :model_type, const: :tiered_package @@ -1619,9 +1682,10 @@ class TieredPackage < Orb::Internal::Type::BaseModel required :replaces_price_id, String, nil?: true # @!attribute tiered_package_config + # Configuration for tiered_package pricing # - # @return [Hash{Symbol=>Object}] - required :tiered_package_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::Price::TieredPackage::TieredPackageConfig] + required :tiered_package_config, -> { Orb::Price::TieredPackage::TieredPackageConfig } # @!attribute dimensional_price_configuration # @@ -1680,11 +1744,11 @@ class TieredPackage < Orb::Internal::Type::BaseModel # # @param replaces_price_id [String, nil] The price id this price replaces. This price will take the place of the replaced # - # @param tiered_package_config [Hash{Symbol=>Object}] + # @param tiered_package_config [Orb::Models::Price::TieredPackage::TieredPackageConfig] Configuration for tiered_package pricing # # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] # - # @param model_type [Symbol, :tiered_package] + # @param model_type [Symbol, :tiered_package] The pricing model type # @see Orb::Models::Price::TieredPackage#cadence module Cadence @@ -1711,9 +1775,56 @@ module PriceType # @!method self.values # @return [Array] end + + # @see Orb::Models::Price::TieredPackage#tiered_package_config + class TieredPackageConfig < Orb::Internal::Type::BaseModel + # @!attribute package_size + # Package size + # + # @return [String] + required :package_size, String + + # @!attribute tiers + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + # + # @return [Array] + required :tiers, -> { Orb::Internal::Type::ArrayOf[Orb::Price::TieredPackage::TieredPackageConfig::Tier] } + + # @!method initialize(package_size:, tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::Price::TieredPackage::TieredPackageConfig} for more details. + # + # Configuration for tiered_package pricing + # + # @param package_size [String] Package size + # + # @param tiers [Array] Apply tiered pricing after rounding up the quantity to the package size. Tiers a + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute per_unit + # Price per package + # + # @return [String] + required :per_unit, String + + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!method initialize(per_unit:, tier_lower_bound:) + # Configuration for a single tier with business logic + # + # @param per_unit [String] Price per package + # + # @param tier_lower_bound [String] Tier lower bound + end + end end - class GroupedTiered < Orb::Internal::Type::BaseModel + class TieredWithMinimum < Orb::Internal::Type::BaseModel # @!attribute id # # @return [String] @@ -1731,8 +1842,8 @@ class GroupedTiered < Orb::Internal::Type::BaseModel # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::GroupedTiered::Cadence] - required :cadence, enum: -> { Orb::Price::GroupedTiered::Cadence } + # @return [Symbol, Orb::Models::Price::TieredWithMinimum::Cadence] + required :cadence, enum: -> { Orb::Price::TieredWithMinimum::Cadence } # @!attribute composite_price_filters # @@ -1750,7 +1861,7 @@ class GroupedTiered < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::GroupedTiered::ConversionRateConfig }, + union: -> { Orb::Price::TieredWithMinimum::ConversionRateConfig }, nil?: true # @!attribute created_at @@ -1784,11 +1895,6 @@ class GroupedTiered < Orb::Internal::Type::BaseModel # @return [Float, nil] required :fixed_price_quantity, Float, nil?: true - # @!attribute grouped_tiered_config - # - # @return [Hash{Symbol=>Object}] - required :grouped_tiered_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] - # @!attribute invoicing_cycle_configuration # # @return [Orb::Models::BillingCycleConfiguration, nil] @@ -1833,9 +1939,10 @@ class GroupedTiered < Orb::Internal::Type::BaseModel required :minimum_amount, String, nil?: true # @!attribute model_type + # The pricing model type # - # @return [Symbol, :grouped_tiered] - required :model_type, const: :grouped_tiered + # @return [Symbol, :tiered_with_minimum] + required :model_type, const: :tiered_with_minimum # @!attribute name # @@ -1849,8 +1956,8 @@ class GroupedTiered < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::GroupedTiered::PriceType] - required :price_type, enum: -> { Orb::Price::GroupedTiered::PriceType } + # @return [Symbol, Orb::Models::Price::TieredWithMinimum::PriceType] + required :price_type, enum: -> { Orb::Price::TieredWithMinimum::PriceType } # @!attribute replaces_price_id # The price id this price replaces. This price will take the place of the replaced @@ -1859,14 +1966,20 @@ class GroupedTiered < Orb::Internal::Type::BaseModel # @return [String, nil] required :replaces_price_id, String, nil?: true + # @!attribute tiered_with_minimum_config + # Configuration for tiered_with_minimum pricing + # + # @return [Orb::Models::Price::TieredWithMinimum::TieredWithMinimumConfig] + required :tiered_with_minimum_config, -> { Orb::Price::TieredWithMinimum::TieredWithMinimumConfig } + # @!attribute dimensional_price_configuration # # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_tiered_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :grouped_tiered) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, tiered_with_minimum_config:, dimensional_price_configuration: nil, model_type: :tiered_with_minimum) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::GroupedTiered} for more details. + # {Orb::Models::Price::TieredWithMinimum} for more details. # # @param id [String] # @@ -1874,7 +1987,7 @@ class GroupedTiered < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::GroupedTiered::Cadence] + # @param cadence [Symbol, Orb::Models::Price::TieredWithMinimum::Cadence] # # @param composite_price_filters [Array, nil] # @@ -1894,8 +2007,6 @@ class GroupedTiered < Orb::Internal::Type::BaseModel # # @param fixed_price_quantity [Float, nil] # - # @param grouped_tiered_config [Hash{Symbol=>Object}] - # # @param invoicing_cycle_configuration [Orb::Models::BillingCycleConfiguration, nil] # # @param item [Orb::Models::ItemSlim] @@ -1914,15 +2025,17 @@ class GroupedTiered < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::GroupedTiered::PriceType] + # @param price_type [Symbol, Orb::Models::Price::TieredWithMinimum::PriceType] # # @param replaces_price_id [String, nil] The price id this price replaces. This price will take the place of the replaced # + # @param tiered_with_minimum_config [Orb::Models::Price::TieredWithMinimum::TieredWithMinimumConfig] Configuration for tiered_with_minimum pricing + # # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] # - # @param model_type [Symbol, :grouped_tiered] + # @param model_type [Symbol, :tiered_with_minimum] The pricing model type - # @see Orb::Models::Price::GroupedTiered#cadence + # @see Orb::Models::Price::TieredWithMinimum#cadence module Cadence extend Orb::Internal::Type::Enum @@ -1937,7 +2050,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::GroupedTiered#price_type + # @see Orb::Models::Price::TieredWithMinimum#price_type module PriceType extend Orb::Internal::Type::Enum @@ -1947,28 +2060,93 @@ module PriceType # @!method self.values # @return [Array] end - end - class TieredWithMinimum < Orb::Internal::Type::BaseModel - # @!attribute id - # - # @return [String] - required :id, String + # @see Orb::Models::Price::TieredWithMinimum#tiered_with_minimum_config + class TieredWithMinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute tiers + # Tiered pricing with a minimum amount dependent on the volume tier. Tiers are + # defined using exclusive lower bounds. + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::Price::TieredWithMinimum::TieredWithMinimumConfig::Tier] } - # @!attribute billable_metric - # - # @return [Orb::Models::BillableMetricTiny, nil] - required :billable_metric, -> { Orb::BillableMetricTiny }, nil?: true + # @!attribute hide_zero_amount_tiers + # If true, tiers with an accrued amount of 0 will not be included in the rating. + # + # @return [Boolean, nil] + optional :hide_zero_amount_tiers, Orb::Internal::Type::Boolean - # @!attribute billing_cycle_configuration + # @!attribute prorate + # If true, the unit price will be prorated to the billing period + # + # @return [Boolean, nil] + optional :prorate, Orb::Internal::Type::Boolean + + # @!method initialize(tiers:, hide_zero_amount_tiers: nil, prorate: nil) + # Some parameter documentations has been truncated, see + # {Orb::Models::Price::TieredWithMinimum::TieredWithMinimumConfig} for more + # details. + # + # Configuration for tiered_with_minimum pricing + # + # @param tiers [Array] Tiered pricing with a minimum amount dependent on the volume tier. Tiers are def + # + # @param hide_zero_amount_tiers [Boolean] If true, tiers with an accrued amount of 0 will not be included in the rating. + # + # @param prorate [Boolean] If true, the unit price will be prorated to the billing period + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute minimum_amount + # Minimum amount + # + # @return [String] + required :minimum_amount, String + + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Per unit amount + # + # @return [String] + required :unit_amount, String + + # @!method initialize(minimum_amount:, tier_lower_bound:, unit_amount:) + # Configuration for a single tier + # + # @param minimum_amount [String] Minimum amount + # + # @param tier_lower_bound [String] Tier lower bound + # + # @param unit_amount [String] Per unit amount + end + end + end + + class GroupedTiered < Orb::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute billable_metric + # + # @return [Orb::Models::BillableMetricTiny, nil] + required :billable_metric, -> { Orb::BillableMetricTiny }, nil?: true + + # @!attribute billing_cycle_configuration # # @return [Orb::Models::BillingCycleConfiguration] required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::TieredWithMinimum::Cadence] - required :cadence, enum: -> { Orb::Price::TieredWithMinimum::Cadence } + # @return [Symbol, Orb::Models::Price::GroupedTiered::Cadence] + required :cadence, enum: -> { Orb::Price::GroupedTiered::Cadence } # @!attribute composite_price_filters # @@ -1986,7 +2164,7 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::TieredWithMinimum::ConversionRateConfig }, + union: -> { Orb::Price::GroupedTiered::ConversionRateConfig }, nil?: true # @!attribute created_at @@ -2020,6 +2198,12 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # @return [Float, nil] required :fixed_price_quantity, Float, nil?: true + # @!attribute grouped_tiered_config + # Configuration for grouped_tiered pricing + # + # @return [Orb::Models::Price::GroupedTiered::GroupedTieredConfig] + required :grouped_tiered_config, -> { Orb::Price::GroupedTiered::GroupedTieredConfig } + # @!attribute invoicing_cycle_configuration # # @return [Orb::Models::BillingCycleConfiguration, nil] @@ -2064,9 +2248,10 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel required :minimum_amount, String, nil?: true # @!attribute model_type + # The pricing model type # - # @return [Symbol, :tiered_with_minimum] - required :model_type, const: :tiered_with_minimum + # @return [Symbol, :grouped_tiered] + required :model_type, const: :grouped_tiered # @!attribute name # @@ -2080,8 +2265,8 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::TieredWithMinimum::PriceType] - required :price_type, enum: -> { Orb::Price::TieredWithMinimum::PriceType } + # @return [Symbol, Orb::Models::Price::GroupedTiered::PriceType] + required :price_type, enum: -> { Orb::Price::GroupedTiered::PriceType } # @!attribute replaces_price_id # The price id this price replaces. This price will take the place of the replaced @@ -2090,19 +2275,14 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # @return [String, nil] required :replaces_price_id, String, nil?: true - # @!attribute tiered_with_minimum_config - # - # @return [Hash{Symbol=>Object}] - required :tiered_with_minimum_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] - # @!attribute dimensional_price_configuration # # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, tiered_with_minimum_config:, dimensional_price_configuration: nil, model_type: :tiered_with_minimum) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_tiered_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :grouped_tiered) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::TieredWithMinimum} for more details. + # {Orb::Models::Price::GroupedTiered} for more details. # # @param id [String] # @@ -2110,7 +2290,7 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::TieredWithMinimum::Cadence] + # @param cadence [Symbol, Orb::Models::Price::GroupedTiered::Cadence] # # @param composite_price_filters [Array, nil] # @@ -2130,6 +2310,8 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # # @param fixed_price_quantity [Float, nil] # + # @param grouped_tiered_config [Orb::Models::Price::GroupedTiered::GroupedTieredConfig] Configuration for grouped_tiered pricing + # # @param invoicing_cycle_configuration [Orb::Models::BillingCycleConfiguration, nil] # # @param item [Orb::Models::ItemSlim] @@ -2148,17 +2330,15 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::TieredWithMinimum::PriceType] + # @param price_type [Symbol, Orb::Models::Price::GroupedTiered::PriceType] # # @param replaces_price_id [String, nil] The price id this price replaces. This price will take the place of the replaced # - # @param tiered_with_minimum_config [Hash{Symbol=>Object}] - # # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] # - # @param model_type [Symbol, :tiered_with_minimum] + # @param model_type [Symbol, :grouped_tiered] The pricing model type - # @see Orb::Models::Price::TieredWithMinimum#cadence + # @see Orb::Models::Price::GroupedTiered#cadence module Cadence extend Orb::Internal::Type::Enum @@ -2173,7 +2353,54 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::TieredWithMinimum#price_type + # @see Orb::Models::Price::GroupedTiered#grouped_tiered_config + class GroupedTieredConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # The billable metric property used to group before tiering + # + # @return [String] + required :grouping_key, String + + # @!attribute tiers + # Apply tiered pricing to each segment generated after grouping with the provided + # key + # + # @return [Array] + required :tiers, -> { Orb::Internal::Type::ArrayOf[Orb::Price::GroupedTiered::GroupedTieredConfig::Tier] } + + # @!method initialize(grouping_key:, tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::Price::GroupedTiered::GroupedTieredConfig} for more details. + # + # Configuration for grouped_tiered pricing + # + # @param grouping_key [String] The billable metric property used to group before tiering + # + # @param tiers [Array] Apply tiered pricing to each segment generated after grouping with the provided + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Per unit amount + # + # @return [String] + required :unit_amount, String + + # @!method initialize(tier_lower_bound:, unit_amount:) + # Configuration for a single tier + # + # @param tier_lower_bound [String] Tier lower bound + # + # @param unit_amount [String] Per unit amount + end + end + + # @see Orb::Models::Price::GroupedTiered#price_type module PriceType extend Orb::Internal::Type::Enum @@ -2300,6 +2527,7 @@ class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel required :minimum_amount, String, nil?: true # @!attribute model_type + # The pricing model type # # @return [Symbol, :tiered_package_with_minimum] required :model_type, const: :tiered_package_with_minimum @@ -2327,9 +2555,11 @@ class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel required :replaces_price_id, String, nil?: true # @!attribute tiered_package_with_minimum_config + # Configuration for tiered_package_with_minimum pricing # - # @return [Hash{Symbol=>Object}] - required :tiered_package_with_minimum_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::Price::TieredPackageWithMinimum::TieredPackageWithMinimumConfig] + required :tiered_package_with_minimum_config, + -> { Orb::Price::TieredPackageWithMinimum::TieredPackageWithMinimumConfig } # @!attribute dimensional_price_configuration # @@ -2388,11 +2618,11 @@ class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel # # @param replaces_price_id [String, nil] The price id this price replaces. This price will take the place of the replaced # - # @param tiered_package_with_minimum_config [Hash{Symbol=>Object}] + # @param tiered_package_with_minimum_config [Orb::Models::Price::TieredPackageWithMinimum::TieredPackageWithMinimumConfig] Configuration for tiered_package_with_minimum pricing # # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] # - # @param model_type [Symbol, :tiered_package_with_minimum] + # @param model_type [Symbol, :tiered_package_with_minimum] The pricing model type # @see Orb::Models::Price::TieredPackageWithMinimum#cadence module Cadence @@ -2419,6 +2649,63 @@ module PriceType # @!method self.values # @return [Array] end + + # @see Orb::Models::Price::TieredPackageWithMinimum#tiered_package_with_minimum_config + class TieredPackageWithMinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute package_size + # Package size + # + # @return [Float] + required :package_size, Float + + # @!attribute tiers + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::Price::TieredPackageWithMinimum::TieredPackageWithMinimumConfig::Tier] } + + # @!method initialize(package_size:, tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::Price::TieredPackageWithMinimum::TieredPackageWithMinimumConfig} + # for more details. + # + # Configuration for tiered_package_with_minimum pricing + # + # @param package_size [Float] Package size + # + # @param tiers [Array] Apply tiered pricing after rounding up the quantity to the package size. Tiers a + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute minimum_amount + # Minimum amount + # + # @return [String] + required :minimum_amount, String + + # @!attribute per_unit + # Price per package + # + # @return [String] + required :per_unit, String + + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!method initialize(minimum_amount:, per_unit:, tier_lower_bound:) + # Configuration for a single tier + # + # @param minimum_amount [String] Minimum amount + # + # @param per_unit [String] Price per package + # + # @param tier_lower_bound [String] Tier lower bound + end + end end class PackageWithAllocation < Orb::Internal::Type::BaseModel @@ -2536,6 +2823,7 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel required :minimum_amount, String, nil?: true # @!attribute model_type + # The pricing model type # # @return [Symbol, :package_with_allocation] required :model_type, const: :package_with_allocation @@ -2546,9 +2834,11 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel required :name, String # @!attribute package_with_allocation_config + # Configuration for package_with_allocation pricing # - # @return [Hash{Symbol=>Object}] - required :package_with_allocation_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::Price::PackageWithAllocation::PackageWithAllocationConfig] + required :package_with_allocation_config, + -> { Orb::Price::PackageWithAllocation::PackageWithAllocationConfig } # @!attribute plan_phase_order # @@ -2618,7 +2908,7 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # # @param name [String] # - # @param package_with_allocation_config [Hash{Symbol=>Object}] + # @param package_with_allocation_config [Orb::Models::Price::PackageWithAllocation::PackageWithAllocationConfig] Configuration for package_with_allocation pricing # # @param plan_phase_order [Integer, nil] # @@ -2628,7 +2918,7 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] # - # @param model_type [Symbol, :package_with_allocation] + # @param model_type [Symbol, :package_with_allocation] The pricing model type # @see Orb::Models::Price::PackageWithAllocation#cadence module Cadence @@ -2645,6 +2935,36 @@ module Cadence # @return [Array] end + # @see Orb::Models::Price::PackageWithAllocation#package_with_allocation_config + class PackageWithAllocationConfig < Orb::Internal::Type::BaseModel + # @!attribute allocation + # Usage allocation + # + # @return [String] + required :allocation, String + + # @!attribute package_amount + # Price per package + # + # @return [String] + required :package_amount, String + + # @!attribute package_size + # Package size + # + # @return [String] + required :package_size, String + + # @!method initialize(allocation:, package_amount:, package_size:) + # Configuration for package_with_allocation pricing + # + # @param allocation [String] Usage allocation + # + # @param package_amount [String] Price per package + # + # @param package_size [String] Package size + end + # @see Orb::Models::Price::PackageWithAllocation#price_type module PriceType extend Orb::Internal::Type::Enum @@ -2772,6 +3092,7 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel required :minimum_amount, String, nil?: true # @!attribute model_type + # The pricing model type # # @return [Symbol, :unit_with_percent] required :model_type, const: :unit_with_percent @@ -2799,9 +3120,10 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel required :replaces_price_id, String, nil?: true # @!attribute unit_with_percent_config + # Configuration for unit_with_percent pricing # - # @return [Hash{Symbol=>Object}] - required :unit_with_percent_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::Price::UnitWithPercent::UnitWithPercentConfig] + required :unit_with_percent_config, -> { Orb::Price::UnitWithPercent::UnitWithPercentConfig } # @!attribute dimensional_price_configuration # @@ -2860,11 +3182,11 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # # @param replaces_price_id [String, nil] The price id this price replaces. This price will take the place of the replaced # - # @param unit_with_percent_config [Hash{Symbol=>Object}] + # @param unit_with_percent_config [Orb::Models::Price::UnitWithPercent::UnitWithPercentConfig] Configuration for unit_with_percent pricing # # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] # - # @param model_type [Symbol, :unit_with_percent] + # @param model_type [Symbol, :unit_with_percent] The pricing model type # @see Orb::Models::Price::UnitWithPercent#cadence module Cadence @@ -2891,6 +3213,28 @@ module PriceType # @!method self.values # @return [Array] end + + # @see Orb::Models::Price::UnitWithPercent#unit_with_percent_config + class UnitWithPercentConfig < Orb::Internal::Type::BaseModel + # @!attribute percent + # What percent, out of 100, of the calculated total to charge + # + # @return [String] + required :percent, String + + # @!attribute unit_amount + # Rate per unit of usage + # + # @return [String] + required :unit_amount, String + + # @!method initialize(percent:, unit_amount:) + # Configuration for unit_with_percent pricing + # + # @param percent [String] What percent, out of 100, of the calculated total to charge + # + # @param unit_amount [String] Rate per unit of usage + end end class MatrixWithAllocation < Orb::Internal::Type::BaseModel @@ -2975,6 +3319,7 @@ class MatrixWithAllocation < Orb::Internal::Type::BaseModel required :item, -> { Orb::ItemSlim } # @!attribute matrix_with_allocation_config + # Configuration for matrix_with_allocation pricing # # @return [Orb::Models::MatrixWithAllocationConfig] required :matrix_with_allocation_config, -> { Orb::MatrixWithAllocationConfig } @@ -3013,6 +3358,7 @@ class MatrixWithAllocation < Orb::Internal::Type::BaseModel required :minimum_amount, String, nil?: true # @!attribute model_type + # The pricing model type # # @return [Symbol, :matrix_with_allocation] required :model_type, const: :matrix_with_allocation @@ -3078,7 +3424,7 @@ class MatrixWithAllocation < Orb::Internal::Type::BaseModel # # @param item [Orb::Models::ItemSlim] # - # @param matrix_with_allocation_config [Orb::Models::MatrixWithAllocationConfig] + # @param matrix_with_allocation_config [Orb::Models::MatrixWithAllocationConfig] Configuration for matrix_with_allocation pricing # # @param maximum [Orb::Models::Maximum, nil] # @@ -3100,7 +3446,7 @@ class MatrixWithAllocation < Orb::Internal::Type::BaseModel # # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] # - # @param model_type [Symbol, :matrix_with_allocation] + # @param model_type [Symbol, :matrix_with_allocation] The pricing model type # @see Orb::Models::Price::MatrixWithAllocation#cadence module Cadence @@ -3244,6 +3590,7 @@ class TieredWithProration < Orb::Internal::Type::BaseModel required :minimum_amount, String, nil?: true # @!attribute model_type + # The pricing model type # # @return [Symbol, :tiered_with_proration] required :model_type, const: :tiered_with_proration @@ -3271,9 +3618,10 @@ class TieredWithProration < Orb::Internal::Type::BaseModel required :replaces_price_id, String, nil?: true # @!attribute tiered_with_proration_config + # Configuration for tiered_with_proration pricing # - # @return [Hash{Symbol=>Object}] - required :tiered_with_proration_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::Price::TieredWithProration::TieredWithProrationConfig] + required :tiered_with_proration_config, -> { Orb::Price::TieredWithProration::TieredWithProrationConfig } # @!attribute dimensional_price_configuration # @@ -3332,11 +3680,11 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # # @param replaces_price_id [String, nil] The price id this price replaces. This price will take the place of the replaced # - # @param tiered_with_proration_config [Hash{Symbol=>Object}] + # @param tiered_with_proration_config [Orb::Models::Price::TieredWithProration::TieredWithProrationConfig] Configuration for tiered_with_proration pricing # # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] # - # @param model_type [Symbol, :tiered_with_proration] + # @param model_type [Symbol, :tiered_with_proration] The pricing model type # @see Orb::Models::Price::TieredWithProration#cadence module Cadence @@ -3363,6 +3711,47 @@ module PriceType # @!method self.values # @return [Array] end + + # @see Orb::Models::Price::TieredWithProration#tiered_with_proration_config + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + # @!attribute tiers + # Tiers for rating based on total usage quantities into the specified tier with + # proration + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::Price::TieredWithProration::TieredWithProrationConfig::Tier] } + + # @!method initialize(tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::Price::TieredWithProration::TieredWithProrationConfig} for more + # details. + # + # Configuration for tiered_with_proration pricing + # + # @param tiers [Array] Tiers for rating based on total usage quantities into the specified tier with pr + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute tier_lower_bound + # Inclusive tier starting value + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Amount per unit + # + # @return [String] + required :unit_amount, String + + # @!method initialize(tier_lower_bound:, unit_amount:) + # Configuration for a single tiered with proration tier + # + # @param tier_lower_bound [String] Inclusive tier starting value + # + # @param unit_amount [String] Amount per unit + end + end end class UnitWithProration < Orb::Internal::Type::BaseModel @@ -3480,6 +3869,7 @@ class UnitWithProration < Orb::Internal::Type::BaseModel required :minimum_amount, String, nil?: true # @!attribute model_type + # The pricing model type # # @return [Symbol, :unit_with_proration] required :model_type, const: :unit_with_proration @@ -3507,9 +3897,10 @@ class UnitWithProration < Orb::Internal::Type::BaseModel required :replaces_price_id, String, nil?: true # @!attribute unit_with_proration_config + # Configuration for unit_with_proration pricing # - # @return [Hash{Symbol=>Object}] - required :unit_with_proration_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::Price::UnitWithProration::UnitWithProrationConfig] + required :unit_with_proration_config, -> { Orb::Price::UnitWithProration::UnitWithProrationConfig } # @!attribute dimensional_price_configuration # @@ -3568,11 +3959,11 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # # @param replaces_price_id [String, nil] The price id this price replaces. This price will take the place of the replaced # - # @param unit_with_proration_config [Hash{Symbol=>Object}] + # @param unit_with_proration_config [Orb::Models::Price::UnitWithProration::UnitWithProrationConfig] Configuration for unit_with_proration pricing # # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] # - # @param model_type [Symbol, :unit_with_proration] + # @param model_type [Symbol, :unit_with_proration] The pricing model type # @see Orb::Models::Price::UnitWithProration#cadence module Cadence @@ -3599,6 +3990,20 @@ module PriceType # @!method self.values # @return [Array] end + + # @see Orb::Models::Price::UnitWithProration#unit_with_proration_config + class UnitWithProrationConfig < Orb::Internal::Type::BaseModel + # @!attribute unit_amount + # Rate per unit of usage + # + # @return [String] + required :unit_amount, String + + # @!method initialize(unit_amount:) + # Configuration for unit_with_proration pricing + # + # @param unit_amount [String] Rate per unit of usage + end end class GroupedAllocation < Orb::Internal::Type::BaseModel @@ -3673,9 +4078,10 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel required :fixed_price_quantity, Float, nil?: true # @!attribute grouped_allocation_config + # Configuration for grouped_allocation pricing # - # @return [Hash{Symbol=>Object}] - required :grouped_allocation_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::Price::GroupedAllocation::GroupedAllocationConfig] + required :grouped_allocation_config, -> { Orb::Price::GroupedAllocation::GroupedAllocationConfig } # @!attribute invoicing_cycle_configuration # @@ -3721,6 +4127,7 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel required :minimum_amount, String, nil?: true # @!attribute model_type + # The pricing model type # # @return [Symbol, :grouped_allocation] required :model_type, const: :grouped_allocation @@ -3782,7 +4189,7 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # # @param fixed_price_quantity [Float, nil] # - # @param grouped_allocation_config [Hash{Symbol=>Object}] + # @param grouped_allocation_config [Orb::Models::Price::GroupedAllocation::GroupedAllocationConfig] Configuration for grouped_allocation pricing # # @param invoicing_cycle_configuration [Orb::Models::BillingCycleConfiguration, nil] # @@ -3808,7 +4215,7 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] # - # @param model_type [Symbol, :grouped_allocation] + # @param model_type [Symbol, :grouped_allocation] The pricing model type # @see Orb::Models::Price::GroupedAllocation#cadence module Cadence @@ -3825,6 +4232,36 @@ module Cadence # @return [Array] end + # @see Orb::Models::Price::GroupedAllocation#grouped_allocation_config + class GroupedAllocationConfig < Orb::Internal::Type::BaseModel + # @!attribute allocation + # Usage allocation per group + # + # @return [String] + required :allocation, String + + # @!attribute grouping_key + # How to determine the groups that should each be allocated some quantity + # + # @return [String] + required :grouping_key, String + + # @!attribute overage_unit_rate + # Unit rate for post-allocation + # + # @return [String] + required :overage_unit_rate, String + + # @!method initialize(allocation:, grouping_key:, overage_unit_rate:) + # Configuration for grouped_allocation pricing + # + # @param allocation [String] Usage allocation per group + # + # @param grouping_key [String] How to determine the groups that should each be allocated some quantity + # + # @param overage_unit_rate [String] Unit rate for post-allocation + end + # @see Orb::Models::Price::GroupedAllocation#price_type module PriceType extend Orb::Internal::Type::Enum @@ -3837,7 +4274,7 @@ module PriceType end end - class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel + class BulkWithProration < Orb::Internal::Type::BaseModel # @!attribute id # # @return [String] @@ -3853,10 +4290,16 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # @return [Orb::Models::BillingCycleConfiguration] required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } + # @!attribute bulk_with_proration_config + # Configuration for bulk_with_proration pricing + # + # @return [Orb::Models::Price::BulkWithProration::BulkWithProrationConfig] + required :bulk_with_proration_config, -> { Orb::Price::BulkWithProration::BulkWithProrationConfig } + # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::GroupedWithProratedMinimum::Cadence] - required :cadence, enum: -> { Orb::Price::GroupedWithProratedMinimum::Cadence } + # @return [Symbol, Orb::Models::Price::BulkWithProration::Cadence] + required :cadence, enum: -> { Orb::Price::BulkWithProration::Cadence } # @!attribute composite_price_filters # @@ -3874,7 +4317,7 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::GroupedWithProratedMinimum::ConversionRateConfig }, + union: -> { Orb::Price::BulkWithProration::ConversionRateConfig }, nil?: true # @!attribute created_at @@ -3908,11 +4351,6 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # @return [Float, nil] required :fixed_price_quantity, Float, nil?: true - # @!attribute grouped_with_prorated_minimum_config - # - # @return [Hash{Symbol=>Object}] - required :grouped_with_prorated_minimum_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] - # @!attribute invoicing_cycle_configuration # # @return [Orb::Models::BillingCycleConfiguration, nil] @@ -3957,9 +4395,10 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel required :minimum_amount, String, nil?: true # @!attribute model_type + # The pricing model type # - # @return [Symbol, :grouped_with_prorated_minimum] - required :model_type, const: :grouped_with_prorated_minimum + # @return [Symbol, :bulk_with_proration] + required :model_type, const: :bulk_with_proration # @!attribute name # @@ -3973,8 +4412,8 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::GroupedWithProratedMinimum::PriceType] - required :price_type, enum: -> { Orb::Price::GroupedWithProratedMinimum::PriceType } + # @return [Symbol, Orb::Models::Price::BulkWithProration::PriceType] + required :price_type, enum: -> { Orb::Price::BulkWithProration::PriceType } # @!attribute replaces_price_id # The price id this price replaces. This price will take the place of the replaced @@ -3988,9 +4427,9 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_with_prorated_minimum_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :grouped_with_prorated_minimum) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, bulk_with_proration_config:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :bulk_with_proration) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::GroupedWithProratedMinimum} for more details. + # {Orb::Models::Price::BulkWithProration} for more details. # # @param id [String] # @@ -3998,7 +4437,9 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::GroupedWithProratedMinimum::Cadence] + # @param bulk_with_proration_config [Orb::Models::Price::BulkWithProration::BulkWithProrationConfig] Configuration for bulk_with_proration pricing + # + # @param cadence [Symbol, Orb::Models::Price::BulkWithProration::Cadence] # # @param composite_price_filters [Array, nil] # @@ -4018,8 +4459,6 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # # @param fixed_price_quantity [Float, nil] # - # @param grouped_with_prorated_minimum_config [Hash{Symbol=>Object}] - # # @param invoicing_cycle_configuration [Orb::Models::BillingCycleConfiguration, nil] # # @param item [Orb::Models::ItemSlim] @@ -4038,15 +4477,51 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::GroupedWithProratedMinimum::PriceType] + # @param price_type [Symbol, Orb::Models::Price::BulkWithProration::PriceType] # # @param replaces_price_id [String, nil] The price id this price replaces. This price will take the place of the replaced # # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] # - # @param model_type [Symbol, :grouped_with_prorated_minimum] + # @param model_type [Symbol, :bulk_with_proration] The pricing model type - # @see Orb::Models::Price::GroupedWithProratedMinimum#cadence + # @see Orb::Models::Price::BulkWithProration#bulk_with_proration_config + class BulkWithProrationConfig < Orb::Internal::Type::BaseModel + # @!attribute tiers + # Bulk tiers for rating based on total usage volume + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::Price::BulkWithProration::BulkWithProrationConfig::Tier] } + + # @!method initialize(tiers:) + # Configuration for bulk_with_proration pricing + # + # @param tiers [Array] Bulk tiers for rating based on total usage volume + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute unit_amount + # Cost per unit + # + # @return [String] + required :unit_amount, String + + # @!attribute tier_lower_bound + # The lower bound for this tier + # + # @return [String, nil] + optional :tier_lower_bound, String, nil?: true + + # @!method initialize(unit_amount:, tier_lower_bound: nil) + # Configuration for a single bulk pricing tier with proration + # + # @param unit_amount [String] Cost per unit + # + # @param tier_lower_bound [String, nil] The lower bound for this tier + end + end + + # @see Orb::Models::Price::BulkWithProration#cadence module Cadence extend Orb::Internal::Type::Enum @@ -4061,7 +4536,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::GroupedWithProratedMinimum#price_type + # @see Orb::Models::Price::BulkWithProration#price_type module PriceType extend Orb::Internal::Type::Enum @@ -4073,7 +4548,7 @@ module PriceType end end - class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel + class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # @!attribute id # # @return [String] @@ -4091,8 +4566,8 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::GroupedWithMeteredMinimum::Cadence] - required :cadence, enum: -> { Orb::Price::GroupedWithMeteredMinimum::Cadence } + # @return [Symbol, Orb::Models::Price::GroupedWithProratedMinimum::Cadence] + required :cadence, enum: -> { Orb::Price::GroupedWithProratedMinimum::Cadence } # @!attribute composite_price_filters # @@ -4110,7 +4585,7 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::GroupedWithMeteredMinimum::ConversionRateConfig }, + union: -> { Orb::Price::GroupedWithProratedMinimum::ConversionRateConfig }, nil?: true # @!attribute created_at @@ -4144,10 +4619,12 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # @return [Float, nil] required :fixed_price_quantity, Float, nil?: true - # @!attribute grouped_with_metered_minimum_config + # @!attribute grouped_with_prorated_minimum_config + # Configuration for grouped_with_prorated_minimum pricing # - # @return [Hash{Symbol=>Object}] - required :grouped_with_metered_minimum_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::Price::GroupedWithProratedMinimum::GroupedWithProratedMinimumConfig] + required :grouped_with_prorated_minimum_config, + -> { Orb::Price::GroupedWithProratedMinimum::GroupedWithProratedMinimumConfig } # @!attribute invoicing_cycle_configuration # @@ -4193,9 +4670,10 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel required :minimum_amount, String, nil?: true # @!attribute model_type + # The pricing model type # - # @return [Symbol, :grouped_with_metered_minimum] - required :model_type, const: :grouped_with_metered_minimum + # @return [Symbol, :grouped_with_prorated_minimum] + required :model_type, const: :grouped_with_prorated_minimum # @!attribute name # @@ -4209,8 +4687,8 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::GroupedWithMeteredMinimum::PriceType] - required :price_type, enum: -> { Orb::Price::GroupedWithMeteredMinimum::PriceType } + # @return [Symbol, Orb::Models::Price::GroupedWithProratedMinimum::PriceType] + required :price_type, enum: -> { Orb::Price::GroupedWithProratedMinimum::PriceType } # @!attribute replaces_price_id # The price id this price replaces. This price will take the place of the replaced @@ -4224,9 +4702,9 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_with_metered_minimum_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :grouped_with_metered_minimum) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_with_prorated_minimum_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :grouped_with_prorated_minimum) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::GroupedWithMeteredMinimum} for more details. + # {Orb::Models::Price::GroupedWithProratedMinimum} for more details. # # @param id [String] # @@ -4234,7 +4712,7 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::GroupedWithMeteredMinimum::Cadence] + # @param cadence [Symbol, Orb::Models::Price::GroupedWithProratedMinimum::Cadence] # # @param composite_price_filters [Array, nil] # @@ -4254,7 +4732,7 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # # @param fixed_price_quantity [Float, nil] # - # @param grouped_with_metered_minimum_config [Hash{Symbol=>Object}] + # @param grouped_with_prorated_minimum_config [Orb::Models::Price::GroupedWithProratedMinimum::GroupedWithProratedMinimumConfig] Configuration for grouped_with_prorated_minimum pricing # # @param invoicing_cycle_configuration [Orb::Models::BillingCycleConfiguration, nil] # @@ -4274,15 +4752,15 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::GroupedWithMeteredMinimum::PriceType] + # @param price_type [Symbol, Orb::Models::Price::GroupedWithProratedMinimum::PriceType] # # @param replaces_price_id [String, nil] The price id this price replaces. This price will take the place of the replaced # # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] # - # @param model_type [Symbol, :grouped_with_metered_minimum] + # @param model_type [Symbol, :grouped_with_prorated_minimum] The pricing model type - # @see Orb::Models::Price::GroupedWithMeteredMinimum#cadence + # @see Orb::Models::Price::GroupedWithProratedMinimum#cadence module Cadence extend Orb::Internal::Type::Enum @@ -4297,7 +4775,37 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::GroupedWithMeteredMinimum#price_type + # @see Orb::Models::Price::GroupedWithProratedMinimum#grouped_with_prorated_minimum_config + class GroupedWithProratedMinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # How to determine the groups that should each have a minimum + # + # @return [String] + required :grouping_key, String + + # @!attribute minimum + # The minimum amount to charge per group + # + # @return [String] + required :minimum, String + + # @!attribute unit_rate + # The amount to charge per unit + # + # @return [String] + required :unit_rate, String + + # @!method initialize(grouping_key:, minimum:, unit_rate:) + # Configuration for grouped_with_prorated_minimum pricing + # + # @param grouping_key [String] How to determine the groups that should each have a minimum + # + # @param minimum [String] The minimum amount to charge per group + # + # @param unit_rate [String] The amount to charge per unit + end + + # @see Orb::Models::Price::GroupedWithProratedMinimum#price_type module PriceType extend Orb::Internal::Type::Enum @@ -4309,7 +4817,7 @@ module PriceType end end - class MatrixWithDisplayName < Orb::Internal::Type::BaseModel + class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # @!attribute id # # @return [String] @@ -4327,8 +4835,8 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::MatrixWithDisplayName::Cadence] - required :cadence, enum: -> { Orb::Price::MatrixWithDisplayName::Cadence } + # @return [Symbol, Orb::Models::Price::GroupedWithMeteredMinimum::Cadence] + required :cadence, enum: -> { Orb::Price::GroupedWithMeteredMinimum::Cadence } # @!attribute composite_price_filters # @@ -4346,7 +4854,7 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::MatrixWithDisplayName::ConversionRateConfig }, + union: -> { Orb::Price::GroupedWithMeteredMinimum::ConversionRateConfig }, nil?: true # @!attribute created_at @@ -4380,6 +4888,13 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @return [Float, nil] required :fixed_price_quantity, Float, nil?: true + # @!attribute grouped_with_metered_minimum_config + # Configuration for grouped_with_metered_minimum pricing + # + # @return [Orb::Models::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig] + required :grouped_with_metered_minimum_config, + -> { Orb::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig } + # @!attribute invoicing_cycle_configuration # # @return [Orb::Models::BillingCycleConfiguration, nil] @@ -4390,11 +4905,6 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @return [Orb::Models::ItemSlim] required :item, -> { Orb::ItemSlim } - # @!attribute matrix_with_display_name_config - # - # @return [Hash{Symbol=>Object}] - required :matrix_with_display_name_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] - # @!attribute maximum # @deprecated # @@ -4429,9 +4939,10 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel required :minimum_amount, String, nil?: true # @!attribute model_type + # The pricing model type # - # @return [Symbol, :matrix_with_display_name] - required :model_type, const: :matrix_with_display_name + # @return [Symbol, :grouped_with_metered_minimum] + required :model_type, const: :grouped_with_metered_minimum # @!attribute name # @@ -4445,8 +4956,8 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::MatrixWithDisplayName::PriceType] - required :price_type, enum: -> { Orb::Price::MatrixWithDisplayName::PriceType } + # @return [Symbol, Orb::Models::Price::GroupedWithMeteredMinimum::PriceType] + required :price_type, enum: -> { Orb::Price::GroupedWithMeteredMinimum::PriceType } # @!attribute replaces_price_id # The price id this price replaces. This price will take the place of the replaced @@ -4460,9 +4971,9 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, matrix_with_display_name_config:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :matrix_with_display_name) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_with_metered_minimum_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :grouped_with_metered_minimum) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::MatrixWithDisplayName} for more details. + # {Orb::Models::Price::GroupedWithMeteredMinimum} for more details. # # @param id [String] # @@ -4470,7 +4981,7 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::MatrixWithDisplayName::Cadence] + # @param cadence [Symbol, Orb::Models::Price::GroupedWithMeteredMinimum::Cadence] # # @param composite_price_filters [Array, nil] # @@ -4490,12 +5001,12 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # # @param fixed_price_quantity [Float, nil] # + # @param grouped_with_metered_minimum_config [Orb::Models::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig] Configuration for grouped_with_metered_minimum pricing + # # @param invoicing_cycle_configuration [Orb::Models::BillingCycleConfiguration, nil] # # @param item [Orb::Models::ItemSlim] # - # @param matrix_with_display_name_config [Hash{Symbol=>Object}] - # # @param maximum [Orb::Models::Maximum, nil] # # @param maximum_amount [String, nil] @@ -4510,15 +5021,15 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::MatrixWithDisplayName::PriceType] + # @param price_type [Symbol, Orb::Models::Price::GroupedWithMeteredMinimum::PriceType] # # @param replaces_price_id [String, nil] The price id this price replaces. This price will take the place of the replaced # # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] # - # @param model_type [Symbol, :matrix_with_display_name] + # @param model_type [Symbol, :grouped_with_metered_minimum] The pricing model type - # @see Orb::Models::Price::MatrixWithDisplayName#cadence + # @see Orb::Models::Price::GroupedWithMeteredMinimum#cadence module Cadence extend Orb::Internal::Type::Enum @@ -4533,19 +5044,123 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::MatrixWithDisplayName#price_type - module PriceType - extend Orb::Internal::Type::Enum - - USAGE_PRICE = :usage_price - FIXED_PRICE = :fixed_price + # @see Orb::Models::Price::GroupedWithMeteredMinimum#grouped_with_metered_minimum_config + class GroupedWithMeteredMinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # Used to partition the usage into groups. The minimum amount is applied to each + # group. + # + # @return [String] + required :grouping_key, String + + # @!attribute minimum_unit_amount + # The minimum amount to charge per group per unit + # + # @return [String] + required :minimum_unit_amount, String + + # @!attribute pricing_key + # Used to determine the unit rate + # + # @return [String] + required :pricing_key, String + + # @!attribute scaling_factors + # Scale the unit rates by the scaling factor. + # + # @return [Array] + required :scaling_factors, + -> { Orb::Internal::Type::ArrayOf[Orb::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig::ScalingFactor] } + + # @!attribute scaling_key + # Used to determine the unit rate scaling factor + # + # @return [String] + required :scaling_key, String + + # @!attribute unit_amounts + # Apply per unit pricing to each pricing value. The minimum amount is applied any + # unmatched usage. + # + # @return [Array] + required :unit_amounts, + -> { Orb::Internal::Type::ArrayOf[Orb::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig::UnitAmount] } + + # @!method initialize(grouping_key:, minimum_unit_amount:, pricing_key:, scaling_factors:, scaling_key:, unit_amounts:) + # Some parameter documentations has been truncated, see + # {Orb::Models::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig} + # for more details. + # + # Configuration for grouped_with_metered_minimum pricing + # + # @param grouping_key [String] Used to partition the usage into groups. The minimum amount is applied to each g + # + # @param minimum_unit_amount [String] The minimum amount to charge per group per unit + # + # @param pricing_key [String] Used to determine the unit rate + # + # @param scaling_factors [Array] Scale the unit rates by the scaling factor. + # + # @param scaling_key [String] Used to determine the unit rate scaling factor + # + # @param unit_amounts [Array] Apply per unit pricing to each pricing value. The minimum amount is applied any + + class ScalingFactor < Orb::Internal::Type::BaseModel + # @!attribute scaling_factor + # Scaling factor + # + # @return [String] + required :scaling_factor, String + + # @!attribute scaling_value + # Scaling value + # + # @return [String] + required :scaling_value, String + + # @!method initialize(scaling_factor:, scaling_value:) + # Configuration for a scaling factor + # + # @param scaling_factor [String] Scaling factor + # + # @param scaling_value [String] Scaling value + end + + class UnitAmount < Orb::Internal::Type::BaseModel + # @!attribute pricing_value + # Pricing value + # + # @return [String] + required :pricing_value, String + + # @!attribute unit_amount + # Per unit amount + # + # @return [String] + required :unit_amount, String + + # @!method initialize(pricing_value:, unit_amount:) + # Configuration for a unit amount + # + # @param pricing_value [String] Pricing value + # + # @param unit_amount [String] Per unit amount + end + end + + # @see Orb::Models::Price::GroupedWithMeteredMinimum#price_type + module PriceType + extend Orb::Internal::Type::Enum + + USAGE_PRICE = :usage_price + FIXED_PRICE = :fixed_price # @!method self.values # @return [Array] end end - class BulkWithProration < Orb::Internal::Type::BaseModel + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @!attribute id # # @return [String] @@ -4561,15 +5176,10 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # @return [Orb::Models::BillingCycleConfiguration] required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } - # @!attribute bulk_with_proration_config - # - # @return [Hash{Symbol=>Object}] - required :bulk_with_proration_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] - # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::BulkWithProration::Cadence] - required :cadence, enum: -> { Orb::Price::BulkWithProration::Cadence } + # @return [Symbol, Orb::Models::Price::GroupedWithMinMaxThresholds::Cadence] + required :cadence, enum: -> { Orb::Price::GroupedWithMinMaxThresholds::Cadence } # @!attribute composite_price_filters # @@ -4587,7 +5197,7 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::BulkWithProration::ConversionRateConfig }, + union: -> { Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig }, nil?: true # @!attribute created_at @@ -4621,6 +5231,13 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # @return [Float, nil] required :fixed_price_quantity, Float, nil?: true + # @!attribute grouped_with_min_max_thresholds_config + # Configuration for grouped_with_min_max_thresholds pricing + # + # @return [Orb::Models::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig] + required :grouped_with_min_max_thresholds_config, + -> { Orb::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig } + # @!attribute invoicing_cycle_configuration # # @return [Orb::Models::BillingCycleConfiguration, nil] @@ -4665,9 +5282,10 @@ class BulkWithProration < Orb::Internal::Type::BaseModel required :minimum_amount, String, nil?: true # @!attribute model_type + # The pricing model type # - # @return [Symbol, :bulk_with_proration] - required :model_type, const: :bulk_with_proration + # @return [Symbol, :grouped_with_min_max_thresholds] + required :model_type, const: :grouped_with_min_max_thresholds # @!attribute name # @@ -4681,8 +5299,8 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::BulkWithProration::PriceType] - required :price_type, enum: -> { Orb::Price::BulkWithProration::PriceType } + # @return [Symbol, Orb::Models::Price::GroupedWithMinMaxThresholds::PriceType] + required :price_type, enum: -> { Orb::Price::GroupedWithMinMaxThresholds::PriceType } # @!attribute replaces_price_id # The price id this price replaces. This price will take the place of the replaced @@ -4696,9 +5314,9 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, bulk_with_proration_config:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :bulk_with_proration) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_with_min_max_thresholds_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :grouped_with_min_max_thresholds) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::BulkWithProration} for more details. + # {Orb::Models::Price::GroupedWithMinMaxThresholds} for more details. # # @param id [String] # @@ -4706,9 +5324,7 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # - # @param bulk_with_proration_config [Hash{Symbol=>Object}] - # - # @param cadence [Symbol, Orb::Models::Price::BulkWithProration::Cadence] + # @param cadence [Symbol, Orb::Models::Price::GroupedWithMinMaxThresholds::Cadence] # # @param composite_price_filters [Array, nil] # @@ -4728,6 +5344,8 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # # @param fixed_price_quantity [Float, nil] # + # @param grouped_with_min_max_thresholds_config [Orb::Models::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig] Configuration for grouped_with_min_max_thresholds pricing + # # @param invoicing_cycle_configuration [Orb::Models::BillingCycleConfiguration, nil] # # @param item [Orb::Models::ItemSlim] @@ -4746,15 +5364,15 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::BulkWithProration::PriceType] + # @param price_type [Symbol, Orb::Models::Price::GroupedWithMinMaxThresholds::PriceType] # # @param replaces_price_id [String, nil] The price id this price replaces. This price will take the place of the replaced # # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] # - # @param model_type [Symbol, :bulk_with_proration] + # @param model_type [Symbol, :grouped_with_min_max_thresholds] The pricing model type - # @see Orb::Models::Price::BulkWithProration#cadence + # @see Orb::Models::Price::GroupedWithMinMaxThresholds#cadence module Cadence extend Orb::Internal::Type::Enum @@ -4769,7 +5387,45 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::BulkWithProration#price_type + # @see Orb::Models::Price::GroupedWithMinMaxThresholds#grouped_with_min_max_thresholds_config + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # The event property used to group before applying thresholds + # + # @return [String] + required :grouping_key, String + + # @!attribute maximum_charge + # The maximum amount to charge each group + # + # @return [String] + required :maximum_charge, String + + # @!attribute minimum_charge + # The minimum amount to charge each group, regardless of usage + # + # @return [String] + required :minimum_charge, String + + # @!attribute per_unit_rate + # The base price charged per group + # + # @return [String] + required :per_unit_rate, String + + # @!method initialize(grouping_key:, maximum_charge:, minimum_charge:, per_unit_rate:) + # Configuration for grouped_with_min_max_thresholds pricing + # + # @param grouping_key [String] The event property used to group before applying thresholds + # + # @param maximum_charge [String] The maximum amount to charge each group + # + # @param minimum_charge [String] The minimum amount to charge each group, regardless of usage + # + # @param per_unit_rate [String] The base price charged per group + end + + # @see Orb::Models::Price::GroupedWithMinMaxThresholds#price_type module PriceType extend Orb::Internal::Type::Enum @@ -4781,7 +5437,7 @@ module PriceType end end - class GroupedTieredPackage < Orb::Internal::Type::BaseModel + class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @!attribute id # # @return [String] @@ -4799,8 +5455,8 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::GroupedTieredPackage::Cadence] - required :cadence, enum: -> { Orb::Price::GroupedTieredPackage::Cadence } + # @return [Symbol, Orb::Models::Price::MatrixWithDisplayName::Cadence] + required :cadence, enum: -> { Orb::Price::MatrixWithDisplayName::Cadence } # @!attribute composite_price_filters # @@ -4818,7 +5474,7 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::GroupedTieredPackage::ConversionRateConfig }, + union: -> { Orb::Price::MatrixWithDisplayName::ConversionRateConfig }, nil?: true # @!attribute created_at @@ -4852,11 +5508,6 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # @return [Float, nil] required :fixed_price_quantity, Float, nil?: true - # @!attribute grouped_tiered_package_config - # - # @return [Hash{Symbol=>Object}] - required :grouped_tiered_package_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] - # @!attribute invoicing_cycle_configuration # # @return [Orb::Models::BillingCycleConfiguration, nil] @@ -4867,6 +5518,13 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # @return [Orb::Models::ItemSlim] required :item, -> { Orb::ItemSlim } + # @!attribute matrix_with_display_name_config + # Configuration for matrix_with_display_name pricing + # + # @return [Orb::Models::Price::MatrixWithDisplayName::MatrixWithDisplayNameConfig] + required :matrix_with_display_name_config, + -> { Orb::Price::MatrixWithDisplayName::MatrixWithDisplayNameConfig } + # @!attribute maximum # @deprecated # @@ -4901,9 +5559,10 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel required :minimum_amount, String, nil?: true # @!attribute model_type + # The pricing model type # - # @return [Symbol, :grouped_tiered_package] - required :model_type, const: :grouped_tiered_package + # @return [Symbol, :matrix_with_display_name] + required :model_type, const: :matrix_with_display_name # @!attribute name # @@ -4917,8 +5576,8 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::GroupedTieredPackage::PriceType] - required :price_type, enum: -> { Orb::Price::GroupedTieredPackage::PriceType } + # @return [Symbol, Orb::Models::Price::MatrixWithDisplayName::PriceType] + required :price_type, enum: -> { Orb::Price::MatrixWithDisplayName::PriceType } # @!attribute replaces_price_id # The price id this price replaces. This price will take the place of the replaced @@ -4932,9 +5591,9 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_tiered_package_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :grouped_tiered_package) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, matrix_with_display_name_config:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :matrix_with_display_name) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::GroupedTieredPackage} for more details. + # {Orb::Models::Price::MatrixWithDisplayName} for more details. # # @param id [String] # @@ -4942,7 +5601,7 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::GroupedTieredPackage::Cadence] + # @param cadence [Symbol, Orb::Models::Price::MatrixWithDisplayName::Cadence] # # @param composite_price_filters [Array, nil] # @@ -4962,12 +5621,12 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # # @param fixed_price_quantity [Float, nil] # - # @param grouped_tiered_package_config [Hash{Symbol=>Object}] - # # @param invoicing_cycle_configuration [Orb::Models::BillingCycleConfiguration, nil] # # @param item [Orb::Models::ItemSlim] # + # @param matrix_with_display_name_config [Orb::Models::Price::MatrixWithDisplayName::MatrixWithDisplayNameConfig] Configuration for matrix_with_display_name pricing + # # @param maximum [Orb::Models::Maximum, nil] # # @param maximum_amount [String, nil] @@ -4982,15 +5641,15 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::GroupedTieredPackage::PriceType] + # @param price_type [Symbol, Orb::Models::Price::MatrixWithDisplayName::PriceType] # # @param replaces_price_id [String, nil] The price id this price replaces. This price will take the place of the replaced # # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] # - # @param model_type [Symbol, :grouped_tiered_package] + # @param model_type [Symbol, :matrix_with_display_name] The pricing model type - # @see Orb::Models::Price::GroupedTieredPackage#cadence + # @see Orb::Models::Price::MatrixWithDisplayName#cadence module Cadence extend Orb::Internal::Type::Enum @@ -5005,7 +5664,59 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::GroupedTieredPackage#price_type + # @see Orb::Models::Price::MatrixWithDisplayName#matrix_with_display_name_config + class MatrixWithDisplayNameConfig < Orb::Internal::Type::BaseModel + # @!attribute dimension + # Used to determine the unit rate + # + # @return [String] + required :dimension, String + + # @!attribute unit_amounts + # Apply per unit pricing to each dimension value + # + # @return [Array] + required :unit_amounts, + -> { Orb::Internal::Type::ArrayOf[Orb::Price::MatrixWithDisplayName::MatrixWithDisplayNameConfig::UnitAmount] } + + # @!method initialize(dimension:, unit_amounts:) + # Configuration for matrix_with_display_name pricing + # + # @param dimension [String] Used to determine the unit rate + # + # @param unit_amounts [Array] Apply per unit pricing to each dimension value + + class UnitAmount < Orb::Internal::Type::BaseModel + # @!attribute dimension_value + # The dimension value + # + # @return [String] + required :dimension_value, String + + # @!attribute display_name + # Display name for this dimension value + # + # @return [String] + required :display_name, String + + # @!attribute unit_amount + # Per unit amount + # + # @return [String] + required :unit_amount, String + + # @!method initialize(dimension_value:, display_name:, unit_amount:) + # Configuration for a unit amount item + # + # @param dimension_value [String] The dimension value + # + # @param display_name [String] Display name for this dimension value + # + # @param unit_amount [String] Per unit amount + end + end + + # @see Orb::Models::Price::MatrixWithDisplayName#price_type module PriceType extend Orb::Internal::Type::Enum @@ -5017,7 +5728,7 @@ module PriceType end end - class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel + class GroupedTieredPackage < Orb::Internal::Type::BaseModel # @!attribute id # # @return [String] @@ -5035,8 +5746,8 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::MaxGroupTieredPackage::Cadence] - required :cadence, enum: -> { Orb::Price::MaxGroupTieredPackage::Cadence } + # @return [Symbol, Orb::Models::Price::GroupedTieredPackage::Cadence] + required :cadence, enum: -> { Orb::Price::GroupedTieredPackage::Cadence } # @!attribute composite_price_filters # @@ -5054,7 +5765,7 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::MaxGroupTieredPackage::ConversionRateConfig }, + union: -> { Orb::Price::GroupedTieredPackage::ConversionRateConfig }, nil?: true # @!attribute created_at @@ -5088,6 +5799,13 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @return [Float, nil] required :fixed_price_quantity, Float, nil?: true + # @!attribute grouped_tiered_package_config + # Configuration for grouped_tiered_package pricing + # + # @return [Orb::Models::Price::GroupedTieredPackage::GroupedTieredPackageConfig] + required :grouped_tiered_package_config, + -> { Orb::Price::GroupedTieredPackage::GroupedTieredPackageConfig } + # @!attribute invoicing_cycle_configuration # # @return [Orb::Models::BillingCycleConfiguration, nil] @@ -5098,11 +5816,6 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @return [Orb::Models::ItemSlim] required :item, -> { Orb::ItemSlim } - # @!attribute max_group_tiered_package_config - # - # @return [Hash{Symbol=>Object}] - required :max_group_tiered_package_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] - # @!attribute maximum # @deprecated # @@ -5137,9 +5850,10 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel required :minimum_amount, String, nil?: true # @!attribute model_type + # The pricing model type # - # @return [Symbol, :max_group_tiered_package] - required :model_type, const: :max_group_tiered_package + # @return [Symbol, :grouped_tiered_package] + required :model_type, const: :grouped_tiered_package # @!attribute name # @@ -5153,8 +5867,8 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::MaxGroupTieredPackage::PriceType] - required :price_type, enum: -> { Orb::Price::MaxGroupTieredPackage::PriceType } + # @return [Symbol, Orb::Models::Price::GroupedTieredPackage::PriceType] + required :price_type, enum: -> { Orb::Price::GroupedTieredPackage::PriceType } # @!attribute replaces_price_id # The price id this price replaces. This price will take the place of the replaced @@ -5168,9 +5882,9 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, max_group_tiered_package_config:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :max_group_tiered_package) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_tiered_package_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :grouped_tiered_package) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::MaxGroupTieredPackage} for more details. + # {Orb::Models::Price::GroupedTieredPackage} for more details. # # @param id [String] # @@ -5178,7 +5892,7 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::MaxGroupTieredPackage::Cadence] + # @param cadence [Symbol, Orb::Models::Price::GroupedTieredPackage::Cadence] # # @param composite_price_filters [Array, nil] # @@ -5198,12 +5912,12 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # # @param fixed_price_quantity [Float, nil] # + # @param grouped_tiered_package_config [Orb::Models::Price::GroupedTieredPackage::GroupedTieredPackageConfig] Configuration for grouped_tiered_package pricing + # # @param invoicing_cycle_configuration [Orb::Models::BillingCycleConfiguration, nil] # # @param item [Orb::Models::ItemSlim] # - # @param max_group_tiered_package_config [Hash{Symbol=>Object}] - # # @param maximum [Orb::Models::Maximum, nil] # # @param maximum_amount [String, nil] @@ -5218,15 +5932,15 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::MaxGroupTieredPackage::PriceType] + # @param price_type [Symbol, Orb::Models::Price::GroupedTieredPackage::PriceType] # # @param replaces_price_id [String, nil] The price id this price replaces. This price will take the place of the replaced # # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] # - # @param model_type [Symbol, :max_group_tiered_package] + # @param model_type [Symbol, :grouped_tiered_package] The pricing model type - # @see Orb::Models::Price::MaxGroupTieredPackage#cadence + # @see Orb::Models::Price::GroupedTieredPackage#cadence module Cadence extend Orb::Internal::Type::Enum @@ -5241,7 +5955,64 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::MaxGroupTieredPackage#price_type + # @see Orb::Models::Price::GroupedTieredPackage#grouped_tiered_package_config + class GroupedTieredPackageConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # The event property used to group before tiering + # + # @return [String] + required :grouping_key, String + + # @!attribute package_size + # Package size + # + # @return [String] + required :package_size, String + + # @!attribute tiers + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::Price::GroupedTieredPackage::GroupedTieredPackageConfig::Tier] } + + # @!method initialize(grouping_key:, package_size:, tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::Price::GroupedTieredPackage::GroupedTieredPackageConfig} for more + # details. + # + # Configuration for grouped_tiered_package pricing + # + # @param grouping_key [String] The event property used to group before tiering + # + # @param package_size [String] Package size + # + # @param tiers [Array] Apply tiered pricing after rounding up the quantity to the package size. Tiers a + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute per_unit + # Price per package + # + # @return [String] + required :per_unit, String + + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!method initialize(per_unit:, tier_lower_bound:) + # Configuration for a single tier + # + # @param per_unit [String] Price per package + # + # @param tier_lower_bound [String] Tier lower bound + end + end + + # @see Orb::Models::Price::GroupedTieredPackage#price_type module PriceType extend Orb::Internal::Type::Enum @@ -5253,7 +6024,7 @@ module PriceType end end - class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel + class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @!attribute id # # @return [String] @@ -5271,8 +6042,8 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricing::Cadence] - required :cadence, enum: -> { Orb::Price::ScalableMatrixWithUnitPricing::Cadence } + # @return [Symbol, Orb::Models::Price::MaxGroupTieredPackage::Cadence] + required :cadence, enum: -> { Orb::Price::MaxGroupTieredPackage::Cadence } # @!attribute composite_price_filters # @@ -5290,7 +6061,7 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::ScalableMatrixWithUnitPricing::ConversionRateConfig }, + union: -> { Orb::Price::MaxGroupTieredPackage::ConversionRateConfig }, nil?: true # @!attribute created_at @@ -5334,6 +6105,13 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # @return [Orb::Models::ItemSlim] required :item, -> { Orb::ItemSlim } + # @!attribute max_group_tiered_package_config + # Configuration for max_group_tiered_package pricing + # + # @return [Orb::Models::Price::MaxGroupTieredPackage::MaxGroupTieredPackageConfig] + required :max_group_tiered_package_config, + -> { Orb::Price::MaxGroupTieredPackage::MaxGroupTieredPackageConfig } + # @!attribute maximum # @deprecated # @@ -5368,9 +6146,10 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel required :minimum_amount, String, nil?: true # @!attribute model_type + # The pricing model type # - # @return [Symbol, :scalable_matrix_with_unit_pricing] - required :model_type, const: :scalable_matrix_with_unit_pricing + # @return [Symbol, :max_group_tiered_package] + required :model_type, const: :max_group_tiered_package # @!attribute name # @@ -5384,8 +6163,8 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricing::PriceType] - required :price_type, enum: -> { Orb::Price::ScalableMatrixWithUnitPricing::PriceType } + # @return [Symbol, Orb::Models::Price::MaxGroupTieredPackage::PriceType] + required :price_type, enum: -> { Orb::Price::MaxGroupTieredPackage::PriceType } # @!attribute replaces_price_id # The price id this price replaces. This price will take the place of the replaced @@ -5394,20 +6173,14 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # @return [String, nil] required :replaces_price_id, String, nil?: true - # @!attribute scalable_matrix_with_unit_pricing_config - # - # @return [Hash{Symbol=>Object}] - required :scalable_matrix_with_unit_pricing_config, - Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] - # @!attribute dimensional_price_configuration # # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, scalable_matrix_with_unit_pricing_config:, dimensional_price_configuration: nil, model_type: :scalable_matrix_with_unit_pricing) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, max_group_tiered_package_config:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :max_group_tiered_package) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::ScalableMatrixWithUnitPricing} for more details. + # {Orb::Models::Price::MaxGroupTieredPackage} for more details. # # @param id [String] # @@ -5415,7 +6188,7 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricing::Cadence] + # @param cadence [Symbol, Orb::Models::Price::MaxGroupTieredPackage::Cadence] # # @param composite_price_filters [Array, nil] # @@ -5439,6 +6212,8 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # # @param item [Orb::Models::ItemSlim] # + # @param max_group_tiered_package_config [Orb::Models::Price::MaxGroupTieredPackage::MaxGroupTieredPackageConfig] Configuration for max_group_tiered_package pricing + # # @param maximum [Orb::Models::Maximum, nil] # # @param maximum_amount [String, nil] @@ -5453,17 +6228,15 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricing::PriceType] + # @param price_type [Symbol, Orb::Models::Price::MaxGroupTieredPackage::PriceType] # # @param replaces_price_id [String, nil] The price id this price replaces. This price will take the place of the replaced # - # @param scalable_matrix_with_unit_pricing_config [Hash{Symbol=>Object}] - # # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] # - # @param model_type [Symbol, :scalable_matrix_with_unit_pricing] + # @param model_type [Symbol, :max_group_tiered_package] The pricing model type - # @see Orb::Models::Price::ScalableMatrixWithUnitPricing#cadence + # @see Orb::Models::Price::MaxGroupTieredPackage#cadence module Cadence extend Orb::Internal::Type::Enum @@ -5478,7 +6251,63 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::ScalableMatrixWithUnitPricing#price_type + # @see Orb::Models::Price::MaxGroupTieredPackage#max_group_tiered_package_config + class MaxGroupTieredPackageConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # The event property used to group before tiering the group with the highest value + # + # @return [String] + required :grouping_key, String + + # @!attribute package_size + # Package size + # + # @return [String] + required :package_size, String + + # @!attribute tiers + # Apply tiered pricing to the largest group after grouping with the provided key. + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::Price::MaxGroupTieredPackage::MaxGroupTieredPackageConfig::Tier] } + + # @!method initialize(grouping_key:, package_size:, tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::Price::MaxGroupTieredPackage::MaxGroupTieredPackageConfig} for + # more details. + # + # Configuration for max_group_tiered_package pricing + # + # @param grouping_key [String] The event property used to group before tiering the group with the highest value + # + # @param package_size [String] Package size + # + # @param tiers [Array] Apply tiered pricing to the largest group after grouping with the provided key. + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Per unit amount + # + # @return [String] + required :unit_amount, String + + # @!method initialize(tier_lower_bound:, unit_amount:) + # Configuration for a single tier + # + # @param tier_lower_bound [String] Tier lower bound + # + # @param unit_amount [String] Per unit amount + end + end + + # @see Orb::Models::Price::MaxGroupTieredPackage#price_type module PriceType extend Orb::Internal::Type::Enum @@ -5490,7 +6319,7 @@ module PriceType end end - class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel + class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # @!attribute id # # @return [String] @@ -5508,8 +6337,8 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricing::Cadence] - required :cadence, enum: -> { Orb::Price::ScalableMatrixWithTieredPricing::Cadence } + # @return [Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricing::Cadence] + required :cadence, enum: -> { Orb::Price::ScalableMatrixWithUnitPricing::Cadence } # @!attribute composite_price_filters # @@ -5527,7 +6356,7 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::ScalableMatrixWithTieredPricing::ConversionRateConfig }, + union: -> { Orb::Price::ScalableMatrixWithUnitPricing::ConversionRateConfig }, nil?: true # @!attribute created_at @@ -5605,9 +6434,10 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel required :minimum_amount, String, nil?: true # @!attribute model_type + # The pricing model type # - # @return [Symbol, :scalable_matrix_with_tiered_pricing] - required :model_type, const: :scalable_matrix_with_tiered_pricing + # @return [Symbol, :scalable_matrix_with_unit_pricing] + required :model_type, const: :scalable_matrix_with_unit_pricing # @!attribute name # @@ -5621,8 +6451,8 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricing::PriceType] - required :price_type, enum: -> { Orb::Price::ScalableMatrixWithTieredPricing::PriceType } + # @return [Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricing::PriceType] + required :price_type, enum: -> { Orb::Price::ScalableMatrixWithUnitPricing::PriceType } # @!attribute replaces_price_id # The price id this price replaces. This price will take the place of the replaced @@ -5631,20 +6461,21 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # @return [String, nil] required :replaces_price_id, String, nil?: true - # @!attribute scalable_matrix_with_tiered_pricing_config + # @!attribute scalable_matrix_with_unit_pricing_config + # Configuration for scalable_matrix_with_unit_pricing pricing # - # @return [Hash{Symbol=>Object}] - required :scalable_matrix_with_tiered_pricing_config, - Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::Price::ScalableMatrixWithUnitPricing::ScalableMatrixWithUnitPricingConfig] + required :scalable_matrix_with_unit_pricing_config, + -> { Orb::Price::ScalableMatrixWithUnitPricing::ScalableMatrixWithUnitPricingConfig } # @!attribute dimensional_price_configuration # # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, scalable_matrix_with_tiered_pricing_config:, dimensional_price_configuration: nil, model_type: :scalable_matrix_with_tiered_pricing) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, scalable_matrix_with_unit_pricing_config:, dimensional_price_configuration: nil, model_type: :scalable_matrix_with_unit_pricing) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::ScalableMatrixWithTieredPricing} for more details. + # {Orb::Models::Price::ScalableMatrixWithUnitPricing} for more details. # # @param id [String] # @@ -5652,7 +6483,7 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricing::Cadence] + # @param cadence [Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricing::Cadence] # # @param composite_price_filters [Array, nil] # @@ -5690,17 +6521,17 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricing::PriceType] + # @param price_type [Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricing::PriceType] # # @param replaces_price_id [String, nil] The price id this price replaces. This price will take the place of the replaced # - # @param scalable_matrix_with_tiered_pricing_config [Hash{Symbol=>Object}] + # @param scalable_matrix_with_unit_pricing_config [Orb::Models::Price::ScalableMatrixWithUnitPricing::ScalableMatrixWithUnitPricingConfig] Configuration for scalable_matrix_with_unit_pricing pricing # # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] # - # @param model_type [Symbol, :scalable_matrix_with_tiered_pricing] + # @param model_type [Symbol, :scalable_matrix_with_unit_pricing] The pricing model type - # @see Orb::Models::Price::ScalableMatrixWithTieredPricing#cadence + # @see Orb::Models::Price::ScalableMatrixWithUnitPricing#cadence module Cadence extend Orb::Internal::Type::Enum @@ -5715,7 +6546,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::ScalableMatrixWithTieredPricing#price_type + # @see Orb::Models::Price::ScalableMatrixWithUnitPricing#price_type module PriceType extend Orb::Internal::Type::Enum @@ -5725,9 +6556,85 @@ module PriceType # @!method self.values # @return [Array] end + + # @see Orb::Models::Price::ScalableMatrixWithUnitPricing#scalable_matrix_with_unit_pricing_config + class ScalableMatrixWithUnitPricingConfig < Orb::Internal::Type::BaseModel + # @!attribute first_dimension + # Used to determine the unit rate + # + # @return [String] + required :first_dimension, String + + # @!attribute matrix_scaling_factors + # Apply a scaling factor to each dimension + # + # @return [Array] + required :matrix_scaling_factors, + -> { Orb::Internal::Type::ArrayOf[Orb::Price::ScalableMatrixWithUnitPricing::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor] } + + # @!attribute unit_price + # The final unit price to rate against the output of the matrix + # + # @return [String] + required :unit_price, String + + # @!attribute prorate + # If true, the unit price will be prorated to the billing period + # + # @return [Boolean, nil] + optional :prorate, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute second_dimension + # Used to determine the unit rate (optional) + # + # @return [String, nil] + optional :second_dimension, String, nil?: true + + # @!method initialize(first_dimension:, matrix_scaling_factors:, unit_price:, prorate: nil, second_dimension: nil) + # Configuration for scalable_matrix_with_unit_pricing pricing + # + # @param first_dimension [String] Used to determine the unit rate + # + # @param matrix_scaling_factors [Array] Apply a scaling factor to each dimension + # + # @param unit_price [String] The final unit price to rate against the output of the matrix + # + # @param prorate [Boolean, nil] If true, the unit price will be prorated to the billing period + # + # @param second_dimension [String, nil] Used to determine the unit rate (optional) + + class MatrixScalingFactor < Orb::Internal::Type::BaseModel + # @!attribute first_dimension_value + # First dimension value + # + # @return [String] + required :first_dimension_value, String + + # @!attribute scaling_factor + # Scaling factor + # + # @return [String] + required :scaling_factor, String + + # @!attribute second_dimension_value + # Second dimension value (optional) + # + # @return [String, nil] + optional :second_dimension_value, String, nil?: true + + # @!method initialize(first_dimension_value:, scaling_factor:, second_dimension_value: nil) + # Configuration for a single matrix scaling factor + # + # @param first_dimension_value [String] First dimension value + # + # @param scaling_factor [String] Scaling factor + # + # @param second_dimension_value [String, nil] Second dimension value (optional) + end + end end - class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel + class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # @!attribute id # # @return [String] @@ -5745,8 +6652,8 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::CumulativeGroupedBulk::Cadence] - required :cadence, enum: -> { Orb::Price::CumulativeGroupedBulk::Cadence } + # @return [Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricing::Cadence] + required :cadence, enum: -> { Orb::Price::ScalableMatrixWithTieredPricing::Cadence } # @!attribute composite_price_filters # @@ -5764,7 +6671,7 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::CumulativeGroupedBulk::ConversionRateConfig }, + union: -> { Orb::Price::ScalableMatrixWithTieredPricing::ConversionRateConfig }, nil?: true # @!attribute created_at @@ -5777,11 +6684,6 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # @return [Orb::Models::Allocation, nil] required :credit_allocation, -> { Orb::Allocation }, nil?: true - # @!attribute cumulative_grouped_bulk_config - # - # @return [Hash{Symbol=>Object}] - required :cumulative_grouped_bulk_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] - # @!attribute currency # # @return [String] @@ -5847,9 +6749,10 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel required :minimum_amount, String, nil?: true # @!attribute model_type + # The pricing model type # - # @return [Symbol, :cumulative_grouped_bulk] - required :model_type, const: :cumulative_grouped_bulk + # @return [Symbol, :scalable_matrix_with_tiered_pricing] + required :model_type, const: :scalable_matrix_with_tiered_pricing # @!attribute name # @@ -5863,8 +6766,8 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::CumulativeGroupedBulk::PriceType] - required :price_type, enum: -> { Orb::Price::CumulativeGroupedBulk::PriceType } + # @return [Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricing::PriceType] + required :price_type, enum: -> { Orb::Price::ScalableMatrixWithTieredPricing::PriceType } # @!attribute replaces_price_id # The price id this price replaces. This price will take the place of the replaced @@ -5873,14 +6776,21 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # @return [String, nil] required :replaces_price_id, String, nil?: true + # @!attribute scalable_matrix_with_tiered_pricing_config + # Configuration for scalable_matrix_with_tiered_pricing pricing + # + # @return [Orb::Models::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig] + required :scalable_matrix_with_tiered_pricing_config, + -> { Orb::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig } + # @!attribute dimensional_price_configuration # # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, cumulative_grouped_bulk_config:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :cumulative_grouped_bulk) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, scalable_matrix_with_tiered_pricing_config:, dimensional_price_configuration: nil, model_type: :scalable_matrix_with_tiered_pricing) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::CumulativeGroupedBulk} for more details. + # {Orb::Models::Price::ScalableMatrixWithTieredPricing} for more details. # # @param id [String] # @@ -5888,7 +6798,7 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::CumulativeGroupedBulk::Cadence] + # @param cadence [Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricing::Cadence] # # @param composite_price_filters [Array, nil] # @@ -5900,8 +6810,6 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # # @param credit_allocation [Orb::Models::Allocation, nil] # - # @param cumulative_grouped_bulk_config [Hash{Symbol=>Object}] - # # @param currency [String] # # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] @@ -5928,15 +6836,17 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::CumulativeGroupedBulk::PriceType] + # @param price_type [Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricing::PriceType] # # @param replaces_price_id [String, nil] The price id this price replaces. This price will take the place of the replaced # + # @param scalable_matrix_with_tiered_pricing_config [Orb::Models::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig] Configuration for scalable_matrix_with_tiered_pricing pricing + # # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] # - # @param model_type [Symbol, :cumulative_grouped_bulk] + # @param model_type [Symbol, :scalable_matrix_with_tiered_pricing] The pricing model type - # @see Orb::Models::Price::CumulativeGroupedBulk#cadence + # @see Orb::Models::Price::ScalableMatrixWithTieredPricing#cadence module Cadence extend Orb::Internal::Type::Enum @@ -5951,7 +6861,7 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::CumulativeGroupedBulk#price_type + # @see Orb::Models::Price::ScalableMatrixWithTieredPricing#price_type module PriceType extend Orb::Internal::Type::Enum @@ -5961,9 +6871,99 @@ module PriceType # @!method self.values # @return [Array] end + + # @see Orb::Models::Price::ScalableMatrixWithTieredPricing#scalable_matrix_with_tiered_pricing_config + class ScalableMatrixWithTieredPricingConfig < Orb::Internal::Type::BaseModel + # @!attribute first_dimension + # Used for the scalable matrix first dimension + # + # @return [String] + required :first_dimension, String + + # @!attribute matrix_scaling_factors + # Apply a scaling factor to each dimension + # + # @return [Array] + required :matrix_scaling_factors, + -> { Orb::Internal::Type::ArrayOf[Orb::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor] } + + # @!attribute tiers + # Tier pricing structure + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig::Tier] } + + # @!attribute second_dimension + # Used for the scalable matrix second dimension (optional) + # + # @return [String, nil] + optional :second_dimension, String, nil?: true + + # @!method initialize(first_dimension:, matrix_scaling_factors:, tiers:, second_dimension: nil) + # Configuration for scalable_matrix_with_tiered_pricing pricing + # + # @param first_dimension [String] Used for the scalable matrix first dimension + # + # @param matrix_scaling_factors [Array] Apply a scaling factor to each dimension + # + # @param tiers [Array] Tier pricing structure + # + # @param second_dimension [String, nil] Used for the scalable matrix second dimension (optional) + + class MatrixScalingFactor < Orb::Internal::Type::BaseModel + # @!attribute first_dimension_value + # First dimension value + # + # @return [String] + required :first_dimension_value, String + + # @!attribute scaling_factor + # Scaling factor + # + # @return [String] + required :scaling_factor, String + + # @!attribute second_dimension_value + # Second dimension value (optional) + # + # @return [String, nil] + optional :second_dimension_value, String, nil?: true + + # @!method initialize(first_dimension_value:, scaling_factor:, second_dimension_value: nil) + # Configuration for a single matrix scaling factor + # + # @param first_dimension_value [String] First dimension value + # + # @param scaling_factor [String] Scaling factor + # + # @param second_dimension_value [String, nil] Second dimension value (optional) + end + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Per unit amount + # + # @return [String] + required :unit_amount, String + + # @!method initialize(tier_lower_bound:, unit_amount:) + # Configuration for a single tier entry with business logic + # + # @param tier_lower_bound [String] Tier lower bound + # + # @param unit_amount [String] Per unit amount + end + end end - class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # @!attribute id # # @return [String] @@ -5981,8 +6981,8 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @!attribute cadence # - # @return [Symbol, Orb::Models::Price::GroupedWithMinMaxThresholds::Cadence] - required :cadence, enum: -> { Orb::Price::GroupedWithMinMaxThresholds::Cadence } + # @return [Symbol, Orb::Models::Price::CumulativeGroupedBulk::Cadence] + required :cadence, enum: -> { Orb::Price::CumulativeGroupedBulk::Cadence } # @!attribute composite_price_filters # @@ -6000,7 +7000,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] required :conversion_rate_config, - union: -> { Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig }, + union: -> { Orb::Price::CumulativeGroupedBulk::ConversionRateConfig }, nil?: true # @!attribute created_at @@ -6013,6 +7013,13 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @return [Orb::Models::Allocation, nil] required :credit_allocation, -> { Orb::Allocation }, nil?: true + # @!attribute cumulative_grouped_bulk_config + # Configuration for cumulative_grouped_bulk pricing + # + # @return [Orb::Models::Price::CumulativeGroupedBulk::CumulativeGroupedBulkConfig] + required :cumulative_grouped_bulk_config, + -> { Orb::Price::CumulativeGroupedBulk::CumulativeGroupedBulkConfig } + # @!attribute currency # # @return [String] @@ -6034,12 +7041,6 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @return [Float, nil] required :fixed_price_quantity, Float, nil?: true - # @!attribute grouped_with_min_max_thresholds_config - # - # @return [Hash{Symbol=>Object}] - required :grouped_with_min_max_thresholds_config, - Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] - # @!attribute invoicing_cycle_configuration # # @return [Orb::Models::BillingCycleConfiguration, nil] @@ -6084,9 +7085,10 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel required :minimum_amount, String, nil?: true # @!attribute model_type + # The pricing model type # - # @return [Symbol, :grouped_with_min_max_thresholds] - required :model_type, const: :grouped_with_min_max_thresholds + # @return [Symbol, :cumulative_grouped_bulk] + required :model_type, const: :cumulative_grouped_bulk # @!attribute name # @@ -6100,8 +7102,8 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @!attribute price_type # - # @return [Symbol, Orb::Models::Price::GroupedWithMinMaxThresholds::PriceType] - required :price_type, enum: -> { Orb::Price::GroupedWithMinMaxThresholds::PriceType } + # @return [Symbol, Orb::Models::Price::CumulativeGroupedBulk::PriceType] + required :price_type, enum: -> { Orb::Price::CumulativeGroupedBulk::PriceType } # @!attribute replaces_price_id # The price id this price replaces. This price will take the place of the replaced @@ -6115,9 +7117,9 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_with_min_max_thresholds_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :grouped_with_min_max_thresholds) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, cumulative_grouped_bulk_config:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :cumulative_grouped_bulk) # Some parameter documentations has been truncated, see - # {Orb::Models::Price::GroupedWithMinMaxThresholds} for more details. + # {Orb::Models::Price::CumulativeGroupedBulk} for more details. # # @param id [String] # @@ -6125,7 +7127,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # - # @param cadence [Symbol, Orb::Models::Price::GroupedWithMinMaxThresholds::Cadence] + # @param cadence [Symbol, Orb::Models::Price::CumulativeGroupedBulk::Cadence] # # @param composite_price_filters [Array, nil] # @@ -6137,6 +7139,8 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @param credit_allocation [Orb::Models::Allocation, nil] # + # @param cumulative_grouped_bulk_config [Orb::Models::Price::CumulativeGroupedBulk::CumulativeGroupedBulkConfig] Configuration for cumulative_grouped_bulk pricing + # # @param currency [String] # # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] @@ -6145,8 +7149,6 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @param fixed_price_quantity [Float, nil] # - # @param grouped_with_min_max_thresholds_config [Hash{Symbol=>Object}] - # # @param invoicing_cycle_configuration [Orb::Models::BillingCycleConfiguration, nil] # # @param item [Orb::Models::ItemSlim] @@ -6165,15 +7167,15 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] # - # @param price_type [Symbol, Orb::Models::Price::GroupedWithMinMaxThresholds::PriceType] + # @param price_type [Symbol, Orb::Models::Price::CumulativeGroupedBulk::PriceType] # # @param replaces_price_id [String, nil] The price id this price replaces. This price will take the place of the replaced # # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] # - # @param model_type [Symbol, :grouped_with_min_max_thresholds] + # @param model_type [Symbol, :cumulative_grouped_bulk] The pricing model type - # @see Orb::Models::Price::GroupedWithMinMaxThresholds#cadence + # @see Orb::Models::Price::CumulativeGroupedBulk#cadence module Cadence extend Orb::Internal::Type::Enum @@ -6188,7 +7190,59 @@ module Cadence # @return [Array] end - # @see Orb::Models::Price::GroupedWithMinMaxThresholds#price_type + # @see Orb::Models::Price::CumulativeGroupedBulk#cumulative_grouped_bulk_config + class CumulativeGroupedBulkConfig < Orb::Internal::Type::BaseModel + # @!attribute dimension_values + # Each tier lower bound must have the same group of values. + # + # @return [Array] + required :dimension_values, + -> { Orb::Internal::Type::ArrayOf[Orb::Price::CumulativeGroupedBulk::CumulativeGroupedBulkConfig::DimensionValue] } + + # @!attribute group + # Grouping key name + # + # @return [String] + required :group, String + + # @!method initialize(dimension_values:, group:) + # Configuration for cumulative_grouped_bulk pricing + # + # @param dimension_values [Array] Each tier lower bound must have the same group of values. + # + # @param group [String] Grouping key name + + class DimensionValue < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # Grouping key value + # + # @return [String] + required :grouping_key, String + + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Unit amount for this combination + # + # @return [String] + required :unit_amount, String + + # @!method initialize(grouping_key:, tier_lower_bound:, unit_amount:) + # Configuration for a dimension value entry + # + # @param grouping_key [String] Grouping key value + # + # @param tier_lower_bound [String] Tier lower bound + # + # @param unit_amount [String] Unit amount for this combination + end + end + + # @see Orb::Models::Price::CumulativeGroupedBulk#price_type module PriceType extend Orb::Internal::Type::Enum @@ -6313,11 +7367,13 @@ class Minimum < Orb::Internal::Type::BaseModel required :minimum_amount, String, nil?: true # @!attribute minimum_config + # Configuration for minimum pricing # # @return [Orb::Models::Price::Minimum::MinimumConfig] required :minimum_config, -> { Orb::Price::Minimum::MinimumConfig } # @!attribute model_type + # The pricing model type # # @return [Symbol, :minimum] required :model_type, const: :minimum @@ -6393,7 +7449,7 @@ class Minimum < Orb::Internal::Type::BaseModel # # @param minimum_amount [String, nil] # - # @param minimum_config [Orb::Models::Price::Minimum::MinimumConfig] + # @param minimum_config [Orb::Models::Price::Minimum::MinimumConfig] Configuration for minimum pricing # # @param name [String] # @@ -6405,7 +7461,7 @@ class Minimum < Orb::Internal::Type::BaseModel # # @param dimensional_price_configuration [Orb::Models::DimensionalPriceConfiguration, nil] # - # @param model_type [Symbol, :minimum] + # @param model_type [Symbol, :minimum] The pricing model type # @see Orb::Models::Price::Minimum#cadence module Cadence @@ -6431,19 +7487,17 @@ class MinimumConfig < Orb::Internal::Type::BaseModel required :minimum_amount, String # @!attribute prorated - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. + # If true, subtotals from this price are prorated based on the service period # # @return [Boolean, nil] - optional :prorated, Orb::Internal::Type::Boolean, nil?: true + optional :prorated, Orb::Internal::Type::Boolean # @!method initialize(minimum_amount:, prorated: nil) - # Some parameter documentations has been truncated, see - # {Orb::Models::Price::Minimum::MinimumConfig} for more details. + # Configuration for minimum pricing # # @param minimum_amount [String] The minimum amount to apply # - # @param prorated [Boolean, nil] By default, subtotals from minimum composite prices are prorated based on the se + # @param prorated [Boolean] If true, subtotals from this price are prorated based on the service period end # @see Orb::Models::Price::Minimum#price_type @@ -6459,7 +7513,7 @@ module PriceType end # @!method self.variants - # @return [Array(Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::Minimum)] + # @return [Array(Orb::Models::Price::Unit, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::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::Minimum)] end end end diff --git a/lib/orb/models/price_create_params.rb b/lib/orb/models/price_create_params.rb index 1ca45f4f..abfe79c0 100644 --- a/lib/orb/models/price_create_params.rb +++ b/lib/orb/models/price_create_params.rb @@ -26,6 +26,7 @@ class PriceCreateParams < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, Orb::Models::PriceCreateParams::ModelType] required :model_type, enum: -> { Orb::PriceCreateParams::ModelType } @@ -37,6 +38,7 @@ class PriceCreateParams < Orb::Internal::Type::BaseModel required :name, String # @!attribute unit_config + # Configuration for unit pricing # # @return [Orb::Models::UnitConfig] required :unit_config, -> { Orb::UnitConfig } @@ -114,140 +116,169 @@ class PriceCreateParams < Orb::Internal::Type::BaseModel # @return [Hash{Symbol=>String, nil}, nil] optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true - # @!attribute package_config - # - # @return [Orb::Models::PackageConfig] - required :package_config, -> { Orb::PackageConfig } - - # @!attribute matrix_config - # - # @return [Orb::Models::MatrixConfig] - required :matrix_config, -> { Orb::MatrixConfig } - - # @!attribute matrix_with_allocation_config - # - # @return [Orb::Models::MatrixWithAllocationConfig] - required :matrix_with_allocation_config, -> { Orb::MatrixWithAllocationConfig } - # @!attribute tiered_config + # Configuration for tiered pricing # # @return [Orb::Models::TieredConfig] required :tiered_config, -> { Orb::TieredConfig } # @!attribute bulk_config + # Configuration for bulk pricing # # @return [Orb::Models::BulkConfig] required :bulk_config, -> { Orb::BulkConfig } - # @!attribute threshold_total_amount_config + # @!attribute package_config + # Configuration for package pricing # - # @return [Hash{Symbol=>Object}] - required :threshold_total_amount_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::PackageConfig] + required :package_config, -> { Orb::PackageConfig } - # @!attribute tiered_package_config + # @!attribute matrix_config + # Configuration for matrix pricing # - # @return [Hash{Symbol=>Object}] - required :tiered_package_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::MatrixConfig] + required :matrix_config, -> { Orb::MatrixConfig } - # @!attribute grouped_tiered_config + # @!attribute threshold_total_amount_config + # Configuration for threshold_total_amount pricing # - # @return [Hash{Symbol=>Object}] - required :grouped_tiered_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::PriceCreateParams::ThresholdTotalAmountConfig] + required :threshold_total_amount_config, -> { Orb::PriceCreateParams::ThresholdTotalAmountConfig } - # @!attribute max_group_tiered_package_config + # @!attribute tiered_package_config + # Configuration for tiered_package pricing # - # @return [Hash{Symbol=>Object}] - required :max_group_tiered_package_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::PriceCreateParams::TieredPackageConfig] + required :tiered_package_config, -> { Orb::PriceCreateParams::TieredPackageConfig } # @!attribute tiered_with_minimum_config + # Configuration for tiered_with_minimum pricing # - # @return [Hash{Symbol=>Object}] - required :tiered_with_minimum_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::PriceCreateParams::TieredWithMinimumConfig] + required :tiered_with_minimum_config, -> { Orb::PriceCreateParams::TieredWithMinimumConfig } - # @!attribute package_with_allocation_config + # @!attribute grouped_tiered_config + # Configuration for grouped_tiered pricing # - # @return [Hash{Symbol=>Object}] - required :package_with_allocation_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::PriceCreateParams::GroupedTieredConfig] + required :grouped_tiered_config, -> { Orb::PriceCreateParams::GroupedTieredConfig } # @!attribute tiered_package_with_minimum_config + # Configuration for tiered_package_with_minimum pricing # - # @return [Hash{Symbol=>Object}] - required :tiered_package_with_minimum_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::PriceCreateParams::TieredPackageWithMinimumConfig] + required :tiered_package_with_minimum_config, + -> { Orb::PriceCreateParams::TieredPackageWithMinimumConfig } + + # @!attribute package_with_allocation_config + # Configuration for package_with_allocation pricing + # + # @return [Orb::Models::PriceCreateParams::PackageWithAllocationConfig] + required :package_with_allocation_config, -> { Orb::PriceCreateParams::PackageWithAllocationConfig } # @!attribute unit_with_percent_config + # Configuration for unit_with_percent pricing # - # @return [Hash{Symbol=>Object}] - required :unit_with_percent_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::PriceCreateParams::UnitWithPercentConfig] + required :unit_with_percent_config, -> { Orb::PriceCreateParams::UnitWithPercentConfig } + + # @!attribute matrix_with_allocation_config + # Configuration for matrix_with_allocation pricing + # + # @return [Orb::Models::MatrixWithAllocationConfig] + required :matrix_with_allocation_config, -> { Orb::MatrixWithAllocationConfig } # @!attribute tiered_with_proration_config + # Configuration for tiered_with_proration pricing # - # @return [Hash{Symbol=>Object}] - required :tiered_with_proration_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::PriceCreateParams::TieredWithProrationConfig] + required :tiered_with_proration_config, -> { Orb::PriceCreateParams::TieredWithProrationConfig } # @!attribute unit_with_proration_config + # Configuration for unit_with_proration pricing # - # @return [Hash{Symbol=>Object}] - required :unit_with_proration_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::PriceCreateParams::UnitWithProrationConfig] + required :unit_with_proration_config, -> { Orb::PriceCreateParams::UnitWithProrationConfig } # @!attribute grouped_allocation_config + # Configuration for grouped_allocation pricing + # + # @return [Orb::Models::PriceCreateParams::GroupedAllocationConfig] + required :grouped_allocation_config, -> { Orb::PriceCreateParams::GroupedAllocationConfig } + + # @!attribute bulk_with_proration_config + # Configuration for bulk_with_proration pricing # - # @return [Hash{Symbol=>Object}] - required :grouped_allocation_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::PriceCreateParams::BulkWithProrationConfig] + required :bulk_with_proration_config, -> { Orb::PriceCreateParams::BulkWithProrationConfig } # @!attribute grouped_with_prorated_minimum_config + # Configuration for grouped_with_prorated_minimum pricing # - # @return [Hash{Symbol=>Object}] - required :grouped_with_prorated_minimum_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::PriceCreateParams::GroupedWithProratedMinimumConfig] + required :grouped_with_prorated_minimum_config, + -> { Orb::PriceCreateParams::GroupedWithProratedMinimumConfig } # @!attribute grouped_with_metered_minimum_config + # Configuration for grouped_with_metered_minimum pricing # - # @return [Hash{Symbol=>Object}] - required :grouped_with_metered_minimum_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::PriceCreateParams::GroupedWithMeteredMinimumConfig] + required :grouped_with_metered_minimum_config, + -> { Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig } - # @!attribute matrix_with_display_name_config + # @!attribute grouped_with_min_max_thresholds_config + # Configuration for grouped_with_min_max_thresholds pricing # - # @return [Hash{Symbol=>Object}] - required :matrix_with_display_name_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::PriceCreateParams::GroupedWithMinMaxThresholdsConfig] + required :grouped_with_min_max_thresholds_config, + -> { Orb::PriceCreateParams::GroupedWithMinMaxThresholdsConfig } - # @!attribute bulk_with_proration_config + # @!attribute matrix_with_display_name_config + # Configuration for matrix_with_display_name pricing # - # @return [Hash{Symbol=>Object}] - required :bulk_with_proration_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::PriceCreateParams::MatrixWithDisplayNameConfig] + required :matrix_with_display_name_config, -> { Orb::PriceCreateParams::MatrixWithDisplayNameConfig } # @!attribute grouped_tiered_package_config + # Configuration for grouped_tiered_package pricing # - # @return [Hash{Symbol=>Object}] - required :grouped_tiered_package_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::PriceCreateParams::GroupedTieredPackageConfig] + required :grouped_tiered_package_config, -> { Orb::PriceCreateParams::GroupedTieredPackageConfig } + + # @!attribute max_group_tiered_package_config + # Configuration for max_group_tiered_package pricing + # + # @return [Orb::Models::PriceCreateParams::MaxGroupTieredPackageConfig] + required :max_group_tiered_package_config, -> { Orb::PriceCreateParams::MaxGroupTieredPackageConfig } # @!attribute scalable_matrix_with_unit_pricing_config + # Configuration for scalable_matrix_with_unit_pricing pricing # - # @return [Hash{Symbol=>Object}] + # @return [Orb::Models::PriceCreateParams::ScalableMatrixWithUnitPricingConfig] required :scalable_matrix_with_unit_pricing_config, - Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + -> { Orb::PriceCreateParams::ScalableMatrixWithUnitPricingConfig } # @!attribute scalable_matrix_with_tiered_pricing_config + # Configuration for scalable_matrix_with_tiered_pricing pricing # - # @return [Hash{Symbol=>Object}] + # @return [Orb::Models::PriceCreateParams::ScalableMatrixWithTieredPricingConfig] required :scalable_matrix_with_tiered_pricing_config, - Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + -> { Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig } # @!attribute cumulative_grouped_bulk_config + # Configuration for cumulative_grouped_bulk pricing # - # @return [Hash{Symbol=>Object}] - required :cumulative_grouped_bulk_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] - - # @!attribute grouped_with_min_max_thresholds_config - # - # @return [Hash{Symbol=>Object}] - required :grouped_with_min_max_thresholds_config, - Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + # @return [Orb::Models::PriceCreateParams::CumulativeGroupedBulkConfig] + required :cumulative_grouped_bulk_config, -> { Orb::PriceCreateParams::CumulativeGroupedBulkConfig } # @!attribute minimum_config + # Configuration for minimum pricing # # @return [Orb::Models::PriceCreateParams::MinimumConfig] required :minimum_config, -> { Orb::PriceCreateParams::MinimumConfig } - # @!method initialize(cadence:, currency:, item_id:, model_type:, name:, unit_config:, package_config:, matrix_config:, matrix_with_allocation_config:, tiered_config:, bulk_config:, threshold_total_amount_config:, tiered_package_config:, grouped_tiered_config:, max_group_tiered_package_config:, tiered_with_minimum_config:, package_with_allocation_config:, tiered_package_with_minimum_config:, unit_with_percent_config:, tiered_with_proration_config:, unit_with_proration_config:, grouped_allocation_config:, grouped_with_prorated_minimum_config:, grouped_with_metered_minimum_config:, matrix_with_display_name_config:, bulk_with_proration_config:, grouped_tiered_package_config:, scalable_matrix_with_unit_pricing_config:, scalable_matrix_with_tiered_pricing_config:, cumulative_grouped_bulk_config:, grouped_with_min_max_thresholds_config:, minimum_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, request_options: {}) + # @!method initialize(cadence:, currency:, item_id:, model_type:, name:, unit_config:, tiered_config:, bulk_config:, package_config:, matrix_config:, threshold_total_amount_config:, tiered_package_config:, tiered_with_minimum_config:, grouped_tiered_config:, tiered_package_with_minimum_config:, package_with_allocation_config:, unit_with_percent_config:, matrix_with_allocation_config:, tiered_with_proration_config:, unit_with_proration_config:, grouped_allocation_config:, bulk_with_proration_config:, grouped_with_prorated_minimum_config:, grouped_with_metered_minimum_config:, grouped_with_min_max_thresholds_config:, matrix_with_display_name_config:, grouped_tiered_package_config:, max_group_tiered_package_config:, scalable_matrix_with_unit_pricing_config:, scalable_matrix_with_tiered_pricing_config:, cumulative_grouped_bulk_config:, minimum_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Orb::Models::PriceCreateParams} for more details. # @@ -257,63 +288,63 @@ class PriceCreateParams < Orb::Internal::Type::BaseModel # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::PriceCreateParams::ModelType] + # @param model_type [Symbol, Orb::Models::PriceCreateParams::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param unit_config [Orb::Models::UnitConfig] + # @param unit_config [Orb::Models::UnitConfig] Configuration for unit pricing # - # @param package_config [Orb::Models::PackageConfig] + # @param tiered_config [Orb::Models::TieredConfig] Configuration for tiered pricing # - # @param matrix_config [Orb::Models::MatrixConfig] + # @param bulk_config [Orb::Models::BulkConfig] Configuration for bulk pricing # - # @param matrix_with_allocation_config [Orb::Models::MatrixWithAllocationConfig] + # @param package_config [Orb::Models::PackageConfig] Configuration for package pricing # - # @param tiered_config [Orb::Models::TieredConfig] + # @param matrix_config [Orb::Models::MatrixConfig] Configuration for matrix pricing # - # @param bulk_config [Orb::Models::BulkConfig] + # @param threshold_total_amount_config [Orb::Models::PriceCreateParams::ThresholdTotalAmountConfig] Configuration for threshold_total_amount pricing # - # @param threshold_total_amount_config [Hash{Symbol=>Object}] + # @param tiered_package_config [Orb::Models::PriceCreateParams::TieredPackageConfig] Configuration for tiered_package pricing # - # @param tiered_package_config [Hash{Symbol=>Object}] + # @param tiered_with_minimum_config [Orb::Models::PriceCreateParams::TieredWithMinimumConfig] Configuration for tiered_with_minimum pricing # - # @param grouped_tiered_config [Hash{Symbol=>Object}] + # @param grouped_tiered_config [Orb::Models::PriceCreateParams::GroupedTieredConfig] Configuration for grouped_tiered pricing # - # @param max_group_tiered_package_config [Hash{Symbol=>Object}] + # @param tiered_package_with_minimum_config [Orb::Models::PriceCreateParams::TieredPackageWithMinimumConfig] Configuration for tiered_package_with_minimum pricing # - # @param tiered_with_minimum_config [Hash{Symbol=>Object}] + # @param package_with_allocation_config [Orb::Models::PriceCreateParams::PackageWithAllocationConfig] Configuration for package_with_allocation pricing # - # @param package_with_allocation_config [Hash{Symbol=>Object}] + # @param unit_with_percent_config [Orb::Models::PriceCreateParams::UnitWithPercentConfig] Configuration for unit_with_percent pricing # - # @param tiered_package_with_minimum_config [Hash{Symbol=>Object}] + # @param matrix_with_allocation_config [Orb::Models::MatrixWithAllocationConfig] Configuration for matrix_with_allocation pricing # - # @param unit_with_percent_config [Hash{Symbol=>Object}] + # @param tiered_with_proration_config [Orb::Models::PriceCreateParams::TieredWithProrationConfig] Configuration for tiered_with_proration pricing # - # @param tiered_with_proration_config [Hash{Symbol=>Object}] + # @param unit_with_proration_config [Orb::Models::PriceCreateParams::UnitWithProrationConfig] Configuration for unit_with_proration pricing # - # @param unit_with_proration_config [Hash{Symbol=>Object}] + # @param grouped_allocation_config [Orb::Models::PriceCreateParams::GroupedAllocationConfig] Configuration for grouped_allocation pricing # - # @param grouped_allocation_config [Hash{Symbol=>Object}] + # @param bulk_with_proration_config [Orb::Models::PriceCreateParams::BulkWithProrationConfig] Configuration for bulk_with_proration pricing # - # @param grouped_with_prorated_minimum_config [Hash{Symbol=>Object}] + # @param grouped_with_prorated_minimum_config [Orb::Models::PriceCreateParams::GroupedWithProratedMinimumConfig] Configuration for grouped_with_prorated_minimum pricing # - # @param grouped_with_metered_minimum_config [Hash{Symbol=>Object}] + # @param grouped_with_metered_minimum_config [Orb::Models::PriceCreateParams::GroupedWithMeteredMinimumConfig] Configuration for grouped_with_metered_minimum pricing # - # @param matrix_with_display_name_config [Hash{Symbol=>Object}] + # @param grouped_with_min_max_thresholds_config [Orb::Models::PriceCreateParams::GroupedWithMinMaxThresholdsConfig] Configuration for grouped_with_min_max_thresholds pricing # - # @param bulk_with_proration_config [Hash{Symbol=>Object}] + # @param matrix_with_display_name_config [Orb::Models::PriceCreateParams::MatrixWithDisplayNameConfig] Configuration for matrix_with_display_name pricing # - # @param grouped_tiered_package_config [Hash{Symbol=>Object}] + # @param grouped_tiered_package_config [Orb::Models::PriceCreateParams::GroupedTieredPackageConfig] Configuration for grouped_tiered_package pricing # - # @param scalable_matrix_with_unit_pricing_config [Hash{Symbol=>Object}] + # @param max_group_tiered_package_config [Orb::Models::PriceCreateParams::MaxGroupTieredPackageConfig] Configuration for max_group_tiered_package pricing # - # @param scalable_matrix_with_tiered_pricing_config [Hash{Symbol=>Object}] + # @param scalable_matrix_with_unit_pricing_config [Orb::Models::PriceCreateParams::ScalableMatrixWithUnitPricingConfig] Configuration for scalable_matrix_with_unit_pricing pricing # - # @param cumulative_grouped_bulk_config [Hash{Symbol=>Object}] + # @param scalable_matrix_with_tiered_pricing_config [Orb::Models::PriceCreateParams::ScalableMatrixWithTieredPricingConfig] Configuration for scalable_matrix_with_tiered_pricing pricing # - # @param grouped_with_min_max_thresholds_config [Hash{Symbol=>Object}] + # @param cumulative_grouped_bulk_config [Orb::Models::PriceCreateParams::CumulativeGroupedBulkConfig] Configuration for cumulative_grouped_bulk pricing # - # @param minimum_config [Orb::Models::PriceCreateParams::MinimumConfig] + # @param minimum_config [Orb::Models::PriceCreateParams::MinimumConfig] Configuration for minimum pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -354,6 +385,7 @@ module Cadence # @return [Array] end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum @@ -363,6 +395,974 @@ module ModelType # @return [Array] end + class ThresholdTotalAmountConfig < Orb::Internal::Type::BaseModel + # @!attribute consumption_table + # When the quantity consumed passes a provided threshold, the configured total + # will be charged + # + # @return [Array] + required :consumption_table, + -> { Orb::Internal::Type::ArrayOf[Orb::PriceCreateParams::ThresholdTotalAmountConfig::ConsumptionTable] } + + # @!attribute prorate + # If true, the unit price will be prorated to the billing period + # + # @return [Boolean, nil] + optional :prorate, Orb::Internal::Type::Boolean, nil?: true + + # @!method initialize(consumption_table:, prorate: nil) + # Some parameter documentations has been truncated, see + # {Orb::Models::PriceCreateParams::ThresholdTotalAmountConfig} for more details. + # + # Configuration for threshold_total_amount pricing + # + # @param consumption_table [Array] When the quantity consumed passes a provided threshold, the configured total wil + # + # @param prorate [Boolean, nil] If true, the unit price will be prorated to the billing period + + class ConsumptionTable < Orb::Internal::Type::BaseModel + # @!attribute threshold + # Quantity threshold + # + # @return [String] + required :threshold, String + + # @!attribute total_amount + # Total amount for this threshold + # + # @return [String] + required :total_amount, String + + # @!method initialize(threshold:, total_amount:) + # Configuration for a single threshold + # + # @param threshold [String] Quantity threshold + # + # @param total_amount [String] Total amount for this threshold + end + end + + class TieredPackageConfig < Orb::Internal::Type::BaseModel + # @!attribute package_size + # Package size + # + # @return [String] + required :package_size, String + + # @!attribute tiers + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + # + # @return [Array] + required :tiers, -> { Orb::Internal::Type::ArrayOf[Orb::PriceCreateParams::TieredPackageConfig::Tier] } + + # @!method initialize(package_size:, tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::PriceCreateParams::TieredPackageConfig} for more details. + # + # Configuration for tiered_package pricing + # + # @param package_size [String] Package size + # + # @param tiers [Array] Apply tiered pricing after rounding up the quantity to the package size. Tiers a + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute per_unit + # Price per package + # + # @return [String] + required :per_unit, String + + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!method initialize(per_unit:, tier_lower_bound:) + # Configuration for a single tier with business logic + # + # @param per_unit [String] Price per package + # + # @param tier_lower_bound [String] Tier lower bound + end + end + + class TieredWithMinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute tiers + # Tiered pricing with a minimum amount dependent on the volume tier. Tiers are + # defined using exclusive lower bounds. + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::PriceCreateParams::TieredWithMinimumConfig::Tier] } + + # @!attribute hide_zero_amount_tiers + # If true, tiers with an accrued amount of 0 will not be included in the rating. + # + # @return [Boolean, nil] + optional :hide_zero_amount_tiers, Orb::Internal::Type::Boolean + + # @!attribute prorate + # If true, the unit price will be prorated to the billing period + # + # @return [Boolean, nil] + optional :prorate, Orb::Internal::Type::Boolean + + # @!method initialize(tiers:, hide_zero_amount_tiers: nil, prorate: nil) + # Some parameter documentations has been truncated, see + # {Orb::Models::PriceCreateParams::TieredWithMinimumConfig} for more details. + # + # Configuration for tiered_with_minimum pricing + # + # @param tiers [Array] Tiered pricing with a minimum amount dependent on the volume tier. Tiers are def + # + # @param hide_zero_amount_tiers [Boolean] If true, tiers with an accrued amount of 0 will not be included in the rating. + # + # @param prorate [Boolean] If true, the unit price will be prorated to the billing period + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute minimum_amount + # Minimum amount + # + # @return [String] + required :minimum_amount, String + + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Per unit amount + # + # @return [String] + required :unit_amount, String + + # @!method initialize(minimum_amount:, tier_lower_bound:, unit_amount:) + # Configuration for a single tier + # + # @param minimum_amount [String] Minimum amount + # + # @param tier_lower_bound [String] Tier lower bound + # + # @param unit_amount [String] Per unit amount + end + end + + class GroupedTieredConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # The billable metric property used to group before tiering + # + # @return [String] + required :grouping_key, String + + # @!attribute tiers + # Apply tiered pricing to each segment generated after grouping with the provided + # key + # + # @return [Array] + required :tiers, -> { Orb::Internal::Type::ArrayOf[Orb::PriceCreateParams::GroupedTieredConfig::Tier] } + + # @!method initialize(grouping_key:, tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::PriceCreateParams::GroupedTieredConfig} for more details. + # + # Configuration for grouped_tiered pricing + # + # @param grouping_key [String] The billable metric property used to group before tiering + # + # @param tiers [Array] Apply tiered pricing to each segment generated after grouping with the provided + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Per unit amount + # + # @return [String] + required :unit_amount, String + + # @!method initialize(tier_lower_bound:, unit_amount:) + # Configuration for a single tier + # + # @param tier_lower_bound [String] Tier lower bound + # + # @param unit_amount [String] Per unit amount + end + end + + class TieredPackageWithMinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute package_size + # Package size + # + # @return [Float] + required :package_size, Float + + # @!attribute tiers + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::PriceCreateParams::TieredPackageWithMinimumConfig::Tier] } + + # @!method initialize(package_size:, tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::PriceCreateParams::TieredPackageWithMinimumConfig} for more + # details. + # + # Configuration for tiered_package_with_minimum pricing + # + # @param package_size [Float] Package size + # + # @param tiers [Array] Apply tiered pricing after rounding up the quantity to the package size. Tiers a + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute minimum_amount + # Minimum amount + # + # @return [String] + required :minimum_amount, String + + # @!attribute per_unit + # Price per package + # + # @return [String] + required :per_unit, String + + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!method initialize(minimum_amount:, per_unit:, tier_lower_bound:) + # Configuration for a single tier + # + # @param minimum_amount [String] Minimum amount + # + # @param per_unit [String] Price per package + # + # @param tier_lower_bound [String] Tier lower bound + end + end + + class PackageWithAllocationConfig < Orb::Internal::Type::BaseModel + # @!attribute allocation + # Usage allocation + # + # @return [String] + required :allocation, String + + # @!attribute package_amount + # Price per package + # + # @return [String] + required :package_amount, String + + # @!attribute package_size + # Package size + # + # @return [String] + required :package_size, String + + # @!method initialize(allocation:, package_amount:, package_size:) + # Configuration for package_with_allocation pricing + # + # @param allocation [String] Usage allocation + # + # @param package_amount [String] Price per package + # + # @param package_size [String] Package size + end + + class UnitWithPercentConfig < Orb::Internal::Type::BaseModel + # @!attribute percent + # What percent, out of 100, of the calculated total to charge + # + # @return [String] + required :percent, String + + # @!attribute unit_amount + # Rate per unit of usage + # + # @return [String] + required :unit_amount, String + + # @!method initialize(percent:, unit_amount:) + # Configuration for unit_with_percent pricing + # + # @param percent [String] What percent, out of 100, of the calculated total to charge + # + # @param unit_amount [String] Rate per unit of usage + end + + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + # @!attribute tiers + # Tiers for rating based on total usage quantities into the specified tier with + # proration + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::PriceCreateParams::TieredWithProrationConfig::Tier] } + + # @!method initialize(tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::PriceCreateParams::TieredWithProrationConfig} for more details. + # + # Configuration for tiered_with_proration pricing + # + # @param tiers [Array] Tiers for rating based on total usage quantities into the specified tier with pr + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute tier_lower_bound + # Inclusive tier starting value + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Amount per unit + # + # @return [String] + required :unit_amount, String + + # @!method initialize(tier_lower_bound:, unit_amount:) + # Configuration for a single tiered with proration tier + # + # @param tier_lower_bound [String] Inclusive tier starting value + # + # @param unit_amount [String] Amount per unit + end + end + + class UnitWithProrationConfig < Orb::Internal::Type::BaseModel + # @!attribute unit_amount + # Rate per unit of usage + # + # @return [String] + required :unit_amount, String + + # @!method initialize(unit_amount:) + # Configuration for unit_with_proration pricing + # + # @param unit_amount [String] Rate per unit of usage + end + + class GroupedAllocationConfig < Orb::Internal::Type::BaseModel + # @!attribute allocation + # Usage allocation per group + # + # @return [String] + required :allocation, String + + # @!attribute grouping_key + # How to determine the groups that should each be allocated some quantity + # + # @return [String] + required :grouping_key, String + + # @!attribute overage_unit_rate + # Unit rate for post-allocation + # + # @return [String] + required :overage_unit_rate, String + + # @!method initialize(allocation:, grouping_key:, overage_unit_rate:) + # Configuration for grouped_allocation pricing + # + # @param allocation [String] Usage allocation per group + # + # @param grouping_key [String] How to determine the groups that should each be allocated some quantity + # + # @param overage_unit_rate [String] Unit rate for post-allocation + end + + class BulkWithProrationConfig < Orb::Internal::Type::BaseModel + # @!attribute tiers + # Bulk tiers for rating based on total usage volume + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::PriceCreateParams::BulkWithProrationConfig::Tier] } + + # @!method initialize(tiers:) + # Configuration for bulk_with_proration pricing + # + # @param tiers [Array] Bulk tiers for rating based on total usage volume + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute unit_amount + # Cost per unit + # + # @return [String] + required :unit_amount, String + + # @!attribute tier_lower_bound + # The lower bound for this tier + # + # @return [String, nil] + optional :tier_lower_bound, String, nil?: true + + # @!method initialize(unit_amount:, tier_lower_bound: nil) + # Configuration for a single bulk pricing tier with proration + # + # @param unit_amount [String] Cost per unit + # + # @param tier_lower_bound [String, nil] The lower bound for this tier + end + end + + class GroupedWithProratedMinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # How to determine the groups that should each have a minimum + # + # @return [String] + required :grouping_key, String + + # @!attribute minimum + # The minimum amount to charge per group + # + # @return [String] + required :minimum, String + + # @!attribute unit_rate + # The amount to charge per unit + # + # @return [String] + required :unit_rate, String + + # @!method initialize(grouping_key:, minimum:, unit_rate:) + # Configuration for grouped_with_prorated_minimum pricing + # + # @param grouping_key [String] How to determine the groups that should each have a minimum + # + # @param minimum [String] The minimum amount to charge per group + # + # @param unit_rate [String] The amount to charge per unit + end + + class GroupedWithMeteredMinimumConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # Used to partition the usage into groups. The minimum amount is applied to each + # group. + # + # @return [String] + required :grouping_key, String + + # @!attribute minimum_unit_amount + # The minimum amount to charge per group per unit + # + # @return [String] + required :minimum_unit_amount, String + + # @!attribute pricing_key + # Used to determine the unit rate + # + # @return [String] + required :pricing_key, String + + # @!attribute scaling_factors + # Scale the unit rates by the scaling factor. + # + # @return [Array] + required :scaling_factors, + -> { Orb::Internal::Type::ArrayOf[Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig::ScalingFactor] } + + # @!attribute scaling_key + # Used to determine the unit rate scaling factor + # + # @return [String] + required :scaling_key, String + + # @!attribute unit_amounts + # Apply per unit pricing to each pricing value. The minimum amount is applied any + # unmatched usage. + # + # @return [Array] + required :unit_amounts, + -> { Orb::Internal::Type::ArrayOf[Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig::UnitAmount] } + + # @!method initialize(grouping_key:, minimum_unit_amount:, pricing_key:, scaling_factors:, scaling_key:, unit_amounts:) + # Some parameter documentations has been truncated, see + # {Orb::Models::PriceCreateParams::GroupedWithMeteredMinimumConfig} for more + # details. + # + # Configuration for grouped_with_metered_minimum pricing + # + # @param grouping_key [String] Used to partition the usage into groups. The minimum amount is applied to each g + # + # @param minimum_unit_amount [String] The minimum amount to charge per group per unit + # + # @param pricing_key [String] Used to determine the unit rate + # + # @param scaling_factors [Array] Scale the unit rates by the scaling factor. + # + # @param scaling_key [String] Used to determine the unit rate scaling factor + # + # @param unit_amounts [Array] Apply per unit pricing to each pricing value. The minimum amount is applied any + + class ScalingFactor < Orb::Internal::Type::BaseModel + # @!attribute scaling_factor + # Scaling factor + # + # @return [String] + required :scaling_factor, String + + # @!attribute scaling_value + # Scaling value + # + # @return [String] + required :scaling_value, String + + # @!method initialize(scaling_factor:, scaling_value:) + # Configuration for a scaling factor + # + # @param scaling_factor [String] Scaling factor + # + # @param scaling_value [String] Scaling value + end + + class UnitAmount < Orb::Internal::Type::BaseModel + # @!attribute pricing_value + # Pricing value + # + # @return [String] + required :pricing_value, String + + # @!attribute unit_amount + # Per unit amount + # + # @return [String] + required :unit_amount, String + + # @!method initialize(pricing_value:, unit_amount:) + # Configuration for a unit amount + # + # @param pricing_value [String] Pricing value + # + # @param unit_amount [String] Per unit amount + end + end + + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # The event property used to group before applying thresholds + # + # @return [String] + required :grouping_key, String + + # @!attribute maximum_charge + # The maximum amount to charge each group + # + # @return [String] + required :maximum_charge, String + + # @!attribute minimum_charge + # The minimum amount to charge each group, regardless of usage + # + # @return [String] + required :minimum_charge, String + + # @!attribute per_unit_rate + # The base price charged per group + # + # @return [String] + required :per_unit_rate, String + + # @!method initialize(grouping_key:, maximum_charge:, minimum_charge:, per_unit_rate:) + # Configuration for grouped_with_min_max_thresholds pricing + # + # @param grouping_key [String] The event property used to group before applying thresholds + # + # @param maximum_charge [String] The maximum amount to charge each group + # + # @param minimum_charge [String] The minimum amount to charge each group, regardless of usage + # + # @param per_unit_rate [String] The base price charged per group + end + + class MatrixWithDisplayNameConfig < Orb::Internal::Type::BaseModel + # @!attribute dimension + # Used to determine the unit rate + # + # @return [String] + required :dimension, String + + # @!attribute unit_amounts + # Apply per unit pricing to each dimension value + # + # @return [Array] + required :unit_amounts, + -> { Orb::Internal::Type::ArrayOf[Orb::PriceCreateParams::MatrixWithDisplayNameConfig::UnitAmount] } + + # @!method initialize(dimension:, unit_amounts:) + # Configuration for matrix_with_display_name pricing + # + # @param dimension [String] Used to determine the unit rate + # + # @param unit_amounts [Array] Apply per unit pricing to each dimension value + + class UnitAmount < Orb::Internal::Type::BaseModel + # @!attribute dimension_value + # The dimension value + # + # @return [String] + required :dimension_value, String + + # @!attribute display_name + # Display name for this dimension value + # + # @return [String] + required :display_name, String + + # @!attribute unit_amount + # Per unit amount + # + # @return [String] + required :unit_amount, String + + # @!method initialize(dimension_value:, display_name:, unit_amount:) + # Configuration for a unit amount item + # + # @param dimension_value [String] The dimension value + # + # @param display_name [String] Display name for this dimension value + # + # @param unit_amount [String] Per unit amount + end + end + + class GroupedTieredPackageConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # The event property used to group before tiering + # + # @return [String] + required :grouping_key, String + + # @!attribute package_size + # Package size + # + # @return [String] + required :package_size, String + + # @!attribute tiers + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::PriceCreateParams::GroupedTieredPackageConfig::Tier] } + + # @!method initialize(grouping_key:, package_size:, tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::PriceCreateParams::GroupedTieredPackageConfig} for more details. + # + # Configuration for grouped_tiered_package pricing + # + # @param grouping_key [String] The event property used to group before tiering + # + # @param package_size [String] Package size + # + # @param tiers [Array] Apply tiered pricing after rounding up the quantity to the package size. Tiers a + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute per_unit + # Price per package + # + # @return [String] + required :per_unit, String + + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!method initialize(per_unit:, tier_lower_bound:) + # Configuration for a single tier + # + # @param per_unit [String] Price per package + # + # @param tier_lower_bound [String] Tier lower bound + end + end + + class MaxGroupTieredPackageConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # The event property used to group before tiering the group with the highest value + # + # @return [String] + required :grouping_key, String + + # @!attribute package_size + # Package size + # + # @return [String] + required :package_size, String + + # @!attribute tiers + # Apply tiered pricing to the largest group after grouping with the provided key. + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::PriceCreateParams::MaxGroupTieredPackageConfig::Tier] } + + # @!method initialize(grouping_key:, package_size:, tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::PriceCreateParams::MaxGroupTieredPackageConfig} for more details. + # + # Configuration for max_group_tiered_package pricing + # + # @param grouping_key [String] The event property used to group before tiering the group with the highest value + # + # @param package_size [String] Package size + # + # @param tiers [Array] Apply tiered pricing to the largest group after grouping with the provided key. + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Per unit amount + # + # @return [String] + required :unit_amount, String + + # @!method initialize(tier_lower_bound:, unit_amount:) + # Configuration for a single tier + # + # @param tier_lower_bound [String] Tier lower bound + # + # @param unit_amount [String] Per unit amount + end + end + + class ScalableMatrixWithUnitPricingConfig < Orb::Internal::Type::BaseModel + # @!attribute first_dimension + # Used to determine the unit rate + # + # @return [String] + required :first_dimension, String + + # @!attribute matrix_scaling_factors + # Apply a scaling factor to each dimension + # + # @return [Array] + required :matrix_scaling_factors, + -> { Orb::Internal::Type::ArrayOf[Orb::PriceCreateParams::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor] } + + # @!attribute unit_price + # The final unit price to rate against the output of the matrix + # + # @return [String] + required :unit_price, String + + # @!attribute prorate + # If true, the unit price will be prorated to the billing period + # + # @return [Boolean, nil] + optional :prorate, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute second_dimension + # Used to determine the unit rate (optional) + # + # @return [String, nil] + optional :second_dimension, String, nil?: true + + # @!method initialize(first_dimension:, matrix_scaling_factors:, unit_price:, prorate: nil, second_dimension: nil) + # Configuration for scalable_matrix_with_unit_pricing pricing + # + # @param first_dimension [String] Used to determine the unit rate + # + # @param matrix_scaling_factors [Array] Apply a scaling factor to each dimension + # + # @param unit_price [String] The final unit price to rate against the output of the matrix + # + # @param prorate [Boolean, nil] If true, the unit price will be prorated to the billing period + # + # @param second_dimension [String, nil] Used to determine the unit rate (optional) + + class MatrixScalingFactor < Orb::Internal::Type::BaseModel + # @!attribute first_dimension_value + # First dimension value + # + # @return [String] + required :first_dimension_value, String + + # @!attribute scaling_factor + # Scaling factor + # + # @return [String] + required :scaling_factor, String + + # @!attribute second_dimension_value + # Second dimension value (optional) + # + # @return [String, nil] + optional :second_dimension_value, String, nil?: true + + # @!method initialize(first_dimension_value:, scaling_factor:, second_dimension_value: nil) + # Configuration for a single matrix scaling factor + # + # @param first_dimension_value [String] First dimension value + # + # @param scaling_factor [String] Scaling factor + # + # @param second_dimension_value [String, nil] Second dimension value (optional) + end + end + + class ScalableMatrixWithTieredPricingConfig < Orb::Internal::Type::BaseModel + # @!attribute first_dimension + # Used for the scalable matrix first dimension + # + # @return [String] + required :first_dimension, String + + # @!attribute matrix_scaling_factors + # Apply a scaling factor to each dimension + # + # @return [Array] + required :matrix_scaling_factors, + -> { Orb::Internal::Type::ArrayOf[Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor] } + + # @!attribute tiers + # Tier pricing structure + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig::Tier] } + + # @!attribute second_dimension + # Used for the scalable matrix second dimension (optional) + # + # @return [String, nil] + optional :second_dimension, String, nil?: true + + # @!method initialize(first_dimension:, matrix_scaling_factors:, tiers:, second_dimension: nil) + # Configuration for scalable_matrix_with_tiered_pricing pricing + # + # @param first_dimension [String] Used for the scalable matrix first dimension + # + # @param matrix_scaling_factors [Array] Apply a scaling factor to each dimension + # + # @param tiers [Array] Tier pricing structure + # + # @param second_dimension [String, nil] Used for the scalable matrix second dimension (optional) + + class MatrixScalingFactor < Orb::Internal::Type::BaseModel + # @!attribute first_dimension_value + # First dimension value + # + # @return [String] + required :first_dimension_value, String + + # @!attribute scaling_factor + # Scaling factor + # + # @return [String] + required :scaling_factor, String + + # @!attribute second_dimension_value + # Second dimension value (optional) + # + # @return [String, nil] + optional :second_dimension_value, String, nil?: true + + # @!method initialize(first_dimension_value:, scaling_factor:, second_dimension_value: nil) + # Configuration for a single matrix scaling factor + # + # @param first_dimension_value [String] First dimension value + # + # @param scaling_factor [String] Scaling factor + # + # @param second_dimension_value [String, nil] Second dimension value (optional) + end + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Per unit amount + # + # @return [String] + required :unit_amount, String + + # @!method initialize(tier_lower_bound:, unit_amount:) + # Configuration for a single tier entry with business logic + # + # @param tier_lower_bound [String] Tier lower bound + # + # @param unit_amount [String] Per unit amount + end + end + + class CumulativeGroupedBulkConfig < Orb::Internal::Type::BaseModel + # @!attribute dimension_values + # Each tier lower bound must have the same group of values. + # + # @return [Array] + required :dimension_values, + -> { Orb::Internal::Type::ArrayOf[Orb::PriceCreateParams::CumulativeGroupedBulkConfig::DimensionValue] } + + # @!attribute group + # Grouping key name + # + # @return [String] + required :group, String + + # @!method initialize(dimension_values:, group:) + # Configuration for cumulative_grouped_bulk pricing + # + # @param dimension_values [Array] Each tier lower bound must have the same group of values. + # + # @param group [String] Grouping key name + + class DimensionValue < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # Grouping key value + # + # @return [String] + required :grouping_key, String + + # @!attribute tier_lower_bound + # Tier lower bound + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Unit amount for this combination + # + # @return [String] + required :unit_amount, String + + # @!method initialize(grouping_key:, tier_lower_bound:, unit_amount:) + # Configuration for a dimension value entry + # + # @param grouping_key [String] Grouping key value + # + # @param tier_lower_bound [String] Tier lower bound + # + # @param unit_amount [String] Unit amount for this combination + end + end + class MinimumConfig < Orb::Internal::Type::BaseModel # @!attribute minimum_amount # The minimum amount to apply @@ -371,19 +1371,17 @@ class MinimumConfig < Orb::Internal::Type::BaseModel required :minimum_amount, String # @!attribute prorated - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. + # If true, subtotals from this price are prorated based on the service period # # @return [Boolean, nil] - optional :prorated, Orb::Internal::Type::Boolean, nil?: true + optional :prorated, Orb::Internal::Type::Boolean # @!method initialize(minimum_amount:, prorated: nil) - # Some parameter documentations has been truncated, see - # {Orb::Models::PriceCreateParams::MinimumConfig} for more details. + # Configuration for minimum pricing # # @param minimum_amount [String] The minimum amount to apply # - # @param prorated [Boolean, nil] By default, subtotals from minimum composite prices are prorated based on the se + # @param prorated [Boolean] If true, subtotals from this price are prorated based on the service period end end end diff --git a/lib/orb/models/price_evaluate_multiple_params.rb b/lib/orb/models/price_evaluate_multiple_params.rb index da6c545c..a8aa956a 100644 --- a/lib/orb/models/price_evaluate_multiple_params.rb +++ b/lib/orb/models/price_evaluate_multiple_params.rb @@ -75,10 +75,9 @@ class PriceEvaluation < Orb::Internal::Type::BaseModel optional :grouping_keys, Orb::Internal::Type::ArrayOf[String] # @!attribute price - # An inline price definition to evaluate, allowing you to test price - # configurations before adding them to Orb. + # New floating price request body params. # - # @return [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::Models::NewFloatingMinimumCompositePrice, nil] + # @return [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::NewFloatingMinimumCompositePrice, nil] optional :price, union: -> { Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price }, nil?: true # @!attribute price_id @@ -97,12 +96,11 @@ class PriceEvaluation < Orb::Internal::Type::BaseModel # # @param grouping_keys [Array] Properties (or [computed properties](/extensibility/advanced-metrics#computed-pr # - # @param price [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::Models::NewFloatingMinimumCompositePrice, nil] An inline price definition to evaluate, allowing you to test price configuration + # @param price [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::NewFloatingMinimumCompositePrice, nil] New floating price request body params. # # @param price_id [String, nil] The ID of a price to evaluate that exists in your Orb account. - # An inline price definition to evaluate, allowing you to test price - # configurations before adding them to Orb. + # New floating price request body params. # # @see Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation#price module Price @@ -112,57 +110,57 @@ module Price variant :unit, -> { Orb::NewFloatingUnitPrice } - variant :package, -> { Orb::NewFloatingPackagePrice } - - variant :matrix, -> { Orb::NewFloatingMatrixPrice } - - variant :matrix_with_allocation, -> { Orb::NewFloatingMatrixWithAllocationPrice } - variant :tiered, -> { Orb::NewFloatingTieredPrice } variant :bulk, -> { Orb::NewFloatingBulkPrice } - variant :threshold_total_amount, -> { Orb::NewFloatingThresholdTotalAmountPrice } + variant :package, -> { Orb::NewFloatingPackagePrice } - variant :tiered_package, -> { Orb::NewFloatingTieredPackagePrice } + variant :matrix, -> { Orb::NewFloatingMatrixPrice } - variant :grouped_tiered, -> { Orb::NewFloatingGroupedTieredPrice } + variant :threshold_total_amount, -> { Orb::NewFloatingThresholdTotalAmountPrice } - variant :max_group_tiered_package, -> { Orb::NewFloatingMaxGroupTieredPackagePrice } + variant :tiered_package, -> { Orb::NewFloatingTieredPackagePrice } variant :tiered_with_minimum, -> { Orb::NewFloatingTieredWithMinimumPrice } - variant :package_with_allocation, -> { Orb::NewFloatingPackageWithAllocationPrice } + variant :grouped_tiered, -> { Orb::NewFloatingGroupedTieredPrice } variant :tiered_package_with_minimum, -> { Orb::NewFloatingTieredPackageWithMinimumPrice } + variant :package_with_allocation, -> { Orb::NewFloatingPackageWithAllocationPrice } + variant :unit_with_percent, -> { Orb::NewFloatingUnitWithPercentPrice } + variant :matrix_with_allocation, -> { Orb::NewFloatingMatrixWithAllocationPrice } + variant :tiered_with_proration, -> { Orb::NewFloatingTieredWithProrationPrice } variant :unit_with_proration, -> { Orb::NewFloatingUnitWithProrationPrice } variant :grouped_allocation, -> { Orb::NewFloatingGroupedAllocationPrice } + variant :bulk_with_proration, -> { Orb::NewFloatingBulkWithProrationPrice } + variant :grouped_with_prorated_minimum, -> { Orb::NewFloatingGroupedWithProratedMinimumPrice } variant :grouped_with_metered_minimum, -> { Orb::NewFloatingGroupedWithMeteredMinimumPrice } - variant :matrix_with_display_name, -> { Orb::NewFloatingMatrixWithDisplayNamePrice } + variant :grouped_with_min_max_thresholds, + -> { Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds } - variant :bulk_with_proration, -> { Orb::NewFloatingBulkWithProrationPrice } + variant :matrix_with_display_name, -> { Orb::NewFloatingMatrixWithDisplayNamePrice } variant :grouped_tiered_package, -> { Orb::NewFloatingGroupedTieredPackagePrice } + variant :max_group_tiered_package, -> { Orb::NewFloatingMaxGroupTieredPackagePrice } + variant :scalable_matrix_with_unit_pricing, -> { Orb::NewFloatingScalableMatrixWithUnitPricingPrice } variant :scalable_matrix_with_tiered_pricing, -> { Orb::NewFloatingScalableMatrixWithTieredPricingPrice } variant :cumulative_grouped_bulk, -> { Orb::NewFloatingCumulativeGroupedBulkPrice } - variant :grouped_with_min_max_thresholds, - -> { Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds } - variant :minimum, -> { Orb::NewFloatingMinimumCompositePrice } class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel @@ -180,10 +178,11 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel required :currency, String # @!attribute grouped_with_min_max_thresholds_config + # Configuration for grouped_with_min_max_thresholds pricing # - # @return [Hash{Symbol=>Object}] + # @return [Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig] required :grouped_with_min_max_thresholds_config, - Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + -> { Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig } # @!attribute item_id # The id of the item the price will be associated with. @@ -192,6 +191,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, :grouped_with_min_max_thresholds] required :model_type, const: :grouped_with_min_max_thresholds @@ -292,7 +292,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # - # @param grouped_with_min_max_thresholds_config [Hash{Symbol=>Object}] + # @param grouped_with_min_max_thresholds_config [Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig] Configuration for grouped_with_min_max_thresholds pricing # # @param item_id [String] The id of the item the price will be associated with. # @@ -320,7 +320,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed # - # @param model_type [Symbol, :grouped_with_min_max_thresholds] + # @param model_type [Symbol, :grouped_with_min_max_thresholds] The pricing model type # The cadence to bill for this price on. # @@ -338,10 +338,48 @@ module Cadence # @!method self.values # @return [Array] end + + # @see Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds#grouped_with_min_max_thresholds_config + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # The event property used to group before applying thresholds + # + # @return [String] + required :grouping_key, String + + # @!attribute maximum_charge + # The maximum amount to charge each group + # + # @return [String] + required :maximum_charge, String + + # @!attribute minimum_charge + # The minimum amount to charge each group, regardless of usage + # + # @return [String] + required :minimum_charge, String + + # @!attribute per_unit_rate + # The base price charged per group + # + # @return [String] + required :per_unit_rate, String + + # @!method initialize(grouping_key:, maximum_charge:, minimum_charge:, per_unit_rate:) + # Configuration for grouped_with_min_max_thresholds pricing + # + # @param grouping_key [String] The event property used to group before applying thresholds + # + # @param maximum_charge [String] The maximum amount to charge each group + # + # @param minimum_charge [String] The minimum amount to charge each group, regardless of usage + # + # @param per_unit_rate [String] The base price charged per group + end end # @!method self.variants - # @return [Array(Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::Models::NewFloatingMinimumCompositePrice)] + # @return [Array(Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::NewFloatingMinimumCompositePrice)] end end end diff --git a/lib/orb/models/price_evaluate_preview_events_params.rb b/lib/orb/models/price_evaluate_preview_events_params.rb index 7020431b..c3180887 100644 --- a/lib/orb/models/price_evaluate_preview_events_params.rb +++ b/lib/orb/models/price_evaluate_preview_events_params.rb @@ -133,10 +133,9 @@ class PriceEvaluation < Orb::Internal::Type::BaseModel optional :grouping_keys, Orb::Internal::Type::ArrayOf[String] # @!attribute price - # An inline price definition to evaluate, allowing you to test price - # configurations before adding them to Orb. + # New floating price request body params. # - # @return [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::Models::NewFloatingMinimumCompositePrice, nil] + # @return [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::NewFloatingMinimumCompositePrice, nil] optional :price, union: -> { Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price @@ -160,12 +159,11 @@ class PriceEvaluation < Orb::Internal::Type::BaseModel # # @param grouping_keys [Array] Properties (or [computed properties](/extensibility/advanced-metrics#computed-pr # - # @param price [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::Models::NewFloatingMinimumCompositePrice, nil] An inline price definition to evaluate, allowing you to test price configuration + # @param price [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::NewFloatingMinimumCompositePrice, nil] New floating price request body params. # # @param price_id [String, nil] The ID of a price to evaluate that exists in your Orb account. - # An inline price definition to evaluate, allowing you to test price - # configurations before adding them to Orb. + # New floating price request body params. # # @see Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation#price module Price @@ -175,57 +173,57 @@ module Price variant :unit, -> { Orb::NewFloatingUnitPrice } - variant :package, -> { Orb::NewFloatingPackagePrice } - - variant :matrix, -> { Orb::NewFloatingMatrixPrice } - - variant :matrix_with_allocation, -> { Orb::NewFloatingMatrixWithAllocationPrice } - variant :tiered, -> { Orb::NewFloatingTieredPrice } variant :bulk, -> { Orb::NewFloatingBulkPrice } - variant :threshold_total_amount, -> { Orb::NewFloatingThresholdTotalAmountPrice } + variant :package, -> { Orb::NewFloatingPackagePrice } - variant :tiered_package, -> { Orb::NewFloatingTieredPackagePrice } + variant :matrix, -> { Orb::NewFloatingMatrixPrice } - variant :grouped_tiered, -> { Orb::NewFloatingGroupedTieredPrice } + variant :threshold_total_amount, -> { Orb::NewFloatingThresholdTotalAmountPrice } - variant :max_group_tiered_package, -> { Orb::NewFloatingMaxGroupTieredPackagePrice } + variant :tiered_package, -> { Orb::NewFloatingTieredPackagePrice } variant :tiered_with_minimum, -> { Orb::NewFloatingTieredWithMinimumPrice } - variant :package_with_allocation, -> { Orb::NewFloatingPackageWithAllocationPrice } + variant :grouped_tiered, -> { Orb::NewFloatingGroupedTieredPrice } variant :tiered_package_with_minimum, -> { Orb::NewFloatingTieredPackageWithMinimumPrice } + variant :package_with_allocation, -> { Orb::NewFloatingPackageWithAllocationPrice } + variant :unit_with_percent, -> { Orb::NewFloatingUnitWithPercentPrice } + variant :matrix_with_allocation, -> { Orb::NewFloatingMatrixWithAllocationPrice } + variant :tiered_with_proration, -> { Orb::NewFloatingTieredWithProrationPrice } variant :unit_with_proration, -> { Orb::NewFloatingUnitWithProrationPrice } variant :grouped_allocation, -> { Orb::NewFloatingGroupedAllocationPrice } + variant :bulk_with_proration, -> { Orb::NewFloatingBulkWithProrationPrice } + variant :grouped_with_prorated_minimum, -> { Orb::NewFloatingGroupedWithProratedMinimumPrice } variant :grouped_with_metered_minimum, -> { Orb::NewFloatingGroupedWithMeteredMinimumPrice } - variant :matrix_with_display_name, -> { Orb::NewFloatingMatrixWithDisplayNamePrice } + variant :grouped_with_min_max_thresholds, + -> { Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds } - variant :bulk_with_proration, -> { Orb::NewFloatingBulkWithProrationPrice } + variant :matrix_with_display_name, -> { Orb::NewFloatingMatrixWithDisplayNamePrice } variant :grouped_tiered_package, -> { Orb::NewFloatingGroupedTieredPackagePrice } + variant :max_group_tiered_package, -> { Orb::NewFloatingMaxGroupTieredPackagePrice } + variant :scalable_matrix_with_unit_pricing, -> { Orb::NewFloatingScalableMatrixWithUnitPricingPrice } variant :scalable_matrix_with_tiered_pricing, -> { Orb::NewFloatingScalableMatrixWithTieredPricingPrice } variant :cumulative_grouped_bulk, -> { Orb::NewFloatingCumulativeGroupedBulkPrice } - variant :grouped_with_min_max_thresholds, - -> { Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds } - variant :minimum, -> { Orb::NewFloatingMinimumCompositePrice } class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel @@ -243,10 +241,11 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel required :currency, String # @!attribute grouped_with_min_max_thresholds_config + # Configuration for grouped_with_min_max_thresholds pricing # - # @return [Hash{Symbol=>Object}] + # @return [Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig] required :grouped_with_min_max_thresholds_config, - Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + -> { Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig } # @!attribute item_id # The id of the item the price will be associated with. @@ -255,6 +254,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, :grouped_with_min_max_thresholds] required :model_type, const: :grouped_with_min_max_thresholds @@ -355,7 +355,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # - # @param grouped_with_min_max_thresholds_config [Hash{Symbol=>Object}] + # @param grouped_with_min_max_thresholds_config [Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig] Configuration for grouped_with_min_max_thresholds pricing # # @param item_id [String] The id of the item the price will be associated with. # @@ -383,7 +383,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed # - # @param model_type [Symbol, :grouped_with_min_max_thresholds] + # @param model_type [Symbol, :grouped_with_min_max_thresholds] The pricing model type # The cadence to bill for this price on. # @@ -401,10 +401,48 @@ module Cadence # @!method self.values # @return [Array] end + + # @see Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds#grouped_with_min_max_thresholds_config + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # The event property used to group before applying thresholds + # + # @return [String] + required :grouping_key, String + + # @!attribute maximum_charge + # The maximum amount to charge each group + # + # @return [String] + required :maximum_charge, String + + # @!attribute minimum_charge + # The minimum amount to charge each group, regardless of usage + # + # @return [String] + required :minimum_charge, String + + # @!attribute per_unit_rate + # The base price charged per group + # + # @return [String] + required :per_unit_rate, String + + # @!method initialize(grouping_key:, maximum_charge:, minimum_charge:, per_unit_rate:) + # Configuration for grouped_with_min_max_thresholds pricing + # + # @param grouping_key [String] The event property used to group before applying thresholds + # + # @param maximum_charge [String] The maximum amount to charge each group + # + # @param minimum_charge [String] The minimum amount to charge each group, regardless of usage + # + # @param per_unit_rate [String] The base price charged per group + end end # @!method self.variants - # @return [Array(Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::Models::NewFloatingMinimumCompositePrice)] + # @return [Array(Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::NewFloatingMinimumCompositePrice)] end end end diff --git a/lib/orb/models/price_interval.rb b/lib/orb/models/price_interval.rb index e7804ff4..1c08c50a 100644 --- a/lib/orb/models/price_interval.rb +++ b/lib/orb/models/price_interval.rb @@ -64,7 +64,7 @@ class PriceInterval < Orb::Internal::Type::BaseModel # For more on the types of prices, see # [the core concepts documentation](/core-concepts#plan-and-price) # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::Minimum] + # @return [Orb::Models::Price::Unit, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::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::Minimum] required :price, union: -> { Orb::Price } # @!attribute start_date @@ -103,7 +103,7 @@ class PriceInterval < Orb::Internal::Type::BaseModel # # @param fixed_fee_quantity_transitions [Array, nil] The fixed fee quantity transitions for this price interval. This is only relevan # - # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::Minimum] The Price resource represents a price that can be billed on a subscription, resu + # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::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::Minimum] The Price resource represents a price that can be billed on a subscription, resu # # @param start_date [Time] The start date of the price interval. This is the date that Orb starts billing f # diff --git a/lib/orb/models/subscription_create_params.rb b/lib/orb/models/subscription_create_params.rb index 307646a6..2089f3ce 100644 --- a/lib/orb/models/subscription_create_params.rb +++ b/lib/orb/models/subscription_create_params.rb @@ -438,9 +438,9 @@ class AddPrice < Orb::Internal::Type::BaseModel optional :plan_phase_order, Integer, nil?: true # @!attribute price - # The definition of a new price to create and add to the subscription. + # New subscription price request body params. # - # @return [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMinimumCompositePrice, nil] + # @return [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMinimumCompositePrice, nil] optional :price, union: -> { Orb::SubscriptionCreateParams::AddPrice::Price }, nil?: true # @!attribute price_id @@ -475,13 +475,13 @@ class AddPrice < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] The phase to add this price to. # - # @param price [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMinimumCompositePrice, nil] The definition of a new price to create and add to the subscription. + # @param price [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMinimumCompositePrice, nil] New subscription price request body params. # # @param price_id [String, nil] The id of the price to add to the subscription. # # @param start_date [Time, nil] The start date of the price interval. This is the date that the price will start - # The definition of a new price to create and add to the subscription. + # New subscription price request body params. # # @see Orb::Models::SubscriptionCreateParams::AddPrice#price module Price @@ -491,33 +491,50 @@ module Price variant :unit, -> { Orb::NewSubscriptionUnitPrice } - variant :package, -> { Orb::NewSubscriptionPackagePrice } - - variant :matrix, -> { Orb::NewSubscriptionMatrixPrice } - variant :tiered, -> { Orb::NewSubscriptionTieredPrice } variant :bulk, -> { Orb::NewSubscriptionBulkPrice } + variant :package, -> { Orb::NewSubscriptionPackagePrice } + + variant :matrix, -> { Orb::NewSubscriptionMatrixPrice } + variant :threshold_total_amount, -> { Orb::NewSubscriptionThresholdTotalAmountPrice } variant :tiered_package, -> { Orb::NewSubscriptionTieredPackagePrice } variant :tiered_with_minimum, -> { Orb::NewSubscriptionTieredWithMinimumPrice } - variant :unit_with_percent, -> { Orb::NewSubscriptionUnitWithPercentPrice } + variant :grouped_tiered, -> { Orb::NewSubscriptionGroupedTieredPrice } + + variant :tiered_package_with_minimum, -> { Orb::NewSubscriptionTieredPackageWithMinimumPrice } variant :package_with_allocation, -> { Orb::NewSubscriptionPackageWithAllocationPrice } - variant :tiered_with_proration, -> { Orb::NewSubscriptionTierWithProrationPrice } + variant :unit_with_percent, -> { Orb::NewSubscriptionUnitWithPercentPrice } + + variant :matrix_with_allocation, -> { Orb::NewSubscriptionMatrixWithAllocationPrice } + + variant :tiered_with_proration, -> { Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration } variant :unit_with_proration, -> { Orb::NewSubscriptionUnitWithProrationPrice } variant :grouped_allocation, -> { Orb::NewSubscriptionGroupedAllocationPrice } + variant :bulk_with_proration, -> { Orb::NewSubscriptionBulkWithProrationPrice } + variant :grouped_with_prorated_minimum, -> { Orb::NewSubscriptionGroupedWithProratedMinimumPrice } - variant :bulk_with_proration, -> { Orb::NewSubscriptionBulkWithProrationPrice } + variant :grouped_with_metered_minimum, -> { Orb::NewSubscriptionGroupedWithMeteredMinimumPrice } + + variant :grouped_with_min_max_thresholds, + -> { Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds } + + variant :matrix_with_display_name, -> { Orb::NewSubscriptionMatrixWithDisplayNamePrice } + + variant :grouped_tiered_package, -> { Orb::NewSubscriptionGroupedTieredPackagePrice } + + variant :max_group_tiered_package, -> { Orb::NewSubscriptionMaxGroupTieredPackagePrice } variant :scalable_matrix_with_unit_pricing, -> { Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice } @@ -526,24 +543,235 @@ module Price variant :cumulative_grouped_bulk, -> { Orb::NewSubscriptionCumulativeGroupedBulkPrice } - variant :max_group_tiered_package, -> { Orb::NewSubscriptionMaxGroupTieredPackagePrice } + variant :minimum, -> { Orb::NewSubscriptionMinimumCompositePrice } - variant :grouped_with_metered_minimum, -> { Orb::NewSubscriptionGroupedWithMeteredMinimumPrice } + class TieredWithProration < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence] + required :cadence, + enum: -> { Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence } - variant :matrix_with_display_name, -> { Orb::NewSubscriptionMatrixWithDisplayNamePrice } + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String - variant :grouped_tiered_package, -> { Orb::NewSubscriptionGroupedTieredPackagePrice } + # @!attribute model_type + # The pricing model type + # + # @return [Symbol, :tiered_with_proration] + required :model_type, const: :tiered_with_proration - variant :matrix_with_allocation, -> { Orb::NewSubscriptionMatrixWithAllocationPrice } + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String - variant :tiered_package_with_minimum, -> { Orb::NewSubscriptionTieredPackageWithMinimumPrice } + # @!attribute tiered_with_proration_config + # Configuration for tiered_with_proration pricing + # + # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig] + required :tiered_with_proration_config, + -> { Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig } - variant :grouped_tiered, -> { Orb::NewSubscriptionGroupedTieredPrice } + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true - variant :grouped_with_min_max_thresholds, - -> { Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds } + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true - variant :minimum, -> { Orb::NewSubscriptionMinimumCompositePrice } + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::ConversionRateConfig + }, + nil?: true + + # @!attribute currency + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + # + # @return [String, nil] + optional :currency, String, nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, + -> { + Orb::NewDimensionalPriceConfiguration + }, + nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!attribute reference_id + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + # + # @return [String, nil] + optional :reference_id, String, nil?: true + + # @!method initialize(cadence:, item_id:, name:, tiered_with_proration_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :tiered_with_proration) + # Some parameter documentations has been truncated, see + # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration} + # for more details. + # + # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence] The cadence to bill for this price on. + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param name [String] The name of the price. + # + # @param tiered_with_proration_config [Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig] Configuration for tiered_with_proration pricing + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments + # + # @param model_type [Symbol, :tiered_with_proration] The pricing model type + + # The cadence to bill for this price on. + # + # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + + # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration#tiered_with_proration_config + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + # @!attribute tiers + # Tiers for rating based on total usage quantities into the specified tier with + # proration + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] } + + # @!method initialize(tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig} + # for more details. + # + # Configuration for tiered_with_proration pricing + # + # @param tiers [Array] Tiers for rating based on total usage quantities into the specified tier with pr + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute tier_lower_bound + # Inclusive tier starting value + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Amount per unit + # + # @return [String] + required :unit_amount, String + + # @!method initialize(tier_lower_bound:, unit_amount:) + # Configuration for a single tiered with proration tier + # + # @param tier_lower_bound [String] Inclusive tier starting value + # + # @param unit_amount [String] Amount per unit + end + end + end class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @!attribute cadence @@ -554,10 +782,11 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel enum: -> { Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence } # @!attribute grouped_with_min_max_thresholds_config + # Configuration for grouped_with_min_max_thresholds pricing # - # @return [Hash{Symbol=>Object}] + # @return [Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig] required :grouped_with_min_max_thresholds_config, - Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + -> { Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig } # @!attribute item_id # The id of the item the price will be associated with. @@ -566,6 +795,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, :grouped_with_min_max_thresholds] required :model_type, const: :grouped_with_min_max_thresholds @@ -678,7 +908,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence] The cadence to bill for this price on. # - # @param grouped_with_min_max_thresholds_config [Hash{Symbol=>Object}] + # @param grouped_with_min_max_thresholds_config [Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig] Configuration for grouped_with_min_max_thresholds pricing # # @param item_id [String] The id of the item the price will be associated with. # @@ -710,7 +940,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments # - # @param model_type [Symbol, :grouped_with_min_max_thresholds] + # @param model_type [Symbol, :grouped_with_min_max_thresholds] The pricing model type # The cadence to bill for this price on. # @@ -728,10 +958,48 @@ module Cadence # @!method self.values # @return [Array] end + + # @see Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds#grouped_with_min_max_thresholds_config + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # The event property used to group before applying thresholds + # + # @return [String] + required :grouping_key, String + + # @!attribute maximum_charge + # The maximum amount to charge each group + # + # @return [String] + required :maximum_charge, String + + # @!attribute minimum_charge + # The minimum amount to charge each group, regardless of usage + # + # @return [String] + required :minimum_charge, String + + # @!attribute per_unit_rate + # The base price charged per group + # + # @return [String] + required :per_unit_rate, String + + # @!method initialize(grouping_key:, maximum_charge:, minimum_charge:, per_unit_rate:) + # Configuration for grouped_with_min_max_thresholds pricing + # + # @param grouping_key [String] The event property used to group before applying thresholds + # + # @param maximum_charge [String] The maximum amount to charge each group + # + # @param minimum_charge [String] The minimum amount to charge each group, regardless of usage + # + # @param per_unit_rate [String] The base price charged per group + end end # @!method self.variants - # @return [Array(Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMinimumCompositePrice)] + # @return [Array(Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMinimumCompositePrice)] end end @@ -871,9 +1139,9 @@ class ReplacePrice < Orb::Internal::Type::BaseModel optional :minimum_amount, String, nil?: true # @!attribute price - # The definition of a new price to create and add to the subscription. + # New subscription price request body params. # - # @return [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMinimumCompositePrice, nil] + # @return [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMinimumCompositePrice, nil] optional :price, union: -> { Orb::SubscriptionCreateParams::ReplacePrice::Price }, nil?: true # @!attribute price_id @@ -900,11 +1168,11 @@ class ReplacePrice < Orb::Internal::Type::BaseModel # # @param minimum_amount [String, nil] [DEPRECATED] Use add_adjustments instead. The subscription's minimum amount for # - # @param price [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMinimumCompositePrice, nil] The definition of a new price to create and add to the subscription. + # @param price [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMinimumCompositePrice, nil] New subscription price request body params. # # @param price_id [String, nil] The id of the price to add to the subscription. - # The definition of a new price to create and add to the subscription. + # New subscription price request body params. # # @see Orb::Models::SubscriptionCreateParams::ReplacePrice#price module Price @@ -914,33 +1182,51 @@ module Price variant :unit, -> { Orb::NewSubscriptionUnitPrice } - variant :package, -> { Orb::NewSubscriptionPackagePrice } - - variant :matrix, -> { Orb::NewSubscriptionMatrixPrice } - variant :tiered, -> { Orb::NewSubscriptionTieredPrice } variant :bulk, -> { Orb::NewSubscriptionBulkPrice } + variant :package, -> { Orb::NewSubscriptionPackagePrice } + + variant :matrix, -> { Orb::NewSubscriptionMatrixPrice } + variant :threshold_total_amount, -> { Orb::NewSubscriptionThresholdTotalAmountPrice } variant :tiered_package, -> { Orb::NewSubscriptionTieredPackagePrice } variant :tiered_with_minimum, -> { Orb::NewSubscriptionTieredWithMinimumPrice } - variant :unit_with_percent, -> { Orb::NewSubscriptionUnitWithPercentPrice } + variant :grouped_tiered, -> { Orb::NewSubscriptionGroupedTieredPrice } + + variant :tiered_package_with_minimum, -> { Orb::NewSubscriptionTieredPackageWithMinimumPrice } variant :package_with_allocation, -> { Orb::NewSubscriptionPackageWithAllocationPrice } - variant :tiered_with_proration, -> { Orb::NewSubscriptionTierWithProrationPrice } + variant :unit_with_percent, -> { Orb::NewSubscriptionUnitWithPercentPrice } + + variant :matrix_with_allocation, -> { Orb::NewSubscriptionMatrixWithAllocationPrice } + + variant :tiered_with_proration, + -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration } variant :unit_with_proration, -> { Orb::NewSubscriptionUnitWithProrationPrice } variant :grouped_allocation, -> { Orb::NewSubscriptionGroupedAllocationPrice } + variant :bulk_with_proration, -> { Orb::NewSubscriptionBulkWithProrationPrice } + variant :grouped_with_prorated_minimum, -> { Orb::NewSubscriptionGroupedWithProratedMinimumPrice } - variant :bulk_with_proration, -> { Orb::NewSubscriptionBulkWithProrationPrice } + variant :grouped_with_metered_minimum, -> { Orb::NewSubscriptionGroupedWithMeteredMinimumPrice } + + variant :grouped_with_min_max_thresholds, + -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds } + + variant :matrix_with_display_name, -> { Orb::NewSubscriptionMatrixWithDisplayNamePrice } + + variant :grouped_tiered_package, -> { Orb::NewSubscriptionGroupedTieredPackagePrice } + + variant :max_group_tiered_package, -> { Orb::NewSubscriptionMaxGroupTieredPackagePrice } variant :scalable_matrix_with_unit_pricing, -> { Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice } @@ -949,24 +1235,235 @@ module Price variant :cumulative_grouped_bulk, -> { Orb::NewSubscriptionCumulativeGroupedBulkPrice } - variant :max_group_tiered_package, -> { Orb::NewSubscriptionMaxGroupTieredPackagePrice } + variant :minimum, -> { Orb::NewSubscriptionMinimumCompositePrice } - variant :grouped_with_metered_minimum, -> { Orb::NewSubscriptionGroupedWithMeteredMinimumPrice } + class TieredWithProration < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence] + required :cadence, + enum: -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence } - variant :matrix_with_display_name, -> { Orb::NewSubscriptionMatrixWithDisplayNamePrice } + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String - variant :grouped_tiered_package, -> { Orb::NewSubscriptionGroupedTieredPackagePrice } + # @!attribute model_type + # The pricing model type + # + # @return [Symbol, :tiered_with_proration] + required :model_type, const: :tiered_with_proration - variant :matrix_with_allocation, -> { Orb::NewSubscriptionMatrixWithAllocationPrice } + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String - variant :tiered_package_with_minimum, -> { Orb::NewSubscriptionTieredPackageWithMinimumPrice } + # @!attribute tiered_with_proration_config + # Configuration for tiered_with_proration pricing + # + # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig] + required :tiered_with_proration_config, + -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig } - variant :grouped_tiered, -> { Orb::NewSubscriptionGroupedTieredPrice } + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true - variant :grouped_with_min_max_thresholds, - -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds } + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true - variant :minimum, -> { Orb::NewSubscriptionMinimumCompositePrice } + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::ConversionRateConfig + }, + nil?: true + + # @!attribute currency + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + # + # @return [String, nil] + optional :currency, String, nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, + -> { + Orb::NewDimensionalPriceConfiguration + }, + nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!attribute reference_id + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + # + # @return [String, nil] + optional :reference_id, String, nil?: true + + # @!method initialize(cadence:, item_id:, name:, tiered_with_proration_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :tiered_with_proration) + # Some parameter documentations has been truncated, see + # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration} + # for more details. + # + # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence] The cadence to bill for this price on. + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param name [String] The name of the price. + # + # @param tiered_with_proration_config [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig] Configuration for tiered_with_proration pricing + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments + # + # @param model_type [Symbol, :tiered_with_proration] The pricing model type + + # The cadence to bill for this price on. + # + # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + + # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration#tiered_with_proration_config + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + # @!attribute tiers + # Tiers for rating based on total usage quantities into the specified tier with + # proration + # + # @return [Array] + required :tiers, + -> { Orb::Internal::Type::ArrayOf[Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] } + + # @!method initialize(tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig} + # for more details. + # + # Configuration for tiered_with_proration pricing + # + # @param tiers [Array] Tiers for rating based on total usage quantities into the specified tier with pr + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute tier_lower_bound + # Inclusive tier starting value + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Amount per unit + # + # @return [String] + required :unit_amount, String + + # @!method initialize(tier_lower_bound:, unit_amount:) + # Configuration for a single tiered with proration tier + # + # @param tier_lower_bound [String] Inclusive tier starting value + # + # @param unit_amount [String] Amount per unit + end + end + end class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @!attribute cadence @@ -977,10 +1474,11 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel enum: -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence } # @!attribute grouped_with_min_max_thresholds_config + # Configuration for grouped_with_min_max_thresholds pricing # - # @return [Hash{Symbol=>Object}] + # @return [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig] required :grouped_with_min_max_thresholds_config, - Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + -> { Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig } # @!attribute item_id # The id of the item the price will be associated with. @@ -989,6 +1487,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, :grouped_with_min_max_thresholds] required :model_type, const: :grouped_with_min_max_thresholds @@ -1101,7 +1600,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence] The cadence to bill for this price on. # - # @param grouped_with_min_max_thresholds_config [Hash{Symbol=>Object}] + # @param grouped_with_min_max_thresholds_config [Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig] Configuration for grouped_with_min_max_thresholds pricing # # @param item_id [String] The id of the item the price will be associated with. # @@ -1133,7 +1632,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments # - # @param model_type [Symbol, :grouped_with_min_max_thresholds] + # @param model_type [Symbol, :grouped_with_min_max_thresholds] The pricing model type # The cadence to bill for this price on. # @@ -1151,10 +1650,48 @@ module Cadence # @!method self.values # @return [Array] end + + # @see Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds#grouped_with_min_max_thresholds_config + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # The event property used to group before applying thresholds + # + # @return [String] + required :grouping_key, String + + # @!attribute maximum_charge + # The maximum amount to charge each group + # + # @return [String] + required :maximum_charge, String + + # @!attribute minimum_charge + # The minimum amount to charge each group, regardless of usage + # + # @return [String] + required :minimum_charge, String + + # @!attribute per_unit_rate + # The base price charged per group + # + # @return [String] + required :per_unit_rate, String + + # @!method initialize(grouping_key:, maximum_charge:, minimum_charge:, per_unit_rate:) + # Configuration for grouped_with_min_max_thresholds pricing + # + # @param grouping_key [String] The event property used to group before applying thresholds + # + # @param maximum_charge [String] The maximum amount to charge each group + # + # @param minimum_charge [String] The minimum amount to charge each group, regardless of usage + # + # @param per_unit_rate [String] The base price charged per group + end end # @!method self.variants - # @return [Array(Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMinimumCompositePrice)] + # @return [Array(Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMinimumCompositePrice)] end end end diff --git a/lib/orb/models/subscription_price_intervals_params.rb b/lib/orb/models/subscription_price_intervals_params.rb index 0b752c23..e40a54e4 100644 --- a/lib/orb/models/subscription_price_intervals_params.rb +++ b/lib/orb/models/subscription_price_intervals_params.rb @@ -128,9 +128,9 @@ class Add < Orb::Internal::Type::BaseModel optional :minimum_amount, Float, nil?: true # @!attribute price - # The definition of a new price to create and add to the subscription. + # New floating price request body params. # - # @return [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds, Orb::Models::NewFloatingMinimumCompositePrice, nil] + # @return [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::NewFloatingMinimumCompositePrice, nil] optional :price, union: -> { Orb::SubscriptionPriceIntervalsParams::Add::Price }, nil?: true # @!attribute price_id @@ -172,7 +172,7 @@ class Add < Orb::Internal::Type::BaseModel # # @param minimum_amount [Float, nil] The minimum amount that will be billed for this price interval for a given billi # - # @param price [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds, Orb::Models::NewFloatingMinimumCompositePrice, nil] The definition of a new price to create and add to the subscription. + # @param price [Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::NewFloatingMinimumCompositePrice, nil] New floating price request body params. # # @param price_id [String, nil] The id of the price to add to the subscription. # @@ -306,7 +306,7 @@ class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel # @param quantity [Integer] The quantity of the fixed fee quantity transition. end - # The definition of a new price to create and add to the subscription. + # New floating price request body params. # # @see Orb::Models::SubscriptionPriceIntervalsParams::Add#price module Price @@ -316,57 +316,57 @@ module Price variant :unit, -> { Orb::NewFloatingUnitPrice } - variant :package, -> { Orb::NewFloatingPackagePrice } - - variant :matrix, -> { Orb::NewFloatingMatrixPrice } - - variant :matrix_with_allocation, -> { Orb::NewFloatingMatrixWithAllocationPrice } - variant :tiered, -> { Orb::NewFloatingTieredPrice } variant :bulk, -> { Orb::NewFloatingBulkPrice } - variant :threshold_total_amount, -> { Orb::NewFloatingThresholdTotalAmountPrice } + variant :package, -> { Orb::NewFloatingPackagePrice } - variant :tiered_package, -> { Orb::NewFloatingTieredPackagePrice } + variant :matrix, -> { Orb::NewFloatingMatrixPrice } - variant :grouped_tiered, -> { Orb::NewFloatingGroupedTieredPrice } + variant :threshold_total_amount, -> { Orb::NewFloatingThresholdTotalAmountPrice } - variant :max_group_tiered_package, -> { Orb::NewFloatingMaxGroupTieredPackagePrice } + variant :tiered_package, -> { Orb::NewFloatingTieredPackagePrice } variant :tiered_with_minimum, -> { Orb::NewFloatingTieredWithMinimumPrice } - variant :package_with_allocation, -> { Orb::NewFloatingPackageWithAllocationPrice } + variant :grouped_tiered, -> { Orb::NewFloatingGroupedTieredPrice } variant :tiered_package_with_minimum, -> { Orb::NewFloatingTieredPackageWithMinimumPrice } + variant :package_with_allocation, -> { Orb::NewFloatingPackageWithAllocationPrice } + variant :unit_with_percent, -> { Orb::NewFloatingUnitWithPercentPrice } + variant :matrix_with_allocation, -> { Orb::NewFloatingMatrixWithAllocationPrice } + variant :tiered_with_proration, -> { Orb::NewFloatingTieredWithProrationPrice } variant :unit_with_proration, -> { Orb::NewFloatingUnitWithProrationPrice } variant :grouped_allocation, -> { Orb::NewFloatingGroupedAllocationPrice } + variant :bulk_with_proration, -> { Orb::NewFloatingBulkWithProrationPrice } + variant :grouped_with_prorated_minimum, -> { Orb::NewFloatingGroupedWithProratedMinimumPrice } variant :grouped_with_metered_minimum, -> { Orb::NewFloatingGroupedWithMeteredMinimumPrice } - variant :matrix_with_display_name, -> { Orb::NewFloatingMatrixWithDisplayNamePrice } + variant :grouped_with_min_max_thresholds, + -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds } - variant :bulk_with_proration, -> { Orb::NewFloatingBulkWithProrationPrice } + variant :matrix_with_display_name, -> { Orb::NewFloatingMatrixWithDisplayNamePrice } variant :grouped_tiered_package, -> { Orb::NewFloatingGroupedTieredPackagePrice } + variant :max_group_tiered_package, -> { Orb::NewFloatingMaxGroupTieredPackagePrice } + variant :scalable_matrix_with_unit_pricing, -> { Orb::NewFloatingScalableMatrixWithUnitPricingPrice } variant :scalable_matrix_with_tiered_pricing, -> { Orb::NewFloatingScalableMatrixWithTieredPricingPrice } variant :cumulative_grouped_bulk, -> { Orb::NewFloatingCumulativeGroupedBulkPrice } - variant :grouped_with_min_max_thresholds, - -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds } - variant :minimum, -> { Orb::NewFloatingMinimumCompositePrice } class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel @@ -384,10 +384,11 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel required :currency, String # @!attribute grouped_with_min_max_thresholds_config + # Configuration for grouped_with_min_max_thresholds pricing # - # @return [Hash{Symbol=>Object}] + # @return [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig] required :grouped_with_min_max_thresholds_config, - Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + -> { Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig } # @!attribute item_id # The id of the item the price will be associated with. @@ -396,6 +397,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, :grouped_with_min_max_thresholds] required :model_type, const: :grouped_with_min_max_thresholds @@ -496,7 +498,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @param currency [String] An ISO 4217 currency string for which this price is billed in. # - # @param grouped_with_min_max_thresholds_config [Hash{Symbol=>Object}] + # @param grouped_with_min_max_thresholds_config [Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig] Configuration for grouped_with_min_max_thresholds pricing # # @param item_id [String] The id of the item the price will be associated with. # @@ -524,7 +526,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed # - # @param model_type [Symbol, :grouped_with_min_max_thresholds] + # @param model_type [Symbol, :grouped_with_min_max_thresholds] The pricing model type # The cadence to bill for this price on. # @@ -542,10 +544,48 @@ module Cadence # @!method self.values # @return [Array] end + + # @see Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds#grouped_with_min_max_thresholds_config + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # The event property used to group before applying thresholds + # + # @return [String] + required :grouping_key, String + + # @!attribute maximum_charge + # The maximum amount to charge each group + # + # @return [String] + required :maximum_charge, String + + # @!attribute minimum_charge + # The minimum amount to charge each group, regardless of usage + # + # @return [String] + required :minimum_charge, String + + # @!attribute per_unit_rate + # The base price charged per group + # + # @return [String] + required :per_unit_rate, String + + # @!method initialize(grouping_key:, maximum_charge:, minimum_charge:, per_unit_rate:) + # Configuration for grouped_with_min_max_thresholds pricing + # + # @param grouping_key [String] The event property used to group before applying thresholds + # + # @param maximum_charge [String] The maximum amount to charge each group + # + # @param minimum_charge [String] The minimum amount to charge each group, regardless of usage + # + # @param per_unit_rate [String] The base price charged per group + end end # @!method self.variants - # @return [Array(Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds, Orb::Models::NewFloatingMinimumCompositePrice)] + # @return [Array(Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::NewFloatingPackagePrice, Orb::Models::NewFloatingMatrixPrice, Orb::Models::NewFloatingThresholdTotalAmountPrice, Orb::Models::NewFloatingTieredPackagePrice, Orb::Models::NewFloatingTieredWithMinimumPrice, Orb::Models::NewFloatingGroupedTieredPrice, Orb::Models::NewFloatingTieredPackageWithMinimumPrice, Orb::Models::NewFloatingPackageWithAllocationPrice, Orb::Models::NewFloatingUnitWithPercentPrice, Orb::Models::NewFloatingMatrixWithAllocationPrice, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::NewFloatingMinimumCompositePrice)] end end diff --git a/lib/orb/models/subscription_schedule_plan_change_params.rb b/lib/orb/models/subscription_schedule_plan_change_params.rb index b0ee5567..ba943cb2 100644 --- a/lib/orb/models/subscription_schedule_plan_change_params.rb +++ b/lib/orb/models/subscription_schedule_plan_change_params.rb @@ -403,9 +403,9 @@ class AddPrice < Orb::Internal::Type::BaseModel optional :plan_phase_order, Integer, nil?: true # @!attribute price - # The definition of a new price to create and add to the subscription. + # New subscription price request body params. # - # @return [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMinimumCompositePrice, nil] + # @return [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMinimumCompositePrice, nil] optional :price, union: -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price }, nil?: true # @!attribute price_id @@ -440,13 +440,13 @@ class AddPrice < Orb::Internal::Type::BaseModel # # @param plan_phase_order [Integer, nil] The phase to add this price to. # - # @param price [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMinimumCompositePrice, nil] The definition of a new price to create and add to the subscription. + # @param price [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMinimumCompositePrice, nil] New subscription price request body params. # # @param price_id [String, nil] The id of the price to add to the subscription. # # @param start_date [Time, nil] The start date of the price interval. This is the date that the price will start - # The definition of a new price to create and add to the subscription. + # New subscription price request body params. # # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice#price module Price @@ -456,33 +456,51 @@ module Price variant :unit, -> { Orb::NewSubscriptionUnitPrice } - variant :package, -> { Orb::NewSubscriptionPackagePrice } - - variant :matrix, -> { Orb::NewSubscriptionMatrixPrice } - variant :tiered, -> { Orb::NewSubscriptionTieredPrice } variant :bulk, -> { Orb::NewSubscriptionBulkPrice } + variant :package, -> { Orb::NewSubscriptionPackagePrice } + + variant :matrix, -> { Orb::NewSubscriptionMatrixPrice } + variant :threshold_total_amount, -> { Orb::NewSubscriptionThresholdTotalAmountPrice } variant :tiered_package, -> { Orb::NewSubscriptionTieredPackagePrice } variant :tiered_with_minimum, -> { Orb::NewSubscriptionTieredWithMinimumPrice } - variant :unit_with_percent, -> { Orb::NewSubscriptionUnitWithPercentPrice } + variant :grouped_tiered, -> { Orb::NewSubscriptionGroupedTieredPrice } + + variant :tiered_package_with_minimum, -> { Orb::NewSubscriptionTieredPackageWithMinimumPrice } variant :package_with_allocation, -> { Orb::NewSubscriptionPackageWithAllocationPrice } - variant :tiered_with_proration, -> { Orb::NewSubscriptionTierWithProrationPrice } + variant :unit_with_percent, -> { Orb::NewSubscriptionUnitWithPercentPrice } + + variant :matrix_with_allocation, -> { Orb::NewSubscriptionMatrixWithAllocationPrice } + + variant :tiered_with_proration, + -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration } variant :unit_with_proration, -> { Orb::NewSubscriptionUnitWithProrationPrice } variant :grouped_allocation, -> { Orb::NewSubscriptionGroupedAllocationPrice } + variant :bulk_with_proration, -> { Orb::NewSubscriptionBulkWithProrationPrice } + variant :grouped_with_prorated_minimum, -> { Orb::NewSubscriptionGroupedWithProratedMinimumPrice } - variant :bulk_with_proration, -> { Orb::NewSubscriptionBulkWithProrationPrice } + variant :grouped_with_metered_minimum, -> { Orb::NewSubscriptionGroupedWithMeteredMinimumPrice } + + variant :grouped_with_min_max_thresholds, + -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds } + + variant :matrix_with_display_name, -> { Orb::NewSubscriptionMatrixWithDisplayNamePrice } + + variant :grouped_tiered_package, -> { Orb::NewSubscriptionGroupedTieredPackagePrice } + + variant :max_group_tiered_package, -> { Orb::NewSubscriptionMaxGroupTieredPackagePrice } variant :scalable_matrix_with_unit_pricing, -> { Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice } @@ -491,24 +509,239 @@ module Price variant :cumulative_grouped_bulk, -> { Orb::NewSubscriptionCumulativeGroupedBulkPrice } - variant :max_group_tiered_package, -> { Orb::NewSubscriptionMaxGroupTieredPackagePrice } + variant :minimum, -> { Orb::NewSubscriptionMinimumCompositePrice } - variant :grouped_with_metered_minimum, -> { Orb::NewSubscriptionGroupedWithMeteredMinimumPrice } + class TieredWithProration < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence] + required :cadence, + enum: -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence } - variant :matrix_with_display_name, -> { Orb::NewSubscriptionMatrixWithDisplayNamePrice } + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String - variant :grouped_tiered_package, -> { Orb::NewSubscriptionGroupedTieredPackagePrice } + # @!attribute model_type + # The pricing model type + # + # @return [Symbol, :tiered_with_proration] + required :model_type, const: :tiered_with_proration - variant :matrix_with_allocation, -> { Orb::NewSubscriptionMatrixWithAllocationPrice } + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String - variant :tiered_package_with_minimum, -> { Orb::NewSubscriptionTieredPackageWithMinimumPrice } + # @!attribute tiered_with_proration_config + # Configuration for tiered_with_proration pricing + # + # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig] + required :tiered_with_proration_config, + -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig } - variant :grouped_tiered, -> { Orb::NewSubscriptionGroupedTieredPrice } + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true - variant :grouped_with_min_max_thresholds, - -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds } + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true - variant :minimum, -> { Orb::NewSubscriptionMinimumCompositePrice } + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::ConversionRateConfig + }, + nil?: true + + # @!attribute currency + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + # + # @return [String, nil] + optional :currency, String, nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, + -> { + Orb::NewDimensionalPriceConfiguration + }, + nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!attribute reference_id + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + # + # @return [String, nil] + optional :reference_id, String, nil?: true + + # @!method initialize(cadence:, item_id:, name:, tiered_with_proration_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :tiered_with_proration) + # Some parameter documentations has been truncated, see + # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration} + # for more details. + # + # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence] The cadence to bill for this price on. + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param name [String] The name of the price. + # + # @param tiered_with_proration_config [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig] Configuration for tiered_with_proration pricing + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments + # + # @param model_type [Symbol, :tiered_with_proration] The pricing model type + + # The cadence to bill for this price on. + # + # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + + # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration#tiered_with_proration_config + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + # @!attribute tiers + # Tiers for rating based on total usage quantities into the specified tier with + # proration + # + # @return [Array] + required :tiers, + -> do + Orb::Internal::Type::ArrayOf[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier + ] + end + + # @!method initialize(tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig} + # for more details. + # + # Configuration for tiered_with_proration pricing + # + # @param tiers [Array] Tiers for rating based on total usage quantities into the specified tier with pr + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute tier_lower_bound + # Inclusive tier starting value + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Amount per unit + # + # @return [String] + required :unit_amount, String + + # @!method initialize(tier_lower_bound:, unit_amount:) + # Configuration for a single tiered with proration tier + # + # @param tier_lower_bound [String] Inclusive tier starting value + # + # @param unit_amount [String] Amount per unit + end + end + end class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @!attribute cadence @@ -519,10 +752,11 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel enum: -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence } # @!attribute grouped_with_min_max_thresholds_config + # Configuration for grouped_with_min_max_thresholds pricing # - # @return [Hash{Symbol=>Object}] + # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig] required :grouped_with_min_max_thresholds_config, - Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + -> { Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig } # @!attribute item_id # The id of the item the price will be associated with. @@ -531,6 +765,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, :grouped_with_min_max_thresholds] required :model_type, const: :grouped_with_min_max_thresholds @@ -643,7 +878,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence] The cadence to bill for this price on. # - # @param grouped_with_min_max_thresholds_config [Hash{Symbol=>Object}] + # @param grouped_with_min_max_thresholds_config [Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig] Configuration for grouped_with_min_max_thresholds pricing # # @param item_id [String] The id of the item the price will be associated with. # @@ -675,7 +910,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments # - # @param model_type [Symbol, :grouped_with_min_max_thresholds] + # @param model_type [Symbol, :grouped_with_min_max_thresholds] The pricing model type # The cadence to bill for this price on. # @@ -693,10 +928,48 @@ module Cadence # @!method self.values # @return [Array] end + + # @see Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds#grouped_with_min_max_thresholds_config + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # The event property used to group before applying thresholds + # + # @return [String] + required :grouping_key, String + + # @!attribute maximum_charge + # The maximum amount to charge each group + # + # @return [String] + required :maximum_charge, String + + # @!attribute minimum_charge + # The minimum amount to charge each group, regardless of usage + # + # @return [String] + required :minimum_charge, String + + # @!attribute per_unit_rate + # The base price charged per group + # + # @return [String] + required :per_unit_rate, String + + # @!method initialize(grouping_key:, maximum_charge:, minimum_charge:, per_unit_rate:) + # Configuration for grouped_with_min_max_thresholds pricing + # + # @param grouping_key [String] The event property used to group before applying thresholds + # + # @param maximum_charge [String] The maximum amount to charge each group + # + # @param minimum_charge [String] The minimum amount to charge each group, regardless of usage + # + # @param per_unit_rate [String] The base price charged per group + end end # @!method self.variants - # @return [Array(Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMinimumCompositePrice)] + # @return [Array(Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMinimumCompositePrice)] end end @@ -839,9 +1112,9 @@ class ReplacePrice < Orb::Internal::Type::BaseModel optional :minimum_amount, String, nil?: true # @!attribute price - # The definition of a new price to create and add to the subscription. + # New subscription price request body params. # - # @return [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMinimumCompositePrice, nil] + # @return [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMinimumCompositePrice, nil] optional :price, union: -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price @@ -873,11 +1146,11 @@ class ReplacePrice < Orb::Internal::Type::BaseModel # # @param minimum_amount [String, nil] [DEPRECATED] Use add_adjustments instead. The subscription's minimum amount for # - # @param price [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMinimumCompositePrice, nil] The definition of a new price to create and add to the subscription. + # @param price [Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMinimumCompositePrice, nil] New subscription price request body params. # # @param price_id [String, nil] The id of the price to add to the subscription. - # The definition of a new price to create and add to the subscription. + # New subscription price request body params. # # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice#price module Price @@ -887,33 +1160,51 @@ module Price variant :unit, -> { Orb::NewSubscriptionUnitPrice } - variant :package, -> { Orb::NewSubscriptionPackagePrice } - - variant :matrix, -> { Orb::NewSubscriptionMatrixPrice } - variant :tiered, -> { Orb::NewSubscriptionTieredPrice } variant :bulk, -> { Orb::NewSubscriptionBulkPrice } + variant :package, -> { Orb::NewSubscriptionPackagePrice } + + variant :matrix, -> { Orb::NewSubscriptionMatrixPrice } + variant :threshold_total_amount, -> { Orb::NewSubscriptionThresholdTotalAmountPrice } variant :tiered_package, -> { Orb::NewSubscriptionTieredPackagePrice } variant :tiered_with_minimum, -> { Orb::NewSubscriptionTieredWithMinimumPrice } - variant :unit_with_percent, -> { Orb::NewSubscriptionUnitWithPercentPrice } + variant :grouped_tiered, -> { Orb::NewSubscriptionGroupedTieredPrice } + + variant :tiered_package_with_minimum, -> { Orb::NewSubscriptionTieredPackageWithMinimumPrice } variant :package_with_allocation, -> { Orb::NewSubscriptionPackageWithAllocationPrice } - variant :tiered_with_proration, -> { Orb::NewSubscriptionTierWithProrationPrice } + variant :unit_with_percent, -> { Orb::NewSubscriptionUnitWithPercentPrice } + + variant :matrix_with_allocation, -> { Orb::NewSubscriptionMatrixWithAllocationPrice } + + variant :tiered_with_proration, + -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration } variant :unit_with_proration, -> { Orb::NewSubscriptionUnitWithProrationPrice } variant :grouped_allocation, -> { Orb::NewSubscriptionGroupedAllocationPrice } + variant :bulk_with_proration, -> { Orb::NewSubscriptionBulkWithProrationPrice } + variant :grouped_with_prorated_minimum, -> { Orb::NewSubscriptionGroupedWithProratedMinimumPrice } - variant :bulk_with_proration, -> { Orb::NewSubscriptionBulkWithProrationPrice } + variant :grouped_with_metered_minimum, -> { Orb::NewSubscriptionGroupedWithMeteredMinimumPrice } + + variant :grouped_with_min_max_thresholds, + -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds } + + variant :matrix_with_display_name, -> { Orb::NewSubscriptionMatrixWithDisplayNamePrice } + + variant :grouped_tiered_package, -> { Orb::NewSubscriptionGroupedTieredPackagePrice } + + variant :max_group_tiered_package, -> { Orb::NewSubscriptionMaxGroupTieredPackagePrice } variant :scalable_matrix_with_unit_pricing, -> { Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice } @@ -922,24 +1213,239 @@ module Price variant :cumulative_grouped_bulk, -> { Orb::NewSubscriptionCumulativeGroupedBulkPrice } - variant :max_group_tiered_package, -> { Orb::NewSubscriptionMaxGroupTieredPackagePrice } + variant :minimum, -> { Orb::NewSubscriptionMinimumCompositePrice } - variant :grouped_with_metered_minimum, -> { Orb::NewSubscriptionGroupedWithMeteredMinimumPrice } + class TieredWithProration < Orb::Internal::Type::BaseModel + # @!attribute cadence + # The cadence to bill for this price on. + # + # @return [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence] + required :cadence, + enum: -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence } - variant :matrix_with_display_name, -> { Orb::NewSubscriptionMatrixWithDisplayNamePrice } + # @!attribute item_id + # The id of the item the price will be associated with. + # + # @return [String] + required :item_id, String - variant :grouped_tiered_package, -> { Orb::NewSubscriptionGroupedTieredPackagePrice } + # @!attribute model_type + # The pricing model type + # + # @return [Symbol, :tiered_with_proration] + required :model_type, const: :tiered_with_proration - variant :matrix_with_allocation, -> { Orb::NewSubscriptionMatrixWithAllocationPrice } + # @!attribute name + # The name of the price. + # + # @return [String] + required :name, String - variant :tiered_package_with_minimum, -> { Orb::NewSubscriptionTieredPackageWithMinimumPrice } + # @!attribute tiered_with_proration_config + # Configuration for tiered_with_proration pricing + # + # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig] + required :tiered_with_proration_config, + -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig } - variant :grouped_tiered, -> { Orb::NewSubscriptionGroupedTieredPrice } + # @!attribute billable_metric_id + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + # + # @return [String, nil] + optional :billable_metric_id, String, nil?: true - variant :grouped_with_min_max_thresholds, - -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds } + # @!attribute billed_in_advance + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + # + # @return [Boolean, nil] + optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true - variant :minimum, -> { Orb::NewSubscriptionMinimumCompositePrice } + # @!attribute billing_cycle_configuration + # For custom cadence: specifies the duration of the billing period in days or + # months. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute conversion_rate + # The per unit conversion rate of the price currency to the invoicing currency. + # + # @return [Float, nil] + optional :conversion_rate, Float, nil?: true + + # @!attribute conversion_rate_config + # The configuration for the rate of the price currency to the invoicing currency. + # + # @return [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] + optional :conversion_rate_config, + union: -> { + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::ConversionRateConfig + }, + nil?: true + + # @!attribute currency + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + # + # @return [String, nil] + optional :currency, String, nil?: true + + # @!attribute dimensional_price_configuration + # For dimensional price: specifies a price group and dimension values + # + # @return [Orb::Models::NewDimensionalPriceConfiguration, nil] + optional :dimensional_price_configuration, + -> { + Orb::NewDimensionalPriceConfiguration + }, + nil?: true + + # @!attribute external_price_id + # An alias for the price. + # + # @return [String, nil] + optional :external_price_id, String, nil?: true + + # @!attribute fixed_price_quantity + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + # + # @return [Float, nil] + optional :fixed_price_quantity, Float, nil?: true + + # @!attribute invoice_grouping_key + # The property used to group this price on an invoice + # + # @return [String, nil] + optional :invoice_grouping_key, String, nil?: true + + # @!attribute invoicing_cycle_configuration + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + # + # @return [Orb::Models::NewBillingCycleConfiguration, nil] + optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true + + # @!attribute metadata + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + # + # @return [Hash{Symbol=>String, nil}, nil] + optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true + + # @!attribute reference_id + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + # + # @return [String, nil] + optional :reference_id, String, nil?: true + + # @!method initialize(cadence:, item_id:, name:, tiered_with_proration_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, currency: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, reference_id: nil, model_type: :tiered_with_proration) + # Some parameter documentations has been truncated, see + # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration} + # for more details. + # + # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence] The cadence to bill for this price on. + # + # @param item_id [String] The id of the item the price will be associated with. + # + # @param name [String] The name of the price. + # + # @param tiered_with_proration_config [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig] Configuration for tiered_with_proration pricing + # + # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b + # + # @param billed_in_advance [Boolean, nil] If the Price represents a fixed cost, the price will be billed in-advance if thi + # + # @param billing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] For custom cadence: specifies the duration of the billing period in days or mont + # + # @param conversion_rate [Float, nil] The per unit conversion rate of the price currency to the invoicing currency. + # + # @param conversion_rate_config [Orb::Models::UnitConversionRateConfig, Orb::Models::TieredConversionRateConfig, nil] The configuration for the rate of the price currency to the invoicing currency. + # + # @param currency [String, nil] An ISO 4217 currency string, or custom pricing unit identifier, in which this pr + # + # @param dimensional_price_configuration [Orb::Models::NewDimensionalPriceConfiguration, nil] For dimensional price: specifies a price group and dimension values + # + # @param external_price_id [String, nil] An alias for the price. + # + # @param fixed_price_quantity [Float, nil] If the Price represents a fixed cost, this represents the quantity of units appl + # + # @param invoice_grouping_key [String, nil] The property used to group this price on an invoice + # + # @param invoicing_cycle_configuration [Orb::Models::NewBillingCycleConfiguration, nil] Within each billing cycle, specifies the cadence at which invoices are produced. + # + # @param metadata [Hash{Symbol=>String, nil}, nil] User-specified key/value pairs for the resource. Individual keys can be removed + # + # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments + # + # @param model_type [Symbol, :tiered_with_proration] The pricing model type + + # The cadence to bill for this price on. + # + # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration#cadence + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL = :annual + SEMI_ANNUAL = :semi_annual + MONTHLY = :monthly + QUARTERLY = :quarterly + ONE_TIME = :one_time + CUSTOM = :custom + + # @!method self.values + # @return [Array] + end + + # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration#tiered_with_proration_config + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + # @!attribute tiers + # Tiers for rating based on total usage quantities into the specified tier with + # proration + # + # @return [Array] + required :tiers, + -> do + Orb::Internal::Type::ArrayOf[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier + ] + end + + # @!method initialize(tiers:) + # Some parameter documentations has been truncated, see + # {Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig} + # for more details. + # + # Configuration for tiered_with_proration pricing + # + # @param tiers [Array] Tiers for rating based on total usage quantities into the specified tier with pr + + class Tier < Orb::Internal::Type::BaseModel + # @!attribute tier_lower_bound + # Inclusive tier starting value + # + # @return [String] + required :tier_lower_bound, String + + # @!attribute unit_amount + # Amount per unit + # + # @return [String] + required :unit_amount, String + + # @!method initialize(tier_lower_bound:, unit_amount:) + # Configuration for a single tiered with proration tier + # + # @param tier_lower_bound [String] Inclusive tier starting value + # + # @param unit_amount [String] Amount per unit + end + end + end class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @!attribute cadence @@ -950,10 +1456,11 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel enum: -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence } # @!attribute grouped_with_min_max_thresholds_config + # Configuration for grouped_with_min_max_thresholds pricing # - # @return [Hash{Symbol=>Object}] + # @return [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig] required :grouped_with_min_max_thresholds_config, - Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] + -> { Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig } # @!attribute item_id # The id of the item the price will be associated with. @@ -962,6 +1469,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel required :item_id, String # @!attribute model_type + # The pricing model type # # @return [Symbol, :grouped_with_min_max_thresholds] required :model_type, const: :grouped_with_min_max_thresholds @@ -1074,7 +1582,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @param cadence [Symbol, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence] The cadence to bill for this price on. # - # @param grouped_with_min_max_thresholds_config [Hash{Symbol=>Object}] + # @param grouped_with_min_max_thresholds_config [Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig] Configuration for grouped_with_min_max_thresholds pricing # # @param item_id [String] The id of the item the price will be associated with. # @@ -1106,7 +1614,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @param reference_id [String, nil] A transient ID that can be used to reference this price when adding adjustments # - # @param model_type [Symbol, :grouped_with_min_max_thresholds] + # @param model_type [Symbol, :grouped_with_min_max_thresholds] The pricing model type # The cadence to bill for this price on. # @@ -1124,10 +1632,48 @@ module Cadence # @!method self.values # @return [Array] end + + # @see Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds#grouped_with_min_max_thresholds_config + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + # @!attribute grouping_key + # The event property used to group before applying thresholds + # + # @return [String] + required :grouping_key, String + + # @!attribute maximum_charge + # The maximum amount to charge each group + # + # @return [String] + required :maximum_charge, String + + # @!attribute minimum_charge + # The minimum amount to charge each group, regardless of usage + # + # @return [String] + required :minimum_charge, String + + # @!attribute per_unit_rate + # The base price charged per group + # + # @return [String] + required :per_unit_rate, String + + # @!method initialize(grouping_key:, maximum_charge:, minimum_charge:, per_unit_rate:) + # Configuration for grouped_with_min_max_thresholds pricing + # + # @param grouping_key [String] The event property used to group before applying thresholds + # + # @param maximum_charge [String] The maximum amount to charge each group + # + # @param minimum_charge [String] The minimum amount to charge each group, regardless of usage + # + # @param per_unit_rate [String] The base price charged per group + end end # @!method self.variants - # @return [Array(Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionTierWithProrationPrice, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMinimumCompositePrice)] + # @return [Array(Orb::Models::NewSubscriptionUnitPrice, Orb::Models::NewSubscriptionTieredPrice, Orb::Models::NewSubscriptionBulkPrice, Orb::Models::NewSubscriptionPackagePrice, Orb::Models::NewSubscriptionMatrixPrice, Orb::Models::NewSubscriptionThresholdTotalAmountPrice, Orb::Models::NewSubscriptionTieredPackagePrice, Orb::Models::NewSubscriptionTieredWithMinimumPrice, Orb::Models::NewSubscriptionGroupedTieredPrice, Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice, Orb::Models::NewSubscriptionPackageWithAllocationPrice, Orb::Models::NewSubscriptionUnitWithPercentPrice, Orb::Models::NewSubscriptionMatrixWithAllocationPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration, Orb::Models::NewSubscriptionUnitWithProrationPrice, Orb::Models::NewSubscriptionGroupedAllocationPrice, Orb::Models::NewSubscriptionBulkWithProrationPrice, Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice, Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice, Orb::Models::NewSubscriptionGroupedTieredPackagePrice, Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice, Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice, Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice, Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice, Orb::Models::NewSubscriptionMinimumCompositePrice)] end end end diff --git a/lib/orb/models/tier.rb b/lib/orb/models/tier.rb index a229376b..4fc23d9b 100644 --- a/lib/orb/models/tier.rb +++ b/lib/orb/models/tier.rb @@ -16,17 +16,23 @@ class Tier < Orb::Internal::Type::BaseModel required :unit_amount, String # @!attribute last_unit - # Inclusive tier ending value. If null, this is treated as the last tier + # Inclusive tier ending value. This value is null if and only if this is the last + # tier. # # @return [Float, nil] optional :last_unit, Float, nil?: true # @!method initialize(first_unit:, unit_amount:, last_unit: nil) + # Some parameter documentations has been truncated, see {Orb::Models::Tier} for + # more details. + # + # Configuration for a single tier + # # @param first_unit [Float] Exclusive tier starting value # # @param unit_amount [String] Amount per unit # - # @param last_unit [Float, nil] Inclusive tier ending value. If null, this is treated as the last tier + # @param last_unit [Float, nil] Inclusive tier ending value. This value is null if and only if this is the last end end end diff --git a/lib/orb/models/tier_config.rb b/lib/orb/models/tier_config.rb deleted file mode 100644 index f2bd3bbd..00000000 --- a/lib/orb/models/tier_config.rb +++ /dev/null @@ -1,27 +0,0 @@ -# frozen_string_literal: true - -module Orb - module Models - class TierConfig < Orb::Internal::Type::BaseModel - # @!attribute first_unit - # - # @return [Float] - required :first_unit, Float - - # @!attribute last_unit - # - # @return [Float, nil] - required :last_unit, Float, nil?: true - - # @!attribute unit_amount - # - # @return [String] - required :unit_amount, String - - # @!method initialize(first_unit:, last_unit:, unit_amount:) - # @param first_unit [Float] - # @param last_unit [Float, nil] - # @param unit_amount [String] - end - end -end diff --git a/lib/orb/models/tier_sub_line_item.rb b/lib/orb/models/tier_sub_line_item.rb index 5ffdfba6..acd3c6a2 100644 --- a/lib/orb/models/tier_sub_line_item.rb +++ b/lib/orb/models/tier_sub_line_item.rb @@ -26,8 +26,8 @@ class TierSubLineItem < Orb::Internal::Type::BaseModel # @!attribute tier_config # - # @return [Orb::Models::TierConfig] - required :tier_config, -> { Orb::TierConfig } + # @return [Orb::Models::TierSubLineItem::TierConfig] + required :tier_config, -> { Orb::TierSubLineItem::TierConfig } # @!attribute type # @@ -43,10 +43,33 @@ class TierSubLineItem < Orb::Internal::Type::BaseModel # # @param quantity [Float] # - # @param tier_config [Orb::Models::TierConfig] + # @param tier_config [Orb::Models::TierSubLineItem::TierConfig] # # @param type [Symbol, Orb::Models::TierSubLineItem::Type] + # @see Orb::Models::TierSubLineItem#tier_config + class TierConfig < Orb::Internal::Type::BaseModel + # @!attribute first_unit + # + # @return [Float] + required :first_unit, Float + + # @!attribute last_unit + # + # @return [Float, nil] + required :last_unit, Float, nil?: true + + # @!attribute unit_amount + # + # @return [String] + required :unit_amount, String + + # @!method initialize(first_unit:, last_unit:, unit_amount:) + # @param first_unit [Float] + # @param last_unit [Float, nil] + # @param unit_amount [String] + end + # @see Orb::Models::TierSubLineItem#type module Type extend Orb::Internal::Type::Enum diff --git a/lib/orb/models/tiered_config.rb b/lib/orb/models/tiered_config.rb index 3d4884dd..c5cdc393 100644 --- a/lib/orb/models/tiered_config.rb +++ b/lib/orb/models/tiered_config.rb @@ -10,6 +10,8 @@ class TieredConfig < Orb::Internal::Type::BaseModel required :tiers, -> { Orb::Internal::Type::ArrayOf[Orb::Tier] } # @!method initialize(tiers:) + # Configuration for tiered pricing + # # @param tiers [Array] Tiers for rating based on total usage quantities into the specified tier end end diff --git a/lib/orb/models/unit_config.rb b/lib/orb/models/unit_config.rb index 3a191ac9..f9c7c4a5 100644 --- a/lib/orb/models/unit_config.rb +++ b/lib/orb/models/unit_config.rb @@ -9,8 +9,18 @@ class UnitConfig < Orb::Internal::Type::BaseModel # @return [String] required :unit_amount, String - # @!method initialize(unit_amount:) + # @!attribute scaling_factor + # Multiplier to scale rated quantity by + # + # @return [Float, nil] + optional :scaling_factor, Float, nil?: true + + # @!method initialize(unit_amount:, scaling_factor: nil) + # Configuration for unit pricing + # # @param unit_amount [String] Rate per unit of usage + # + # @param scaling_factor [Float, nil] Multiplier to scale rated quantity by end end end diff --git a/lib/orb/resources/customers.rb b/lib/orb/resources/customers.rb index 7ff3bd05..e16f9393 100644 --- a/lib/orb/resources/customers.rb +++ b/lib/orb/resources/customers.rb @@ -62,7 +62,7 @@ class Customers # # @param shipping_address [Orb::Models::AddressInput, nil] # - # @param tax_configuration [Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, nil] + # @param tax_configuration [Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, Orb::Models::CustomerCreateParams::TaxConfiguration::Numeral, nil] # # @param tax_id [Orb::Models::CustomerTaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad # @@ -129,7 +129,7 @@ def create(params) # # @param shipping_address [Orb::Models::AddressInput, nil] # - # @param tax_configuration [Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, nil] + # @param tax_configuration [Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, Orb::Models::CustomerUpdateParams::TaxConfiguration::Numeral, nil] # # @param tax_id [Orb::Models::CustomerTaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad # @@ -367,7 +367,7 @@ def sync_payment_methods_from_gateway_by_external_customer_id(external_customer_ # # @param shipping_address [Orb::Models::AddressInput, nil] # - # @param tax_configuration [Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, nil] + # @param tax_configuration [Orb::Models::NewAvalaraTaxConfiguration, Orb::Models::NewTaxJarConfiguration, Orb::Models::NewSphereConfiguration, Orb::Models::CustomerUpdateByExternalIDParams::TaxConfiguration::Numeral, nil] # # @param tax_id [Orb::Models::CustomerTaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad # diff --git a/lib/orb/resources/prices.rb b/lib/orb/resources/prices.rb index f19dd4ee..bb3304a4 100644 --- a/lib/orb/resources/prices.rb +++ b/lib/orb/resources/prices.rb @@ -20,7 +20,7 @@ class Prices # See the [Price resource](/product-catalog/price-configuration) for the # specification of different price model configurations possible in this endpoint. # - # @overload create(cadence:, currency:, item_id:, model_type:, name:, unit_config:, package_config:, matrix_config:, matrix_with_allocation_config:, tiered_config:, bulk_config:, threshold_total_amount_config:, tiered_package_config:, grouped_tiered_config:, max_group_tiered_package_config:, tiered_with_minimum_config:, package_with_allocation_config:, tiered_package_with_minimum_config:, unit_with_percent_config:, tiered_with_proration_config:, unit_with_proration_config:, grouped_allocation_config:, grouped_with_prorated_minimum_config:, grouped_with_metered_minimum_config:, matrix_with_display_name_config:, bulk_with_proration_config:, grouped_tiered_package_config:, scalable_matrix_with_unit_pricing_config:, scalable_matrix_with_tiered_pricing_config:, cumulative_grouped_bulk_config:, grouped_with_min_max_thresholds_config:, minimum_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, request_options: {}) + # @overload create(cadence:, currency:, item_id:, model_type:, name:, unit_config:, tiered_config:, bulk_config:, package_config:, matrix_config:, threshold_total_amount_config:, tiered_package_config:, tiered_with_minimum_config:, grouped_tiered_config:, tiered_package_with_minimum_config:, package_with_allocation_config:, unit_with_percent_config:, matrix_with_allocation_config:, tiered_with_proration_config:, unit_with_proration_config:, grouped_allocation_config:, bulk_with_proration_config:, grouped_with_prorated_minimum_config:, grouped_with_metered_minimum_config:, grouped_with_min_max_thresholds_config:, matrix_with_display_name_config:, grouped_tiered_package_config:, max_group_tiered_package_config:, scalable_matrix_with_unit_pricing_config:, scalable_matrix_with_tiered_pricing_config:, cumulative_grouped_bulk_config:, minimum_config:, billable_metric_id: nil, billed_in_advance: nil, billing_cycle_configuration: nil, conversion_rate: nil, conversion_rate_config: nil, dimensional_price_configuration: nil, external_price_id: nil, fixed_price_quantity: nil, invoice_grouping_key: nil, invoicing_cycle_configuration: nil, metadata: nil, request_options: {}) # # @param cadence [Symbol, Orb::Models::PriceCreateParams::Cadence] The cadence to bill for this price on. # @@ -28,63 +28,63 @@ class Prices # # @param item_id [String] The id of the item the price will be associated with. # - # @param model_type [Symbol, Orb::Models::PriceCreateParams::ModelType] + # @param model_type [Symbol, Orb::Models::PriceCreateParams::ModelType] The pricing model type # # @param name [String] The name of the price. # - # @param unit_config [Orb::Models::UnitConfig] + # @param unit_config [Orb::Models::UnitConfig] Configuration for unit pricing # - # @param package_config [Orb::Models::PackageConfig] + # @param tiered_config [Orb::Models::TieredConfig] Configuration for tiered pricing # - # @param matrix_config [Orb::Models::MatrixConfig] + # @param bulk_config [Orb::Models::BulkConfig] Configuration for bulk pricing # - # @param matrix_with_allocation_config [Orb::Models::MatrixWithAllocationConfig] + # @param package_config [Orb::Models::PackageConfig] Configuration for package pricing # - # @param tiered_config [Orb::Models::TieredConfig] + # @param matrix_config [Orb::Models::MatrixConfig] Configuration for matrix pricing # - # @param bulk_config [Orb::Models::BulkConfig] + # @param threshold_total_amount_config [Orb::Models::PriceCreateParams::ThresholdTotalAmountConfig] Configuration for threshold_total_amount pricing # - # @param threshold_total_amount_config [Hash{Symbol=>Object}] + # @param tiered_package_config [Orb::Models::PriceCreateParams::TieredPackageConfig] Configuration for tiered_package pricing # - # @param tiered_package_config [Hash{Symbol=>Object}] + # @param tiered_with_minimum_config [Orb::Models::PriceCreateParams::TieredWithMinimumConfig] Configuration for tiered_with_minimum pricing # - # @param grouped_tiered_config [Hash{Symbol=>Object}] + # @param grouped_tiered_config [Orb::Models::PriceCreateParams::GroupedTieredConfig] Configuration for grouped_tiered pricing # - # @param max_group_tiered_package_config [Hash{Symbol=>Object}] + # @param tiered_package_with_minimum_config [Orb::Models::PriceCreateParams::TieredPackageWithMinimumConfig] Configuration for tiered_package_with_minimum pricing # - # @param tiered_with_minimum_config [Hash{Symbol=>Object}] + # @param package_with_allocation_config [Orb::Models::PriceCreateParams::PackageWithAllocationConfig] Configuration for package_with_allocation pricing # - # @param package_with_allocation_config [Hash{Symbol=>Object}] + # @param unit_with_percent_config [Orb::Models::PriceCreateParams::UnitWithPercentConfig] Configuration for unit_with_percent pricing # - # @param tiered_package_with_minimum_config [Hash{Symbol=>Object}] + # @param matrix_with_allocation_config [Orb::Models::MatrixWithAllocationConfig] Configuration for matrix_with_allocation pricing # - # @param unit_with_percent_config [Hash{Symbol=>Object}] + # @param tiered_with_proration_config [Orb::Models::PriceCreateParams::TieredWithProrationConfig] Configuration for tiered_with_proration pricing # - # @param tiered_with_proration_config [Hash{Symbol=>Object}] + # @param unit_with_proration_config [Orb::Models::PriceCreateParams::UnitWithProrationConfig] Configuration for unit_with_proration pricing # - # @param unit_with_proration_config [Hash{Symbol=>Object}] + # @param grouped_allocation_config [Orb::Models::PriceCreateParams::GroupedAllocationConfig] Configuration for grouped_allocation pricing # - # @param grouped_allocation_config [Hash{Symbol=>Object}] + # @param bulk_with_proration_config [Orb::Models::PriceCreateParams::BulkWithProrationConfig] Configuration for bulk_with_proration pricing # - # @param grouped_with_prorated_minimum_config [Hash{Symbol=>Object}] + # @param grouped_with_prorated_minimum_config [Orb::Models::PriceCreateParams::GroupedWithProratedMinimumConfig] Configuration for grouped_with_prorated_minimum pricing # - # @param grouped_with_metered_minimum_config [Hash{Symbol=>Object}] + # @param grouped_with_metered_minimum_config [Orb::Models::PriceCreateParams::GroupedWithMeteredMinimumConfig] Configuration for grouped_with_metered_minimum pricing # - # @param matrix_with_display_name_config [Hash{Symbol=>Object}] + # @param grouped_with_min_max_thresholds_config [Orb::Models::PriceCreateParams::GroupedWithMinMaxThresholdsConfig] Configuration for grouped_with_min_max_thresholds pricing # - # @param bulk_with_proration_config [Hash{Symbol=>Object}] + # @param matrix_with_display_name_config [Orb::Models::PriceCreateParams::MatrixWithDisplayNameConfig] Configuration for matrix_with_display_name pricing # - # @param grouped_tiered_package_config [Hash{Symbol=>Object}] + # @param grouped_tiered_package_config [Orb::Models::PriceCreateParams::GroupedTieredPackageConfig] Configuration for grouped_tiered_package pricing # - # @param scalable_matrix_with_unit_pricing_config [Hash{Symbol=>Object}] + # @param max_group_tiered_package_config [Orb::Models::PriceCreateParams::MaxGroupTieredPackageConfig] Configuration for max_group_tiered_package pricing # - # @param scalable_matrix_with_tiered_pricing_config [Hash{Symbol=>Object}] + # @param scalable_matrix_with_unit_pricing_config [Orb::Models::PriceCreateParams::ScalableMatrixWithUnitPricingConfig] Configuration for scalable_matrix_with_unit_pricing pricing # - # @param cumulative_grouped_bulk_config [Hash{Symbol=>Object}] + # @param scalable_matrix_with_tiered_pricing_config [Orb::Models::PriceCreateParams::ScalableMatrixWithTieredPricingConfig] Configuration for scalable_matrix_with_tiered_pricing pricing # - # @param grouped_with_min_max_thresholds_config [Hash{Symbol=>Object}] + # @param cumulative_grouped_bulk_config [Orb::Models::PriceCreateParams::CumulativeGroupedBulkConfig] Configuration for cumulative_grouped_bulk pricing # - # @param minimum_config [Orb::Models::PriceCreateParams::MinimumConfig] + # @param minimum_config [Orb::Models::PriceCreateParams::MinimumConfig] Configuration for minimum pricing # # @param billable_metric_id [String, nil] The id of the billable metric for the price. Only needed if the price is usage-b # @@ -110,7 +110,7 @@ class Prices # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::Minimum] + # @return [Orb::Models::Price::Unit, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::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::Minimum] # # @see Orb::Models::PriceCreateParams def create(params) @@ -133,7 +133,7 @@ def create(params) # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::Minimum] + # @return [Orb::Models::Price::Unit, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::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::Minimum] # # @see Orb::Models::PriceUpdateParams def update(price_id, params = {}) @@ -161,7 +161,7 @@ def update(price_id, params = {}) # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Internal::Page] + # @return [Orb::Internal::Page] # # @see Orb::Models::PriceListParams def list(params = {}) @@ -351,7 +351,7 @@ def evaluate_preview_events(params) # @param price_id [String] # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::Minimum] + # @return [Orb::Models::Price::Unit, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::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::Minimum] # # @see Orb::Models::PriceFetchParams def fetch(price_id, params = {}) diff --git a/lib/orb/resources/prices/external_price_id.rb b/lib/orb/resources/prices/external_price_id.rb index 58a64dd5..b20945b5 100644 --- a/lib/orb/resources/prices/external_price_id.rb +++ b/lib/orb/resources/prices/external_price_id.rb @@ -19,7 +19,7 @@ class ExternalPriceID # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::Minimum] + # @return [Orb::Models::Price::Unit, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::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::Minimum] # # @see Orb::Models::Prices::ExternalPriceIDUpdateParams def update(external_price_id, params = {}) @@ -42,7 +42,7 @@ def update(external_price_id, params = {}) # @param external_price_id [String] # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # - # @return [Orb::Models::Price::Unit, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::TieredWithProration, Orb::Models::Price::UnitWithProration, Orb::Models::Price::GroupedAllocation, Orb::Models::Price::GroupedWithProratedMinimum, Orb::Models::Price::GroupedWithMeteredMinimum, Orb::Models::Price::MatrixWithDisplayName, Orb::Models::Price::BulkWithProration, Orb::Models::Price::GroupedTieredPackage, Orb::Models::Price::MaxGroupTieredPackage, Orb::Models::Price::ScalableMatrixWithUnitPricing, Orb::Models::Price::ScalableMatrixWithTieredPricing, Orb::Models::Price::CumulativeGroupedBulk, Orb::Models::Price::GroupedWithMinMaxThresholds, Orb::Models::Price::Minimum] + # @return [Orb::Models::Price::Unit, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::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::Minimum] # # @see Orb::Models::Prices::ExternalPriceIDFetchParams def fetch(external_price_id, params = {}) diff --git a/rbi/orb/models.rbi b/rbi/orb/models.rbi index f4c5f117..60e6645f 100644 --- a/rbi/orb/models.rbi +++ b/rbi/orb/models.rbi @@ -386,8 +386,6 @@ module Orb NewPlanTieredWithMinimumPrice = Orb::Models::NewPlanTieredWithMinimumPrice - NewPlanTierWithProrationPrice = Orb::Models::NewPlanTierWithProrationPrice - NewPlanUnitPrice = Orb::Models::NewPlanUnitPrice NewPlanUnitWithPercentPrice = Orb::Models::NewPlanUnitWithPercentPrice @@ -460,9 +458,6 @@ module Orb NewSubscriptionTieredWithMinimumPrice = Orb::Models::NewSubscriptionTieredWithMinimumPrice - NewSubscriptionTierWithProrationPrice = - Orb::Models::NewSubscriptionTierWithProrationPrice - NewSubscriptionUnitPrice = Orb::Models::NewSubscriptionUnitPrice NewSubscriptionUnitWithPercentPrice = @@ -606,8 +601,6 @@ module Orb Tier = Orb::Models::Tier - TierConfig = Orb::Models::TierConfig - TieredConfig = Orb::Models::TieredConfig TieredConversionRateConfig = Orb::Models::TieredConversionRateConfig diff --git a/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi b/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi index 304a8574..f634b217 100644 --- a/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi +++ b/rbi/orb/models/beta/external_plan_id_create_plan_version_params.rbi @@ -324,37 +324,37 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - # The price to add to the plan + # New plan price request body params. sig do returns( T.nilable( T.any( Orb::NewPlanUnitPrice, - Orb::NewPlanPackagePrice, - Orb::NewPlanMatrixPrice, Orb::NewPlanTieredPrice, Orb::NewPlanBulkPrice, + Orb::NewPlanPackagePrice, + Orb::NewPlanMatrixPrice, Orb::NewPlanThresholdTotalAmountPrice, Orb::NewPlanTieredPackagePrice, Orb::NewPlanTieredWithMinimumPrice, - Orb::NewPlanUnitWithPercentPrice, + Orb::NewPlanGroupedTieredPrice, + Orb::NewPlanTieredPackageWithMinimumPrice, Orb::NewPlanPackageWithAllocationPrice, - Orb::NewPlanTierWithProrationPrice, + Orb::NewPlanUnitWithPercentPrice, + Orb::NewPlanMatrixWithAllocationPrice, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration, Orb::NewPlanUnitWithProrationPrice, Orb::NewPlanGroupedAllocationPrice, + Orb::NewPlanBulkWithProrationPrice, Orb::NewPlanGroupedWithProratedMinimumPrice, Orb::NewPlanGroupedWithMeteredMinimumPrice, Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::NewPlanMatrixWithDisplayNamePrice, - Orb::NewPlanBulkWithProrationPrice, Orb::NewPlanGroupedTieredPackagePrice, Orb::NewPlanMaxGroupTieredPackagePrice, Orb::NewPlanScalableMatrixWithUnitPricingPrice, Orb::NewPlanScalableMatrixWithTieredPricingPrice, Orb::NewPlanCumulativeGroupedBulkPrice, - Orb::NewPlanTieredPackageWithMinimumPrice, - Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice, Orb::NewPlanMinimumCompositePrice ) ) @@ -370,31 +370,31 @@ module Orb T.nilable( T.any( Orb::NewPlanUnitPrice::OrHash, - Orb::NewPlanPackagePrice::OrHash, - Orb::NewPlanMatrixPrice::OrHash, Orb::NewPlanTieredPrice::OrHash, Orb::NewPlanBulkPrice::OrHash, + Orb::NewPlanPackagePrice::OrHash, + Orb::NewPlanMatrixPrice::OrHash, Orb::NewPlanThresholdTotalAmountPrice::OrHash, Orb::NewPlanTieredPackagePrice::OrHash, Orb::NewPlanTieredWithMinimumPrice::OrHash, - Orb::NewPlanUnitWithPercentPrice::OrHash, + Orb::NewPlanGroupedTieredPrice::OrHash, + Orb::NewPlanTieredPackageWithMinimumPrice::OrHash, Orb::NewPlanPackageWithAllocationPrice::OrHash, - Orb::NewPlanTierWithProrationPrice::OrHash, + Orb::NewPlanUnitWithPercentPrice::OrHash, + Orb::NewPlanMatrixWithAllocationPrice::OrHash, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::OrHash, Orb::NewPlanUnitWithProrationPrice::OrHash, Orb::NewPlanGroupedAllocationPrice::OrHash, + Orb::NewPlanBulkWithProrationPrice::OrHash, Orb::NewPlanGroupedWithProratedMinimumPrice::OrHash, Orb::NewPlanGroupedWithMeteredMinimumPrice::OrHash, Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::OrHash, Orb::NewPlanMatrixWithDisplayNamePrice::OrHash, - Orb::NewPlanBulkWithProrationPrice::OrHash, Orb::NewPlanGroupedTieredPackagePrice::OrHash, Orb::NewPlanMaxGroupTieredPackagePrice::OrHash, Orb::NewPlanScalableMatrixWithUnitPricingPrice::OrHash, Orb::NewPlanScalableMatrixWithTieredPricingPrice::OrHash, Orb::NewPlanCumulativeGroupedBulkPrice::OrHash, - Orb::NewPlanTieredPackageWithMinimumPrice::OrHash, - Orb::NewPlanMatrixWithAllocationPrice::OrHash, - Orb::NewPlanGroupedTieredPrice::OrHash, Orb::NewPlanMinimumCompositePrice::OrHash ) ) @@ -405,7 +405,7 @@ module Orb allocation_price: nil, # The phase to add this price to. plan_phase_order: nil, - # The price to add to the plan + # New plan price request body params. price: nil ) end @@ -419,31 +419,31 @@ module Orb T.nilable( T.any( Orb::NewPlanUnitPrice, - Orb::NewPlanPackagePrice, - Orb::NewPlanMatrixPrice, Orb::NewPlanTieredPrice, Orb::NewPlanBulkPrice, + Orb::NewPlanPackagePrice, + Orb::NewPlanMatrixPrice, Orb::NewPlanThresholdTotalAmountPrice, Orb::NewPlanTieredPackagePrice, Orb::NewPlanTieredWithMinimumPrice, - Orb::NewPlanUnitWithPercentPrice, + Orb::NewPlanGroupedTieredPrice, + Orb::NewPlanTieredPackageWithMinimumPrice, Orb::NewPlanPackageWithAllocationPrice, - Orb::NewPlanTierWithProrationPrice, + Orb::NewPlanUnitWithPercentPrice, + Orb::NewPlanMatrixWithAllocationPrice, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration, Orb::NewPlanUnitWithProrationPrice, Orb::NewPlanGroupedAllocationPrice, + Orb::NewPlanBulkWithProrationPrice, Orb::NewPlanGroupedWithProratedMinimumPrice, Orb::NewPlanGroupedWithMeteredMinimumPrice, Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::NewPlanMatrixWithDisplayNamePrice, - Orb::NewPlanBulkWithProrationPrice, Orb::NewPlanGroupedTieredPackagePrice, Orb::NewPlanMaxGroupTieredPackagePrice, Orb::NewPlanScalableMatrixWithUnitPricingPrice, Orb::NewPlanScalableMatrixWithTieredPricingPrice, Orb::NewPlanCumulativeGroupedBulkPrice, - Orb::NewPlanTieredPackageWithMinimumPrice, - Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice, Orb::NewPlanMinimumCompositePrice ) ) @@ -453,7 +453,7 @@ module Orb def to_hash end - # The price to add to the plan + # New plan price request body params. module Price extend Orb::Internal::Type::Union @@ -461,40 +461,40 @@ module Orb T.type_alias do T.any( Orb::NewPlanUnitPrice, - Orb::NewPlanPackagePrice, - Orb::NewPlanMatrixPrice, Orb::NewPlanTieredPrice, Orb::NewPlanBulkPrice, + Orb::NewPlanPackagePrice, + Orb::NewPlanMatrixPrice, Orb::NewPlanThresholdTotalAmountPrice, Orb::NewPlanTieredPackagePrice, Orb::NewPlanTieredWithMinimumPrice, - Orb::NewPlanUnitWithPercentPrice, + Orb::NewPlanGroupedTieredPrice, + Orb::NewPlanTieredPackageWithMinimumPrice, Orb::NewPlanPackageWithAllocationPrice, - Orb::NewPlanTierWithProrationPrice, + Orb::NewPlanUnitWithPercentPrice, + Orb::NewPlanMatrixWithAllocationPrice, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration, Orb::NewPlanUnitWithProrationPrice, Orb::NewPlanGroupedAllocationPrice, + Orb::NewPlanBulkWithProrationPrice, Orb::NewPlanGroupedWithProratedMinimumPrice, Orb::NewPlanGroupedWithMeteredMinimumPrice, Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::NewPlanMatrixWithDisplayNamePrice, - Orb::NewPlanBulkWithProrationPrice, Orb::NewPlanGroupedTieredPackagePrice, Orb::NewPlanMaxGroupTieredPackagePrice, Orb::NewPlanScalableMatrixWithUnitPricingPrice, Orb::NewPlanScalableMatrixWithTieredPricingPrice, Orb::NewPlanCumulativeGroupedBulkPrice, - Orb::NewPlanTieredPackageWithMinimumPrice, - Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice, Orb::NewPlanMinimumCompositePrice ) end - class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + class TieredWithProration < Orb::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration, Orb::Internal::AnyHash ) end @@ -502,18 +502,16 @@ module Orb # The cadence to bill for this price on. sig do returns( - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::Cadence::OrSymbol ) end attr_accessor :cadence - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_with_min_max_thresholds_config - # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -521,6 +519,22 @@ module Orb sig { returns(String) } attr_accessor :name + # Configuration for tiered_with_proration pricing + sig do + returns( + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig + ) + end + attr_reader :tiered_with_proration_config + + sig do + params( + tiered_with_proration_config: + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::OrHash + ).void + end + attr_writer :tiered_with_proration_config + # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } @@ -618,11 +632,11 @@ module Orb sig do params( cadence: - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, - grouped_with_min_max_thresholds_config: - T::Hash[Symbol, T.anything], + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::Cadence::OrSymbol, item_id: String, name: String, + tiered_with_proration_config: + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -651,11 +665,12 @@ module Orb def self.new( # The cadence to bill for this price on. cadence:, - grouped_with_min_max_thresholds_config:, # The id of the item the price will be associated with. item_id:, # The name of the price. name:, + # Configuration for tiered_with_proration pricing + tiered_with_proration_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. billable_metric_id: nil, @@ -691,7 +706,8 @@ module Orb # A transient ID that can be used to reference this price when adding adjustments # in the same API call. reference_id: nil, - model_type: :grouped_with_min_max_thresholds + # The pricing model type + model_type: :tiered_with_proration ) end @@ -699,12 +715,12 @@ module Orb override.returns( { cadence: - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, - grouped_with_min_max_thresholds_config: - T::Hash[Symbol, T.anything], + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, + tiered_with_proration_config: + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -741,7 +757,7 @@ module Orb T.type_alias do T.all( Symbol, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::Cadence ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -749,436 +765,1308 @@ module Orb ANNUAL = T.let( :annual, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) sig do override.returns( T::Array[ - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ] ) end def self.values end end - end - - sig do - override.returns( - T::Array[ - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Variants - ] - ) - end - def self.variants - end - end - end - class RemoveAdjustment < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::RemoveAdjustment, - Orb::Internal::AnyHash - ) - end + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig, + Orb::Internal::AnyHash + ) + end - # The id of the adjustment to remove from on the plan. - sig { returns(String) } - attr_accessor :adjustment_id + # Tiers for rating based on total usage quantities into the specified tier with + # proration + sig do + returns( + T::Array[ + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier + ] + ) + end + attr_accessor :tiers - # The phase to remove this adjustment from. - sig { returns(T.nilable(Integer)) } - attr_accessor :plan_phase_order + # Configuration for tiered_with_proration pricing + sig do + params( + tiers: + T::Array[ + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Tiers for rating based on total usage quantities into the specified tier with + # proration + tiers: + ) + end - sig do - params( - adjustment_id: String, - plan_phase_order: T.nilable(Integer) - ).returns(T.attached_class) - end - def self.new( - # The id of the adjustment to remove from on the plan. - adjustment_id:, - # The phase to remove this adjustment from. - plan_phase_order: nil - ) - end + sig do + override.returns( + { + tiers: + T::Array[ + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier + ] + } + ) + end + def to_hash + end - sig do - override.returns( - { adjustment_id: String, plan_phase_order: T.nilable(Integer) } - ) - end - def to_hash - end - end + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Inclusive tier starting value + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Amount per unit + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a single tiered with proration tier + sig do + params( + tier_lower_bound: String, + unit_amount: String + ).returns(T.attached_class) + end + def self.new( + # Inclusive tier starting value + tier_lower_bound:, + # Amount per unit + unit_amount: + ) + end - class RemovePrice < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::RemovePrice, - Orb::Internal::AnyHash - ) + sig do + override.returns( + { tier_lower_bound: String, unit_amount: String } + ) + end + def to_hash + end + end + end end - # The id of the price to remove from the plan. - sig { returns(String) } - attr_accessor :price_id - - # The phase to remove this price from. - sig { returns(T.nilable(Integer)) } - attr_accessor :plan_phase_order + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, + Orb::Internal::AnyHash + ) + end - sig do - params( - price_id: String, - plan_phase_order: T.nilable(Integer) - ).returns(T.attached_class) - end - def self.new( - # The id of the price to remove from the plan. - price_id:, - # The phase to remove this price from. - plan_phase_order: nil - ) - end + # The cadence to bill for this price on. + sig do + returns( + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol + ) + end + attr_accessor :cadence - sig do - override.returns( - { price_id: String, plan_phase_order: T.nilable(Integer) } - ) - end - def to_hash - end - end + # Configuration for grouped_with_min_max_thresholds pricing + sig do + returns( + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig + ) + end + attr_reader :grouped_with_min_max_thresholds_config - class ReplaceAdjustment < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment, - Orb::Internal::AnyHash - ) - end + sig do + params( + grouped_with_min_max_thresholds_config: + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig::OrHash + ).void + end + attr_writer :grouped_with_min_max_thresholds_config - # The definition of a new adjustment to create and add to the plan. - sig do - returns( - T.any( - Orb::NewPercentageDiscount, - Orb::NewUsageDiscount, - Orb::NewAmountDiscount, - Orb::NewMinimum, - Orb::NewMaximum - ) - ) - end - attr_accessor :adjustment + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id - # The id of the adjustment on the plan to replace in the plan. - sig { returns(String) } - attr_accessor :replaces_adjustment_id + # The pricing model type + sig { returns(Symbol) } + attr_accessor :model_type - # The phase to replace this adjustment from. - sig { returns(T.nilable(Integer)) } - attr_accessor :plan_phase_order + # The name of the price. + sig { returns(String) } + attr_accessor :name - sig do - params( + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id + + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance + + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration + + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) + ) + end + attr_accessor :conversion_rate_config + + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + sig { returns(T.nilable(String)) } + attr_accessor :currency + + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration + + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + sig { returns(T.nilable(String)) } + attr_accessor :reference_id + + sig do + params( + cadence: + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + grouped_with_min_max_thresholds_config: + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig::OrHash, + item_id: String, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String), + model_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + # Configuration for grouped_with_min_max_thresholds pricing + grouped_with_min_max_thresholds_config:, + # The id of the item the price will be associated with. + item_id:, + # The name of the price. + name:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + currency: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + reference_id: nil, + # The pricing model type + model_type: :grouped_with_min_max_thresholds + ) + end + + sig do + override.returns( + { + cadence: + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + grouped_with_min_max_thresholds_config: + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end + + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, + Orb::Internal::AnyHash + ) + end + + # The event property used to group before applying thresholds + sig { returns(String) } + attr_accessor :grouping_key + + # The maximum amount to charge each group + sig { returns(String) } + attr_accessor :maximum_charge + + # The minimum amount to charge each group, regardless of usage + sig { returns(String) } + attr_accessor :minimum_charge + + # The base price charged per group + sig { returns(String) } + attr_accessor :per_unit_rate + + # Configuration for grouped_with_min_max_thresholds pricing + sig do + params( + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + ).returns(T.attached_class) + end + def self.new( + # The event property used to group before applying thresholds + grouping_key:, + # The maximum amount to charge each group + maximum_charge:, + # The minimum amount to charge each group, regardless of usage + minimum_charge:, + # The base price charged per group + per_unit_rate: + ) + end + + sig do + override.returns( + { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + ) + end + def to_hash + end + end + end + + sig do + override.returns( + T::Array[ + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::Variants + ] + ) + end + def self.variants + end + end + end + + class RemoveAdjustment < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::RemoveAdjustment, + Orb::Internal::AnyHash + ) + end + + # The id of the adjustment to remove from on the plan. + sig { returns(String) } + attr_accessor :adjustment_id + + # The phase to remove this adjustment from. + sig { returns(T.nilable(Integer)) } + attr_accessor :plan_phase_order + + sig do + params( + adjustment_id: String, + plan_phase_order: T.nilable(Integer) + ).returns(T.attached_class) + end + def self.new( + # The id of the adjustment to remove from on the plan. + adjustment_id:, + # The phase to remove this adjustment from. + plan_phase_order: nil + ) + end + + sig do + override.returns( + { adjustment_id: String, plan_phase_order: T.nilable(Integer) } + ) + end + def to_hash + end + end + + class RemovePrice < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::RemovePrice, + Orb::Internal::AnyHash + ) + end + + # The id of the price to remove from the plan. + sig { returns(String) } + attr_accessor :price_id + + # The phase to remove this price from. + sig { returns(T.nilable(Integer)) } + attr_accessor :plan_phase_order + + sig do + params( + price_id: String, + plan_phase_order: T.nilable(Integer) + ).returns(T.attached_class) + end + def self.new( + # The id of the price to remove from the plan. + price_id:, + # The phase to remove this price from. + plan_phase_order: nil + ) + end + + sig do + override.returns( + { price_id: String, plan_phase_order: T.nilable(Integer) } + ) + end + def to_hash + end + end + + class ReplaceAdjustment < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment, + Orb::Internal::AnyHash + ) + end + + # The definition of a new adjustment to create and add to the plan. + sig do + returns( + T.any( + Orb::NewPercentageDiscount, + Orb::NewUsageDiscount, + Orb::NewAmountDiscount, + Orb::NewMinimum, + Orb::NewMaximum + ) + ) + end + attr_accessor :adjustment + + # The id of the adjustment on the plan to replace in the plan. + sig { returns(String) } + attr_accessor :replaces_adjustment_id + + # The phase to replace this adjustment from. + sig { returns(T.nilable(Integer)) } + attr_accessor :plan_phase_order + + sig do + params( adjustment: T.any( - Orb::NewPercentageDiscount::OrHash, - Orb::NewUsageDiscount::OrHash, - Orb::NewAmountDiscount::OrHash, - Orb::NewMinimum::OrHash, - Orb::NewMaximum::OrHash - ), - replaces_adjustment_id: String, - plan_phase_order: T.nilable(Integer) + Orb::NewPercentageDiscount::OrHash, + Orb::NewUsageDiscount::OrHash, + Orb::NewAmountDiscount::OrHash, + Orb::NewMinimum::OrHash, + Orb::NewMaximum::OrHash + ), + replaces_adjustment_id: String, + plan_phase_order: T.nilable(Integer) + ).returns(T.attached_class) + end + def self.new( + # The definition of a new adjustment to create and add to the plan. + adjustment:, + # The id of the adjustment on the plan to replace in the plan. + replaces_adjustment_id:, + # The phase to replace this adjustment from. + plan_phase_order: nil + ) + end + + sig do + override.returns( + { + adjustment: + T.any( + Orb::NewPercentageDiscount, + Orb::NewUsageDiscount, + Orb::NewAmountDiscount, + Orb::NewMinimum, + Orb::NewMaximum + ), + replaces_adjustment_id: String, + plan_phase_order: T.nilable(Integer) + } + ) + end + def to_hash + end + + # The definition of a new adjustment to create and add to the plan. + module Adjustment + extend Orb::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + Orb::NewPercentageDiscount, + Orb::NewUsageDiscount, + Orb::NewAmountDiscount, + Orb::NewMinimum, + Orb::NewMaximum + ) + end + + sig do + override.returns( + T::Array[ + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Variants + ] + ) + end + def self.variants + end + end + end + + class ReplacePrice < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice, + Orb::Internal::AnyHash + ) + end + + # The id of the price on the plan to replace in the plan. + sig { returns(String) } + attr_accessor :replaces_price_id + + # The allocation price to add to the plan. + sig { returns(T.nilable(Orb::NewAllocationPrice)) } + attr_reader :allocation_price + + sig do + params( + allocation_price: T.nilable(Orb::NewAllocationPrice::OrHash) + ).void + end + attr_writer :allocation_price + + # The phase to replace this price from. + sig { returns(T.nilable(Integer)) } + attr_accessor :plan_phase_order + + # New plan price request body params. + sig do + returns( + T.nilable( + T.any( + Orb::NewPlanUnitPrice, + Orb::NewPlanTieredPrice, + Orb::NewPlanBulkPrice, + Orb::NewPlanPackagePrice, + Orb::NewPlanMatrixPrice, + Orb::NewPlanThresholdTotalAmountPrice, + Orb::NewPlanTieredPackagePrice, + Orb::NewPlanTieredWithMinimumPrice, + Orb::NewPlanGroupedTieredPrice, + Orb::NewPlanTieredPackageWithMinimumPrice, + Orb::NewPlanPackageWithAllocationPrice, + Orb::NewPlanUnitWithPercentPrice, + Orb::NewPlanMatrixWithAllocationPrice, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration, + Orb::NewPlanUnitWithProrationPrice, + Orb::NewPlanGroupedAllocationPrice, + Orb::NewPlanBulkWithProrationPrice, + Orb::NewPlanGroupedWithProratedMinimumPrice, + Orb::NewPlanGroupedWithMeteredMinimumPrice, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, + Orb::NewPlanMatrixWithDisplayNamePrice, + Orb::NewPlanGroupedTieredPackagePrice, + Orb::NewPlanMaxGroupTieredPackagePrice, + Orb::NewPlanScalableMatrixWithUnitPricingPrice, + Orb::NewPlanScalableMatrixWithTieredPricingPrice, + Orb::NewPlanCumulativeGroupedBulkPrice, + Orb::NewPlanMinimumCompositePrice + ) + ) + ) + end + attr_accessor :price + + sig do + params( + replaces_price_id: String, + allocation_price: T.nilable(Orb::NewAllocationPrice::OrHash), + plan_phase_order: T.nilable(Integer), + price: + T.nilable( + T.any( + Orb::NewPlanUnitPrice::OrHash, + Orb::NewPlanTieredPrice::OrHash, + Orb::NewPlanBulkPrice::OrHash, + Orb::NewPlanPackagePrice::OrHash, + Orb::NewPlanMatrixPrice::OrHash, + Orb::NewPlanThresholdTotalAmountPrice::OrHash, + Orb::NewPlanTieredPackagePrice::OrHash, + Orb::NewPlanTieredWithMinimumPrice::OrHash, + Orb::NewPlanGroupedTieredPrice::OrHash, + Orb::NewPlanTieredPackageWithMinimumPrice::OrHash, + Orb::NewPlanPackageWithAllocationPrice::OrHash, + Orb::NewPlanUnitWithPercentPrice::OrHash, + Orb::NewPlanMatrixWithAllocationPrice::OrHash, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::OrHash, + Orb::NewPlanUnitWithProrationPrice::OrHash, + Orb::NewPlanGroupedAllocationPrice::OrHash, + Orb::NewPlanBulkWithProrationPrice::OrHash, + Orb::NewPlanGroupedWithProratedMinimumPrice::OrHash, + Orb::NewPlanGroupedWithMeteredMinimumPrice::OrHash, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::OrHash, + Orb::NewPlanMatrixWithDisplayNamePrice::OrHash, + Orb::NewPlanGroupedTieredPackagePrice::OrHash, + Orb::NewPlanMaxGroupTieredPackagePrice::OrHash, + Orb::NewPlanScalableMatrixWithUnitPricingPrice::OrHash, + Orb::NewPlanScalableMatrixWithTieredPricingPrice::OrHash, + Orb::NewPlanCumulativeGroupedBulkPrice::OrHash, + Orb::NewPlanMinimumCompositePrice::OrHash + ) + ) ).returns(T.attached_class) end def self.new( - # The definition of a new adjustment to create and add to the plan. - adjustment:, - # The id of the adjustment on the plan to replace in the plan. - replaces_adjustment_id:, - # The phase to replace this adjustment from. - plan_phase_order: nil + # The id of the price on the plan to replace in the plan. + replaces_price_id:, + # The allocation price to add to the plan. + allocation_price: nil, + # The phase to replace this price from. + plan_phase_order: nil, + # New plan price request body params. + price: nil ) end - sig do - override.returns( - { - adjustment: - T.any( - Orb::NewPercentageDiscount, - Orb::NewUsageDiscount, - Orb::NewAmountDiscount, - Orb::NewMinimum, - Orb::NewMaximum - ), - replaces_adjustment_id: String, - plan_phase_order: T.nilable(Integer) - } - ) - end - def to_hash - end + sig do + override.returns( + { + replaces_price_id: String, + allocation_price: T.nilable(Orb::NewAllocationPrice), + plan_phase_order: T.nilable(Integer), + price: + T.nilable( + T.any( + Orb::NewPlanUnitPrice, + Orb::NewPlanTieredPrice, + Orb::NewPlanBulkPrice, + Orb::NewPlanPackagePrice, + Orb::NewPlanMatrixPrice, + Orb::NewPlanThresholdTotalAmountPrice, + Orb::NewPlanTieredPackagePrice, + Orb::NewPlanTieredWithMinimumPrice, + Orb::NewPlanGroupedTieredPrice, + Orb::NewPlanTieredPackageWithMinimumPrice, + Orb::NewPlanPackageWithAllocationPrice, + Orb::NewPlanUnitWithPercentPrice, + Orb::NewPlanMatrixWithAllocationPrice, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration, + Orb::NewPlanUnitWithProrationPrice, + Orb::NewPlanGroupedAllocationPrice, + Orb::NewPlanBulkWithProrationPrice, + Orb::NewPlanGroupedWithProratedMinimumPrice, + Orb::NewPlanGroupedWithMeteredMinimumPrice, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, + Orb::NewPlanMatrixWithDisplayNamePrice, + Orb::NewPlanGroupedTieredPackagePrice, + Orb::NewPlanMaxGroupTieredPackagePrice, + Orb::NewPlanScalableMatrixWithUnitPricingPrice, + Orb::NewPlanScalableMatrixWithTieredPricingPrice, + Orb::NewPlanCumulativeGroupedBulkPrice, + Orb::NewPlanMinimumCompositePrice + ) + ) + } + ) + end + def to_hash + end + + # New plan price request body params. + module Price + extend Orb::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + Orb::NewPlanUnitPrice, + Orb::NewPlanTieredPrice, + Orb::NewPlanBulkPrice, + Orb::NewPlanPackagePrice, + Orb::NewPlanMatrixPrice, + Orb::NewPlanThresholdTotalAmountPrice, + Orb::NewPlanTieredPackagePrice, + Orb::NewPlanTieredWithMinimumPrice, + Orb::NewPlanGroupedTieredPrice, + Orb::NewPlanTieredPackageWithMinimumPrice, + Orb::NewPlanPackageWithAllocationPrice, + Orb::NewPlanUnitWithPercentPrice, + Orb::NewPlanMatrixWithAllocationPrice, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration, + Orb::NewPlanUnitWithProrationPrice, + Orb::NewPlanGroupedAllocationPrice, + Orb::NewPlanBulkWithProrationPrice, + Orb::NewPlanGroupedWithProratedMinimumPrice, + Orb::NewPlanGroupedWithMeteredMinimumPrice, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, + Orb::NewPlanMatrixWithDisplayNamePrice, + Orb::NewPlanGroupedTieredPackagePrice, + Orb::NewPlanMaxGroupTieredPackagePrice, + Orb::NewPlanScalableMatrixWithUnitPricingPrice, + Orb::NewPlanScalableMatrixWithTieredPricingPrice, + Orb::NewPlanCumulativeGroupedBulkPrice, + Orb::NewPlanMinimumCompositePrice + ) + end + + class TieredWithProration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration, + Orb::Internal::AnyHash + ) + end + + # The cadence to bill for this price on. + sig do + returns( + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::Cadence::OrSymbol + ) + end + attr_accessor :cadence + + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id + + # The pricing model type + sig { returns(Symbol) } + attr_accessor :model_type + + # The name of the price. + sig { returns(String) } + attr_accessor :name + + # Configuration for tiered_with_proration pricing + sig do + returns( + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig + ) + end + attr_reader :tiered_with_proration_config + + sig do + params( + tiered_with_proration_config: + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::OrHash + ).void + end + attr_writer :tiered_with_proration_config + + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id - # The definition of a new adjustment to create and add to the plan. - module Adjustment - extend Orb::Internal::Type::Union + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance - Variants = - T.type_alias do - T.any( - Orb::NewPercentageDiscount, - Orb::NewUsageDiscount, - Orb::NewAmountDiscount, - Orb::NewMinimum, - Orb::NewMaximum + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration + + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) ) end + attr_accessor :conversion_rate_config + + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + sig { returns(T.nilable(String)) } + attr_accessor :currency + + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration - sig do - override.returns( - T::Array[ - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Variants - ] - ) - end - def self.variants - end - end - end + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id - class ReplacePrice < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice, - Orb::Internal::AnyHash - ) - end + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity - # The id of the price on the plan to replace in the plan. - sig { returns(String) } - attr_accessor :replaces_price_id + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key - # The allocation price to add to the plan. - sig { returns(T.nilable(Orb::NewAllocationPrice)) } - attr_reader :allocation_price + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration - sig do - params( - allocation_price: T.nilable(Orb::NewAllocationPrice::OrHash) - ).void - end - attr_writer :allocation_price + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + sig { returns(T.nilable(String)) } + attr_accessor :reference_id + + sig do + params( + cadence: + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::Cadence::OrSymbol, + item_id: String, + name: String, + tiered_with_proration_config: + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::OrHash, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String), + model_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + # The id of the item the price will be associated with. + item_id:, + # The name of the price. + name:, + # Configuration for tiered_with_proration pricing + tiered_with_proration_config:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + currency: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + reference_id: nil, + # The pricing model type + model_type: :tiered_with_proration + ) + end + + sig do + override.returns( + { + cadence: + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_proration_config: + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum - # The phase to replace this price from. - sig { returns(T.nilable(Integer)) } - attr_accessor :plan_phase_order + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::Cadence + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } - # The price to add to the plan - sig do - returns( - T.nilable( - T.any( - Orb::NewPlanUnitPrice, - Orb::NewPlanPackagePrice, - Orb::NewPlanMatrixPrice, - Orb::NewPlanTieredPrice, - Orb::NewPlanBulkPrice, - Orb::NewPlanThresholdTotalAmountPrice, - Orb::NewPlanTieredPackagePrice, - Orb::NewPlanTieredWithMinimumPrice, - Orb::NewPlanUnitWithPercentPrice, - Orb::NewPlanPackageWithAllocationPrice, - Orb::NewPlanTierWithProrationPrice, - Orb::NewPlanUnitWithProrationPrice, - Orb::NewPlanGroupedAllocationPrice, - Orb::NewPlanGroupedWithProratedMinimumPrice, - Orb::NewPlanGroupedWithMeteredMinimumPrice, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, - Orb::NewPlanMatrixWithDisplayNamePrice, - Orb::NewPlanBulkWithProrationPrice, - Orb::NewPlanGroupedTieredPackagePrice, - Orb::NewPlanMaxGroupTieredPackagePrice, - Orb::NewPlanScalableMatrixWithUnitPricingPrice, - Orb::NewPlanScalableMatrixWithTieredPricingPrice, - Orb::NewPlanCumulativeGroupedBulkPrice, - Orb::NewPlanTieredPackageWithMinimumPrice, - Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice, - Orb::NewPlanMinimumCompositePrice - ) - ) - ) - end - attr_accessor :price + ANNUAL = + T.let( + :annual, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + ) - sig do - params( - replaces_price_id: String, - allocation_price: T.nilable(Orb::NewAllocationPrice::OrHash), - plan_phase_order: T.nilable(Integer), - price: - T.nilable( - T.any( - Orb::NewPlanUnitPrice::OrHash, - Orb::NewPlanPackagePrice::OrHash, - Orb::NewPlanMatrixPrice::OrHash, - Orb::NewPlanTieredPrice::OrHash, - Orb::NewPlanBulkPrice::OrHash, - Orb::NewPlanThresholdTotalAmountPrice::OrHash, - Orb::NewPlanTieredPackagePrice::OrHash, - Orb::NewPlanTieredWithMinimumPrice::OrHash, - Orb::NewPlanUnitWithPercentPrice::OrHash, - Orb::NewPlanPackageWithAllocationPrice::OrHash, - Orb::NewPlanTierWithProrationPrice::OrHash, - Orb::NewPlanUnitWithProrationPrice::OrHash, - Orb::NewPlanGroupedAllocationPrice::OrHash, - Orb::NewPlanGroupedWithProratedMinimumPrice::OrHash, - Orb::NewPlanGroupedWithMeteredMinimumPrice::OrHash, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::OrHash, - Orb::NewPlanMatrixWithDisplayNamePrice::OrHash, - Orb::NewPlanBulkWithProrationPrice::OrHash, - Orb::NewPlanGroupedTieredPackagePrice::OrHash, - Orb::NewPlanMaxGroupTieredPackagePrice::OrHash, - Orb::NewPlanScalableMatrixWithUnitPricingPrice::OrHash, - Orb::NewPlanScalableMatrixWithTieredPricingPrice::OrHash, - Orb::NewPlanCumulativeGroupedBulkPrice::OrHash, - Orb::NewPlanTieredPackageWithMinimumPrice::OrHash, - Orb::NewPlanMatrixWithAllocationPrice::OrHash, - Orb::NewPlanGroupedTieredPrice::OrHash, - Orb::NewPlanMinimumCompositePrice::OrHash + sig do + override.returns( + T::Array[ + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + ] ) - ) - ).returns(T.attached_class) - end - def self.new( - # The id of the price on the plan to replace in the plan. - replaces_price_id:, - # The allocation price to add to the plan. - allocation_price: nil, - # The phase to replace this price from. - plan_phase_order: nil, - # The price to add to the plan - price: nil - ) - end + end + def self.values + end + end - sig do - override.returns( - { - replaces_price_id: String, - allocation_price: T.nilable(Orb::NewAllocationPrice), - plan_phase_order: T.nilable(Integer), - price: - T.nilable( + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do T.any( - Orb::NewPlanUnitPrice, - Orb::NewPlanPackagePrice, - Orb::NewPlanMatrixPrice, - Orb::NewPlanTieredPrice, - Orb::NewPlanBulkPrice, - Orb::NewPlanThresholdTotalAmountPrice, - Orb::NewPlanTieredPackagePrice, - Orb::NewPlanTieredWithMinimumPrice, - Orb::NewPlanUnitWithPercentPrice, - Orb::NewPlanPackageWithAllocationPrice, - Orb::NewPlanTierWithProrationPrice, - Orb::NewPlanUnitWithProrationPrice, - Orb::NewPlanGroupedAllocationPrice, - Orb::NewPlanGroupedWithProratedMinimumPrice, - Orb::NewPlanGroupedWithMeteredMinimumPrice, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, - Orb::NewPlanMatrixWithDisplayNamePrice, - Orb::NewPlanBulkWithProrationPrice, - Orb::NewPlanGroupedTieredPackagePrice, - Orb::NewPlanMaxGroupTieredPackagePrice, - Orb::NewPlanScalableMatrixWithUnitPricingPrice, - Orb::NewPlanScalableMatrixWithTieredPricingPrice, - Orb::NewPlanCumulativeGroupedBulkPrice, - Orb::NewPlanTieredPackageWithMinimumPrice, - Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice, - Orb::NewPlanMinimumCompositePrice + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig, + Orb::Internal::AnyHash ) - ) - } - ) - end - def to_hash - end + end - # The price to add to the plan - module Price - extend Orb::Internal::Type::Union + # Tiers for rating based on total usage quantities into the specified tier with + # proration + sig do + returns( + T::Array[ + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier + ] + ) + end + attr_accessor :tiers - Variants = - T.type_alias do - T.any( - Orb::NewPlanUnitPrice, - Orb::NewPlanPackagePrice, - Orb::NewPlanMatrixPrice, - Orb::NewPlanTieredPrice, - Orb::NewPlanBulkPrice, - Orb::NewPlanThresholdTotalAmountPrice, - Orb::NewPlanTieredPackagePrice, - Orb::NewPlanTieredWithMinimumPrice, - Orb::NewPlanUnitWithPercentPrice, - Orb::NewPlanPackageWithAllocationPrice, - Orb::NewPlanTierWithProrationPrice, - Orb::NewPlanUnitWithProrationPrice, - Orb::NewPlanGroupedAllocationPrice, - Orb::NewPlanGroupedWithProratedMinimumPrice, - Orb::NewPlanGroupedWithMeteredMinimumPrice, - Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, - Orb::NewPlanMatrixWithDisplayNamePrice, - Orb::NewPlanBulkWithProrationPrice, - Orb::NewPlanGroupedTieredPackagePrice, - Orb::NewPlanMaxGroupTieredPackagePrice, - Orb::NewPlanScalableMatrixWithUnitPricingPrice, - Orb::NewPlanScalableMatrixWithTieredPricingPrice, - Orb::NewPlanCumulativeGroupedBulkPrice, - Orb::NewPlanTieredPackageWithMinimumPrice, - Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice, - Orb::NewPlanMinimumCompositePrice + # Configuration for tiered_with_proration pricing + sig do + params( + tiers: + T::Array[ + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Tiers for rating based on total usage quantities into the specified tier with + # proration + tiers: ) + end + + sig do + override.returns( + { + tiers: + T::Array[ + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier + ] + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Inclusive tier starting value + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Amount per unit + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a single tiered with proration tier + sig do + params( + tier_lower_bound: String, + unit_amount: String + ).returns(T.attached_class) + end + def self.new( + # Inclusive tier starting value + tier_lower_bound:, + # Amount per unit + unit_amount: + ) + end + + sig do + override.returns( + { tier_lower_bound: String, unit_amount: String } + ) + end + def to_hash + end + end end + end class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel OrHash = @@ -1197,13 +2085,27 @@ module Orb end attr_accessor :cadence - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_with_min_max_thresholds_config + # Configuration for grouped_with_min_max_thresholds pricing + sig do + returns( + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig + ) + end + attr_reader :grouped_with_min_max_thresholds_config + + sig do + params( + grouped_with_min_max_thresholds_config: + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig::OrHash + ).void + end + attr_writer :grouped_with_min_max_thresholds_config # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -1310,7 +2212,7 @@ module Orb cadence: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, grouped_with_min_max_thresholds_config: - T::Hash[Symbol, T.anything], + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig::OrHash, item_id: String, name: String, billable_metric_id: T.nilable(String), @@ -1341,6 +2243,7 @@ module Orb def self.new( # The cadence to bill for this price on. cadence:, + # Configuration for grouped_with_min_max_thresholds pricing grouped_with_min_max_thresholds_config:, # The id of the item the price will be associated with. item_id:, @@ -1381,6 +2284,7 @@ module Orb # A transient ID that can be used to reference this price when adding adjustments # in the same API call. reference_id: nil, + # The pricing model type model_type: :grouped_with_min_max_thresholds ) end @@ -1391,7 +2295,7 @@ module Orb cadence: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, grouped_with_min_max_thresholds_config: - T::Hash[Symbol, T.anything], + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, model_type: Symbol, name: String, @@ -1477,6 +2381,66 @@ module Orb def self.values end end + + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, + Orb::Internal::AnyHash + ) + end + + # The event property used to group before applying thresholds + sig { returns(String) } + attr_accessor :grouping_key + + # The maximum amount to charge each group + sig { returns(String) } + attr_accessor :maximum_charge + + # The minimum amount to charge each group, regardless of usage + sig { returns(String) } + attr_accessor :minimum_charge + + # The base price charged per group + sig { returns(String) } + attr_accessor :per_unit_rate + + # Configuration for grouped_with_min_max_thresholds pricing + sig do + params( + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + ).returns(T.attached_class) + end + def self.new( + # The event property used to group before applying thresholds + grouping_key:, + # The maximum amount to charge each group + maximum_charge:, + # The minimum amount to charge each group, regardless of usage + minimum_charge:, + # The base price charged per group + per_unit_rate: + ) + end + + sig do + override.returns( + { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + ) + end + def to_hash + end + end end sig do diff --git a/rbi/orb/models/beta_create_plan_version_params.rbi b/rbi/orb/models/beta_create_plan_version_params.rbi index 3b02cbd2..73bb3baf 100644 --- a/rbi/orb/models/beta_create_plan_version_params.rbi +++ b/rbi/orb/models/beta_create_plan_version_params.rbi @@ -276,37 +276,37 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - # The price to add to the plan + # New plan price request body params. sig do returns( T.nilable( T.any( Orb::NewPlanUnitPrice, - Orb::NewPlanPackagePrice, - Orb::NewPlanMatrixPrice, Orb::NewPlanTieredPrice, Orb::NewPlanBulkPrice, + Orb::NewPlanPackagePrice, + Orb::NewPlanMatrixPrice, Orb::NewPlanThresholdTotalAmountPrice, Orb::NewPlanTieredPackagePrice, Orb::NewPlanTieredWithMinimumPrice, - Orb::NewPlanUnitWithPercentPrice, + Orb::NewPlanGroupedTieredPrice, + Orb::NewPlanTieredPackageWithMinimumPrice, Orb::NewPlanPackageWithAllocationPrice, - Orb::NewPlanTierWithProrationPrice, + Orb::NewPlanUnitWithPercentPrice, + Orb::NewPlanMatrixWithAllocationPrice, + Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration, Orb::NewPlanUnitWithProrationPrice, Orb::NewPlanGroupedAllocationPrice, + Orb::NewPlanBulkWithProrationPrice, Orb::NewPlanGroupedWithProratedMinimumPrice, Orb::NewPlanGroupedWithMeteredMinimumPrice, Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::NewPlanMatrixWithDisplayNamePrice, - Orb::NewPlanBulkWithProrationPrice, Orb::NewPlanGroupedTieredPackagePrice, Orb::NewPlanMaxGroupTieredPackagePrice, Orb::NewPlanScalableMatrixWithUnitPricingPrice, Orb::NewPlanScalableMatrixWithTieredPricingPrice, Orb::NewPlanCumulativeGroupedBulkPrice, - Orb::NewPlanTieredPackageWithMinimumPrice, - Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice, Orb::NewPlanMinimumCompositePrice ) ) @@ -322,31 +322,31 @@ module Orb T.nilable( T.any( Orb::NewPlanUnitPrice::OrHash, - Orb::NewPlanPackagePrice::OrHash, - Orb::NewPlanMatrixPrice::OrHash, Orb::NewPlanTieredPrice::OrHash, Orb::NewPlanBulkPrice::OrHash, + Orb::NewPlanPackagePrice::OrHash, + Orb::NewPlanMatrixPrice::OrHash, Orb::NewPlanThresholdTotalAmountPrice::OrHash, Orb::NewPlanTieredPackagePrice::OrHash, Orb::NewPlanTieredWithMinimumPrice::OrHash, - Orb::NewPlanUnitWithPercentPrice::OrHash, + Orb::NewPlanGroupedTieredPrice::OrHash, + Orb::NewPlanTieredPackageWithMinimumPrice::OrHash, Orb::NewPlanPackageWithAllocationPrice::OrHash, - Orb::NewPlanTierWithProrationPrice::OrHash, + Orb::NewPlanUnitWithPercentPrice::OrHash, + Orb::NewPlanMatrixWithAllocationPrice::OrHash, + Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::OrHash, Orb::NewPlanUnitWithProrationPrice::OrHash, Orb::NewPlanGroupedAllocationPrice::OrHash, + Orb::NewPlanBulkWithProrationPrice::OrHash, Orb::NewPlanGroupedWithProratedMinimumPrice::OrHash, Orb::NewPlanGroupedWithMeteredMinimumPrice::OrHash, Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::OrHash, Orb::NewPlanMatrixWithDisplayNamePrice::OrHash, - Orb::NewPlanBulkWithProrationPrice::OrHash, Orb::NewPlanGroupedTieredPackagePrice::OrHash, Orb::NewPlanMaxGroupTieredPackagePrice::OrHash, Orb::NewPlanScalableMatrixWithUnitPricingPrice::OrHash, Orb::NewPlanScalableMatrixWithTieredPricingPrice::OrHash, Orb::NewPlanCumulativeGroupedBulkPrice::OrHash, - Orb::NewPlanTieredPackageWithMinimumPrice::OrHash, - Orb::NewPlanMatrixWithAllocationPrice::OrHash, - Orb::NewPlanGroupedTieredPrice::OrHash, Orb::NewPlanMinimumCompositePrice::OrHash ) ) @@ -357,7 +357,7 @@ module Orb allocation_price: nil, # The phase to add this price to. plan_phase_order: nil, - # The price to add to the plan + # New plan price request body params. price: nil ) end @@ -371,31 +371,31 @@ module Orb T.nilable( T.any( Orb::NewPlanUnitPrice, - Orb::NewPlanPackagePrice, - Orb::NewPlanMatrixPrice, Orb::NewPlanTieredPrice, Orb::NewPlanBulkPrice, + Orb::NewPlanPackagePrice, + Orb::NewPlanMatrixPrice, Orb::NewPlanThresholdTotalAmountPrice, Orb::NewPlanTieredPackagePrice, Orb::NewPlanTieredWithMinimumPrice, - Orb::NewPlanUnitWithPercentPrice, + Orb::NewPlanGroupedTieredPrice, + Orb::NewPlanTieredPackageWithMinimumPrice, Orb::NewPlanPackageWithAllocationPrice, - Orb::NewPlanTierWithProrationPrice, + Orb::NewPlanUnitWithPercentPrice, + Orb::NewPlanMatrixWithAllocationPrice, + Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration, Orb::NewPlanUnitWithProrationPrice, Orb::NewPlanGroupedAllocationPrice, + Orb::NewPlanBulkWithProrationPrice, Orb::NewPlanGroupedWithProratedMinimumPrice, Orb::NewPlanGroupedWithMeteredMinimumPrice, Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::NewPlanMatrixWithDisplayNamePrice, - Orb::NewPlanBulkWithProrationPrice, Orb::NewPlanGroupedTieredPackagePrice, Orb::NewPlanMaxGroupTieredPackagePrice, Orb::NewPlanScalableMatrixWithUnitPricingPrice, Orb::NewPlanScalableMatrixWithTieredPricingPrice, Orb::NewPlanCumulativeGroupedBulkPrice, - Orb::NewPlanTieredPackageWithMinimumPrice, - Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice, Orb::NewPlanMinimumCompositePrice ) ) @@ -405,7 +405,7 @@ module Orb def to_hash end - # The price to add to the plan + # New plan price request body params. module Price extend Orb::Internal::Type::Union @@ -413,40 +413,40 @@ module Orb T.type_alias do T.any( Orb::NewPlanUnitPrice, - Orb::NewPlanPackagePrice, - Orb::NewPlanMatrixPrice, Orb::NewPlanTieredPrice, Orb::NewPlanBulkPrice, + Orb::NewPlanPackagePrice, + Orb::NewPlanMatrixPrice, Orb::NewPlanThresholdTotalAmountPrice, Orb::NewPlanTieredPackagePrice, Orb::NewPlanTieredWithMinimumPrice, - Orb::NewPlanUnitWithPercentPrice, + Orb::NewPlanGroupedTieredPrice, + Orb::NewPlanTieredPackageWithMinimumPrice, Orb::NewPlanPackageWithAllocationPrice, - Orb::NewPlanTierWithProrationPrice, + Orb::NewPlanUnitWithPercentPrice, + Orb::NewPlanMatrixWithAllocationPrice, + Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration, Orb::NewPlanUnitWithProrationPrice, Orb::NewPlanGroupedAllocationPrice, + Orb::NewPlanBulkWithProrationPrice, Orb::NewPlanGroupedWithProratedMinimumPrice, Orb::NewPlanGroupedWithMeteredMinimumPrice, Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::NewPlanMatrixWithDisplayNamePrice, - Orb::NewPlanBulkWithProrationPrice, Orb::NewPlanGroupedTieredPackagePrice, Orb::NewPlanMaxGroupTieredPackagePrice, Orb::NewPlanScalableMatrixWithUnitPricingPrice, Orb::NewPlanScalableMatrixWithTieredPricingPrice, Orb::NewPlanCumulativeGroupedBulkPrice, - Orb::NewPlanTieredPackageWithMinimumPrice, - Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice, Orb::NewPlanMinimumCompositePrice ) end - class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + class TieredWithProration < Orb::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, + Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration, Orb::Internal::AnyHash ) end @@ -454,18 +454,16 @@ module Orb # The cadence to bill for this price on. sig do returns( - Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol + Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::Cadence::OrSymbol ) end attr_accessor :cadence - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_with_min_max_thresholds_config - # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -473,6 +471,22 @@ module Orb sig { returns(String) } attr_accessor :name + # Configuration for tiered_with_proration pricing + sig do + returns( + Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig + ) + end + attr_reader :tiered_with_proration_config + + sig do + params( + tiered_with_proration_config: + Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::OrHash + ).void + end + attr_writer :tiered_with_proration_config + # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } @@ -570,11 +584,11 @@ module Orb sig do params( cadence: - Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, - grouped_with_min_max_thresholds_config: - T::Hash[Symbol, T.anything], + Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::Cadence::OrSymbol, item_id: String, name: String, + tiered_with_proration_config: + Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -603,11 +617,12 @@ module Orb def self.new( # The cadence to bill for this price on. cadence:, - grouped_with_min_max_thresholds_config:, # The id of the item the price will be associated with. item_id:, # The name of the price. name:, + # Configuration for tiered_with_proration pricing + tiered_with_proration_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. billable_metric_id: nil, @@ -643,7 +658,8 @@ module Orb # A transient ID that can be used to reference this price when adding adjustments # in the same API call. reference_id: nil, - model_type: :grouped_with_min_max_thresholds + # The pricing model type + model_type: :tiered_with_proration ) end @@ -651,12 +667,12 @@ module Orb override.returns( { cadence: - Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, - grouped_with_min_max_thresholds_config: - T::Hash[Symbol, T.anything], + Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, + tiered_with_proration_config: + Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -693,7 +709,7 @@ module Orb T.type_alias do T.all( Symbol, - Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence + Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::Cadence ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -701,173 +717,638 @@ module Orb ANNUAL = T.let( :annual, - Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) sig do override.returns( T::Array[ - Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ] ) end def self.values end end - end - sig do - override.returns( - T::Array[ - Orb::BetaCreatePlanVersionParams::AddPrice::Price::Variants - ] - ) - end - def self.variants - end - end - end + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig, + Orb::Internal::AnyHash + ) + end - class RemoveAdjustment < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::BetaCreatePlanVersionParams::RemoveAdjustment, - Orb::Internal::AnyHash - ) - end + # Tiers for rating based on total usage quantities into the specified tier with + # proration + sig do + returns( + T::Array[ + Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier + ] + ) + end + attr_accessor :tiers - # The id of the adjustment to remove from on the plan. - sig { returns(String) } - attr_accessor :adjustment_id + # Configuration for tiered_with_proration pricing + sig do + params( + tiers: + T::Array[ + Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Tiers for rating based on total usage quantities into the specified tier with + # proration + tiers: + ) + end - # The phase to remove this adjustment from. - sig { returns(T.nilable(Integer)) } - attr_accessor :plan_phase_order + sig do + override.returns( + { + tiers: + T::Array[ + Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier + ] + } + ) + end + def to_hash + end - sig do - params( - adjustment_id: String, - plan_phase_order: T.nilable(Integer) - ).returns(T.attached_class) - end - def self.new( - # The id of the adjustment to remove from on the plan. - adjustment_id:, - # The phase to remove this adjustment from. - plan_phase_order: nil - ) - end + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier, + Orb::Internal::AnyHash + ) + end - sig do - override.returns( - { adjustment_id: String, plan_phase_order: T.nilable(Integer) } - ) - end - def to_hash - end - end + # Inclusive tier starting value + sig { returns(String) } + attr_accessor :tier_lower_bound - class RemovePrice < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::BetaCreatePlanVersionParams::RemovePrice, - Orb::Internal::AnyHash - ) - end + # Amount per unit + sig { returns(String) } + attr_accessor :unit_amount - # The id of the price to remove from the plan. - sig { returns(String) } - attr_accessor :price_id + # Configuration for a single tiered with proration tier + sig do + params(tier_lower_bound: String, unit_amount: String).returns( + T.attached_class + ) + end + def self.new( + # Inclusive tier starting value + tier_lower_bound:, + # Amount per unit + unit_amount: + ) + end - # The phase to remove this price from. - sig { returns(T.nilable(Integer)) } - attr_accessor :plan_phase_order + sig do + override.returns( + { tier_lower_bound: String, unit_amount: String } + ) + end + def to_hash + end + end + end + end - sig do - params( - price_id: String, - plan_phase_order: T.nilable(Integer) - ).returns(T.attached_class) - end - def self.new( - # The id of the price to remove from the plan. - price_id:, - # The phase to remove this price from. - plan_phase_order: nil - ) - end + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds, + Orb::Internal::AnyHash + ) + end - sig do - override.returns( - { price_id: String, plan_phase_order: T.nilable(Integer) } - ) - end - def to_hash - end - end + # The cadence to bill for this price on. + sig do + returns( + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol + ) + end + attr_accessor :cadence - class ReplaceAdjustment < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::BetaCreatePlanVersionParams::ReplaceAdjustment, - Orb::Internal::AnyHash - ) - end + # Configuration for grouped_with_min_max_thresholds pricing + sig do + returns( + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig + ) + end + attr_reader :grouped_with_min_max_thresholds_config - # The definition of a new adjustment to create and add to the plan. - sig do - returns( - T.any( - Orb::NewPercentageDiscount, - Orb::NewUsageDiscount, - Orb::NewAmountDiscount, - Orb::NewMinimum, - Orb::NewMaximum - ) - ) - end - attr_accessor :adjustment + sig do + params( + grouped_with_min_max_thresholds_config: + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig::OrHash + ).void + end + attr_writer :grouped_with_min_max_thresholds_config - # The id of the adjustment on the plan to replace in the plan. - sig { returns(String) } - attr_accessor :replaces_adjustment_id + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id - # The phase to replace this adjustment from. - sig { returns(T.nilable(Integer)) } - attr_accessor :plan_phase_order + # The pricing model type + sig { returns(Symbol) } + attr_accessor :model_type - sig do - params( - adjustment: - T.any( + # The name of the price. + sig { returns(String) } + attr_accessor :name + + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id + + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance + + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration + + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) + ) + end + attr_accessor :conversion_rate_config + + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + sig { returns(T.nilable(String)) } + attr_accessor :currency + + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration + + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + sig { returns(T.nilable(String)) } + attr_accessor :reference_id + + sig do + params( + cadence: + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + grouped_with_min_max_thresholds_config: + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig::OrHash, + item_id: String, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String), + model_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + # Configuration for grouped_with_min_max_thresholds pricing + grouped_with_min_max_thresholds_config:, + # The id of the item the price will be associated with. + item_id:, + # The name of the price. + name:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + currency: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + reference_id: nil, + # The pricing model type + model_type: :grouped_with_min_max_thresholds + ) + end + + sig do + override.returns( + { + cadence: + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + grouped_with_min_max_thresholds_config: + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end + + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, + Orb::Internal::AnyHash + ) + end + + # The event property used to group before applying thresholds + sig { returns(String) } + attr_accessor :grouping_key + + # The maximum amount to charge each group + sig { returns(String) } + attr_accessor :maximum_charge + + # The minimum amount to charge each group, regardless of usage + sig { returns(String) } + attr_accessor :minimum_charge + + # The base price charged per group + sig { returns(String) } + attr_accessor :per_unit_rate + + # Configuration for grouped_with_min_max_thresholds pricing + sig do + params( + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + ).returns(T.attached_class) + end + def self.new( + # The event property used to group before applying thresholds + grouping_key:, + # The maximum amount to charge each group + maximum_charge:, + # The minimum amount to charge each group, regardless of usage + minimum_charge:, + # The base price charged per group + per_unit_rate: + ) + end + + sig do + override.returns( + { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + ) + end + def to_hash + end + end + end + + sig do + override.returns( + T::Array[ + Orb::BetaCreatePlanVersionParams::AddPrice::Price::Variants + ] + ) + end + def self.variants + end + end + end + + class RemoveAdjustment < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::BetaCreatePlanVersionParams::RemoveAdjustment, + Orb::Internal::AnyHash + ) + end + + # The id of the adjustment to remove from on the plan. + sig { returns(String) } + attr_accessor :adjustment_id + + # The phase to remove this adjustment from. + sig { returns(T.nilable(Integer)) } + attr_accessor :plan_phase_order + + sig do + params( + adjustment_id: String, + plan_phase_order: T.nilable(Integer) + ).returns(T.attached_class) + end + def self.new( + # The id of the adjustment to remove from on the plan. + adjustment_id:, + # The phase to remove this adjustment from. + plan_phase_order: nil + ) + end + + sig do + override.returns( + { adjustment_id: String, plan_phase_order: T.nilable(Integer) } + ) + end + def to_hash + end + end + + class RemovePrice < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::BetaCreatePlanVersionParams::RemovePrice, + Orb::Internal::AnyHash + ) + end + + # The id of the price to remove from the plan. + sig { returns(String) } + attr_accessor :price_id + + # The phase to remove this price from. + sig { returns(T.nilable(Integer)) } + attr_accessor :plan_phase_order + + sig do + params( + price_id: String, + plan_phase_order: T.nilable(Integer) + ).returns(T.attached_class) + end + def self.new( + # The id of the price to remove from the plan. + price_id:, + # The phase to remove this price from. + plan_phase_order: nil + ) + end + + sig do + override.returns( + { price_id: String, plan_phase_order: T.nilable(Integer) } + ) + end + def to_hash + end + end + + class ReplaceAdjustment < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::BetaCreatePlanVersionParams::ReplaceAdjustment, + Orb::Internal::AnyHash + ) + end + + # The definition of a new adjustment to create and add to the plan. + sig do + returns( + T.any( + Orb::NewPercentageDiscount, + Orb::NewUsageDiscount, + Orb::NewAmountDiscount, + Orb::NewMinimum, + Orb::NewMaximum + ) + ) + end + attr_accessor :adjustment + + # The id of the adjustment on the plan to replace in the plan. + sig { returns(String) } + attr_accessor :replaces_adjustment_id + + # The phase to replace this adjustment from. + sig { returns(T.nilable(Integer)) } + attr_accessor :plan_phase_order + + sig do + params( + adjustment: + T.any( Orb::NewPercentageDiscount::OrHash, Orb::NewUsageDiscount::OrHash, Orb::NewAmountDiscount::OrHash, @@ -879,258 +1360,663 @@ module Orb ).returns(T.attached_class) end def self.new( - # The definition of a new adjustment to create and add to the plan. - adjustment:, - # The id of the adjustment on the plan to replace in the plan. - replaces_adjustment_id:, - # The phase to replace this adjustment from. - plan_phase_order: nil + # The definition of a new adjustment to create and add to the plan. + adjustment:, + # The id of the adjustment on the plan to replace in the plan. + replaces_adjustment_id:, + # The phase to replace this adjustment from. + plan_phase_order: nil + ) + end + + sig do + override.returns( + { + adjustment: + T.any( + Orb::NewPercentageDiscount, + Orb::NewUsageDiscount, + Orb::NewAmountDiscount, + Orb::NewMinimum, + Orb::NewMaximum + ), + replaces_adjustment_id: String, + plan_phase_order: T.nilable(Integer) + } + ) + end + def to_hash + end + + # The definition of a new adjustment to create and add to the plan. + module Adjustment + extend Orb::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + Orb::NewPercentageDiscount, + Orb::NewUsageDiscount, + Orb::NewAmountDiscount, + Orb::NewMinimum, + Orb::NewMaximum + ) + end + + sig do + override.returns( + T::Array[ + Orb::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Variants + ] + ) + end + def self.variants + end + end + end + + class ReplacePrice < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::BetaCreatePlanVersionParams::ReplacePrice, + Orb::Internal::AnyHash + ) + end + + # The id of the price on the plan to replace in the plan. + sig { returns(String) } + attr_accessor :replaces_price_id + + # The allocation price to add to the plan. + sig { returns(T.nilable(Orb::NewAllocationPrice)) } + attr_reader :allocation_price + + sig do + params( + allocation_price: T.nilable(Orb::NewAllocationPrice::OrHash) + ).void + end + attr_writer :allocation_price + + # The phase to replace this price from. + sig { returns(T.nilable(Integer)) } + attr_accessor :plan_phase_order + + # New plan price request body params. + sig do + returns( + T.nilable( + T.any( + Orb::NewPlanUnitPrice, + Orb::NewPlanTieredPrice, + Orb::NewPlanBulkPrice, + Orb::NewPlanPackagePrice, + Orb::NewPlanMatrixPrice, + Orb::NewPlanThresholdTotalAmountPrice, + Orb::NewPlanTieredPackagePrice, + Orb::NewPlanTieredWithMinimumPrice, + Orb::NewPlanGroupedTieredPrice, + Orb::NewPlanTieredPackageWithMinimumPrice, + Orb::NewPlanPackageWithAllocationPrice, + Orb::NewPlanUnitWithPercentPrice, + Orb::NewPlanMatrixWithAllocationPrice, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration, + Orb::NewPlanUnitWithProrationPrice, + Orb::NewPlanGroupedAllocationPrice, + Orb::NewPlanBulkWithProrationPrice, + Orb::NewPlanGroupedWithProratedMinimumPrice, + Orb::NewPlanGroupedWithMeteredMinimumPrice, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, + Orb::NewPlanMatrixWithDisplayNamePrice, + Orb::NewPlanGroupedTieredPackagePrice, + Orb::NewPlanMaxGroupTieredPackagePrice, + Orb::NewPlanScalableMatrixWithUnitPricingPrice, + Orb::NewPlanScalableMatrixWithTieredPricingPrice, + Orb::NewPlanCumulativeGroupedBulkPrice, + Orb::NewPlanMinimumCompositePrice + ) + ) + ) + end + attr_accessor :price + + sig do + params( + replaces_price_id: String, + allocation_price: T.nilable(Orb::NewAllocationPrice::OrHash), + plan_phase_order: T.nilable(Integer), + price: + T.nilable( + T.any( + Orb::NewPlanUnitPrice::OrHash, + Orb::NewPlanTieredPrice::OrHash, + Orb::NewPlanBulkPrice::OrHash, + Orb::NewPlanPackagePrice::OrHash, + Orb::NewPlanMatrixPrice::OrHash, + Orb::NewPlanThresholdTotalAmountPrice::OrHash, + Orb::NewPlanTieredPackagePrice::OrHash, + Orb::NewPlanTieredWithMinimumPrice::OrHash, + Orb::NewPlanGroupedTieredPrice::OrHash, + Orb::NewPlanTieredPackageWithMinimumPrice::OrHash, + Orb::NewPlanPackageWithAllocationPrice::OrHash, + Orb::NewPlanUnitWithPercentPrice::OrHash, + Orb::NewPlanMatrixWithAllocationPrice::OrHash, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::OrHash, + Orb::NewPlanUnitWithProrationPrice::OrHash, + Orb::NewPlanGroupedAllocationPrice::OrHash, + Orb::NewPlanBulkWithProrationPrice::OrHash, + Orb::NewPlanGroupedWithProratedMinimumPrice::OrHash, + Orb::NewPlanGroupedWithMeteredMinimumPrice::OrHash, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::OrHash, + Orb::NewPlanMatrixWithDisplayNamePrice::OrHash, + Orb::NewPlanGroupedTieredPackagePrice::OrHash, + Orb::NewPlanMaxGroupTieredPackagePrice::OrHash, + Orb::NewPlanScalableMatrixWithUnitPricingPrice::OrHash, + Orb::NewPlanScalableMatrixWithTieredPricingPrice::OrHash, + Orb::NewPlanCumulativeGroupedBulkPrice::OrHash, + Orb::NewPlanMinimumCompositePrice::OrHash + ) + ) + ).returns(T.attached_class) + end + def self.new( + # The id of the price on the plan to replace in the plan. + replaces_price_id:, + # The allocation price to add to the plan. + allocation_price: nil, + # The phase to replace this price from. + plan_phase_order: nil, + # New plan price request body params. + price: nil ) end - sig do - override.returns( - { - adjustment: - T.any( - Orb::NewPercentageDiscount, - Orb::NewUsageDiscount, - Orb::NewAmountDiscount, - Orb::NewMinimum, - Orb::NewMaximum - ), - replaces_adjustment_id: String, - plan_phase_order: T.nilable(Integer) - } - ) - end - def to_hash - end + sig do + override.returns( + { + replaces_price_id: String, + allocation_price: T.nilable(Orb::NewAllocationPrice), + plan_phase_order: T.nilable(Integer), + price: + T.nilable( + T.any( + Orb::NewPlanUnitPrice, + Orb::NewPlanTieredPrice, + Orb::NewPlanBulkPrice, + Orb::NewPlanPackagePrice, + Orb::NewPlanMatrixPrice, + Orb::NewPlanThresholdTotalAmountPrice, + Orb::NewPlanTieredPackagePrice, + Orb::NewPlanTieredWithMinimumPrice, + Orb::NewPlanGroupedTieredPrice, + Orb::NewPlanTieredPackageWithMinimumPrice, + Orb::NewPlanPackageWithAllocationPrice, + Orb::NewPlanUnitWithPercentPrice, + Orb::NewPlanMatrixWithAllocationPrice, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration, + Orb::NewPlanUnitWithProrationPrice, + Orb::NewPlanGroupedAllocationPrice, + Orb::NewPlanBulkWithProrationPrice, + Orb::NewPlanGroupedWithProratedMinimumPrice, + Orb::NewPlanGroupedWithMeteredMinimumPrice, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, + Orb::NewPlanMatrixWithDisplayNamePrice, + Orb::NewPlanGroupedTieredPackagePrice, + Orb::NewPlanMaxGroupTieredPackagePrice, + Orb::NewPlanScalableMatrixWithUnitPricingPrice, + Orb::NewPlanScalableMatrixWithTieredPricingPrice, + Orb::NewPlanCumulativeGroupedBulkPrice, + Orb::NewPlanMinimumCompositePrice + ) + ) + } + ) + end + def to_hash + end + + # New plan price request body params. + module Price + extend Orb::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + Orb::NewPlanUnitPrice, + Orb::NewPlanTieredPrice, + Orb::NewPlanBulkPrice, + Orb::NewPlanPackagePrice, + Orb::NewPlanMatrixPrice, + Orb::NewPlanThresholdTotalAmountPrice, + Orb::NewPlanTieredPackagePrice, + Orb::NewPlanTieredWithMinimumPrice, + Orb::NewPlanGroupedTieredPrice, + Orb::NewPlanTieredPackageWithMinimumPrice, + Orb::NewPlanPackageWithAllocationPrice, + Orb::NewPlanUnitWithPercentPrice, + Orb::NewPlanMatrixWithAllocationPrice, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration, + Orb::NewPlanUnitWithProrationPrice, + Orb::NewPlanGroupedAllocationPrice, + Orb::NewPlanBulkWithProrationPrice, + Orb::NewPlanGroupedWithProratedMinimumPrice, + Orb::NewPlanGroupedWithMeteredMinimumPrice, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, + Orb::NewPlanMatrixWithDisplayNamePrice, + Orb::NewPlanGroupedTieredPackagePrice, + Orb::NewPlanMaxGroupTieredPackagePrice, + Orb::NewPlanScalableMatrixWithUnitPricingPrice, + Orb::NewPlanScalableMatrixWithTieredPricingPrice, + Orb::NewPlanCumulativeGroupedBulkPrice, + Orb::NewPlanMinimumCompositePrice + ) + end + + class TieredWithProration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration, + Orb::Internal::AnyHash + ) + end + + # The cadence to bill for this price on. + sig do + returns( + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::Cadence::OrSymbol + ) + end + attr_accessor :cadence + + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id + + # The pricing model type + sig { returns(Symbol) } + attr_accessor :model_type + + # The name of the price. + sig { returns(String) } + attr_accessor :name + + # Configuration for tiered_with_proration pricing + sig do + returns( + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig + ) + end + attr_reader :tiered_with_proration_config + + sig do + params( + tiered_with_proration_config: + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::OrHash + ).void + end + attr_writer :tiered_with_proration_config + + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id + + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance + + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration + + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration - # The definition of a new adjustment to create and add to the plan. - module Adjustment - extend Orb::Internal::Type::Union + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate - Variants = - T.type_alias do - T.any( - Orb::NewPercentageDiscount, - Orb::NewUsageDiscount, - Orb::NewAmountDiscount, - Orb::NewMinimum, - Orb::NewMaximum + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) + ) + end + attr_accessor :conversion_rate_config + + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + sig { returns(T.nilable(String)) } + attr_accessor :currency + + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration + + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + sig { returns(T.nilable(String)) } + attr_accessor :reference_id + + sig do + params( + cadence: + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::Cadence::OrSymbol, + item_id: String, + name: String, + tiered_with_proration_config: + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::OrHash, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String), + model_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + # The id of the item the price will be associated with. + item_id:, + # The name of the price. + name:, + # Configuration for tiered_with_proration pricing + tiered_with_proration_config:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + currency: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + reference_id: nil, + # The pricing model type + model_type: :tiered_with_proration + ) + end + + sig do + override.returns( + { + cadence: + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_proration_config: + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } ) end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::Cadence + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end - sig do - override.returns( - T::Array[ - Orb::BetaCreatePlanVersionParams::ReplaceAdjustment::Adjustment::Variants - ] - ) - end - def self.variants - end - end - end - - class ReplacePrice < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::BetaCreatePlanVersionParams::ReplacePrice, - Orb::Internal::AnyHash - ) - end + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig, + Orb::Internal::AnyHash + ) + end - # The id of the price on the plan to replace in the plan. - sig { returns(String) } - attr_accessor :replaces_price_id + # Tiers for rating based on total usage quantities into the specified tier with + # proration + sig do + returns( + T::Array[ + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier + ] + ) + end + attr_accessor :tiers - # The allocation price to add to the plan. - sig { returns(T.nilable(Orb::NewAllocationPrice)) } - attr_reader :allocation_price + # Configuration for tiered_with_proration pricing + sig do + params( + tiers: + T::Array[ + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Tiers for rating based on total usage quantities into the specified tier with + # proration + tiers: + ) + end - sig do - params( - allocation_price: T.nilable(Orb::NewAllocationPrice::OrHash) - ).void - end - attr_writer :allocation_price + sig do + override.returns( + { + tiers: + T::Array[ + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier + ] + } + ) + end + def to_hash + end - # The phase to replace this price from. - sig { returns(T.nilable(Integer)) } - attr_accessor :plan_phase_order + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier, + Orb::Internal::AnyHash + ) + end - # The price to add to the plan - sig do - returns( - T.nilable( - T.any( - Orb::NewPlanUnitPrice, - Orb::NewPlanPackagePrice, - Orb::NewPlanMatrixPrice, - Orb::NewPlanTieredPrice, - Orb::NewPlanBulkPrice, - Orb::NewPlanThresholdTotalAmountPrice, - Orb::NewPlanTieredPackagePrice, - Orb::NewPlanTieredWithMinimumPrice, - Orb::NewPlanUnitWithPercentPrice, - Orb::NewPlanPackageWithAllocationPrice, - Orb::NewPlanTierWithProrationPrice, - Orb::NewPlanUnitWithProrationPrice, - Orb::NewPlanGroupedAllocationPrice, - Orb::NewPlanGroupedWithProratedMinimumPrice, - Orb::NewPlanGroupedWithMeteredMinimumPrice, - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, - Orb::NewPlanMatrixWithDisplayNamePrice, - Orb::NewPlanBulkWithProrationPrice, - Orb::NewPlanGroupedTieredPackagePrice, - Orb::NewPlanMaxGroupTieredPackagePrice, - Orb::NewPlanScalableMatrixWithUnitPricingPrice, - Orb::NewPlanScalableMatrixWithTieredPricingPrice, - Orb::NewPlanCumulativeGroupedBulkPrice, - Orb::NewPlanTieredPackageWithMinimumPrice, - Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice, - Orb::NewPlanMinimumCompositePrice - ) - ) - ) - end - attr_accessor :price + # Inclusive tier starting value + sig { returns(String) } + attr_accessor :tier_lower_bound - sig do - params( - replaces_price_id: String, - allocation_price: T.nilable(Orb::NewAllocationPrice::OrHash), - plan_phase_order: T.nilable(Integer), - price: - T.nilable( - T.any( - Orb::NewPlanUnitPrice::OrHash, - Orb::NewPlanPackagePrice::OrHash, - Orb::NewPlanMatrixPrice::OrHash, - Orb::NewPlanTieredPrice::OrHash, - Orb::NewPlanBulkPrice::OrHash, - Orb::NewPlanThresholdTotalAmountPrice::OrHash, - Orb::NewPlanTieredPackagePrice::OrHash, - Orb::NewPlanTieredWithMinimumPrice::OrHash, - Orb::NewPlanUnitWithPercentPrice::OrHash, - Orb::NewPlanPackageWithAllocationPrice::OrHash, - Orb::NewPlanTierWithProrationPrice::OrHash, - Orb::NewPlanUnitWithProrationPrice::OrHash, - Orb::NewPlanGroupedAllocationPrice::OrHash, - Orb::NewPlanGroupedWithProratedMinimumPrice::OrHash, - Orb::NewPlanGroupedWithMeteredMinimumPrice::OrHash, - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::OrHash, - Orb::NewPlanMatrixWithDisplayNamePrice::OrHash, - Orb::NewPlanBulkWithProrationPrice::OrHash, - Orb::NewPlanGroupedTieredPackagePrice::OrHash, - Orb::NewPlanMaxGroupTieredPackagePrice::OrHash, - Orb::NewPlanScalableMatrixWithUnitPricingPrice::OrHash, - Orb::NewPlanScalableMatrixWithTieredPricingPrice::OrHash, - Orb::NewPlanCumulativeGroupedBulkPrice::OrHash, - Orb::NewPlanTieredPackageWithMinimumPrice::OrHash, - Orb::NewPlanMatrixWithAllocationPrice::OrHash, - Orb::NewPlanGroupedTieredPrice::OrHash, - Orb::NewPlanMinimumCompositePrice::OrHash - ) - ) - ).returns(T.attached_class) - end - def self.new( - # The id of the price on the plan to replace in the plan. - replaces_price_id:, - # The allocation price to add to the plan. - allocation_price: nil, - # The phase to replace this price from. - plan_phase_order: nil, - # The price to add to the plan - price: nil - ) - end + # Amount per unit + sig { returns(String) } + attr_accessor :unit_amount - sig do - override.returns( - { - replaces_price_id: String, - allocation_price: T.nilable(Orb::NewAllocationPrice), - plan_phase_order: T.nilable(Integer), - price: - T.nilable( - T.any( - Orb::NewPlanUnitPrice, - Orb::NewPlanPackagePrice, - Orb::NewPlanMatrixPrice, - Orb::NewPlanTieredPrice, - Orb::NewPlanBulkPrice, - Orb::NewPlanThresholdTotalAmountPrice, - Orb::NewPlanTieredPackagePrice, - Orb::NewPlanTieredWithMinimumPrice, - Orb::NewPlanUnitWithPercentPrice, - Orb::NewPlanPackageWithAllocationPrice, - Orb::NewPlanTierWithProrationPrice, - Orb::NewPlanUnitWithProrationPrice, - Orb::NewPlanGroupedAllocationPrice, - Orb::NewPlanGroupedWithProratedMinimumPrice, - Orb::NewPlanGroupedWithMeteredMinimumPrice, - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, - Orb::NewPlanMatrixWithDisplayNamePrice, - Orb::NewPlanBulkWithProrationPrice, - Orb::NewPlanGroupedTieredPackagePrice, - Orb::NewPlanMaxGroupTieredPackagePrice, - Orb::NewPlanScalableMatrixWithUnitPricingPrice, - Orb::NewPlanScalableMatrixWithTieredPricingPrice, - Orb::NewPlanCumulativeGroupedBulkPrice, - Orb::NewPlanTieredPackageWithMinimumPrice, - Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice, - Orb::NewPlanMinimumCompositePrice + # Configuration for a single tiered with proration tier + sig do + params(tier_lower_bound: String, unit_amount: String).returns( + T.attached_class ) + end + def self.new( + # Inclusive tier starting value + tier_lower_bound:, + # Amount per unit + unit_amount: ) - } - ) - end - def to_hash - end - - # The price to add to the plan - module Price - extend Orb::Internal::Type::Union + end - Variants = - T.type_alias do - T.any( - Orb::NewPlanUnitPrice, - Orb::NewPlanPackagePrice, - Orb::NewPlanMatrixPrice, - Orb::NewPlanTieredPrice, - Orb::NewPlanBulkPrice, - Orb::NewPlanThresholdTotalAmountPrice, - Orb::NewPlanTieredPackagePrice, - Orb::NewPlanTieredWithMinimumPrice, - Orb::NewPlanUnitWithPercentPrice, - Orb::NewPlanPackageWithAllocationPrice, - Orb::NewPlanTierWithProrationPrice, - Orb::NewPlanUnitWithProrationPrice, - Orb::NewPlanGroupedAllocationPrice, - Orb::NewPlanGroupedWithProratedMinimumPrice, - Orb::NewPlanGroupedWithMeteredMinimumPrice, - Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, - Orb::NewPlanMatrixWithDisplayNamePrice, - Orb::NewPlanBulkWithProrationPrice, - Orb::NewPlanGroupedTieredPackagePrice, - Orb::NewPlanMaxGroupTieredPackagePrice, - Orb::NewPlanScalableMatrixWithUnitPricingPrice, - Orb::NewPlanScalableMatrixWithTieredPricingPrice, - Orb::NewPlanCumulativeGroupedBulkPrice, - Orb::NewPlanTieredPackageWithMinimumPrice, - Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice, - Orb::NewPlanMinimumCompositePrice - ) + sig do + override.returns( + { tier_lower_bound: String, unit_amount: String } + ) + end + def to_hash + end + end end + end class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel OrHash = @@ -1149,13 +2035,27 @@ module Orb end attr_accessor :cadence - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_with_min_max_thresholds_config + # Configuration for grouped_with_min_max_thresholds pricing + sig do + returns( + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig + ) + end + attr_reader :grouped_with_min_max_thresholds_config + + sig do + params( + grouped_with_min_max_thresholds_config: + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig::OrHash + ).void + end + attr_writer :grouped_with_min_max_thresholds_config # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -1262,7 +2162,7 @@ module Orb cadence: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, grouped_with_min_max_thresholds_config: - T::Hash[Symbol, T.anything], + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig::OrHash, item_id: String, name: String, billable_metric_id: T.nilable(String), @@ -1293,6 +2193,7 @@ module Orb def self.new( # The cadence to bill for this price on. cadence:, + # Configuration for grouped_with_min_max_thresholds pricing grouped_with_min_max_thresholds_config:, # The id of the item the price will be associated with. item_id:, @@ -1333,6 +2234,7 @@ module Orb # A transient ID that can be used to reference this price when adding adjustments # in the same API call. reference_id: nil, + # The pricing model type model_type: :grouped_with_min_max_thresholds ) end @@ -1343,7 +2245,7 @@ module Orb cadence: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, grouped_with_min_max_thresholds_config: - T::Hash[Symbol, T.anything], + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, model_type: Symbol, name: String, @@ -1429,6 +2331,66 @@ module Orb def self.values end end + + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, + Orb::Internal::AnyHash + ) + end + + # The event property used to group before applying thresholds + sig { returns(String) } + attr_accessor :grouping_key + + # The maximum amount to charge each group + sig { returns(String) } + attr_accessor :maximum_charge + + # The minimum amount to charge each group, regardless of usage + sig { returns(String) } + attr_accessor :minimum_charge + + # The base price charged per group + sig { returns(String) } + attr_accessor :per_unit_rate + + # Configuration for grouped_with_min_max_thresholds pricing + sig do + params( + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + ).returns(T.attached_class) + end + def self.new( + # The event property used to group before applying thresholds + grouping_key:, + # The maximum amount to charge each group + maximum_charge:, + # The minimum amount to charge each group, regardless of usage + minimum_charge:, + # The base price charged per group + per_unit_rate: + ) + end + + sig do + override.returns( + { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + ) + end + def to_hash + end + end end sig do diff --git a/rbi/orb/models/bulk_config.rbi b/rbi/orb/models/bulk_config.rbi index 383bf67d..de8ecc19 100644 --- a/rbi/orb/models/bulk_config.rbi +++ b/rbi/orb/models/bulk_config.rbi @@ -9,6 +9,7 @@ module Orb sig { returns(T::Array[Orb::BulkTier]) } attr_accessor :tiers + # Configuration for bulk pricing sig do params(tiers: T::Array[Orb::BulkTier::OrHash]).returns(T.attached_class) end diff --git a/rbi/orb/models/bulk_tier.rbi b/rbi/orb/models/bulk_tier.rbi index 8613d3f2..da60f6ee 100644 --- a/rbi/orb/models/bulk_tier.rbi +++ b/rbi/orb/models/bulk_tier.rbi @@ -13,6 +13,7 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :maximum_units + # Configuration for a single bulk pricing tier sig do params(unit_amount: String, maximum_units: T.nilable(Float)).returns( T.attached_class diff --git a/rbi/orb/models/customer_create_params.rbi b/rbi/orb/models/customer_create_params.rbi index 8c6589e3..aa11b5ac 100644 --- a/rbi/orb/models/customer_create_params.rbi +++ b/rbi/orb/models/customer_create_params.rbi @@ -33,7 +33,8 @@ module Orb attr_writer :accounting_sync_configuration # Additional email addresses for this customer. If populated, these email - # addresses will be CC'd for customer communications. + # addresses will be CC'd for customer communications. The total number of email + # addresses (including the primary email) cannot exceed 50. sig { returns(T.nilable(T::Array[String])) } attr_accessor :additional_emails @@ -123,7 +124,8 @@ module Orb T.any( Orb::NewAvalaraTaxConfiguration, Orb::NewTaxJarConfiguration, - Orb::NewSphereConfiguration + Orb::NewSphereConfiguration, + Orb::CustomerCreateParams::TaxConfiguration::Numeral ) ) ) @@ -312,7 +314,8 @@ module Orb T.any( Orb::NewAvalaraTaxConfiguration::OrHash, Orb::NewTaxJarConfiguration::OrHash, - Orb::NewSphereConfiguration::OrHash + Orb::NewSphereConfiguration::OrHash, + Orb::CustomerCreateParams::TaxConfiguration::Numeral::OrHash ) ), tax_id: T.nilable(Orb::CustomerTaxID::OrHash), @@ -329,7 +332,8 @@ module Orb name:, accounting_sync_configuration: nil, # Additional email addresses for this customer. If populated, these email - # addresses will be CC'd for customer communications. + # addresses will be CC'd for customer communications. The total number of email + # addresses (including the primary email) cannot exceed 50. additional_emails: nil, # Used to determine if invoices for this customer will automatically attempt to # charge a saved payment method, if available. This parameter defaults to `True` @@ -544,7 +548,8 @@ module Orb T.any( Orb::NewAvalaraTaxConfiguration, Orb::NewTaxJarConfiguration, - Orb::NewSphereConfiguration + Orb::NewSphereConfiguration, + Orb::CustomerCreateParams::TaxConfiguration::Numeral ) ), tax_id: T.nilable(Orb::CustomerTaxID), @@ -611,10 +616,41 @@ module Orb T.any( Orb::NewAvalaraTaxConfiguration, Orb::NewTaxJarConfiguration, - Orb::NewSphereConfiguration + Orb::NewSphereConfiguration, + Orb::CustomerCreateParams::TaxConfiguration::Numeral ) end + class Numeral < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::CustomerCreateParams::TaxConfiguration::Numeral, + Orb::Internal::AnyHash + ) + end + + sig { returns(T::Boolean) } + attr_accessor :tax_exempt + + sig { returns(Symbol) } + attr_accessor :tax_provider + + sig do + params(tax_exempt: T::Boolean, tax_provider: Symbol).returns( + T.attached_class + ) + end + def self.new(tax_exempt:, tax_provider: :numeral) + end + + sig do + override.returns({ tax_exempt: T::Boolean, tax_provider: Symbol }) + end + def to_hash + end + end + sig do override.returns( T::Array[Orb::CustomerCreateParams::TaxConfiguration::Variants] diff --git a/rbi/orb/models/customer_update_by_external_id_params.rbi b/rbi/orb/models/customer_update_by_external_id_params.rbi index f7351261..b5183c42 100644 --- a/rbi/orb/models/customer_update_by_external_id_params.rbi +++ b/rbi/orb/models/customer_update_by_external_id_params.rbi @@ -23,7 +23,8 @@ module Orb attr_writer :accounting_sync_configuration # Additional email addresses for this customer. If populated, these email - # addresses will be CC'd for customer communications. + # addresses will be CC'd for customer communications. The total number of email + # addresses (including the primary email) cannot exceed 50. sig { returns(T.nilable(T::Array[String])) } attr_accessor :additional_emails @@ -131,7 +132,8 @@ module Orb T.any( Orb::NewAvalaraTaxConfiguration, Orb::NewTaxJarConfiguration, - Orb::NewSphereConfiguration + Orb::NewSphereConfiguration, + Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Numeral ) ) ) @@ -316,7 +318,8 @@ module Orb T.any( Orb::NewAvalaraTaxConfiguration::OrHash, Orb::NewTaxJarConfiguration::OrHash, - Orb::NewSphereConfiguration::OrHash + Orb::NewSphereConfiguration::OrHash, + Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Numeral::OrHash ) ), tax_id: T.nilable(Orb::CustomerTaxID::OrHash), @@ -326,7 +329,8 @@ module Orb def self.new( accounting_sync_configuration: nil, # Additional email addresses for this customer. If populated, these email - # addresses will be CC'd for customer communications. + # addresses will be CC'd for customer communications. The total number of email + # addresses (including the primary email) cannot exceed 50. additional_emails: nil, # Used to determine if invoices for this customer will automatically attempt to # charge a saved payment method, if available. This parameter defaults to `True` @@ -549,7 +553,8 @@ module Orb T.any( Orb::NewAvalaraTaxConfiguration, Orb::NewTaxJarConfiguration, - Orb::NewSphereConfiguration + Orb::NewSphereConfiguration, + Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Numeral ) ), tax_id: T.nilable(Orb::CustomerTaxID), @@ -624,10 +629,41 @@ module Orb T.any( Orb::NewAvalaraTaxConfiguration, Orb::NewTaxJarConfiguration, - Orb::NewSphereConfiguration + Orb::NewSphereConfiguration, + Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Numeral ) end + class Numeral < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Numeral, + Orb::Internal::AnyHash + ) + end + + sig { returns(T::Boolean) } + attr_accessor :tax_exempt + + sig { returns(Symbol) } + attr_accessor :tax_provider + + sig do + params(tax_exempt: T::Boolean, tax_provider: Symbol).returns( + T.attached_class + ) + end + def self.new(tax_exempt:, tax_provider: :numeral) + end + + sig do + override.returns({ tax_exempt: T::Boolean, tax_provider: Symbol }) + end + def to_hash + end + end + sig do override.returns( T::Array[ diff --git a/rbi/orb/models/customer_update_params.rbi b/rbi/orb/models/customer_update_params.rbi index eba586fe..303b9297 100644 --- a/rbi/orb/models/customer_update_params.rbi +++ b/rbi/orb/models/customer_update_params.rbi @@ -23,7 +23,8 @@ module Orb attr_writer :accounting_sync_configuration # Additional email addresses for this customer. If populated, these email - # addresses will be CC'd for customer communications. + # addresses will be CC'd for customer communications. The total number of email + # addresses (including the primary email) cannot exceed 50. sig { returns(T.nilable(T::Array[String])) } attr_accessor :additional_emails @@ -127,7 +128,8 @@ module Orb T.any( Orb::NewAvalaraTaxConfiguration, Orb::NewTaxJarConfiguration, - Orb::NewSphereConfiguration + Orb::NewSphereConfiguration, + Orb::CustomerUpdateParams::TaxConfiguration::Numeral ) ) ) @@ -310,7 +312,8 @@ module Orb T.any( Orb::NewAvalaraTaxConfiguration::OrHash, Orb::NewTaxJarConfiguration::OrHash, - Orb::NewSphereConfiguration::OrHash + Orb::NewSphereConfiguration::OrHash, + Orb::CustomerUpdateParams::TaxConfiguration::Numeral::OrHash ) ), tax_id: T.nilable(Orb::CustomerTaxID::OrHash), @@ -320,7 +323,8 @@ module Orb def self.new( accounting_sync_configuration: nil, # Additional email addresses for this customer. If populated, these email - # addresses will be CC'd for customer communications. + # addresses will be CC'd for customer communications. The total number of email + # addresses (including the primary email) cannot exceed 50. additional_emails: nil, # Used to determine if invoices for this customer will automatically attempt to # charge a saved payment method, if available. This parameter defaults to `True` @@ -541,7 +545,8 @@ module Orb T.any( Orb::NewAvalaraTaxConfiguration, Orb::NewTaxJarConfiguration, - Orb::NewSphereConfiguration + Orb::NewSphereConfiguration, + Orb::CustomerUpdateParams::TaxConfiguration::Numeral ) ), tax_id: T.nilable(Orb::CustomerTaxID), @@ -611,10 +616,41 @@ module Orb T.any( Orb::NewAvalaraTaxConfiguration, Orb::NewTaxJarConfiguration, - Orb::NewSphereConfiguration + Orb::NewSphereConfiguration, + Orb::CustomerUpdateParams::TaxConfiguration::Numeral ) end + class Numeral < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::CustomerUpdateParams::TaxConfiguration::Numeral, + Orb::Internal::AnyHash + ) + end + + sig { returns(T::Boolean) } + attr_accessor :tax_exempt + + sig { returns(Symbol) } + attr_accessor :tax_provider + + sig do + params(tax_exempt: T::Boolean, tax_provider: Symbol).returns( + T.attached_class + ) + end + def self.new(tax_exempt:, tax_provider: :numeral) + end + + sig do + override.returns({ tax_exempt: T::Boolean, tax_provider: Symbol }) + end + def to_hash + end + end + sig do override.returns( T::Array[Orb::CustomerUpdateParams::TaxConfiguration::Variants] diff --git a/rbi/orb/models/invoice.rbi b/rbi/orb/models/invoice.rbi index e123e74e..aaded5f6 100644 --- a/rbi/orb/models/invoice.rbi +++ b/rbi/orb/models/invoice.rbi @@ -1227,14 +1227,14 @@ module Orb price: T.any( Orb::Price::Unit::OrHash, - Orb::Price::Package::OrHash, - Orb::Price::Matrix::OrHash, Orb::Price::Tiered::OrHash, Orb::Price::Bulk::OrHash, + Orb::Price::Package::OrHash, + Orb::Price::Matrix::OrHash, Orb::Price::ThresholdTotalAmount::OrHash, Orb::Price::TieredPackage::OrHash, - Orb::Price::GroupedTiered::OrHash, Orb::Price::TieredWithMinimum::OrHash, + Orb::Price::GroupedTiered::OrHash, Orb::Price::TieredPackageWithMinimum::OrHash, Orb::Price::PackageWithAllocation::OrHash, Orb::Price::UnitWithPercent::OrHash, @@ -1242,16 +1242,16 @@ module Orb Orb::Price::TieredWithProration::OrHash, Orb::Price::UnitWithProration::OrHash, Orb::Price::GroupedAllocation::OrHash, + Orb::Price::BulkWithProration::OrHash, Orb::Price::GroupedWithProratedMinimum::OrHash, Orb::Price::GroupedWithMeteredMinimum::OrHash, + Orb::Price::GroupedWithMinMaxThresholds::OrHash, Orb::Price::MatrixWithDisplayName::OrHash, - Orb::Price::BulkWithProration::OrHash, Orb::Price::GroupedTieredPackage::OrHash, Orb::Price::MaxGroupTieredPackage::OrHash, Orb::Price::ScalableMatrixWithUnitPricing::OrHash, Orb::Price::ScalableMatrixWithTieredPricing::OrHash, Orb::Price::CumulativeGroupedBulk::OrHash, - Orb::Price::GroupedWithMinMaxThresholds::OrHash, Orb::Price::Minimum::OrHash ), quantity: Float, diff --git a/rbi/orb/models/invoice_create_params.rbi b/rbi/orb/models/invoice_create_params.rbi index b6da09bb..dba8e8d7 100644 --- a/rbi/orb/models/invoice_create_params.rbi +++ b/rbi/orb/models/invoice_create_params.rbi @@ -201,6 +201,7 @@ module Orb sig { returns(Date) } attr_accessor :start_date + # Configuration for unit pricing sig { returns(Orb::UnitConfig) } attr_reader :unit_config @@ -229,6 +230,7 @@ module Orb quantity:, # A date string to specify the line item's start date in the customer's timezone. start_date:, + # Configuration for unit pricing unit_config: ) end diff --git a/rbi/orb/models/invoice_fetch_upcoming_response.rbi b/rbi/orb/models/invoice_fetch_upcoming_response.rbi index 23ba4533..df498e8e 100644 --- a/rbi/orb/models/invoice_fetch_upcoming_response.rbi +++ b/rbi/orb/models/invoice_fetch_upcoming_response.rbi @@ -1330,14 +1330,14 @@ module Orb price: T.any( Orb::Price::Unit::OrHash, - Orb::Price::Package::OrHash, - Orb::Price::Matrix::OrHash, Orb::Price::Tiered::OrHash, Orb::Price::Bulk::OrHash, + Orb::Price::Package::OrHash, + Orb::Price::Matrix::OrHash, Orb::Price::ThresholdTotalAmount::OrHash, Orb::Price::TieredPackage::OrHash, - Orb::Price::GroupedTiered::OrHash, Orb::Price::TieredWithMinimum::OrHash, + Orb::Price::GroupedTiered::OrHash, Orb::Price::TieredPackageWithMinimum::OrHash, Orb::Price::PackageWithAllocation::OrHash, Orb::Price::UnitWithPercent::OrHash, @@ -1345,16 +1345,16 @@ module Orb Orb::Price::TieredWithProration::OrHash, Orb::Price::UnitWithProration::OrHash, Orb::Price::GroupedAllocation::OrHash, + Orb::Price::BulkWithProration::OrHash, Orb::Price::GroupedWithProratedMinimum::OrHash, Orb::Price::GroupedWithMeteredMinimum::OrHash, + Orb::Price::GroupedWithMinMaxThresholds::OrHash, Orb::Price::MatrixWithDisplayName::OrHash, - Orb::Price::BulkWithProration::OrHash, Orb::Price::GroupedTieredPackage::OrHash, Orb::Price::MaxGroupTieredPackage::OrHash, Orb::Price::ScalableMatrixWithUnitPricing::OrHash, Orb::Price::ScalableMatrixWithTieredPricing::OrHash, Orb::Price::CumulativeGroupedBulk::OrHash, - Orb::Price::GroupedWithMinMaxThresholds::OrHash, Orb::Price::Minimum::OrHash ), quantity: Float, diff --git a/rbi/orb/models/invoice_line_item_create_response.rbi b/rbi/orb/models/invoice_line_item_create_response.rbi index 718ff017..f674f8f5 100644 --- a/rbi/orb/models/invoice_line_item_create_response.rbi +++ b/rbi/orb/models/invoice_line_item_create_response.rbi @@ -171,14 +171,14 @@ module Orb price: T.any( Orb::Price::Unit::OrHash, - Orb::Price::Package::OrHash, - Orb::Price::Matrix::OrHash, Orb::Price::Tiered::OrHash, Orb::Price::Bulk::OrHash, + Orb::Price::Package::OrHash, + Orb::Price::Matrix::OrHash, Orb::Price::ThresholdTotalAmount::OrHash, Orb::Price::TieredPackage::OrHash, - Orb::Price::GroupedTiered::OrHash, Orb::Price::TieredWithMinimum::OrHash, + Orb::Price::GroupedTiered::OrHash, Orb::Price::TieredPackageWithMinimum::OrHash, Orb::Price::PackageWithAllocation::OrHash, Orb::Price::UnitWithPercent::OrHash, @@ -186,16 +186,16 @@ module Orb Orb::Price::TieredWithProration::OrHash, Orb::Price::UnitWithProration::OrHash, Orb::Price::GroupedAllocation::OrHash, + Orb::Price::BulkWithProration::OrHash, Orb::Price::GroupedWithProratedMinimum::OrHash, Orb::Price::GroupedWithMeteredMinimum::OrHash, + Orb::Price::GroupedWithMinMaxThresholds::OrHash, Orb::Price::MatrixWithDisplayName::OrHash, - Orb::Price::BulkWithProration::OrHash, Orb::Price::GroupedTieredPackage::OrHash, Orb::Price::MaxGroupTieredPackage::OrHash, Orb::Price::ScalableMatrixWithUnitPricing::OrHash, Orb::Price::ScalableMatrixWithTieredPricing::OrHash, Orb::Price::CumulativeGroupedBulk::OrHash, - Orb::Price::GroupedWithMinMaxThresholds::OrHash, Orb::Price::Minimum::OrHash ), quantity: Float, diff --git a/rbi/orb/models/matrix_config.rbi b/rbi/orb/models/matrix_config.rbi index 20924566..a753f204 100644 --- a/rbi/orb/models/matrix_config.rbi +++ b/rbi/orb/models/matrix_config.rbi @@ -13,10 +13,11 @@ module Orb sig { returns(T::Array[T.nilable(String)]) } attr_accessor :dimensions - # Matrix values for specified matrix grouping keys + # Matrix values configuration sig { returns(T::Array[Orb::MatrixValue]) } attr_accessor :matrix_values + # Configuration for matrix pricing sig do params( default_unit_amount: String, @@ -29,7 +30,7 @@ module Orb default_unit_amount:, # One or two event property values to evaluate matrix groups by dimensions:, - # Matrix values for specified matrix grouping keys + # Matrix values configuration matrix_values: ) end diff --git a/rbi/orb/models/matrix_value.rbi b/rbi/orb/models/matrix_value.rbi index eda9e116..e6a61656 100644 --- a/rbi/orb/models/matrix_value.rbi +++ b/rbi/orb/models/matrix_value.rbi @@ -5,9 +5,7 @@ module Orb class MatrixValue < Orb::Internal::Type::BaseModel OrHash = T.type_alias { T.any(Orb::MatrixValue, Orb::Internal::AnyHash) } - # One or two matrix keys to filter usage to this Matrix value by. For example, - # ["region", "tier"] could be used to filter cloud usage by a cloud region and an - # instance tier. + # One or two matrix keys to filter usage to this Matrix value by sig { returns(T::Array[T.nilable(String)]) } attr_accessor :dimension_values @@ -15,6 +13,7 @@ module Orb sig { returns(String) } attr_accessor :unit_amount + # Configuration for a single matrix value sig do params( dimension_values: T::Array[T.nilable(String)], @@ -22,9 +21,7 @@ module Orb ).returns(T.attached_class) end def self.new( - # One or two matrix keys to filter usage to this Matrix value by. For example, - # ["region", "tier"] could be used to filter cloud usage by a cloud region and an - # instance tier. + # One or two matrix keys to filter usage to this Matrix value by dimension_values:, # Unit price for the specified dimension_values unit_amount: diff --git a/rbi/orb/models/matrix_with_allocation_config.rbi b/rbi/orb/models/matrix_with_allocation_config.rbi index 95febd9d..bee3cc6e 100644 --- a/rbi/orb/models/matrix_with_allocation_config.rbi +++ b/rbi/orb/models/matrix_with_allocation_config.rbi @@ -8,8 +8,8 @@ module Orb T.any(Orb::MatrixWithAllocationConfig, Orb::Internal::AnyHash) end - # Allocation to be used to calculate the price - sig { returns(Float) } + # Usage allocation + sig { returns(String) } attr_accessor :allocation # Default per unit rate for any usage not bucketed into a specified matrix_value @@ -20,26 +20,28 @@ module Orb sig { returns(T::Array[T.nilable(String)]) } attr_accessor :dimensions - # Matrix values for specified matrix grouping keys - sig { returns(T::Array[Orb::MatrixValue]) } + # Matrix values configuration + sig { returns(T::Array[Orb::MatrixWithAllocationConfig::MatrixValue]) } attr_accessor :matrix_values + # Configuration for matrix pricing with usage allocation sig do params( - allocation: Float, + allocation: String, default_unit_amount: String, dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::MatrixValue::OrHash] + matrix_values: + T::Array[Orb::MatrixWithAllocationConfig::MatrixValue::OrHash] ).returns(T.attached_class) end def self.new( - # Allocation to be used to calculate the price + # Usage allocation allocation:, # Default per unit rate for any usage not bucketed into a specified matrix_value default_unit_amount:, # One or two event property values to evaluate matrix groups by dimensions:, - # Matrix values for specified matrix grouping keys + # Matrix values configuration matrix_values: ) end @@ -47,15 +49,64 @@ module Orb sig do override.returns( { - allocation: Float, + allocation: String, default_unit_amount: String, dimensions: T::Array[T.nilable(String)], - matrix_values: T::Array[Orb::MatrixValue] + matrix_values: + T::Array[Orb::MatrixWithAllocationConfig::MatrixValue] } ) end def to_hash end + + class MatrixValue < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::MatrixWithAllocationConfig::MatrixValue, + Orb::Internal::AnyHash + ) + end + + # One or two matrix keys to filter usage to this Matrix value by. For example, + # ["region", "tier"] could be used to filter cloud usage by a cloud region and an + # instance tier. + sig { returns(T::Array[T.nilable(String)]) } + attr_accessor :dimension_values + + # Unit price for the specified dimension_values + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a single matrix value + sig do + params( + dimension_values: T::Array[T.nilable(String)], + unit_amount: String + ).returns(T.attached_class) + end + def self.new( + # One or two matrix keys to filter usage to this Matrix value by. For example, + # ["region", "tier"] could be used to filter cloud usage by a cloud region and an + # instance tier. + dimension_values:, + # Unit price for the specified dimension_values + unit_amount: + ) + end + + sig do + override.returns( + { + dimension_values: T::Array[T.nilable(String)], + unit_amount: String + } + ) + end + def to_hash + end + end end end end diff --git a/rbi/orb/models/new_floating_bulk_price.rbi b/rbi/orb/models/new_floating_bulk_price.rbi index 72d88ab9..149d0879 100644 --- a/rbi/orb/models/new_floating_bulk_price.rbi +++ b/rbi/orb/models/new_floating_bulk_price.rbi @@ -8,6 +8,7 @@ module Orb T.any(Orb::NewFloatingBulkPrice, Orb::Internal::AnyHash) end + # Configuration for bulk pricing sig { returns(Orb::BulkConfig) } attr_reader :bulk_config @@ -26,6 +27,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Orb::NewFloatingBulkPrice::ModelType::OrSymbol) } attr_accessor :model_type @@ -148,6 +150,7 @@ module Orb ).returns(T.attached_class) end def self.new( + # Configuration for bulk pricing bulk_config:, # The cadence to bill for this price on. cadence:, @@ -155,6 +158,7 @@ module Orb currency:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, @@ -255,6 +259,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_floating_bulk_with_proration_price.rbi b/rbi/orb/models/new_floating_bulk_with_proration_price.rbi index f31ffa2f..b18c9655 100644 --- a/rbi/orb/models/new_floating_bulk_with_proration_price.rbi +++ b/rbi/orb/models/new_floating_bulk_with_proration_price.rbi @@ -8,8 +8,19 @@ module Orb T.any(Orb::NewFloatingBulkWithProrationPrice, Orb::Internal::AnyHash) end - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :bulk_with_proration_config + # Configuration for bulk_with_proration pricing + sig do + returns(Orb::NewFloatingBulkWithProrationPrice::BulkWithProrationConfig) + end + attr_reader :bulk_with_proration_config + + sig do + params( + bulk_with_proration_config: + Orb::NewFloatingBulkWithProrationPrice::BulkWithProrationConfig::OrHash + ).void + end + attr_writer :bulk_with_proration_config # The cadence to bill for this price on. sig { returns(Orb::NewFloatingBulkWithProrationPrice::Cadence::OrSymbol) } @@ -23,6 +34,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns(Orb::NewFloatingBulkWithProrationPrice::ModelType::OrSymbol) end @@ -118,7 +130,8 @@ module Orb sig do params( - bulk_with_proration_config: T::Hash[Symbol, T.anything], + bulk_with_proration_config: + Orb::NewFloatingBulkWithProrationPrice::BulkWithProrationConfig::OrHash, cadence: Orb::NewFloatingBulkWithProrationPrice::Cadence::OrSymbol, currency: String, item_id: String, @@ -148,6 +161,7 @@ module Orb ).returns(T.attached_class) end def self.new( + # Configuration for bulk_with_proration pricing bulk_with_proration_config:, # The cadence to bill for this price on. cadence:, @@ -155,6 +169,7 @@ module Orb currency:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, @@ -193,7 +208,8 @@ module Orb sig do override.returns( { - bulk_with_proration_config: T::Hash[Symbol, T.anything], + bulk_with_proration_config: + Orb::NewFloatingBulkWithProrationPrice::BulkWithProrationConfig, cadence: Orb::NewFloatingBulkWithProrationPrice::Cadence::OrSymbol, currency: String, item_id: String, @@ -226,6 +242,95 @@ module Orb def to_hash end + class BulkWithProrationConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingBulkWithProrationPrice::BulkWithProrationConfig, + Orb::Internal::AnyHash + ) + end + + # Bulk tiers for rating based on total usage volume + sig do + returns( + T::Array[ + Orb::NewFloatingBulkWithProrationPrice::BulkWithProrationConfig::Tier + ] + ) + end + attr_accessor :tiers + + # Configuration for bulk_with_proration pricing + sig do + params( + tiers: + T::Array[ + Orb::NewFloatingBulkWithProrationPrice::BulkWithProrationConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Bulk tiers for rating based on total usage volume + tiers: + ) + end + + sig do + override.returns( + { + tiers: + T::Array[ + Orb::NewFloatingBulkWithProrationPrice::BulkWithProrationConfig::Tier + ] + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingBulkWithProrationPrice::BulkWithProrationConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Cost per unit + sig { returns(String) } + attr_accessor :unit_amount + + # The lower bound for this tier + sig { returns(T.nilable(String)) } + attr_accessor :tier_lower_bound + + # Configuration for a single bulk pricing tier with proration + sig do + params( + unit_amount: String, + tier_lower_bound: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # Cost per unit + unit_amount:, + # The lower bound for this tier + tier_lower_bound: nil + ) + end + + sig do + override.returns( + { unit_amount: String, tier_lower_bound: T.nilable(String) } + ) + end + def to_hash + end + end + end + # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum @@ -278,6 +383,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_floating_cumulative_grouped_bulk_price.rbi b/rbi/orb/models/new_floating_cumulative_grouped_bulk_price.rbi index 1efdc6a4..42928617 100644 --- a/rbi/orb/models/new_floating_cumulative_grouped_bulk_price.rbi +++ b/rbi/orb/models/new_floating_cumulative_grouped_bulk_price.rbi @@ -17,8 +17,21 @@ module Orb end attr_accessor :cadence - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :cumulative_grouped_bulk_config + # Configuration for cumulative_grouped_bulk pricing + sig do + returns( + Orb::NewFloatingCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig + ) + end + attr_reader :cumulative_grouped_bulk_config + + sig do + params( + cumulative_grouped_bulk_config: + Orb::NewFloatingCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig::OrHash + ).void + end + attr_writer :cumulative_grouped_bulk_config # An ISO 4217 currency string for which this price is billed in. sig { returns(String) } @@ -28,6 +41,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns(Orb::NewFloatingCumulativeGroupedBulkPrice::ModelType::OrSymbol) end @@ -125,7 +139,8 @@ module Orb params( cadence: Orb::NewFloatingCumulativeGroupedBulkPrice::Cadence::OrSymbol, - cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], + cumulative_grouped_bulk_config: + Orb::NewFloatingCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig::OrHash, currency: String, item_id: String, model_type: @@ -156,11 +171,13 @@ module Orb def self.new( # The cadence to bill for this price on. cadence:, + # Configuration for cumulative_grouped_bulk pricing cumulative_grouped_bulk_config:, # An ISO 4217 currency string for which this price is billed in. currency:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, @@ -201,7 +218,8 @@ module Orb { cadence: Orb::NewFloatingCumulativeGroupedBulkPrice::Cadence::OrSymbol, - cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], + cumulative_grouped_bulk_config: + Orb::NewFloatingCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig, currency: String, item_id: String, model_type: @@ -285,6 +303,115 @@ module Orb end end + class CumulativeGroupedBulkConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig, + Orb::Internal::AnyHash + ) + end + + # Each tier lower bound must have the same group of values. + sig do + returns( + T::Array[ + Orb::NewFloatingCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig::DimensionValue + ] + ) + end + attr_accessor :dimension_values + + # Grouping key name + sig { returns(String) } + attr_accessor :group + + # Configuration for cumulative_grouped_bulk pricing + sig do + params( + dimension_values: + T::Array[ + Orb::NewFloatingCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig::DimensionValue::OrHash + ], + group: String + ).returns(T.attached_class) + end + def self.new( + # Each tier lower bound must have the same group of values. + dimension_values:, + # Grouping key name + group: + ) + end + + sig do + override.returns( + { + dimension_values: + T::Array[ + Orb::NewFloatingCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig::DimensionValue + ], + group: String + } + ) + end + def to_hash + end + + class DimensionValue < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig::DimensionValue, + Orb::Internal::AnyHash + ) + end + + # Grouping key value + sig { returns(String) } + attr_accessor :grouping_key + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Unit amount for this combination + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a dimension value entry + sig do + params( + grouping_key: String, + tier_lower_bound: String, + unit_amount: String + ).returns(T.attached_class) + end + def self.new( + # Grouping key value + grouping_key:, + # Tier lower bound + tier_lower_bound:, + # Unit amount for this combination + unit_amount: + ) + end + + sig do + override.returns( + { + grouping_key: String, + tier_lower_bound: String, + unit_amount: String + } + ) + end + def to_hash + end + end + end + + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_floating_grouped_allocation_price.rbi b/rbi/orb/models/new_floating_grouped_allocation_price.rbi index 6805b9f4..3f833b40 100644 --- a/rbi/orb/models/new_floating_grouped_allocation_price.rbi +++ b/rbi/orb/models/new_floating_grouped_allocation_price.rbi @@ -16,13 +16,25 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_allocation_config + # Configuration for grouped_allocation pricing + sig do + returns(Orb::NewFloatingGroupedAllocationPrice::GroupedAllocationConfig) + end + attr_reader :grouped_allocation_config + + sig do + params( + grouped_allocation_config: + Orb::NewFloatingGroupedAllocationPrice::GroupedAllocationConfig::OrHash + ).void + end + attr_writer :grouped_allocation_config # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns(Orb::NewFloatingGroupedAllocationPrice::ModelType::OrSymbol) end @@ -120,7 +132,8 @@ module Orb params( cadence: Orb::NewFloatingGroupedAllocationPrice::Cadence::OrSymbol, currency: String, - grouped_allocation_config: T::Hash[Symbol, T.anything], + grouped_allocation_config: + Orb::NewFloatingGroupedAllocationPrice::GroupedAllocationConfig::OrHash, item_id: String, model_type: Orb::NewFloatingGroupedAllocationPrice::ModelType::OrSymbol, @@ -152,9 +165,11 @@ module Orb cadence:, # An ISO 4217 currency string for which this price is billed in. currency:, + # Configuration for grouped_allocation pricing grouped_allocation_config:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, @@ -195,7 +210,8 @@ module Orb { cadence: Orb::NewFloatingGroupedAllocationPrice::Cadence::OrSymbol, currency: String, - grouped_allocation_config: T::Hash[Symbol, T.anything], + grouped_allocation_config: + Orb::NewFloatingGroupedAllocationPrice::GroupedAllocationConfig, item_id: String, model_type: Orb::NewFloatingGroupedAllocationPrice::ModelType::OrSymbol, @@ -278,6 +294,59 @@ module Orb end end + class GroupedAllocationConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingGroupedAllocationPrice::GroupedAllocationConfig, + Orb::Internal::AnyHash + ) + end + + # Usage allocation per group + sig { returns(String) } + attr_accessor :allocation + + # How to determine the groups that should each be allocated some quantity + sig { returns(String) } + attr_accessor :grouping_key + + # Unit rate for post-allocation + sig { returns(String) } + attr_accessor :overage_unit_rate + + # Configuration for grouped_allocation pricing + sig do + params( + allocation: String, + grouping_key: String, + overage_unit_rate: String + ).returns(T.attached_class) + end + def self.new( + # Usage allocation per group + allocation:, + # How to determine the groups that should each be allocated some quantity + grouping_key:, + # Unit rate for post-allocation + overage_unit_rate: + ) + end + + sig do + override.returns( + { + allocation: String, + grouping_key: String, + overage_unit_rate: String + } + ) + end + def to_hash + end + end + + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_floating_grouped_tiered_package_price.rbi b/rbi/orb/models/new_floating_grouped_tiered_package_price.rbi index fb1c8702..0c3ca717 100644 --- a/rbi/orb/models/new_floating_grouped_tiered_package_price.rbi +++ b/rbi/orb/models/new_floating_grouped_tiered_package_price.rbi @@ -21,13 +21,27 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_tiered_package_config + # Configuration for grouped_tiered_package pricing + sig do + returns( + Orb::NewFloatingGroupedTieredPackagePrice::GroupedTieredPackageConfig + ) + end + attr_reader :grouped_tiered_package_config + + sig do + params( + grouped_tiered_package_config: + Orb::NewFloatingGroupedTieredPackagePrice::GroupedTieredPackageConfig::OrHash + ).void + end + attr_writer :grouped_tiered_package_config # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns(Orb::NewFloatingGroupedTieredPackagePrice::ModelType::OrSymbol) end @@ -125,7 +139,8 @@ module Orb params( cadence: Orb::NewFloatingGroupedTieredPackagePrice::Cadence::OrSymbol, currency: String, - grouped_tiered_package_config: T::Hash[Symbol, T.anything], + grouped_tiered_package_config: + Orb::NewFloatingGroupedTieredPackagePrice::GroupedTieredPackageConfig::OrHash, item_id: String, model_type: Orb::NewFloatingGroupedTieredPackagePrice::ModelType::OrSymbol, @@ -157,9 +172,11 @@ module Orb cadence:, # An ISO 4217 currency string for which this price is billed in. currency:, + # Configuration for grouped_tiered_package pricing grouped_tiered_package_config:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, @@ -201,7 +218,8 @@ module Orb cadence: Orb::NewFloatingGroupedTieredPackagePrice::Cadence::OrSymbol, currency: String, - grouped_tiered_package_config: T::Hash[Symbol, T.anything], + grouped_tiered_package_config: + Orb::NewFloatingGroupedTieredPackagePrice::GroupedTieredPackageConfig, item_id: String, model_type: Orb::NewFloatingGroupedTieredPackagePrice::ModelType::OrSymbol, @@ -284,6 +302,111 @@ module Orb end end + class GroupedTieredPackageConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingGroupedTieredPackagePrice::GroupedTieredPackageConfig, + Orb::Internal::AnyHash + ) + end + + # The event property used to group before tiering + sig { returns(String) } + attr_accessor :grouping_key + + # Package size + sig { returns(String) } + attr_accessor :package_size + + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + sig do + returns( + T::Array[ + Orb::NewFloatingGroupedTieredPackagePrice::GroupedTieredPackageConfig::Tier + ] + ) + end + attr_accessor :tiers + + # Configuration for grouped_tiered_package pricing + sig do + params( + grouping_key: String, + package_size: String, + tiers: + T::Array[ + Orb::NewFloatingGroupedTieredPackagePrice::GroupedTieredPackageConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # The event property used to group before tiering + grouping_key:, + # Package size + package_size:, + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + tiers: + ) + end + + sig do + override.returns( + { + grouping_key: String, + package_size: String, + tiers: + T::Array[ + Orb::NewFloatingGroupedTieredPackagePrice::GroupedTieredPackageConfig::Tier + ] + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingGroupedTieredPackagePrice::GroupedTieredPackageConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Price per package + sig { returns(String) } + attr_accessor :per_unit + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Configuration for a single tier + sig do + params(per_unit: String, tier_lower_bound: String).returns( + T.attached_class + ) + end + def self.new( + # Price per package + per_unit:, + # Tier lower bound + tier_lower_bound: + ) + end + + sig do + override.returns({ per_unit: String, tier_lower_bound: String }) + end + def to_hash + end + end + end + + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_floating_grouped_tiered_price.rbi b/rbi/orb/models/new_floating_grouped_tiered_price.rbi index 9a6b7293..e07e309d 100644 --- a/rbi/orb/models/new_floating_grouped_tiered_price.rbi +++ b/rbi/orb/models/new_floating_grouped_tiered_price.rbi @@ -16,13 +16,23 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_tiered_config + # Configuration for grouped_tiered pricing + sig { returns(Orb::NewFloatingGroupedTieredPrice::GroupedTieredConfig) } + attr_reader :grouped_tiered_config + + sig do + params( + grouped_tiered_config: + Orb::NewFloatingGroupedTieredPrice::GroupedTieredConfig::OrHash + ).void + end + attr_writer :grouped_tiered_config # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Orb::NewFloatingGroupedTieredPrice::ModelType::OrSymbol) } attr_accessor :model_type @@ -118,7 +128,8 @@ module Orb params( cadence: Orb::NewFloatingGroupedTieredPrice::Cadence::OrSymbol, currency: String, - grouped_tiered_config: T::Hash[Symbol, T.anything], + grouped_tiered_config: + Orb::NewFloatingGroupedTieredPrice::GroupedTieredConfig::OrHash, item_id: String, model_type: Orb::NewFloatingGroupedTieredPrice::ModelType::OrSymbol, name: String, @@ -149,9 +160,11 @@ module Orb cadence:, # An ISO 4217 currency string for which this price is billed in. currency:, + # Configuration for grouped_tiered pricing grouped_tiered_config:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, @@ -192,7 +205,8 @@ module Orb { cadence: Orb::NewFloatingGroupedTieredPrice::Cadence::OrSymbol, currency: String, - grouped_tiered_config: T::Hash[Symbol, T.anything], + grouped_tiered_config: + Orb::NewFloatingGroupedTieredPrice::GroupedTieredConfig, item_id: String, model_type: Orb::NewFloatingGroupedTieredPrice::ModelType::OrSymbol, name: String, @@ -272,6 +286,103 @@ module Orb end end + class GroupedTieredConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingGroupedTieredPrice::GroupedTieredConfig, + Orb::Internal::AnyHash + ) + end + + # The billable metric property used to group before tiering + sig { returns(String) } + attr_accessor :grouping_key + + # Apply tiered pricing to each segment generated after grouping with the provided + # key + sig do + returns( + T::Array[ + Orb::NewFloatingGroupedTieredPrice::GroupedTieredConfig::Tier + ] + ) + end + attr_accessor :tiers + + # Configuration for grouped_tiered pricing + sig do + params( + grouping_key: String, + tiers: + T::Array[ + Orb::NewFloatingGroupedTieredPrice::GroupedTieredConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # The billable metric property used to group before tiering + grouping_key:, + # Apply tiered pricing to each segment generated after grouping with the provided + # key + tiers: + ) + end + + sig do + override.returns( + { + grouping_key: String, + tiers: + T::Array[ + Orb::NewFloatingGroupedTieredPrice::GroupedTieredConfig::Tier + ] + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingGroupedTieredPrice::GroupedTieredConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Per unit amount + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a single tier + sig do + params(tier_lower_bound: String, unit_amount: String).returns( + T.attached_class + ) + end + def self.new( + # Tier lower bound + tier_lower_bound:, + # Per unit amount + unit_amount: + ) + end + + sig do + override.returns({ tier_lower_bound: String, unit_amount: String }) + end + def to_hash + end + end + end + + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_floating_grouped_with_metered_minimum_price.rbi b/rbi/orb/models/new_floating_grouped_with_metered_minimum_price.rbi index d4cf55a9..cc875ddf 100644 --- a/rbi/orb/models/new_floating_grouped_with_metered_minimum_price.rbi +++ b/rbi/orb/models/new_floating_grouped_with_metered_minimum_price.rbi @@ -23,13 +23,27 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_with_metered_minimum_config + # Configuration for grouped_with_metered_minimum pricing + sig do + returns( + Orb::NewFloatingGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig + ) + end + attr_reader :grouped_with_metered_minimum_config + + sig do + params( + grouped_with_metered_minimum_config: + Orb::NewFloatingGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::OrHash + ).void + end + attr_writer :grouped_with_metered_minimum_config # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns( Orb::NewFloatingGroupedWithMeteredMinimumPrice::ModelType::OrSymbol @@ -130,7 +144,8 @@ module Orb cadence: Orb::NewFloatingGroupedWithMeteredMinimumPrice::Cadence::OrSymbol, currency: String, - grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], + grouped_with_metered_minimum_config: + Orb::NewFloatingGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::OrHash, item_id: String, model_type: Orb::NewFloatingGroupedWithMeteredMinimumPrice::ModelType::OrSymbol, @@ -162,9 +177,11 @@ module Orb cadence:, # An ISO 4217 currency string for which this price is billed in. currency:, + # Configuration for grouped_with_metered_minimum pricing grouped_with_metered_minimum_config:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, @@ -206,7 +223,8 @@ module Orb cadence: Orb::NewFloatingGroupedWithMeteredMinimumPrice::Cadence::OrSymbol, currency: String, - grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], + grouped_with_metered_minimum_config: + Orb::NewFloatingGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig, item_id: String, model_type: Orb::NewFloatingGroupedWithMeteredMinimumPrice::ModelType::OrSymbol, @@ -292,6 +310,187 @@ module Orb end end + class GroupedWithMeteredMinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig, + Orb::Internal::AnyHash + ) + end + + # Used to partition the usage into groups. The minimum amount is applied to each + # group. + sig { returns(String) } + attr_accessor :grouping_key + + # The minimum amount to charge per group per unit + sig { returns(String) } + attr_accessor :minimum_unit_amount + + # Used to determine the unit rate + sig { returns(String) } + attr_accessor :pricing_key + + # Scale the unit rates by the scaling factor. + sig do + returns( + T::Array[ + Orb::NewFloatingGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::ScalingFactor + ] + ) + end + attr_accessor :scaling_factors + + # Used to determine the unit rate scaling factor + sig { returns(String) } + attr_accessor :scaling_key + + # Apply per unit pricing to each pricing value. The minimum amount is applied any + # unmatched usage. + sig do + returns( + T::Array[ + Orb::NewFloatingGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::UnitAmount + ] + ) + end + attr_accessor :unit_amounts + + # Configuration for grouped_with_metered_minimum pricing + sig do + params( + grouping_key: String, + minimum_unit_amount: String, + pricing_key: String, + scaling_factors: + T::Array[ + Orb::NewFloatingGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::ScalingFactor::OrHash + ], + scaling_key: String, + unit_amounts: + T::Array[ + Orb::NewFloatingGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::UnitAmount::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Used to partition the usage into groups. The minimum amount is applied to each + # group. + grouping_key:, + # The minimum amount to charge per group per unit + minimum_unit_amount:, + # Used to determine the unit rate + pricing_key:, + # Scale the unit rates by the scaling factor. + scaling_factors:, + # Used to determine the unit rate scaling factor + scaling_key:, + # Apply per unit pricing to each pricing value. The minimum amount is applied any + # unmatched usage. + unit_amounts: + ) + end + + sig do + override.returns( + { + grouping_key: String, + minimum_unit_amount: String, + pricing_key: String, + scaling_factors: + T::Array[ + Orb::NewFloatingGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::ScalingFactor + ], + scaling_key: String, + unit_amounts: + T::Array[ + Orb::NewFloatingGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::UnitAmount + ] + } + ) + end + def to_hash + end + + class ScalingFactor < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::ScalingFactor, + Orb::Internal::AnyHash + ) + end + + # Scaling factor + sig { returns(String) } + attr_accessor :scaling_factor + + # Scaling value + sig { returns(String) } + attr_accessor :scaling_value + + # Configuration for a scaling factor + sig do + params(scaling_factor: String, scaling_value: String).returns( + T.attached_class + ) + end + def self.new( + # Scaling factor + scaling_factor:, + # Scaling value + scaling_value: + ) + end + + sig do + override.returns({ scaling_factor: String, scaling_value: String }) + end + def to_hash + end + end + + class UnitAmount < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::UnitAmount, + Orb::Internal::AnyHash + ) + end + + # Pricing value + sig { returns(String) } + attr_accessor :pricing_value + + # Per unit amount + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a unit amount + sig do + params(pricing_value: String, unit_amount: String).returns( + T.attached_class + ) + end + def self.new( + # Pricing value + pricing_value:, + # Per unit amount + unit_amount: + ) + end + + sig do + override.returns({ pricing_value: String, unit_amount: String }) + end + def to_hash + end + end + end + + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_floating_grouped_with_prorated_minimum_price.rbi b/rbi/orb/models/new_floating_grouped_with_prorated_minimum_price.rbi index c76d3e59..f9b77e05 100644 --- a/rbi/orb/models/new_floating_grouped_with_prorated_minimum_price.rbi +++ b/rbi/orb/models/new_floating_grouped_with_prorated_minimum_price.rbi @@ -23,13 +23,27 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_with_prorated_minimum_config + # Configuration for grouped_with_prorated_minimum pricing + sig do + returns( + Orb::NewFloatingGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig + ) + end + attr_reader :grouped_with_prorated_minimum_config + + sig do + params( + grouped_with_prorated_minimum_config: + Orb::NewFloatingGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig::OrHash + ).void + end + attr_writer :grouped_with_prorated_minimum_config # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns( Orb::NewFloatingGroupedWithProratedMinimumPrice::ModelType::OrSymbol @@ -130,7 +144,8 @@ module Orb cadence: Orb::NewFloatingGroupedWithProratedMinimumPrice::Cadence::OrSymbol, currency: String, - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], + grouped_with_prorated_minimum_config: + Orb::NewFloatingGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig::OrHash, item_id: String, model_type: Orb::NewFloatingGroupedWithProratedMinimumPrice::ModelType::OrSymbol, @@ -162,9 +177,11 @@ module Orb cadence:, # An ISO 4217 currency string for which this price is billed in. currency:, + # Configuration for grouped_with_prorated_minimum pricing grouped_with_prorated_minimum_config:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, @@ -206,7 +223,8 @@ module Orb cadence: Orb::NewFloatingGroupedWithProratedMinimumPrice::Cadence::OrSymbol, currency: String, - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], + grouped_with_prorated_minimum_config: + Orb::NewFloatingGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig, item_id: String, model_type: Orb::NewFloatingGroupedWithProratedMinimumPrice::ModelType::OrSymbol, @@ -292,6 +310,55 @@ module Orb end end + class GroupedWithProratedMinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig, + Orb::Internal::AnyHash + ) + end + + # How to determine the groups that should each have a minimum + sig { returns(String) } + attr_accessor :grouping_key + + # The minimum amount to charge per group + sig { returns(String) } + attr_accessor :minimum + + # The amount to charge per unit + sig { returns(String) } + attr_accessor :unit_rate + + # Configuration for grouped_with_prorated_minimum pricing + sig do + params( + grouping_key: String, + minimum: String, + unit_rate: String + ).returns(T.attached_class) + end + def self.new( + # How to determine the groups that should each have a minimum + grouping_key:, + # The minimum amount to charge per group + minimum:, + # The amount to charge per unit + unit_rate: + ) + end + + sig do + override.returns( + { grouping_key: String, minimum: String, unit_rate: String } + ) + end + def to_hash + end + end + + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_floating_matrix_price.rbi b/rbi/orb/models/new_floating_matrix_price.rbi index 472c54e8..98d4fafd 100644 --- a/rbi/orb/models/new_floating_matrix_price.rbi +++ b/rbi/orb/models/new_floating_matrix_price.rbi @@ -20,12 +20,14 @@ module Orb sig { returns(String) } attr_accessor :item_id + # Configuration for matrix pricing sig { returns(Orb::MatrixConfig) } attr_reader :matrix_config sig { params(matrix_config: Orb::MatrixConfig::OrHash).void } attr_writer :matrix_config + # The pricing model type sig { returns(Orb::NewFloatingMatrixPrice::ModelType::OrSymbol) } attr_accessor :model_type @@ -154,7 +156,9 @@ module Orb currency:, # The id of the item the price will be associated with. item_id:, + # Configuration for matrix pricing matrix_config:, + # The pricing model type model_type:, # The name of the price. name:, @@ -258,6 +262,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_floating_matrix_with_allocation_price.rbi b/rbi/orb/models/new_floating_matrix_with_allocation_price.rbi index 06f1ac89..80acccb3 100644 --- a/rbi/orb/models/new_floating_matrix_with_allocation_price.rbi +++ b/rbi/orb/models/new_floating_matrix_with_allocation_price.rbi @@ -25,6 +25,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # Configuration for matrix_with_allocation pricing sig { returns(Orb::MatrixWithAllocationConfig) } attr_reader :matrix_with_allocation_config @@ -35,6 +36,7 @@ module Orb end attr_writer :matrix_with_allocation_config + # The pricing model type sig do returns(Orb::NewFloatingMatrixWithAllocationPrice::ModelType::OrSymbol) end @@ -167,7 +169,9 @@ module Orb currency:, # The id of the item the price will be associated with. item_id:, + # Configuration for matrix_with_allocation pricing matrix_with_allocation_config:, + # The pricing model type model_type:, # The name of the price. name:, @@ -292,6 +296,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_floating_matrix_with_display_name_price.rbi b/rbi/orb/models/new_floating_matrix_with_display_name_price.rbi index 7b470bbc..395118ea 100644 --- a/rbi/orb/models/new_floating_matrix_with_display_name_price.rbi +++ b/rbi/orb/models/new_floating_matrix_with_display_name_price.rbi @@ -25,9 +25,23 @@ module Orb sig { returns(String) } attr_accessor :item_id - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :matrix_with_display_name_config + # Configuration for matrix_with_display_name pricing + sig do + returns( + Orb::NewFloatingMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig + ) + end + attr_reader :matrix_with_display_name_config + + sig do + params( + matrix_with_display_name_config: + Orb::NewFloatingMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::OrHash + ).void + end + attr_writer :matrix_with_display_name_config + # The pricing model type sig do returns(Orb::NewFloatingMatrixWithDisplayNamePrice::ModelType::OrSymbol) end @@ -127,7 +141,8 @@ module Orb Orb::NewFloatingMatrixWithDisplayNamePrice::Cadence::OrSymbol, currency: String, item_id: String, - matrix_with_display_name_config: T::Hash[Symbol, T.anything], + matrix_with_display_name_config: + Orb::NewFloatingMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::OrHash, model_type: Orb::NewFloatingMatrixWithDisplayNamePrice::ModelType::OrSymbol, name: String, @@ -160,7 +175,9 @@ module Orb currency:, # The id of the item the price will be associated with. item_id:, + # Configuration for matrix_with_display_name pricing matrix_with_display_name_config:, + # The pricing model type model_type:, # The name of the price. name:, @@ -203,7 +220,8 @@ module Orb Orb::NewFloatingMatrixWithDisplayNamePrice::Cadence::OrSymbol, currency: String, item_id: String, - matrix_with_display_name_config: T::Hash[Symbol, T.anything], + matrix_with_display_name_config: + Orb::NewFloatingMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig, model_type: Orb::NewFloatingMatrixWithDisplayNamePrice::ModelType::OrSymbol, name: String, @@ -285,6 +303,115 @@ module Orb end end + class MatrixWithDisplayNameConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig, + Orb::Internal::AnyHash + ) + end + + # Used to determine the unit rate + sig { returns(String) } + attr_accessor :dimension + + # Apply per unit pricing to each dimension value + sig do + returns( + T::Array[ + Orb::NewFloatingMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::UnitAmount + ] + ) + end + attr_accessor :unit_amounts + + # Configuration for matrix_with_display_name pricing + sig do + params( + dimension: String, + unit_amounts: + T::Array[ + Orb::NewFloatingMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::UnitAmount::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Used to determine the unit rate + dimension:, + # Apply per unit pricing to each dimension value + unit_amounts: + ) + end + + sig do + override.returns( + { + dimension: String, + unit_amounts: + T::Array[ + Orb::NewFloatingMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::UnitAmount + ] + } + ) + end + def to_hash + end + + class UnitAmount < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::UnitAmount, + Orb::Internal::AnyHash + ) + end + + # The dimension value + sig { returns(String) } + attr_accessor :dimension_value + + # Display name for this dimension value + sig { returns(String) } + attr_accessor :display_name + + # Per unit amount + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a unit amount item + sig do + params( + dimension_value: String, + display_name: String, + unit_amount: String + ).returns(T.attached_class) + end + def self.new( + # The dimension value + dimension_value:, + # Display name for this dimension value + display_name:, + # Per unit amount + unit_amount: + ) + end + + sig do + override.returns( + { + dimension_value: String, + display_name: String, + unit_amount: String + } + ) + end + def to_hash + end + end + end + + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_floating_max_group_tiered_package_price.rbi b/rbi/orb/models/new_floating_max_group_tiered_package_price.rbi index 59357a7f..556d5994 100644 --- a/rbi/orb/models/new_floating_max_group_tiered_package_price.rbi +++ b/rbi/orb/models/new_floating_max_group_tiered_package_price.rbi @@ -25,9 +25,23 @@ module Orb sig { returns(String) } attr_accessor :item_id - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :max_group_tiered_package_config + # Configuration for max_group_tiered_package pricing + sig do + returns( + Orb::NewFloatingMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig + ) + end + attr_reader :max_group_tiered_package_config + + sig do + params( + max_group_tiered_package_config: + Orb::NewFloatingMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig::OrHash + ).void + end + attr_writer :max_group_tiered_package_config + # The pricing model type sig do returns(Orb::NewFloatingMaxGroupTieredPackagePrice::ModelType::OrSymbol) end @@ -127,7 +141,8 @@ module Orb Orb::NewFloatingMaxGroupTieredPackagePrice::Cadence::OrSymbol, currency: String, item_id: String, - max_group_tiered_package_config: T::Hash[Symbol, T.anything], + max_group_tiered_package_config: + Orb::NewFloatingMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig::OrHash, model_type: Orb::NewFloatingMaxGroupTieredPackagePrice::ModelType::OrSymbol, name: String, @@ -160,7 +175,9 @@ module Orb currency:, # The id of the item the price will be associated with. item_id:, + # Configuration for max_group_tiered_package pricing max_group_tiered_package_config:, + # The pricing model type model_type:, # The name of the price. name:, @@ -203,7 +220,8 @@ module Orb Orb::NewFloatingMaxGroupTieredPackagePrice::Cadence::OrSymbol, currency: String, item_id: String, - max_group_tiered_package_config: T::Hash[Symbol, T.anything], + max_group_tiered_package_config: + Orb::NewFloatingMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig, model_type: Orb::NewFloatingMaxGroupTieredPackagePrice::ModelType::OrSymbol, name: String, @@ -285,6 +303,109 @@ module Orb end end + class MaxGroupTieredPackageConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig, + Orb::Internal::AnyHash + ) + end + + # The event property used to group before tiering the group with the highest value + sig { returns(String) } + attr_accessor :grouping_key + + # Package size + sig { returns(String) } + attr_accessor :package_size + + # Apply tiered pricing to the largest group after grouping with the provided key. + sig do + returns( + T::Array[ + Orb::NewFloatingMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig::Tier + ] + ) + end + attr_accessor :tiers + + # Configuration for max_group_tiered_package pricing + sig do + params( + grouping_key: String, + package_size: String, + tiers: + T::Array[ + Orb::NewFloatingMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # The event property used to group before tiering the group with the highest value + grouping_key:, + # Package size + package_size:, + # Apply tiered pricing to the largest group after grouping with the provided key. + tiers: + ) + end + + sig do + override.returns( + { + grouping_key: String, + package_size: String, + tiers: + T::Array[ + Orb::NewFloatingMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig::Tier + ] + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Per unit amount + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a single tier + sig do + params(tier_lower_bound: String, unit_amount: String).returns( + T.attached_class + ) + end + def self.new( + # Tier lower bound + tier_lower_bound:, + # Per unit amount + unit_amount: + ) + end + + sig do + override.returns({ tier_lower_bound: String, unit_amount: String }) + end + def to_hash + end + end + end + + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_floating_minimum_composite_price.rbi b/rbi/orb/models/new_floating_minimum_composite_price.rbi index 4364b8aa..b00766f7 100644 --- a/rbi/orb/models/new_floating_minimum_composite_price.rbi +++ b/rbi/orb/models/new_floating_minimum_composite_price.rbi @@ -20,6 +20,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # Configuration for minimum pricing sig { returns(Orb::NewFloatingMinimumCompositePrice::MinimumConfig) } attr_reader :minimum_config @@ -31,6 +32,7 @@ module Orb end attr_writer :minimum_config + # The pricing model type sig do returns(Orb::NewFloatingMinimumCompositePrice::ModelType::OrSymbol) end @@ -163,7 +165,9 @@ module Orb currency:, # The id of the item the price will be associated with. item_id:, + # Configuration for minimum pricing minimum_config:, + # The pricing model type model_type:, # The name of the price. name:, @@ -301,35 +305,35 @@ module Orb sig { returns(String) } attr_accessor :minimum_amount - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. + # If true, subtotals from this price are prorated based on the service period sig { returns(T.nilable(T::Boolean)) } - attr_accessor :prorated + attr_reader :prorated + sig { params(prorated: T::Boolean).void } + attr_writer :prorated + + # Configuration for minimum pricing sig do - params( - minimum_amount: String, - prorated: T.nilable(T::Boolean) - ).returns(T.attached_class) + params(minimum_amount: String, prorated: T::Boolean).returns( + T.attached_class + ) end def self.new( # The minimum amount to apply minimum_amount:, - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. + # If true, subtotals from this price are prorated based on the service period prorated: nil ) end sig do - override.returns( - { minimum_amount: String, prorated: T.nilable(T::Boolean) } - ) + override.returns({ minimum_amount: String, prorated: T::Boolean }) end def to_hash end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_floating_package_price.rbi b/rbi/orb/models/new_floating_package_price.rbi index e3999e17..eea41673 100644 --- a/rbi/orb/models/new_floating_package_price.rbi +++ b/rbi/orb/models/new_floating_package_price.rbi @@ -20,6 +20,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Orb::NewFloatingPackagePrice::ModelType::OrSymbol) } attr_accessor :model_type @@ -27,6 +28,7 @@ module Orb sig { returns(String) } attr_accessor :name + # Configuration for package pricing sig { returns(Orb::PackageConfig) } attr_reader :package_config @@ -154,9 +156,11 @@ module Orb currency:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for package pricing package_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -258,6 +262,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_floating_package_with_allocation_price.rbi b/rbi/orb/models/new_floating_package_with_allocation_price.rbi index ce9d1457..7b3dc646 100644 --- a/rbi/orb/models/new_floating_package_with_allocation_price.rbi +++ b/rbi/orb/models/new_floating_package_with_allocation_price.rbi @@ -25,6 +25,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns(Orb::NewFloatingPackageWithAllocationPrice::ModelType::OrSymbol) end @@ -34,8 +35,21 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :package_with_allocation_config + # Configuration for package_with_allocation pricing + sig do + returns( + Orb::NewFloatingPackageWithAllocationPrice::PackageWithAllocationConfig + ) + end + attr_reader :package_with_allocation_config + + sig do + params( + package_with_allocation_config: + Orb::NewFloatingPackageWithAllocationPrice::PackageWithAllocationConfig::OrHash + ).void + end + attr_writer :package_with_allocation_config # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -130,7 +144,8 @@ module Orb model_type: Orb::NewFloatingPackageWithAllocationPrice::ModelType::OrSymbol, name: String, - package_with_allocation_config: T::Hash[Symbol, T.anything], + package_with_allocation_config: + Orb::NewFloatingPackageWithAllocationPrice::PackageWithAllocationConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -160,9 +175,11 @@ module Orb currency:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for package_with_allocation pricing package_with_allocation_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -206,7 +223,8 @@ module Orb model_type: Orb::NewFloatingPackageWithAllocationPrice::ModelType::OrSymbol, name: String, - package_with_allocation_config: T::Hash[Symbol, T.anything], + package_with_allocation_config: + Orb::NewFloatingPackageWithAllocationPrice::PackageWithAllocationConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -285,6 +303,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum @@ -310,6 +329,54 @@ module Orb def self.values end end + + class PackageWithAllocationConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingPackageWithAllocationPrice::PackageWithAllocationConfig, + Orb::Internal::AnyHash + ) + end + + # Usage allocation + sig { returns(String) } + attr_accessor :allocation + + # Price per package + sig { returns(String) } + attr_accessor :package_amount + + # Package size + sig { returns(String) } + attr_accessor :package_size + + # Configuration for package_with_allocation pricing + sig do + params( + allocation: String, + package_amount: String, + package_size: String + ).returns(T.attached_class) + end + def self.new( + # Usage allocation + allocation:, + # Price per package + package_amount:, + # Package size + package_size: + ) + end + + sig do + override.returns( + { allocation: String, package_amount: String, package_size: String } + ) + end + def to_hash + end + end end end end diff --git a/rbi/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbi b/rbi/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbi index df8872c0..5758256b 100644 --- a/rbi/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbi +++ b/rbi/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbi @@ -27,6 +27,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns( Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ModelType::OrSymbol @@ -38,8 +39,21 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :scalable_matrix_with_tiered_pricing_config + # Configuration for scalable_matrix_with_tiered_pricing pricing + sig do + returns( + Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig + ) + end + attr_reader :scalable_matrix_with_tiered_pricing_config + + sig do + params( + scalable_matrix_with_tiered_pricing_config: + Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::OrHash + ).void + end + attr_writer :scalable_matrix_with_tiered_pricing_config # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -135,7 +149,7 @@ module Orb Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ModelType::OrSymbol, name: String, scalable_matrix_with_tiered_pricing_config: - T::Hash[Symbol, T.anything], + Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -165,9 +179,11 @@ module Orb currency:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for scalable_matrix_with_tiered_pricing pricing scalable_matrix_with_tiered_pricing_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -212,7 +228,7 @@ module Orb Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ModelType::OrSymbol, name: String, scalable_matrix_with_tiered_pricing_config: - T::Hash[Symbol, T.anything], + Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -294,6 +310,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum @@ -322,6 +339,180 @@ module Orb def self.values end end + + class ScalableMatrixWithTieredPricingConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig, + Orb::Internal::AnyHash + ) + end + + # Used for the scalable matrix first dimension + sig { returns(String) } + attr_accessor :first_dimension + + # Apply a scaling factor to each dimension + sig do + returns( + T::Array[ + Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor + ] + ) + end + attr_accessor :matrix_scaling_factors + + # Tier pricing structure + sig do + returns( + T::Array[ + Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::Tier + ] + ) + end + attr_accessor :tiers + + # Used for the scalable matrix second dimension (optional) + sig { returns(T.nilable(String)) } + attr_accessor :second_dimension + + # Configuration for scalable_matrix_with_tiered_pricing pricing + sig do + params( + first_dimension: String, + matrix_scaling_factors: + T::Array[ + Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor::OrHash + ], + tiers: + T::Array[ + Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::Tier::OrHash + ], + second_dimension: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # Used for the scalable matrix first dimension + first_dimension:, + # Apply a scaling factor to each dimension + matrix_scaling_factors:, + # Tier pricing structure + tiers:, + # Used for the scalable matrix second dimension (optional) + second_dimension: nil + ) + end + + sig do + override.returns( + { + first_dimension: String, + matrix_scaling_factors: + T::Array[ + Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor + ], + tiers: + T::Array[ + Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::Tier + ], + second_dimension: T.nilable(String) + } + ) + end + def to_hash + end + + class MatrixScalingFactor < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor, + Orb::Internal::AnyHash + ) + end + + # First dimension value + sig { returns(String) } + attr_accessor :first_dimension_value + + # Scaling factor + sig { returns(String) } + attr_accessor :scaling_factor + + # Second dimension value (optional) + sig { returns(T.nilable(String)) } + attr_accessor :second_dimension_value + + # Configuration for a single matrix scaling factor + sig do + params( + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # First dimension value + first_dimension_value:, + # Scaling factor + scaling_factor:, + # Second dimension value (optional) + second_dimension_value: nil + ) + end + + sig do + override.returns( + { + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: T.nilable(String) + } + ) + end + def to_hash + end + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Per unit amount + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a single tier entry with business logic + sig do + params(tier_lower_bound: String, unit_amount: String).returns( + T.attached_class + ) + end + def self.new( + # Tier lower bound + tier_lower_bound:, + # Per unit amount + unit_amount: + ) + end + + sig do + override.returns({ tier_lower_bound: String, unit_amount: String }) + end + def to_hash + end + end + end end end end diff --git a/rbi/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbi b/rbi/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbi index 49728461..d0293527 100644 --- a/rbi/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbi +++ b/rbi/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbi @@ -27,6 +27,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns( Orb::NewFloatingScalableMatrixWithUnitPricingPrice::ModelType::OrSymbol @@ -38,8 +39,21 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :scalable_matrix_with_unit_pricing_config + # Configuration for scalable_matrix_with_unit_pricing pricing + sig do + returns( + Orb::NewFloatingScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig + ) + end + attr_reader :scalable_matrix_with_unit_pricing_config + + sig do + params( + scalable_matrix_with_unit_pricing_config: + Orb::NewFloatingScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig::OrHash + ).void + end + attr_writer :scalable_matrix_with_unit_pricing_config # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -134,7 +148,8 @@ module Orb model_type: Orb::NewFloatingScalableMatrixWithUnitPricingPrice::ModelType::OrSymbol, name: String, - scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], + scalable_matrix_with_unit_pricing_config: + Orb::NewFloatingScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -164,9 +179,11 @@ module Orb currency:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for scalable_matrix_with_unit_pricing pricing scalable_matrix_with_unit_pricing_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -211,7 +228,7 @@ module Orb Orb::NewFloatingScalableMatrixWithUnitPricingPrice::ModelType::OrSymbol, name: String, scalable_matrix_with_unit_pricing_config: - T::Hash[Symbol, T.anything], + Orb::NewFloatingScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -293,6 +310,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum @@ -321,6 +339,138 @@ module Orb def self.values end end + + class ScalableMatrixWithUnitPricingConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig, + Orb::Internal::AnyHash + ) + end + + # Used to determine the unit rate + sig { returns(String) } + attr_accessor :first_dimension + + # Apply a scaling factor to each dimension + sig do + returns( + T::Array[ + Orb::NewFloatingScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor + ] + ) + end + attr_accessor :matrix_scaling_factors + + # The final unit price to rate against the output of the matrix + sig { returns(String) } + attr_accessor :unit_price + + # If true, the unit price will be prorated to the billing period + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :prorate + + # Used to determine the unit rate (optional) + sig { returns(T.nilable(String)) } + attr_accessor :second_dimension + + # Configuration for scalable_matrix_with_unit_pricing pricing + sig do + params( + first_dimension: String, + matrix_scaling_factors: + T::Array[ + Orb::NewFloatingScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor::OrHash + ], + unit_price: String, + prorate: T.nilable(T::Boolean), + second_dimension: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # Used to determine the unit rate + first_dimension:, + # Apply a scaling factor to each dimension + matrix_scaling_factors:, + # The final unit price to rate against the output of the matrix + unit_price:, + # If true, the unit price will be prorated to the billing period + prorate: nil, + # Used to determine the unit rate (optional) + second_dimension: nil + ) + end + + sig do + override.returns( + { + first_dimension: String, + matrix_scaling_factors: + T::Array[ + Orb::NewFloatingScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor + ], + unit_price: String, + prorate: T.nilable(T::Boolean), + second_dimension: T.nilable(String) + } + ) + end + def to_hash + end + + class MatrixScalingFactor < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor, + Orb::Internal::AnyHash + ) + end + + # First dimension value + sig { returns(String) } + attr_accessor :first_dimension_value + + # Scaling factor + sig { returns(String) } + attr_accessor :scaling_factor + + # Second dimension value (optional) + sig { returns(T.nilable(String)) } + attr_accessor :second_dimension_value + + # Configuration for a single matrix scaling factor + sig do + params( + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # First dimension value + first_dimension_value:, + # Scaling factor + scaling_factor:, + # Second dimension value (optional) + second_dimension_value: nil + ) + end + + sig do + override.returns( + { + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: T.nilable(String) + } + ) + end + def to_hash + end + end + end end end end diff --git a/rbi/orb/models/new_floating_threshold_total_amount_price.rbi b/rbi/orb/models/new_floating_threshold_total_amount_price.rbi index 998f3554..254324b1 100644 --- a/rbi/orb/models/new_floating_threshold_total_amount_price.rbi +++ b/rbi/orb/models/new_floating_threshold_total_amount_price.rbi @@ -25,6 +25,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns(Orb::NewFloatingThresholdTotalAmountPrice::ModelType::OrSymbol) end @@ -34,8 +35,21 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :threshold_total_amount_config + # Configuration for threshold_total_amount pricing + sig do + returns( + Orb::NewFloatingThresholdTotalAmountPrice::ThresholdTotalAmountConfig + ) + end + attr_reader :threshold_total_amount_config + + sig do + params( + threshold_total_amount_config: + Orb::NewFloatingThresholdTotalAmountPrice::ThresholdTotalAmountConfig::OrHash + ).void + end + attr_writer :threshold_total_amount_config # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -129,7 +143,8 @@ module Orb model_type: Orb::NewFloatingThresholdTotalAmountPrice::ModelType::OrSymbol, name: String, - threshold_total_amount_config: T::Hash[Symbol, T.anything], + threshold_total_amount_config: + Orb::NewFloatingThresholdTotalAmountPrice::ThresholdTotalAmountConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -159,9 +174,11 @@ module Orb currency:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for threshold_total_amount pricing threshold_total_amount_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -205,7 +222,8 @@ module Orb model_type: Orb::NewFloatingThresholdTotalAmountPrice::ModelType::OrSymbol, name: String, - threshold_total_amount_config: T::Hash[Symbol, T.anything], + threshold_total_amount_config: + Orb::NewFloatingThresholdTotalAmountPrice::ThresholdTotalAmountConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -284,6 +302,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum @@ -309,6 +328,100 @@ module Orb def self.values end end + + class ThresholdTotalAmountConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingThresholdTotalAmountPrice::ThresholdTotalAmountConfig, + Orb::Internal::AnyHash + ) + end + + # When the quantity consumed passes a provided threshold, the configured total + # will be charged + sig do + returns( + T::Array[ + Orb::NewFloatingThresholdTotalAmountPrice::ThresholdTotalAmountConfig::ConsumptionTable + ] + ) + end + attr_accessor :consumption_table + + # If true, the unit price will be prorated to the billing period + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :prorate + + # Configuration for threshold_total_amount pricing + sig do + params( + consumption_table: + T::Array[ + Orb::NewFloatingThresholdTotalAmountPrice::ThresholdTotalAmountConfig::ConsumptionTable::OrHash + ], + prorate: T.nilable(T::Boolean) + ).returns(T.attached_class) + end + def self.new( + # When the quantity consumed passes a provided threshold, the configured total + # will be charged + consumption_table:, + # If true, the unit price will be prorated to the billing period + prorate: nil + ) + end + + sig do + override.returns( + { + consumption_table: + T::Array[ + Orb::NewFloatingThresholdTotalAmountPrice::ThresholdTotalAmountConfig::ConsumptionTable + ], + prorate: T.nilable(T::Boolean) + } + ) + end + def to_hash + end + + class ConsumptionTable < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingThresholdTotalAmountPrice::ThresholdTotalAmountConfig::ConsumptionTable, + Orb::Internal::AnyHash + ) + end + + # Quantity threshold + sig { returns(String) } + attr_accessor :threshold + + # Total amount for this threshold + sig { returns(String) } + attr_accessor :total_amount + + # Configuration for a single threshold + sig do + params(threshold: String, total_amount: String).returns( + T.attached_class + ) + end + def self.new( + # Quantity threshold + threshold:, + # Total amount for this threshold + total_amount: + ) + end + + sig { override.returns({ threshold: String, total_amount: String }) } + def to_hash + end + end + end end end end diff --git a/rbi/orb/models/new_floating_tiered_package_price.rbi b/rbi/orb/models/new_floating_tiered_package_price.rbi index b9987f0a..c9f776d9 100644 --- a/rbi/orb/models/new_floating_tiered_package_price.rbi +++ b/rbi/orb/models/new_floating_tiered_package_price.rbi @@ -20,6 +20,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Orb::NewFloatingTieredPackagePrice::ModelType::OrSymbol) } attr_accessor :model_type @@ -27,8 +28,17 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :tiered_package_config + # Configuration for tiered_package pricing + sig { returns(Orb::NewFloatingTieredPackagePrice::TieredPackageConfig) } + attr_reader :tiered_package_config + + sig do + params( + tiered_package_config: + Orb::NewFloatingTieredPackagePrice::TieredPackageConfig::OrHash + ).void + end + attr_writer :tiered_package_config # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -121,7 +131,8 @@ module Orb item_id: String, model_type: Orb::NewFloatingTieredPackagePrice::ModelType::OrSymbol, name: String, - tiered_package_config: T::Hash[Symbol, T.anything], + tiered_package_config: + Orb::NewFloatingTieredPackagePrice::TieredPackageConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -151,9 +162,11 @@ module Orb currency:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for tiered_package pricing tiered_package_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -195,7 +208,8 @@ module Orb item_id: String, model_type: Orb::NewFloatingTieredPackagePrice::ModelType::OrSymbol, name: String, - tiered_package_config: T::Hash[Symbol, T.anything], + tiered_package_config: + Orb::NewFloatingTieredPackagePrice::TieredPackageConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -272,6 +286,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum @@ -297,6 +312,102 @@ module Orb def self.values end end + + class TieredPackageConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingTieredPackagePrice::TieredPackageConfig, + Orb::Internal::AnyHash + ) + end + + # Package size + sig { returns(String) } + attr_accessor :package_size + + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + sig do + returns( + T::Array[ + Orb::NewFloatingTieredPackagePrice::TieredPackageConfig::Tier + ] + ) + end + attr_accessor :tiers + + # Configuration for tiered_package pricing + sig do + params( + package_size: String, + tiers: + T::Array[ + Orb::NewFloatingTieredPackagePrice::TieredPackageConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Package size + package_size:, + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + tiers: + ) + end + + sig do + override.returns( + { + package_size: String, + tiers: + T::Array[ + Orb::NewFloatingTieredPackagePrice::TieredPackageConfig::Tier + ] + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingTieredPackagePrice::TieredPackageConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Price per package + sig { returns(String) } + attr_accessor :per_unit + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Configuration for a single tier with business logic + sig do + params(per_unit: String, tier_lower_bound: String).returns( + T.attached_class + ) + end + def self.new( + # Price per package + per_unit:, + # Tier lower bound + tier_lower_bound: + ) + end + + sig do + override.returns({ per_unit: String, tier_lower_bound: String }) + end + def to_hash + end + end + end end end end diff --git a/rbi/orb/models/new_floating_tiered_package_with_minimum_price.rbi b/rbi/orb/models/new_floating_tiered_package_with_minimum_price.rbi index 86545668..7c599a5e 100644 --- a/rbi/orb/models/new_floating_tiered_package_with_minimum_price.rbi +++ b/rbi/orb/models/new_floating_tiered_package_with_minimum_price.rbi @@ -27,6 +27,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns( Orb::NewFloatingTieredPackageWithMinimumPrice::ModelType::OrSymbol @@ -38,8 +39,21 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :tiered_package_with_minimum_config + # Configuration for tiered_package_with_minimum pricing + sig do + returns( + Orb::NewFloatingTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig + ) + end + attr_reader :tiered_package_with_minimum_config + + sig do + params( + tiered_package_with_minimum_config: + Orb::NewFloatingTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::OrHash + ).void + end + attr_writer :tiered_package_with_minimum_config # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -134,7 +148,8 @@ module Orb model_type: Orb::NewFloatingTieredPackageWithMinimumPrice::ModelType::OrSymbol, name: String, - tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], + tiered_package_with_minimum_config: + Orb::NewFloatingTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -164,9 +179,11 @@ module Orb currency:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for tiered_package_with_minimum pricing tiered_package_with_minimum_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -210,7 +227,8 @@ module Orb model_type: Orb::NewFloatingTieredPackageWithMinimumPrice::ModelType::OrSymbol, name: String, - tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], + tiered_package_with_minimum_config: + Orb::NewFloatingTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -292,6 +310,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum @@ -320,6 +339,116 @@ module Orb def self.values end end + + class TieredPackageWithMinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig, + Orb::Internal::AnyHash + ) + end + + # Package size + sig { returns(Float) } + attr_accessor :package_size + + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + sig do + returns( + T::Array[ + Orb::NewFloatingTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::Tier + ] + ) + end + attr_accessor :tiers + + # Configuration for tiered_package_with_minimum pricing + sig do + params( + package_size: Float, + tiers: + T::Array[ + Orb::NewFloatingTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Package size + package_size:, + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + tiers: + ) + end + + sig do + override.returns( + { + package_size: Float, + tiers: + T::Array[ + Orb::NewFloatingTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::Tier + ] + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Minimum amount + sig { returns(String) } + attr_accessor :minimum_amount + + # Price per package + sig { returns(String) } + attr_accessor :per_unit + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Configuration for a single tier + sig do + params( + minimum_amount: String, + per_unit: String, + tier_lower_bound: String + ).returns(T.attached_class) + end + def self.new( + # Minimum amount + minimum_amount:, + # Price per package + per_unit:, + # Tier lower bound + tier_lower_bound: + ) + end + + sig do + override.returns( + { + minimum_amount: String, + per_unit: String, + tier_lower_bound: String + } + ) + end + def to_hash + end + end + end end end end diff --git a/rbi/orb/models/new_floating_tiered_price.rbi b/rbi/orb/models/new_floating_tiered_price.rbi index 2a7641bd..ebfa9b94 100644 --- a/rbi/orb/models/new_floating_tiered_price.rbi +++ b/rbi/orb/models/new_floating_tiered_price.rbi @@ -20,6 +20,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Orb::NewFloatingTieredPrice::ModelType::OrSymbol) } attr_accessor :model_type @@ -27,6 +28,7 @@ module Orb sig { returns(String) } attr_accessor :name + # Configuration for tiered pricing sig { returns(Orb::TieredConfig) } attr_reader :tiered_config @@ -154,9 +156,11 @@ module Orb currency:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for tiered pricing tiered_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -258,6 +262,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_floating_tiered_with_minimum_price.rbi b/rbi/orb/models/new_floating_tiered_with_minimum_price.rbi index 669cbec9..f85bc7ee 100644 --- a/rbi/orb/models/new_floating_tiered_with_minimum_price.rbi +++ b/rbi/orb/models/new_floating_tiered_with_minimum_price.rbi @@ -20,6 +20,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns(Orb::NewFloatingTieredWithMinimumPrice::ModelType::OrSymbol) end @@ -29,8 +30,19 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :tiered_with_minimum_config + # Configuration for tiered_with_minimum pricing + sig do + returns(Orb::NewFloatingTieredWithMinimumPrice::TieredWithMinimumConfig) + end + attr_reader :tiered_with_minimum_config + + sig do + params( + tiered_with_minimum_config: + Orb::NewFloatingTieredWithMinimumPrice::TieredWithMinimumConfig::OrHash + ).void + end + attr_writer :tiered_with_minimum_config # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -124,7 +136,8 @@ module Orb model_type: Orb::NewFloatingTieredWithMinimumPrice::ModelType::OrSymbol, name: String, - tiered_with_minimum_config: T::Hash[Symbol, T.anything], + tiered_with_minimum_config: + Orb::NewFloatingTieredWithMinimumPrice::TieredWithMinimumConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -154,9 +167,11 @@ module Orb currency:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for tiered_with_minimum pricing tiered_with_minimum_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -199,7 +214,8 @@ module Orb model_type: Orb::NewFloatingTieredWithMinimumPrice::ModelType::OrSymbol, name: String, - tiered_with_minimum_config: T::Hash[Symbol, T.anything], + tiered_with_minimum_config: + Orb::NewFloatingTieredWithMinimumPrice::TieredWithMinimumConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -278,6 +294,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum @@ -303,6 +320,130 @@ module Orb def self.values end end + + class TieredWithMinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingTieredWithMinimumPrice::TieredWithMinimumConfig, + Orb::Internal::AnyHash + ) + end + + # Tiered pricing with a minimum amount dependent on the volume tier. Tiers are + # defined using exclusive lower bounds. + sig do + returns( + T::Array[ + Orb::NewFloatingTieredWithMinimumPrice::TieredWithMinimumConfig::Tier + ] + ) + end + attr_accessor :tiers + + # If true, tiers with an accrued amount of 0 will not be included in the rating. + sig { returns(T.nilable(T::Boolean)) } + attr_reader :hide_zero_amount_tiers + + sig { params(hide_zero_amount_tiers: T::Boolean).void } + attr_writer :hide_zero_amount_tiers + + # If true, the unit price will be prorated to the billing period + sig { returns(T.nilable(T::Boolean)) } + attr_reader :prorate + + sig { params(prorate: T::Boolean).void } + attr_writer :prorate + + # Configuration for tiered_with_minimum pricing + sig do + params( + tiers: + T::Array[ + Orb::NewFloatingTieredWithMinimumPrice::TieredWithMinimumConfig::Tier::OrHash + ], + hide_zero_amount_tiers: T::Boolean, + prorate: T::Boolean + ).returns(T.attached_class) + end + def self.new( + # Tiered pricing with a minimum amount dependent on the volume tier. Tiers are + # defined using exclusive lower bounds. + tiers:, + # If true, tiers with an accrued amount of 0 will not be included in the rating. + hide_zero_amount_tiers: nil, + # If true, the unit price will be prorated to the billing period + prorate: nil + ) + end + + sig do + override.returns( + { + tiers: + T::Array[ + Orb::NewFloatingTieredWithMinimumPrice::TieredWithMinimumConfig::Tier + ], + hide_zero_amount_tiers: T::Boolean, + prorate: T::Boolean + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingTieredWithMinimumPrice::TieredWithMinimumConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Minimum amount + sig { returns(String) } + attr_accessor :minimum_amount + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Per unit amount + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a single tier + sig do + params( + minimum_amount: String, + tier_lower_bound: String, + unit_amount: String + ).returns(T.attached_class) + end + def self.new( + # Minimum amount + minimum_amount:, + # Tier lower bound + tier_lower_bound:, + # Per unit amount + unit_amount: + ) + end + + sig do + override.returns( + { + minimum_amount: String, + tier_lower_bound: String, + unit_amount: String + } + ) + end + def to_hash + end + end + end end end end diff --git a/rbi/orb/models/new_floating_tiered_with_proration_price.rbi b/rbi/orb/models/new_floating_tiered_with_proration_price.rbi index f9c3b169..8a3fd573 100644 --- a/rbi/orb/models/new_floating_tiered_with_proration_price.rbi +++ b/rbi/orb/models/new_floating_tiered_with_proration_price.rbi @@ -25,6 +25,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns(Orb::NewFloatingTieredWithProrationPrice::ModelType::OrSymbol) end @@ -34,8 +35,21 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :tiered_with_proration_config + # Configuration for tiered_with_proration pricing + sig do + returns( + Orb::NewFloatingTieredWithProrationPrice::TieredWithProrationConfig + ) + end + attr_reader :tiered_with_proration_config + + sig do + params( + tiered_with_proration_config: + Orb::NewFloatingTieredWithProrationPrice::TieredWithProrationConfig::OrHash + ).void + end + attr_writer :tiered_with_proration_config # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -129,7 +143,8 @@ module Orb model_type: Orb::NewFloatingTieredWithProrationPrice::ModelType::OrSymbol, name: String, - tiered_with_proration_config: T::Hash[Symbol, T.anything], + tiered_with_proration_config: + Orb::NewFloatingTieredWithProrationPrice::TieredWithProrationConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -159,9 +174,11 @@ module Orb currency:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for tiered_with_proration pricing tiered_with_proration_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -205,7 +222,8 @@ module Orb model_type: Orb::NewFloatingTieredWithProrationPrice::ModelType::OrSymbol, name: String, - tiered_with_proration_config: T::Hash[Symbol, T.anything], + tiered_with_proration_config: + Orb::NewFloatingTieredWithProrationPrice::TieredWithProrationConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -284,6 +302,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum @@ -309,6 +328,94 @@ module Orb def self.values end end + + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingTieredWithProrationPrice::TieredWithProrationConfig, + Orb::Internal::AnyHash + ) + end + + # Tiers for rating based on total usage quantities into the specified tier with + # proration + sig do + returns( + T::Array[ + Orb::NewFloatingTieredWithProrationPrice::TieredWithProrationConfig::Tier + ] + ) + end + attr_accessor :tiers + + # Configuration for tiered_with_proration pricing + sig do + params( + tiers: + T::Array[ + Orb::NewFloatingTieredWithProrationPrice::TieredWithProrationConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Tiers for rating based on total usage quantities into the specified tier with + # proration + tiers: + ) + end + + sig do + override.returns( + { + tiers: + T::Array[ + Orb::NewFloatingTieredWithProrationPrice::TieredWithProrationConfig::Tier + ] + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingTieredWithProrationPrice::TieredWithProrationConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Inclusive tier starting value + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Amount per unit + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a single tiered with proration tier + sig do + params(tier_lower_bound: String, unit_amount: String).returns( + T.attached_class + ) + end + def self.new( + # Inclusive tier starting value + tier_lower_bound:, + # Amount per unit + unit_amount: + ) + end + + sig do + override.returns({ tier_lower_bound: String, unit_amount: String }) + end + def to_hash + end + end + end end end end diff --git a/rbi/orb/models/new_floating_unit_price.rbi b/rbi/orb/models/new_floating_unit_price.rbi index 90c4b4dc..30765184 100644 --- a/rbi/orb/models/new_floating_unit_price.rbi +++ b/rbi/orb/models/new_floating_unit_price.rbi @@ -20,6 +20,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Orb::NewFloatingUnitPrice::ModelType::OrSymbol) } attr_accessor :model_type @@ -27,6 +28,7 @@ module Orb sig { returns(String) } attr_accessor :name + # Configuration for unit pricing sig { returns(Orb::UnitConfig) } attr_reader :unit_config @@ -154,9 +156,11 @@ module Orb currency:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for unit pricing unit_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -255,6 +259,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_floating_unit_with_percent_price.rbi b/rbi/orb/models/new_floating_unit_with_percent_price.rbi index b3498b00..10225e9c 100644 --- a/rbi/orb/models/new_floating_unit_with_percent_price.rbi +++ b/rbi/orb/models/new_floating_unit_with_percent_price.rbi @@ -20,6 +20,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Orb::NewFloatingUnitWithPercentPrice::ModelType::OrSymbol) } attr_accessor :model_type @@ -27,8 +28,19 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :unit_with_percent_config + # Configuration for unit_with_percent pricing + sig do + returns(Orb::NewFloatingUnitWithPercentPrice::UnitWithPercentConfig) + end + attr_reader :unit_with_percent_config + + sig do + params( + unit_with_percent_config: + Orb::NewFloatingUnitWithPercentPrice::UnitWithPercentConfig::OrHash + ).void + end + attr_writer :unit_with_percent_config # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -121,7 +133,8 @@ module Orb item_id: String, model_type: Orb::NewFloatingUnitWithPercentPrice::ModelType::OrSymbol, name: String, - unit_with_percent_config: T::Hash[Symbol, T.anything], + unit_with_percent_config: + Orb::NewFloatingUnitWithPercentPrice::UnitWithPercentConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -151,9 +164,11 @@ module Orb currency:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for unit_with_percent pricing unit_with_percent_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -196,7 +211,8 @@ module Orb model_type: Orb::NewFloatingUnitWithPercentPrice::ModelType::OrSymbol, name: String, - unit_with_percent_config: T::Hash[Symbol, T.anything], + unit_with_percent_config: + Orb::NewFloatingUnitWithPercentPrice::UnitWithPercentConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -275,6 +291,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum @@ -300,6 +317,40 @@ module Orb def self.values end end + + class UnitWithPercentConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingUnitWithPercentPrice::UnitWithPercentConfig, + Orb::Internal::AnyHash + ) + end + + # What percent, out of 100, of the calculated total to charge + sig { returns(String) } + attr_accessor :percent + + # Rate per unit of usage + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for unit_with_percent pricing + sig do + params(percent: String, unit_amount: String).returns(T.attached_class) + end + def self.new( + # What percent, out of 100, of the calculated total to charge + percent:, + # Rate per unit of usage + unit_amount: + ) + end + + sig { override.returns({ percent: String, unit_amount: String }) } + def to_hash + end + end end end end diff --git a/rbi/orb/models/new_floating_unit_with_proration_price.rbi b/rbi/orb/models/new_floating_unit_with_proration_price.rbi index 23a03428..65daa0d7 100644 --- a/rbi/orb/models/new_floating_unit_with_proration_price.rbi +++ b/rbi/orb/models/new_floating_unit_with_proration_price.rbi @@ -20,6 +20,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns(Orb::NewFloatingUnitWithProrationPrice::ModelType::OrSymbol) end @@ -29,8 +30,19 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :unit_with_proration_config + # Configuration for unit_with_proration pricing + sig do + returns(Orb::NewFloatingUnitWithProrationPrice::UnitWithProrationConfig) + end + attr_reader :unit_with_proration_config + + sig do + params( + unit_with_proration_config: + Orb::NewFloatingUnitWithProrationPrice::UnitWithProrationConfig::OrHash + ).void + end + attr_writer :unit_with_proration_config # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -124,7 +136,8 @@ module Orb model_type: Orb::NewFloatingUnitWithProrationPrice::ModelType::OrSymbol, name: String, - unit_with_proration_config: T::Hash[Symbol, T.anything], + unit_with_proration_config: + Orb::NewFloatingUnitWithProrationPrice::UnitWithProrationConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -154,9 +167,11 @@ module Orb currency:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for unit_with_proration pricing unit_with_proration_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -199,7 +214,8 @@ module Orb model_type: Orb::NewFloatingUnitWithProrationPrice::ModelType::OrSymbol, name: String, - unit_with_proration_config: T::Hash[Symbol, T.anything], + unit_with_proration_config: + Orb::NewFloatingUnitWithProrationPrice::UnitWithProrationConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -278,6 +294,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum @@ -303,6 +320,32 @@ module Orb def self.values end end + + class UnitWithProrationConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewFloatingUnitWithProrationPrice::UnitWithProrationConfig, + Orb::Internal::AnyHash + ) + end + + # Rate per unit of usage + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for unit_with_proration pricing + sig { params(unit_amount: String).returns(T.attached_class) } + def self.new( + # Rate per unit of usage + unit_amount: + ) + end + + sig { override.returns({ unit_amount: String }) } + def to_hash + end + end end end end diff --git a/rbi/orb/models/new_plan_bulk_price.rbi b/rbi/orb/models/new_plan_bulk_price.rbi index cb9fd919..ce4ca3d0 100644 --- a/rbi/orb/models/new_plan_bulk_price.rbi +++ b/rbi/orb/models/new_plan_bulk_price.rbi @@ -6,6 +6,7 @@ module Orb OrHash = T.type_alias { T.any(Orb::NewPlanBulkPrice, Orb::Internal::AnyHash) } + # Configuration for bulk pricing sig { returns(Orb::BulkConfig) } attr_reader :bulk_config @@ -20,6 +21,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Orb::NewPlanBulkPrice::ModelType::OrSymbol) } attr_accessor :model_type @@ -153,11 +155,13 @@ module Orb ).returns(T.attached_class) end def self.new( + # Configuration for bulk pricing bulk_config:, # The cadence to bill for this price on. cadence:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, @@ -262,6 +266,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_plan_bulk_with_proration_price.rbi b/rbi/orb/models/new_plan_bulk_with_proration_price.rbi index c56f5050..39c69d60 100644 --- a/rbi/orb/models/new_plan_bulk_with_proration_price.rbi +++ b/rbi/orb/models/new_plan_bulk_with_proration_price.rbi @@ -8,8 +8,19 @@ module Orb T.any(Orb::NewPlanBulkWithProrationPrice, Orb::Internal::AnyHash) end - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :bulk_with_proration_config + # Configuration for bulk_with_proration pricing + sig do + returns(Orb::NewPlanBulkWithProrationPrice::BulkWithProrationConfig) + end + attr_reader :bulk_with_proration_config + + sig do + params( + bulk_with_proration_config: + Orb::NewPlanBulkWithProrationPrice::BulkWithProrationConfig::OrHash + ).void + end + attr_writer :bulk_with_proration_config # The cadence to bill for this price on. sig { returns(Orb::NewPlanBulkWithProrationPrice::Cadence::OrSymbol) } @@ -19,6 +30,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Orb::NewPlanBulkWithProrationPrice::ModelType::OrSymbol) } attr_accessor :model_type @@ -122,7 +134,8 @@ module Orb sig do params( - bulk_with_proration_config: T::Hash[Symbol, T.anything], + bulk_with_proration_config: + Orb::NewPlanBulkWithProrationPrice::BulkWithProrationConfig::OrHash, cadence: Orb::NewPlanBulkWithProrationPrice::Cadence::OrSymbol, item_id: String, model_type: Orb::NewPlanBulkWithProrationPrice::ModelType::OrSymbol, @@ -152,11 +165,13 @@ module Orb ).returns(T.attached_class) end def self.new( + # Configuration for bulk_with_proration pricing bulk_with_proration_config:, # The cadence to bill for this price on. cadence:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, @@ -201,7 +216,8 @@ module Orb sig do override.returns( { - bulk_with_proration_config: T::Hash[Symbol, T.anything], + bulk_with_proration_config: + Orb::NewPlanBulkWithProrationPrice::BulkWithProrationConfig, cadence: Orb::NewPlanBulkWithProrationPrice::Cadence::OrSymbol, item_id: String, model_type: Orb::NewPlanBulkWithProrationPrice::ModelType::OrSymbol, @@ -234,6 +250,95 @@ module Orb def to_hash end + class BulkWithProrationConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewPlanBulkWithProrationPrice::BulkWithProrationConfig, + Orb::Internal::AnyHash + ) + end + + # Bulk tiers for rating based on total usage volume + sig do + returns( + T::Array[ + Orb::NewPlanBulkWithProrationPrice::BulkWithProrationConfig::Tier + ] + ) + end + attr_accessor :tiers + + # Configuration for bulk_with_proration pricing + sig do + params( + tiers: + T::Array[ + Orb::NewPlanBulkWithProrationPrice::BulkWithProrationConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Bulk tiers for rating based on total usage volume + tiers: + ) + end + + sig do + override.returns( + { + tiers: + T::Array[ + Orb::NewPlanBulkWithProrationPrice::BulkWithProrationConfig::Tier + ] + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewPlanBulkWithProrationPrice::BulkWithProrationConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Cost per unit + sig { returns(String) } + attr_accessor :unit_amount + + # The lower bound for this tier + sig { returns(T.nilable(String)) } + attr_accessor :tier_lower_bound + + # Configuration for a single bulk pricing tier with proration + sig do + params( + unit_amount: String, + tier_lower_bound: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # Cost per unit + unit_amount:, + # The lower bound for this tier + tier_lower_bound: nil + ) + end + + sig do + override.returns( + { unit_amount: String, tier_lower_bound: T.nilable(String) } + ) + end + def to_hash + end + end + end + # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum @@ -284,6 +389,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_plan_cumulative_grouped_bulk_price.rbi b/rbi/orb/models/new_plan_cumulative_grouped_bulk_price.rbi index 6fbdef8c..ed2a139c 100644 --- a/rbi/orb/models/new_plan_cumulative_grouped_bulk_price.rbi +++ b/rbi/orb/models/new_plan_cumulative_grouped_bulk_price.rbi @@ -12,13 +12,27 @@ module Orb sig { returns(Orb::NewPlanCumulativeGroupedBulkPrice::Cadence::OrSymbol) } attr_accessor :cadence - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :cumulative_grouped_bulk_config + # Configuration for cumulative_grouped_bulk pricing + sig do + returns( + Orb::NewPlanCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig + ) + end + attr_reader :cumulative_grouped_bulk_config + + sig do + params( + cumulative_grouped_bulk_config: + Orb::NewPlanCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig::OrHash + ).void + end + attr_writer :cumulative_grouped_bulk_config # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns(Orb::NewPlanCumulativeGroupedBulkPrice::ModelType::OrSymbol) end @@ -125,7 +139,8 @@ module Orb sig do params( cadence: Orb::NewPlanCumulativeGroupedBulkPrice::Cadence::OrSymbol, - cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], + cumulative_grouped_bulk_config: + Orb::NewPlanCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig::OrHash, item_id: String, model_type: Orb::NewPlanCumulativeGroupedBulkPrice::ModelType::OrSymbol, @@ -157,9 +172,11 @@ module Orb def self.new( # The cadence to bill for this price on. cadence:, + # Configuration for cumulative_grouped_bulk pricing cumulative_grouped_bulk_config:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, @@ -205,7 +222,8 @@ module Orb override.returns( { cadence: Orb::NewPlanCumulativeGroupedBulkPrice::Cadence::OrSymbol, - cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], + cumulative_grouped_bulk_config: + Orb::NewPlanCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig, item_id: String, model_type: Orb::NewPlanCumulativeGroupedBulkPrice::ModelType::OrSymbol, @@ -290,6 +308,115 @@ module Orb end end + class CumulativeGroupedBulkConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewPlanCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig, + Orb::Internal::AnyHash + ) + end + + # Each tier lower bound must have the same group of values. + sig do + returns( + T::Array[ + Orb::NewPlanCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig::DimensionValue + ] + ) + end + attr_accessor :dimension_values + + # Grouping key name + sig { returns(String) } + attr_accessor :group + + # Configuration for cumulative_grouped_bulk pricing + sig do + params( + dimension_values: + T::Array[ + Orb::NewPlanCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig::DimensionValue::OrHash + ], + group: String + ).returns(T.attached_class) + end + def self.new( + # Each tier lower bound must have the same group of values. + dimension_values:, + # Grouping key name + group: + ) + end + + sig do + override.returns( + { + dimension_values: + T::Array[ + Orb::NewPlanCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig::DimensionValue + ], + group: String + } + ) + end + def to_hash + end + + class DimensionValue < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewPlanCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig::DimensionValue, + Orb::Internal::AnyHash + ) + end + + # Grouping key value + sig { returns(String) } + attr_accessor :grouping_key + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Unit amount for this combination + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a dimension value entry + sig do + params( + grouping_key: String, + tier_lower_bound: String, + unit_amount: String + ).returns(T.attached_class) + end + def self.new( + # Grouping key value + grouping_key:, + # Tier lower bound + tier_lower_bound:, + # Unit amount for this combination + unit_amount: + ) + end + + sig do + override.returns( + { + grouping_key: String, + tier_lower_bound: String, + unit_amount: String + } + ) + end + def to_hash + end + end + end + + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_plan_grouped_allocation_price.rbi b/rbi/orb/models/new_plan_grouped_allocation_price.rbi index a47a8c14..804488d0 100644 --- a/rbi/orb/models/new_plan_grouped_allocation_price.rbi +++ b/rbi/orb/models/new_plan_grouped_allocation_price.rbi @@ -12,13 +12,25 @@ module Orb sig { returns(Orb::NewPlanGroupedAllocationPrice::Cadence::OrSymbol) } attr_accessor :cadence - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_allocation_config + # Configuration for grouped_allocation pricing + sig do + returns(Orb::NewPlanGroupedAllocationPrice::GroupedAllocationConfig) + end + attr_reader :grouped_allocation_config + + sig do + params( + grouped_allocation_config: + Orb::NewPlanGroupedAllocationPrice::GroupedAllocationConfig::OrHash + ).void + end + attr_writer :grouped_allocation_config # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Orb::NewPlanGroupedAllocationPrice::ModelType::OrSymbol) } attr_accessor :model_type @@ -123,7 +135,8 @@ module Orb sig do params( cadence: Orb::NewPlanGroupedAllocationPrice::Cadence::OrSymbol, - grouped_allocation_config: T::Hash[Symbol, T.anything], + grouped_allocation_config: + Orb::NewPlanGroupedAllocationPrice::GroupedAllocationConfig::OrHash, item_id: String, model_type: Orb::NewPlanGroupedAllocationPrice::ModelType::OrSymbol, name: String, @@ -154,9 +167,11 @@ module Orb def self.new( # The cadence to bill for this price on. cadence:, + # Configuration for grouped_allocation pricing grouped_allocation_config:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, @@ -202,7 +217,8 @@ module Orb override.returns( { cadence: Orb::NewPlanGroupedAllocationPrice::Cadence::OrSymbol, - grouped_allocation_config: T::Hash[Symbol, T.anything], + grouped_allocation_config: + Orb::NewPlanGroupedAllocationPrice::GroupedAllocationConfig, item_id: String, model_type: Orb::NewPlanGroupedAllocationPrice::ModelType::OrSymbol, name: String, @@ -284,6 +300,59 @@ module Orb end end + class GroupedAllocationConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewPlanGroupedAllocationPrice::GroupedAllocationConfig, + Orb::Internal::AnyHash + ) + end + + # Usage allocation per group + sig { returns(String) } + attr_accessor :allocation + + # How to determine the groups that should each be allocated some quantity + sig { returns(String) } + attr_accessor :grouping_key + + # Unit rate for post-allocation + sig { returns(String) } + attr_accessor :overage_unit_rate + + # Configuration for grouped_allocation pricing + sig do + params( + allocation: String, + grouping_key: String, + overage_unit_rate: String + ).returns(T.attached_class) + end + def self.new( + # Usage allocation per group + allocation:, + # How to determine the groups that should each be allocated some quantity + grouping_key:, + # Unit rate for post-allocation + overage_unit_rate: + ) + end + + sig do + override.returns( + { + allocation: String, + grouping_key: String, + overage_unit_rate: String + } + ) + end + def to_hash + end + end + + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_plan_grouped_tiered_package_price.rbi b/rbi/orb/models/new_plan_grouped_tiered_package_price.rbi index 95f33580..a5d3086d 100644 --- a/rbi/orb/models/new_plan_grouped_tiered_package_price.rbi +++ b/rbi/orb/models/new_plan_grouped_tiered_package_price.rbi @@ -12,13 +12,27 @@ module Orb sig { returns(Orb::NewPlanGroupedTieredPackagePrice::Cadence::OrSymbol) } attr_accessor :cadence - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_tiered_package_config + # Configuration for grouped_tiered_package pricing + sig do + returns( + Orb::NewPlanGroupedTieredPackagePrice::GroupedTieredPackageConfig + ) + end + attr_reader :grouped_tiered_package_config + + sig do + params( + grouped_tiered_package_config: + Orb::NewPlanGroupedTieredPackagePrice::GroupedTieredPackageConfig::OrHash + ).void + end + attr_writer :grouped_tiered_package_config # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns(Orb::NewPlanGroupedTieredPackagePrice::ModelType::OrSymbol) end @@ -125,7 +139,8 @@ module Orb sig do params( cadence: Orb::NewPlanGroupedTieredPackagePrice::Cadence::OrSymbol, - grouped_tiered_package_config: T::Hash[Symbol, T.anything], + grouped_tiered_package_config: + Orb::NewPlanGroupedTieredPackagePrice::GroupedTieredPackageConfig::OrHash, item_id: String, model_type: Orb::NewPlanGroupedTieredPackagePrice::ModelType::OrSymbol, @@ -157,9 +172,11 @@ module Orb def self.new( # The cadence to bill for this price on. cadence:, + # Configuration for grouped_tiered_package pricing grouped_tiered_package_config:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, @@ -205,7 +222,8 @@ module Orb override.returns( { cadence: Orb::NewPlanGroupedTieredPackagePrice::Cadence::OrSymbol, - grouped_tiered_package_config: T::Hash[Symbol, T.anything], + grouped_tiered_package_config: + Orb::NewPlanGroupedTieredPackagePrice::GroupedTieredPackageConfig, item_id: String, model_type: Orb::NewPlanGroupedTieredPackagePrice::ModelType::OrSymbol, @@ -290,6 +308,111 @@ module Orb end end + class GroupedTieredPackageConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewPlanGroupedTieredPackagePrice::GroupedTieredPackageConfig, + Orb::Internal::AnyHash + ) + end + + # The event property used to group before tiering + sig { returns(String) } + attr_accessor :grouping_key + + # Package size + sig { returns(String) } + attr_accessor :package_size + + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + sig do + returns( + T::Array[ + Orb::NewPlanGroupedTieredPackagePrice::GroupedTieredPackageConfig::Tier + ] + ) + end + attr_accessor :tiers + + # Configuration for grouped_tiered_package pricing + sig do + params( + grouping_key: String, + package_size: String, + tiers: + T::Array[ + Orb::NewPlanGroupedTieredPackagePrice::GroupedTieredPackageConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # The event property used to group before tiering + grouping_key:, + # Package size + package_size:, + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + tiers: + ) + end + + sig do + override.returns( + { + grouping_key: String, + package_size: String, + tiers: + T::Array[ + Orb::NewPlanGroupedTieredPackagePrice::GroupedTieredPackageConfig::Tier + ] + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewPlanGroupedTieredPackagePrice::GroupedTieredPackageConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Price per package + sig { returns(String) } + attr_accessor :per_unit + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Configuration for a single tier + sig do + params(per_unit: String, tier_lower_bound: String).returns( + T.attached_class + ) + end + def self.new( + # Price per package + per_unit:, + # Tier lower bound + tier_lower_bound: + ) + end + + sig do + override.returns({ per_unit: String, tier_lower_bound: String }) + end + def to_hash + end + end + end + + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_plan_grouped_tiered_price.rbi b/rbi/orb/models/new_plan_grouped_tiered_price.rbi index ac803a8d..9a4471e5 100644 --- a/rbi/orb/models/new_plan_grouped_tiered_price.rbi +++ b/rbi/orb/models/new_plan_grouped_tiered_price.rbi @@ -12,13 +12,23 @@ module Orb sig { returns(Orb::NewPlanGroupedTieredPrice::Cadence::OrSymbol) } attr_accessor :cadence - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_tiered_config + # Configuration for grouped_tiered pricing + sig { returns(Orb::NewPlanGroupedTieredPrice::GroupedTieredConfig) } + attr_reader :grouped_tiered_config + + sig do + params( + grouped_tiered_config: + Orb::NewPlanGroupedTieredPrice::GroupedTieredConfig::OrHash + ).void + end + attr_writer :grouped_tiered_config # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Orb::NewPlanGroupedTieredPrice::ModelType::OrSymbol) } attr_accessor :model_type @@ -123,7 +133,8 @@ module Orb sig do params( cadence: Orb::NewPlanGroupedTieredPrice::Cadence::OrSymbol, - grouped_tiered_config: T::Hash[Symbol, T.anything], + grouped_tiered_config: + Orb::NewPlanGroupedTieredPrice::GroupedTieredConfig::OrHash, item_id: String, model_type: Orb::NewPlanGroupedTieredPrice::ModelType::OrSymbol, name: String, @@ -154,9 +165,11 @@ module Orb def self.new( # The cadence to bill for this price on. cadence:, + # Configuration for grouped_tiered pricing grouped_tiered_config:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, @@ -202,7 +215,8 @@ module Orb override.returns( { cadence: Orb::NewPlanGroupedTieredPrice::Cadence::OrSymbol, - grouped_tiered_config: T::Hash[Symbol, T.anything], + grouped_tiered_config: + Orb::NewPlanGroupedTieredPrice::GroupedTieredConfig, item_id: String, model_type: Orb::NewPlanGroupedTieredPrice::ModelType::OrSymbol, name: String, @@ -275,6 +289,101 @@ module Orb end end + class GroupedTieredConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewPlanGroupedTieredPrice::GroupedTieredConfig, + Orb::Internal::AnyHash + ) + end + + # The billable metric property used to group before tiering + sig { returns(String) } + attr_accessor :grouping_key + + # Apply tiered pricing to each segment generated after grouping with the provided + # key + sig do + returns( + T::Array[Orb::NewPlanGroupedTieredPrice::GroupedTieredConfig::Tier] + ) + end + attr_accessor :tiers + + # Configuration for grouped_tiered pricing + sig do + params( + grouping_key: String, + tiers: + T::Array[ + Orb::NewPlanGroupedTieredPrice::GroupedTieredConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # The billable metric property used to group before tiering + grouping_key:, + # Apply tiered pricing to each segment generated after grouping with the provided + # key + tiers: + ) + end + + sig do + override.returns( + { + grouping_key: String, + tiers: + T::Array[ + Orb::NewPlanGroupedTieredPrice::GroupedTieredConfig::Tier + ] + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewPlanGroupedTieredPrice::GroupedTieredConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Per unit amount + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a single tier + sig do + params(tier_lower_bound: String, unit_amount: String).returns( + T.attached_class + ) + end + def self.new( + # Tier lower bound + tier_lower_bound:, + # Per unit amount + unit_amount: + ) + end + + sig do + override.returns({ tier_lower_bound: String, unit_amount: String }) + end + def to_hash + end + end + end + + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_plan_grouped_with_metered_minimum_price.rbi b/rbi/orb/models/new_plan_grouped_with_metered_minimum_price.rbi index e326ae88..c52bf531 100644 --- a/rbi/orb/models/new_plan_grouped_with_metered_minimum_price.rbi +++ b/rbi/orb/models/new_plan_grouped_with_metered_minimum_price.rbi @@ -17,13 +17,27 @@ module Orb end attr_accessor :cadence - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_with_metered_minimum_config + # Configuration for grouped_with_metered_minimum pricing + sig do + returns( + Orb::NewPlanGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig + ) + end + attr_reader :grouped_with_metered_minimum_config + + sig do + params( + grouped_with_metered_minimum_config: + Orb::NewPlanGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::OrHash + ).void + end + attr_writer :grouped_with_metered_minimum_config # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns(Orb::NewPlanGroupedWithMeteredMinimumPrice::ModelType::OrSymbol) end @@ -131,7 +145,8 @@ module Orb params( cadence: Orb::NewPlanGroupedWithMeteredMinimumPrice::Cadence::OrSymbol, - grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], + grouped_with_metered_minimum_config: + Orb::NewPlanGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::OrHash, item_id: String, model_type: Orb::NewPlanGroupedWithMeteredMinimumPrice::ModelType::OrSymbol, @@ -163,9 +178,11 @@ module Orb def self.new( # The cadence to bill for this price on. cadence:, + # Configuration for grouped_with_metered_minimum pricing grouped_with_metered_minimum_config:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, @@ -212,7 +229,8 @@ module Orb { cadence: Orb::NewPlanGroupedWithMeteredMinimumPrice::Cadence::OrSymbol, - grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], + grouped_with_metered_minimum_config: + Orb::NewPlanGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig, item_id: String, model_type: Orb::NewPlanGroupedWithMeteredMinimumPrice::ModelType::OrSymbol, @@ -297,6 +315,187 @@ module Orb end end + class GroupedWithMeteredMinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewPlanGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig, + Orb::Internal::AnyHash + ) + end + + # Used to partition the usage into groups. The minimum amount is applied to each + # group. + sig { returns(String) } + attr_accessor :grouping_key + + # The minimum amount to charge per group per unit + sig { returns(String) } + attr_accessor :minimum_unit_amount + + # Used to determine the unit rate + sig { returns(String) } + attr_accessor :pricing_key + + # Scale the unit rates by the scaling factor. + sig do + returns( + T::Array[ + Orb::NewPlanGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::ScalingFactor + ] + ) + end + attr_accessor :scaling_factors + + # Used to determine the unit rate scaling factor + sig { returns(String) } + attr_accessor :scaling_key + + # Apply per unit pricing to each pricing value. The minimum amount is applied any + # unmatched usage. + sig do + returns( + T::Array[ + Orb::NewPlanGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::UnitAmount + ] + ) + end + attr_accessor :unit_amounts + + # Configuration for grouped_with_metered_minimum pricing + sig do + params( + grouping_key: String, + minimum_unit_amount: String, + pricing_key: String, + scaling_factors: + T::Array[ + Orb::NewPlanGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::ScalingFactor::OrHash + ], + scaling_key: String, + unit_amounts: + T::Array[ + Orb::NewPlanGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::UnitAmount::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Used to partition the usage into groups. The minimum amount is applied to each + # group. + grouping_key:, + # The minimum amount to charge per group per unit + minimum_unit_amount:, + # Used to determine the unit rate + pricing_key:, + # Scale the unit rates by the scaling factor. + scaling_factors:, + # Used to determine the unit rate scaling factor + scaling_key:, + # Apply per unit pricing to each pricing value. The minimum amount is applied any + # unmatched usage. + unit_amounts: + ) + end + + sig do + override.returns( + { + grouping_key: String, + minimum_unit_amount: String, + pricing_key: String, + scaling_factors: + T::Array[ + Orb::NewPlanGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::ScalingFactor + ], + scaling_key: String, + unit_amounts: + T::Array[ + Orb::NewPlanGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::UnitAmount + ] + } + ) + end + def to_hash + end + + class ScalingFactor < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewPlanGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::ScalingFactor, + Orb::Internal::AnyHash + ) + end + + # Scaling factor + sig { returns(String) } + attr_accessor :scaling_factor + + # Scaling value + sig { returns(String) } + attr_accessor :scaling_value + + # Configuration for a scaling factor + sig do + params(scaling_factor: String, scaling_value: String).returns( + T.attached_class + ) + end + def self.new( + # Scaling factor + scaling_factor:, + # Scaling value + scaling_value: + ) + end + + sig do + override.returns({ scaling_factor: String, scaling_value: String }) + end + def to_hash + end + end + + class UnitAmount < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewPlanGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::UnitAmount, + Orb::Internal::AnyHash + ) + end + + # Pricing value + sig { returns(String) } + attr_accessor :pricing_value + + # Per unit amount + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a unit amount + sig do + params(pricing_value: String, unit_amount: String).returns( + T.attached_class + ) + end + def self.new( + # Pricing value + pricing_value:, + # Per unit amount + unit_amount: + ) + end + + sig do + override.returns({ pricing_value: String, unit_amount: String }) + end + def to_hash + end + end + end + + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_plan_grouped_with_prorated_minimum_price.rbi b/rbi/orb/models/new_plan_grouped_with_prorated_minimum_price.rbi index 7b0ffcf4..88717fe3 100644 --- a/rbi/orb/models/new_plan_grouped_with_prorated_minimum_price.rbi +++ b/rbi/orb/models/new_plan_grouped_with_prorated_minimum_price.rbi @@ -17,13 +17,27 @@ module Orb end attr_accessor :cadence - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_with_prorated_minimum_config + # Configuration for grouped_with_prorated_minimum pricing + sig do + returns( + Orb::NewPlanGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig + ) + end + attr_reader :grouped_with_prorated_minimum_config + + sig do + params( + grouped_with_prorated_minimum_config: + Orb::NewPlanGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig::OrHash + ).void + end + attr_writer :grouped_with_prorated_minimum_config # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns( Orb::NewPlanGroupedWithProratedMinimumPrice::ModelType::OrSymbol @@ -133,7 +147,8 @@ module Orb params( cadence: Orb::NewPlanGroupedWithProratedMinimumPrice::Cadence::OrSymbol, - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], + grouped_with_prorated_minimum_config: + Orb::NewPlanGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig::OrHash, item_id: String, model_type: Orb::NewPlanGroupedWithProratedMinimumPrice::ModelType::OrSymbol, @@ -165,9 +180,11 @@ module Orb def self.new( # The cadence to bill for this price on. cadence:, + # Configuration for grouped_with_prorated_minimum pricing grouped_with_prorated_minimum_config:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, @@ -214,7 +231,8 @@ module Orb { cadence: Orb::NewPlanGroupedWithProratedMinimumPrice::Cadence::OrSymbol, - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], + grouped_with_prorated_minimum_config: + Orb::NewPlanGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig, item_id: String, model_type: Orb::NewPlanGroupedWithProratedMinimumPrice::ModelType::OrSymbol, @@ -299,6 +317,55 @@ module Orb end end + class GroupedWithProratedMinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewPlanGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig, + Orb::Internal::AnyHash + ) + end + + # How to determine the groups that should each have a minimum + sig { returns(String) } + attr_accessor :grouping_key + + # The minimum amount to charge per group + sig { returns(String) } + attr_accessor :minimum + + # The amount to charge per unit + sig { returns(String) } + attr_accessor :unit_rate + + # Configuration for grouped_with_prorated_minimum pricing + sig do + params( + grouping_key: String, + minimum: String, + unit_rate: String + ).returns(T.attached_class) + end + def self.new( + # How to determine the groups that should each have a minimum + grouping_key:, + # The minimum amount to charge per group + minimum:, + # The amount to charge per unit + unit_rate: + ) + end + + sig do + override.returns( + { grouping_key: String, minimum: String, unit_rate: String } + ) + end + def to_hash + end + end + + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_plan_matrix_price.rbi b/rbi/orb/models/new_plan_matrix_price.rbi index 71b024b9..dd96975d 100644 --- a/rbi/orb/models/new_plan_matrix_price.rbi +++ b/rbi/orb/models/new_plan_matrix_price.rbi @@ -14,12 +14,14 @@ module Orb sig { returns(String) } attr_accessor :item_id + # Configuration for matrix pricing sig { returns(Orb::MatrixConfig) } attr_reader :matrix_config sig { params(matrix_config: Orb::MatrixConfig::OrHash).void } attr_writer :matrix_config + # The pricing model type sig { returns(Orb::NewPlanMatrixPrice::ModelType::OrSymbol) } attr_accessor :model_type @@ -157,7 +159,9 @@ module Orb cadence:, # The id of the item the price will be associated with. item_id:, + # Configuration for matrix pricing matrix_config:, + # The pricing model type model_type:, # The name of the price. name:, @@ -263,6 +267,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_plan_matrix_with_allocation_price.rbi b/rbi/orb/models/new_plan_matrix_with_allocation_price.rbi index 1950f936..bddade05 100644 --- a/rbi/orb/models/new_plan_matrix_with_allocation_price.rbi +++ b/rbi/orb/models/new_plan_matrix_with_allocation_price.rbi @@ -16,6 +16,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # Configuration for matrix_with_allocation pricing sig { returns(Orb::MatrixWithAllocationConfig) } attr_reader :matrix_with_allocation_config @@ -26,6 +27,7 @@ module Orb end attr_writer :matrix_with_allocation_config + # The pricing model type sig do returns(Orb::NewPlanMatrixWithAllocationPrice::ModelType::OrSymbol) end @@ -167,7 +169,9 @@ module Orb cadence:, # The id of the item the price will be associated with. item_id:, + # Configuration for matrix_with_allocation pricing matrix_with_allocation_config:, + # The pricing model type model_type:, # The name of the price. name:, @@ -298,6 +302,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_plan_matrix_with_display_name_price.rbi b/rbi/orb/models/new_plan_matrix_with_display_name_price.rbi index 3b28c48c..4e32bad9 100644 --- a/rbi/orb/models/new_plan_matrix_with_display_name_price.rbi +++ b/rbi/orb/models/new_plan_matrix_with_display_name_price.rbi @@ -16,9 +16,23 @@ module Orb sig { returns(String) } attr_accessor :item_id - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :matrix_with_display_name_config + # Configuration for matrix_with_display_name pricing + sig do + returns( + Orb::NewPlanMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig + ) + end + attr_reader :matrix_with_display_name_config + sig do + params( + matrix_with_display_name_config: + Orb::NewPlanMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::OrHash + ).void + end + attr_writer :matrix_with_display_name_config + + # The pricing model type sig do returns(Orb::NewPlanMatrixWithDisplayNamePrice::ModelType::OrSymbol) end @@ -126,7 +140,8 @@ module Orb params( cadence: Orb::NewPlanMatrixWithDisplayNamePrice::Cadence::OrSymbol, item_id: String, - matrix_with_display_name_config: T::Hash[Symbol, T.anything], + matrix_with_display_name_config: + Orb::NewPlanMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::OrHash, model_type: Orb::NewPlanMatrixWithDisplayNamePrice::ModelType::OrSymbol, name: String, @@ -159,7 +174,9 @@ module Orb cadence:, # The id of the item the price will be associated with. item_id:, + # Configuration for matrix_with_display_name pricing matrix_with_display_name_config:, + # The pricing model type model_type:, # The name of the price. name:, @@ -206,7 +223,8 @@ module Orb { cadence: Orb::NewPlanMatrixWithDisplayNamePrice::Cadence::OrSymbol, item_id: String, - matrix_with_display_name_config: T::Hash[Symbol, T.anything], + matrix_with_display_name_config: + Orb::NewPlanMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig, model_type: Orb::NewPlanMatrixWithDisplayNamePrice::ModelType::OrSymbol, name: String, @@ -290,6 +308,115 @@ module Orb end end + class MatrixWithDisplayNameConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewPlanMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig, + Orb::Internal::AnyHash + ) + end + + # Used to determine the unit rate + sig { returns(String) } + attr_accessor :dimension + + # Apply per unit pricing to each dimension value + sig do + returns( + T::Array[ + Orb::NewPlanMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::UnitAmount + ] + ) + end + attr_accessor :unit_amounts + + # Configuration for matrix_with_display_name pricing + sig do + params( + dimension: String, + unit_amounts: + T::Array[ + Orb::NewPlanMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::UnitAmount::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Used to determine the unit rate + dimension:, + # Apply per unit pricing to each dimension value + unit_amounts: + ) + end + + sig do + override.returns( + { + dimension: String, + unit_amounts: + T::Array[ + Orb::NewPlanMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::UnitAmount + ] + } + ) + end + def to_hash + end + + class UnitAmount < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewPlanMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::UnitAmount, + Orb::Internal::AnyHash + ) + end + + # The dimension value + sig { returns(String) } + attr_accessor :dimension_value + + # Display name for this dimension value + sig { returns(String) } + attr_accessor :display_name + + # Per unit amount + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a unit amount item + sig do + params( + dimension_value: String, + display_name: String, + unit_amount: String + ).returns(T.attached_class) + end + def self.new( + # The dimension value + dimension_value:, + # Display name for this dimension value + display_name:, + # Per unit amount + unit_amount: + ) + end + + sig do + override.returns( + { + dimension_value: String, + display_name: String, + unit_amount: String + } + ) + end + def to_hash + end + end + end + + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_plan_max_group_tiered_package_price.rbi b/rbi/orb/models/new_plan_max_group_tiered_package_price.rbi index e4e6f42b..29ce8716 100644 --- a/rbi/orb/models/new_plan_max_group_tiered_package_price.rbi +++ b/rbi/orb/models/new_plan_max_group_tiered_package_price.rbi @@ -16,9 +16,23 @@ module Orb sig { returns(String) } attr_accessor :item_id - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :max_group_tiered_package_config + # Configuration for max_group_tiered_package pricing + sig do + returns( + Orb::NewPlanMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig + ) + end + attr_reader :max_group_tiered_package_config + + sig do + params( + max_group_tiered_package_config: + Orb::NewPlanMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig::OrHash + ).void + end + attr_writer :max_group_tiered_package_config + # The pricing model type sig do returns(Orb::NewPlanMaxGroupTieredPackagePrice::ModelType::OrSymbol) end @@ -126,7 +140,8 @@ module Orb params( cadence: Orb::NewPlanMaxGroupTieredPackagePrice::Cadence::OrSymbol, item_id: String, - max_group_tiered_package_config: T::Hash[Symbol, T.anything], + max_group_tiered_package_config: + Orb::NewPlanMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig::OrHash, model_type: Orb::NewPlanMaxGroupTieredPackagePrice::ModelType::OrSymbol, name: String, @@ -159,7 +174,9 @@ module Orb cadence:, # The id of the item the price will be associated with. item_id:, + # Configuration for max_group_tiered_package pricing max_group_tiered_package_config:, + # The pricing model type model_type:, # The name of the price. name:, @@ -206,7 +223,8 @@ module Orb { cadence: Orb::NewPlanMaxGroupTieredPackagePrice::Cadence::OrSymbol, item_id: String, - max_group_tiered_package_config: T::Hash[Symbol, T.anything], + max_group_tiered_package_config: + Orb::NewPlanMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig, model_type: Orb::NewPlanMaxGroupTieredPackagePrice::ModelType::OrSymbol, name: String, @@ -290,6 +308,109 @@ module Orb end end + class MaxGroupTieredPackageConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewPlanMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig, + Orb::Internal::AnyHash + ) + end + + # The event property used to group before tiering the group with the highest value + sig { returns(String) } + attr_accessor :grouping_key + + # Package size + sig { returns(String) } + attr_accessor :package_size + + # Apply tiered pricing to the largest group after grouping with the provided key. + sig do + returns( + T::Array[ + Orb::NewPlanMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig::Tier + ] + ) + end + attr_accessor :tiers + + # Configuration for max_group_tiered_package pricing + sig do + params( + grouping_key: String, + package_size: String, + tiers: + T::Array[ + Orb::NewPlanMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # The event property used to group before tiering the group with the highest value + grouping_key:, + # Package size + package_size:, + # Apply tiered pricing to the largest group after grouping with the provided key. + tiers: + ) + end + + sig do + override.returns( + { + grouping_key: String, + package_size: String, + tiers: + T::Array[ + Orb::NewPlanMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig::Tier + ] + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewPlanMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Per unit amount + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a single tier + sig do + params(tier_lower_bound: String, unit_amount: String).returns( + T.attached_class + ) + end + def self.new( + # Tier lower bound + tier_lower_bound:, + # Per unit amount + unit_amount: + ) + end + + sig do + override.returns({ tier_lower_bound: String, unit_amount: String }) + end + def to_hash + end + end + end + + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_plan_minimum_composite_price.rbi b/rbi/orb/models/new_plan_minimum_composite_price.rbi index ef0e9dfc..884d363a 100644 --- a/rbi/orb/models/new_plan_minimum_composite_price.rbi +++ b/rbi/orb/models/new_plan_minimum_composite_price.rbi @@ -16,6 +16,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # Configuration for minimum pricing sig { returns(Orb::NewPlanMinimumCompositePrice::MinimumConfig) } attr_reader :minimum_config @@ -27,6 +28,7 @@ module Orb end attr_writer :minimum_config + # The pricing model type sig { returns(Orb::NewPlanMinimumCompositePrice::ModelType::OrSymbol) } attr_accessor :model_type @@ -165,7 +167,9 @@ module Orb cadence:, # The id of the item the price will be associated with. item_id:, + # Configuration for minimum pricing minimum_config:, + # The pricing model type model_type:, # The name of the price. name:, @@ -306,35 +310,35 @@ module Orb sig { returns(String) } attr_accessor :minimum_amount - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. + # If true, subtotals from this price are prorated based on the service period sig { returns(T.nilable(T::Boolean)) } - attr_accessor :prorated + attr_reader :prorated + sig { params(prorated: T::Boolean).void } + attr_writer :prorated + + # Configuration for minimum pricing sig do - params( - minimum_amount: String, - prorated: T.nilable(T::Boolean) - ).returns(T.attached_class) + params(minimum_amount: String, prorated: T::Boolean).returns( + T.attached_class + ) end def self.new( # The minimum amount to apply minimum_amount:, - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. + # If true, subtotals from this price are prorated based on the service period prorated: nil ) end sig do - override.returns( - { minimum_amount: String, prorated: T.nilable(T::Boolean) } - ) + override.returns({ minimum_amount: String, prorated: T::Boolean }) end def to_hash end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_plan_package_price.rbi b/rbi/orb/models/new_plan_package_price.rbi index bdc4ea63..56c9afc8 100644 --- a/rbi/orb/models/new_plan_package_price.rbi +++ b/rbi/orb/models/new_plan_package_price.rbi @@ -14,6 +14,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Orb::NewPlanPackagePrice::ModelType::OrSymbol) } attr_accessor :model_type @@ -21,6 +22,7 @@ module Orb sig { returns(String) } attr_accessor :name + # Configuration for package pricing sig { returns(Orb::PackageConfig) } attr_reader :package_config @@ -157,9 +159,11 @@ module Orb cadence:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for package pricing package_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -263,6 +267,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_plan_package_with_allocation_price.rbi b/rbi/orb/models/new_plan_package_with_allocation_price.rbi index 55290bfc..3a2bbfd5 100644 --- a/rbi/orb/models/new_plan_package_with_allocation_price.rbi +++ b/rbi/orb/models/new_plan_package_with_allocation_price.rbi @@ -16,6 +16,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns(Orb::NewPlanPackageWithAllocationPrice::ModelType::OrSymbol) end @@ -25,8 +26,21 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :package_with_allocation_config + # Configuration for package_with_allocation pricing + sig do + returns( + Orb::NewPlanPackageWithAllocationPrice::PackageWithAllocationConfig + ) + end + attr_reader :package_with_allocation_config + + sig do + params( + package_with_allocation_config: + Orb::NewPlanPackageWithAllocationPrice::PackageWithAllocationConfig::OrHash + ).void + end + attr_writer :package_with_allocation_config # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -129,7 +143,8 @@ module Orb model_type: Orb::NewPlanPackageWithAllocationPrice::ModelType::OrSymbol, name: String, - package_with_allocation_config: T::Hash[Symbol, T.anything], + package_with_allocation_config: + Orb::NewPlanPackageWithAllocationPrice::PackageWithAllocationConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -159,9 +174,11 @@ module Orb cadence:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for package_with_allocation pricing package_with_allocation_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -209,7 +226,8 @@ module Orb model_type: Orb::NewPlanPackageWithAllocationPrice::ModelType::OrSymbol, name: String, - package_with_allocation_config: T::Hash[Symbol, T.anything], + package_with_allocation_config: + Orb::NewPlanPackageWithAllocationPrice::PackageWithAllocationConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -290,6 +308,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum @@ -315,6 +334,54 @@ module Orb def self.values end end + + class PackageWithAllocationConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewPlanPackageWithAllocationPrice::PackageWithAllocationConfig, + Orb::Internal::AnyHash + ) + end + + # Usage allocation + sig { returns(String) } + attr_accessor :allocation + + # Price per package + sig { returns(String) } + attr_accessor :package_amount + + # Package size + sig { returns(String) } + attr_accessor :package_size + + # Configuration for package_with_allocation pricing + sig do + params( + allocation: String, + package_amount: String, + package_size: String + ).returns(T.attached_class) + end + def self.new( + # Usage allocation + allocation:, + # Price per package + package_amount:, + # Package size + package_size: + ) + end + + sig do + override.returns( + { allocation: String, package_amount: String, package_size: String } + ) + end + def to_hash + end + end end end end diff --git a/rbi/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbi b/rbi/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbi index e88561b3..11c617eb 100644 --- a/rbi/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbi +++ b/rbi/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbi @@ -23,6 +23,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns( Orb::NewPlanScalableMatrixWithTieredPricingPrice::ModelType::OrSymbol @@ -34,8 +35,21 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :scalable_matrix_with_tiered_pricing_config + # Configuration for scalable_matrix_with_tiered_pricing pricing + sig do + returns( + Orb::NewPlanScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig + ) + end + attr_reader :scalable_matrix_with_tiered_pricing_config + + sig do + params( + scalable_matrix_with_tiered_pricing_config: + Orb::NewPlanScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::OrHash + ).void + end + attr_writer :scalable_matrix_with_tiered_pricing_config # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -140,7 +154,7 @@ module Orb Orb::NewPlanScalableMatrixWithTieredPricingPrice::ModelType::OrSymbol, name: String, scalable_matrix_with_tiered_pricing_config: - T::Hash[Symbol, T.anything], + Orb::NewPlanScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -170,9 +184,11 @@ module Orb cadence:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for scalable_matrix_with_tiered_pricing pricing scalable_matrix_with_tiered_pricing_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -222,7 +238,7 @@ module Orb Orb::NewPlanScalableMatrixWithTieredPricingPrice::ModelType::OrSymbol, name: String, scalable_matrix_with_tiered_pricing_config: - T::Hash[Symbol, T.anything], + Orb::NewPlanScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -306,6 +322,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum @@ -334,6 +351,180 @@ module Orb def self.values end end + + class ScalableMatrixWithTieredPricingConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewPlanScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig, + Orb::Internal::AnyHash + ) + end + + # Used for the scalable matrix first dimension + sig { returns(String) } + attr_accessor :first_dimension + + # Apply a scaling factor to each dimension + sig do + returns( + T::Array[ + Orb::NewPlanScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor + ] + ) + end + attr_accessor :matrix_scaling_factors + + # Tier pricing structure + sig do + returns( + T::Array[ + Orb::NewPlanScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::Tier + ] + ) + end + attr_accessor :tiers + + # Used for the scalable matrix second dimension (optional) + sig { returns(T.nilable(String)) } + attr_accessor :second_dimension + + # Configuration for scalable_matrix_with_tiered_pricing pricing + sig do + params( + first_dimension: String, + matrix_scaling_factors: + T::Array[ + Orb::NewPlanScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor::OrHash + ], + tiers: + T::Array[ + Orb::NewPlanScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::Tier::OrHash + ], + second_dimension: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # Used for the scalable matrix first dimension + first_dimension:, + # Apply a scaling factor to each dimension + matrix_scaling_factors:, + # Tier pricing structure + tiers:, + # Used for the scalable matrix second dimension (optional) + second_dimension: nil + ) + end + + sig do + override.returns( + { + first_dimension: String, + matrix_scaling_factors: + T::Array[ + Orb::NewPlanScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor + ], + tiers: + T::Array[ + Orb::NewPlanScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::Tier + ], + second_dimension: T.nilable(String) + } + ) + end + def to_hash + end + + class MatrixScalingFactor < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewPlanScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor, + Orb::Internal::AnyHash + ) + end + + # First dimension value + sig { returns(String) } + attr_accessor :first_dimension_value + + # Scaling factor + sig { returns(String) } + attr_accessor :scaling_factor + + # Second dimension value (optional) + sig { returns(T.nilable(String)) } + attr_accessor :second_dimension_value + + # Configuration for a single matrix scaling factor + sig do + params( + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # First dimension value + first_dimension_value:, + # Scaling factor + scaling_factor:, + # Second dimension value (optional) + second_dimension_value: nil + ) + end + + sig do + override.returns( + { + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: T.nilable(String) + } + ) + end + def to_hash + end + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewPlanScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Per unit amount + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a single tier entry with business logic + sig do + params(tier_lower_bound: String, unit_amount: String).returns( + T.attached_class + ) + end + def self.new( + # Tier lower bound + tier_lower_bound:, + # Per unit amount + unit_amount: + ) + end + + sig do + override.returns({ tier_lower_bound: String, unit_amount: String }) + end + def to_hash + end + end + end end end end diff --git a/rbi/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbi b/rbi/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbi index f07426ad..f5449ee5 100644 --- a/rbi/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbi +++ b/rbi/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbi @@ -23,6 +23,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns( Orb::NewPlanScalableMatrixWithUnitPricingPrice::ModelType::OrSymbol @@ -34,8 +35,21 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :scalable_matrix_with_unit_pricing_config + # Configuration for scalable_matrix_with_unit_pricing pricing + sig do + returns( + Orb::NewPlanScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig + ) + end + attr_reader :scalable_matrix_with_unit_pricing_config + + sig do + params( + scalable_matrix_with_unit_pricing_config: + Orb::NewPlanScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig::OrHash + ).void + end + attr_writer :scalable_matrix_with_unit_pricing_config # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -139,7 +153,8 @@ module Orb model_type: Orb::NewPlanScalableMatrixWithUnitPricingPrice::ModelType::OrSymbol, name: String, - scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], + scalable_matrix_with_unit_pricing_config: + Orb::NewPlanScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -169,9 +184,11 @@ module Orb cadence:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for scalable_matrix_with_unit_pricing pricing scalable_matrix_with_unit_pricing_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -221,7 +238,7 @@ module Orb Orb::NewPlanScalableMatrixWithUnitPricingPrice::ModelType::OrSymbol, name: String, scalable_matrix_with_unit_pricing_config: - T::Hash[Symbol, T.anything], + Orb::NewPlanScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -305,6 +322,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum @@ -333,6 +351,138 @@ module Orb def self.values end end + + class ScalableMatrixWithUnitPricingConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewPlanScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig, + Orb::Internal::AnyHash + ) + end + + # Used to determine the unit rate + sig { returns(String) } + attr_accessor :first_dimension + + # Apply a scaling factor to each dimension + sig do + returns( + T::Array[ + Orb::NewPlanScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor + ] + ) + end + attr_accessor :matrix_scaling_factors + + # The final unit price to rate against the output of the matrix + sig { returns(String) } + attr_accessor :unit_price + + # If true, the unit price will be prorated to the billing period + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :prorate + + # Used to determine the unit rate (optional) + sig { returns(T.nilable(String)) } + attr_accessor :second_dimension + + # Configuration for scalable_matrix_with_unit_pricing pricing + sig do + params( + first_dimension: String, + matrix_scaling_factors: + T::Array[ + Orb::NewPlanScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor::OrHash + ], + unit_price: String, + prorate: T.nilable(T::Boolean), + second_dimension: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # Used to determine the unit rate + first_dimension:, + # Apply a scaling factor to each dimension + matrix_scaling_factors:, + # The final unit price to rate against the output of the matrix + unit_price:, + # If true, the unit price will be prorated to the billing period + prorate: nil, + # Used to determine the unit rate (optional) + second_dimension: nil + ) + end + + sig do + override.returns( + { + first_dimension: String, + matrix_scaling_factors: + T::Array[ + Orb::NewPlanScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor + ], + unit_price: String, + prorate: T.nilable(T::Boolean), + second_dimension: T.nilable(String) + } + ) + end + def to_hash + end + + class MatrixScalingFactor < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewPlanScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor, + Orb::Internal::AnyHash + ) + end + + # First dimension value + sig { returns(String) } + attr_accessor :first_dimension_value + + # Scaling factor + sig { returns(String) } + attr_accessor :scaling_factor + + # Second dimension value (optional) + sig { returns(T.nilable(String)) } + attr_accessor :second_dimension_value + + # Configuration for a single matrix scaling factor + sig do + params( + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # First dimension value + first_dimension_value:, + # Scaling factor + scaling_factor:, + # Second dimension value (optional) + second_dimension_value: nil + ) + end + + sig do + override.returns( + { + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: T.nilable(String) + } + ) + end + def to_hash + end + end + end end end end diff --git a/rbi/orb/models/new_plan_threshold_total_amount_price.rbi b/rbi/orb/models/new_plan_threshold_total_amount_price.rbi index 173d8628..e35a4133 100644 --- a/rbi/orb/models/new_plan_threshold_total_amount_price.rbi +++ b/rbi/orb/models/new_plan_threshold_total_amount_price.rbi @@ -16,6 +16,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns(Orb::NewPlanThresholdTotalAmountPrice::ModelType::OrSymbol) end @@ -25,8 +26,21 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :threshold_total_amount_config + # Configuration for threshold_total_amount pricing + sig do + returns( + Orb::NewPlanThresholdTotalAmountPrice::ThresholdTotalAmountConfig + ) + end + attr_reader :threshold_total_amount_config + + sig do + params( + threshold_total_amount_config: + Orb::NewPlanThresholdTotalAmountPrice::ThresholdTotalAmountConfig::OrHash + ).void + end + attr_writer :threshold_total_amount_config # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -129,7 +143,8 @@ module Orb model_type: Orb::NewPlanThresholdTotalAmountPrice::ModelType::OrSymbol, name: String, - threshold_total_amount_config: T::Hash[Symbol, T.anything], + threshold_total_amount_config: + Orb::NewPlanThresholdTotalAmountPrice::ThresholdTotalAmountConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -159,9 +174,11 @@ module Orb cadence:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for threshold_total_amount pricing threshold_total_amount_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -209,7 +226,8 @@ module Orb model_type: Orb::NewPlanThresholdTotalAmountPrice::ModelType::OrSymbol, name: String, - threshold_total_amount_config: T::Hash[Symbol, T.anything], + threshold_total_amount_config: + Orb::NewPlanThresholdTotalAmountPrice::ThresholdTotalAmountConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -290,6 +308,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum @@ -315,6 +334,100 @@ module Orb def self.values end end + + class ThresholdTotalAmountConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewPlanThresholdTotalAmountPrice::ThresholdTotalAmountConfig, + Orb::Internal::AnyHash + ) + end + + # When the quantity consumed passes a provided threshold, the configured total + # will be charged + sig do + returns( + T::Array[ + Orb::NewPlanThresholdTotalAmountPrice::ThresholdTotalAmountConfig::ConsumptionTable + ] + ) + end + attr_accessor :consumption_table + + # If true, the unit price will be prorated to the billing period + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :prorate + + # Configuration for threshold_total_amount pricing + sig do + params( + consumption_table: + T::Array[ + Orb::NewPlanThresholdTotalAmountPrice::ThresholdTotalAmountConfig::ConsumptionTable::OrHash + ], + prorate: T.nilable(T::Boolean) + ).returns(T.attached_class) + end + def self.new( + # When the quantity consumed passes a provided threshold, the configured total + # will be charged + consumption_table:, + # If true, the unit price will be prorated to the billing period + prorate: nil + ) + end + + sig do + override.returns( + { + consumption_table: + T::Array[ + Orb::NewPlanThresholdTotalAmountPrice::ThresholdTotalAmountConfig::ConsumptionTable + ], + prorate: T.nilable(T::Boolean) + } + ) + end + def to_hash + end + + class ConsumptionTable < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewPlanThresholdTotalAmountPrice::ThresholdTotalAmountConfig::ConsumptionTable, + Orb::Internal::AnyHash + ) + end + + # Quantity threshold + sig { returns(String) } + attr_accessor :threshold + + # Total amount for this threshold + sig { returns(String) } + attr_accessor :total_amount + + # Configuration for a single threshold + sig do + params(threshold: String, total_amount: String).returns( + T.attached_class + ) + end + def self.new( + # Quantity threshold + threshold:, + # Total amount for this threshold + total_amount: + ) + end + + sig { override.returns({ threshold: String, total_amount: String }) } + def to_hash + end + end + end end end end diff --git a/rbi/orb/models/new_plan_tier_with_proration_price.rbi b/rbi/orb/models/new_plan_tier_with_proration_price.rbi deleted file mode 100644 index 027b3349..00000000 --- a/rbi/orb/models/new_plan_tier_with_proration_price.rbi +++ /dev/null @@ -1,314 +0,0 @@ -# typed: strong - -module Orb - module Models - class NewPlanTierWithProrationPrice < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any(Orb::NewPlanTierWithProrationPrice, Orb::Internal::AnyHash) - end - - # The cadence to bill for this price on. - sig { returns(Orb::NewPlanTierWithProrationPrice::Cadence::OrSymbol) } - attr_accessor :cadence - - # The id of the item the price will be associated with. - sig { returns(String) } - attr_accessor :item_id - - sig { returns(Orb::NewPlanTierWithProrationPrice::ModelType::OrSymbol) } - attr_accessor :model_type - - # The name of the price. - sig { returns(String) } - attr_accessor :name - - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :tiered_with_proration_config - - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - sig { returns(T.nilable(String)) } - attr_accessor :billable_metric_id - - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :billed_in_advance - - # For custom cadence: specifies the duration of the billing period in days or - # months. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :billing_cycle_configuration - - sig do - params( - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :billing_cycle_configuration - - # The per unit conversion rate of the price currency to the invoicing currency. - sig { returns(T.nilable(Float)) } - attr_accessor :conversion_rate - - # The configuration for the rate of the price currency to the invoicing currency. - sig do - returns( - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ) - ) - end - attr_accessor :conversion_rate_config - - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - sig { returns(T.nilable(String)) } - attr_accessor :currency - - # For dimensional price: specifies a price group and dimension values - sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } - attr_reader :dimensional_price_configuration - - sig do - params( - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) - ).void - end - attr_writer :dimensional_price_configuration - - # An alias for the price. - sig { returns(T.nilable(String)) } - attr_accessor :external_price_id - - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - sig { returns(T.nilable(Float)) } - attr_accessor :fixed_price_quantity - - # The property used to group this price on an invoice - sig { returns(T.nilable(String)) } - attr_accessor :invoice_grouping_key - - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :invoicing_cycle_configuration - - sig do - params( - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :invoicing_cycle_configuration - - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - attr_accessor :metadata - - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - sig { returns(T.nilable(String)) } - attr_accessor :reference_id - - sig do - params( - cadence: Orb::NewPlanTierWithProrationPrice::Cadence::OrSymbol, - item_id: String, - model_type: Orb::NewPlanTierWithProrationPrice::ModelType::OrSymbol, - name: String, - tiered_with_proration_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig::OrHash, - Orb::TieredConversionRateConfig::OrHash - ) - ), - currency: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - ).returns(T.attached_class) - end - def self.new( - # The cadence to bill for this price on. - cadence:, - # The id of the item the price will be associated with. - item_id:, - model_type:, - # The name of the price. - name:, - tiered_with_proration_config:, - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - billable_metric_id: nil, - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - billed_in_advance: nil, - # For custom cadence: specifies the duration of the billing period in days or - # months. - billing_cycle_configuration: nil, - # The per unit conversion rate of the price currency to the invoicing currency. - conversion_rate: nil, - # The configuration for the rate of the price currency to the invoicing currency. - conversion_rate_config: nil, - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - currency: nil, - # For dimensional price: specifies a price group and dimension values - dimensional_price_configuration: nil, - # An alias for the price. - external_price_id: nil, - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - fixed_price_quantity: nil, - # The property used to group this price on an invoice - invoice_grouping_key: nil, - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - invoicing_cycle_configuration: nil, - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - metadata: nil, - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - reference_id: nil - ) - end - - sig do - override.returns( - { - cadence: Orb::NewPlanTierWithProrationPrice::Cadence::OrSymbol, - item_id: String, - model_type: Orb::NewPlanTierWithProrationPrice::ModelType::OrSymbol, - name: String, - tiered_with_proration_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ), - currency: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) - end - def to_hash - end - - # The cadence to bill for this price on. - module Cadence - extend Orb::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, Orb::NewPlanTierWithProrationPrice::Cadence) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ANNUAL = - T.let( - :annual, - Orb::NewPlanTierWithProrationPrice::Cadence::TaggedSymbol - ) - SEMI_ANNUAL = - T.let( - :semi_annual, - Orb::NewPlanTierWithProrationPrice::Cadence::TaggedSymbol - ) - MONTHLY = - T.let( - :monthly, - Orb::NewPlanTierWithProrationPrice::Cadence::TaggedSymbol - ) - QUARTERLY = - T.let( - :quarterly, - Orb::NewPlanTierWithProrationPrice::Cadence::TaggedSymbol - ) - ONE_TIME = - T.let( - :one_time, - Orb::NewPlanTierWithProrationPrice::Cadence::TaggedSymbol - ) - CUSTOM = - T.let( - :custom, - Orb::NewPlanTierWithProrationPrice::Cadence::TaggedSymbol - ) - - sig do - override.returns( - T::Array[Orb::NewPlanTierWithProrationPrice::Cadence::TaggedSymbol] - ) - end - def self.values - end - end - - module ModelType - extend Orb::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, Orb::NewPlanTierWithProrationPrice::ModelType) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - TIERED_WITH_PRORATION = - T.let( - :tiered_with_proration, - Orb::NewPlanTierWithProrationPrice::ModelType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Orb::NewPlanTierWithProrationPrice::ModelType::TaggedSymbol - ] - ) - end - def self.values - end - end - end - end -end diff --git a/rbi/orb/models/new_plan_tiered_package_price.rbi b/rbi/orb/models/new_plan_tiered_package_price.rbi index 8da63a21..6149eee8 100644 --- a/rbi/orb/models/new_plan_tiered_package_price.rbi +++ b/rbi/orb/models/new_plan_tiered_package_price.rbi @@ -16,6 +16,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Orb::NewPlanTieredPackagePrice::ModelType::OrSymbol) } attr_accessor :model_type @@ -23,8 +24,17 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :tiered_package_config + # Configuration for tiered_package pricing + sig { returns(Orb::NewPlanTieredPackagePrice::TieredPackageConfig) } + attr_reader :tiered_package_config + + sig do + params( + tiered_package_config: + Orb::NewPlanTieredPackagePrice::TieredPackageConfig::OrHash + ).void + end + attr_writer :tiered_package_config # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -126,7 +136,8 @@ module Orb item_id: String, model_type: Orb::NewPlanTieredPackagePrice::ModelType::OrSymbol, name: String, - tiered_package_config: T::Hash[Symbol, T.anything], + tiered_package_config: + Orb::NewPlanTieredPackagePrice::TieredPackageConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -156,9 +167,11 @@ module Orb cadence:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for tiered_package pricing tiered_package_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -205,7 +218,8 @@ module Orb item_id: String, model_type: Orb::NewPlanTieredPackagePrice::ModelType::OrSymbol, name: String, - tiered_package_config: T::Hash[Symbol, T.anything], + tiered_package_config: + Orb::NewPlanTieredPackagePrice::TieredPackageConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -275,6 +289,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum @@ -298,6 +313,100 @@ module Orb def self.values end end + + class TieredPackageConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewPlanTieredPackagePrice::TieredPackageConfig, + Orb::Internal::AnyHash + ) + end + + # Package size + sig { returns(String) } + attr_accessor :package_size + + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + sig do + returns( + T::Array[Orb::NewPlanTieredPackagePrice::TieredPackageConfig::Tier] + ) + end + attr_accessor :tiers + + # Configuration for tiered_package pricing + sig do + params( + package_size: String, + tiers: + T::Array[ + Orb::NewPlanTieredPackagePrice::TieredPackageConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Package size + package_size:, + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + tiers: + ) + end + + sig do + override.returns( + { + package_size: String, + tiers: + T::Array[ + Orb::NewPlanTieredPackagePrice::TieredPackageConfig::Tier + ] + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewPlanTieredPackagePrice::TieredPackageConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Price per package + sig { returns(String) } + attr_accessor :per_unit + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Configuration for a single tier with business logic + sig do + params(per_unit: String, tier_lower_bound: String).returns( + T.attached_class + ) + end + def self.new( + # Price per package + per_unit:, + # Tier lower bound + tier_lower_bound: + ) + end + + sig do + override.returns({ per_unit: String, tier_lower_bound: String }) + end + def to_hash + end + end + end end end end diff --git a/rbi/orb/models/new_plan_tiered_package_with_minimum_price.rbi b/rbi/orb/models/new_plan_tiered_package_with_minimum_price.rbi index 5c485d03..6a676023 100644 --- a/rbi/orb/models/new_plan_tiered_package_with_minimum_price.rbi +++ b/rbi/orb/models/new_plan_tiered_package_with_minimum_price.rbi @@ -21,6 +21,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns(Orb::NewPlanTieredPackageWithMinimumPrice::ModelType::OrSymbol) end @@ -30,8 +31,21 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :tiered_package_with_minimum_config + # Configuration for tiered_package_with_minimum pricing + sig do + returns( + Orb::NewPlanTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig + ) + end + attr_reader :tiered_package_with_minimum_config + + sig do + params( + tiered_package_with_minimum_config: + Orb::NewPlanTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::OrHash + ).void + end + attr_writer :tiered_package_with_minimum_config # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -134,7 +148,8 @@ module Orb model_type: Orb::NewPlanTieredPackageWithMinimumPrice::ModelType::OrSymbol, name: String, - tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], + tiered_package_with_minimum_config: + Orb::NewPlanTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -164,9 +179,11 @@ module Orb cadence:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for tiered_package_with_minimum pricing tiered_package_with_minimum_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -215,7 +232,8 @@ module Orb model_type: Orb::NewPlanTieredPackageWithMinimumPrice::ModelType::OrSymbol, name: String, - tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], + tiered_package_with_minimum_config: + Orb::NewPlanTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -296,6 +314,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum @@ -321,6 +340,116 @@ module Orb def self.values end end + + class TieredPackageWithMinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewPlanTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig, + Orb::Internal::AnyHash + ) + end + + # Package size + sig { returns(Float) } + attr_accessor :package_size + + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + sig do + returns( + T::Array[ + Orb::NewPlanTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::Tier + ] + ) + end + attr_accessor :tiers + + # Configuration for tiered_package_with_minimum pricing + sig do + params( + package_size: Float, + tiers: + T::Array[ + Orb::NewPlanTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Package size + package_size:, + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + tiers: + ) + end + + sig do + override.returns( + { + package_size: Float, + tiers: + T::Array[ + Orb::NewPlanTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::Tier + ] + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewPlanTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Minimum amount + sig { returns(String) } + attr_accessor :minimum_amount + + # Price per package + sig { returns(String) } + attr_accessor :per_unit + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Configuration for a single tier + sig do + params( + minimum_amount: String, + per_unit: String, + tier_lower_bound: String + ).returns(T.attached_class) + end + def self.new( + # Minimum amount + minimum_amount:, + # Price per package + per_unit:, + # Tier lower bound + tier_lower_bound: + ) + end + + sig do + override.returns( + { + minimum_amount: String, + per_unit: String, + tier_lower_bound: String + } + ) + end + def to_hash + end + end + end end end end diff --git a/rbi/orb/models/new_plan_tiered_price.rbi b/rbi/orb/models/new_plan_tiered_price.rbi index b00b191f..20ea748f 100644 --- a/rbi/orb/models/new_plan_tiered_price.rbi +++ b/rbi/orb/models/new_plan_tiered_price.rbi @@ -14,6 +14,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Orb::NewPlanTieredPrice::ModelType::OrSymbol) } attr_accessor :model_type @@ -21,6 +22,7 @@ module Orb sig { returns(String) } attr_accessor :name + # Configuration for tiered pricing sig { returns(Orb::TieredConfig) } attr_reader :tiered_config @@ -157,9 +159,11 @@ module Orb cadence:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for tiered pricing tiered_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -263,6 +267,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_plan_tiered_with_minimum_price.rbi b/rbi/orb/models/new_plan_tiered_with_minimum_price.rbi index 6b1c0757..960b55db 100644 --- a/rbi/orb/models/new_plan_tiered_with_minimum_price.rbi +++ b/rbi/orb/models/new_plan_tiered_with_minimum_price.rbi @@ -16,6 +16,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Orb::NewPlanTieredWithMinimumPrice::ModelType::OrSymbol) } attr_accessor :model_type @@ -23,8 +24,19 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :tiered_with_minimum_config + # Configuration for tiered_with_minimum pricing + sig do + returns(Orb::NewPlanTieredWithMinimumPrice::TieredWithMinimumConfig) + end + attr_reader :tiered_with_minimum_config + + sig do + params( + tiered_with_minimum_config: + Orb::NewPlanTieredWithMinimumPrice::TieredWithMinimumConfig::OrHash + ).void + end + attr_writer :tiered_with_minimum_config # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -126,7 +138,8 @@ module Orb item_id: String, model_type: Orb::NewPlanTieredWithMinimumPrice::ModelType::OrSymbol, name: String, - tiered_with_minimum_config: T::Hash[Symbol, T.anything], + tiered_with_minimum_config: + Orb::NewPlanTieredWithMinimumPrice::TieredWithMinimumConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -156,9 +169,11 @@ module Orb cadence:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for tiered_with_minimum pricing tiered_with_minimum_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -205,7 +220,8 @@ module Orb item_id: String, model_type: Orb::NewPlanTieredWithMinimumPrice::ModelType::OrSymbol, name: String, - tiered_with_minimum_config: T::Hash[Symbol, T.anything], + tiered_with_minimum_config: + Orb::NewPlanTieredWithMinimumPrice::TieredWithMinimumConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -284,6 +300,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum @@ -309,6 +326,130 @@ module Orb def self.values end end + + class TieredWithMinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewPlanTieredWithMinimumPrice::TieredWithMinimumConfig, + Orb::Internal::AnyHash + ) + end + + # Tiered pricing with a minimum amount dependent on the volume tier. Tiers are + # defined using exclusive lower bounds. + sig do + returns( + T::Array[ + Orb::NewPlanTieredWithMinimumPrice::TieredWithMinimumConfig::Tier + ] + ) + end + attr_accessor :tiers + + # If true, tiers with an accrued amount of 0 will not be included in the rating. + sig { returns(T.nilable(T::Boolean)) } + attr_reader :hide_zero_amount_tiers + + sig { params(hide_zero_amount_tiers: T::Boolean).void } + attr_writer :hide_zero_amount_tiers + + # If true, the unit price will be prorated to the billing period + sig { returns(T.nilable(T::Boolean)) } + attr_reader :prorate + + sig { params(prorate: T::Boolean).void } + attr_writer :prorate + + # Configuration for tiered_with_minimum pricing + sig do + params( + tiers: + T::Array[ + Orb::NewPlanTieredWithMinimumPrice::TieredWithMinimumConfig::Tier::OrHash + ], + hide_zero_amount_tiers: T::Boolean, + prorate: T::Boolean + ).returns(T.attached_class) + end + def self.new( + # Tiered pricing with a minimum amount dependent on the volume tier. Tiers are + # defined using exclusive lower bounds. + tiers:, + # If true, tiers with an accrued amount of 0 will not be included in the rating. + hide_zero_amount_tiers: nil, + # If true, the unit price will be prorated to the billing period + prorate: nil + ) + end + + sig do + override.returns( + { + tiers: + T::Array[ + Orb::NewPlanTieredWithMinimumPrice::TieredWithMinimumConfig::Tier + ], + hide_zero_amount_tiers: T::Boolean, + prorate: T::Boolean + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewPlanTieredWithMinimumPrice::TieredWithMinimumConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Minimum amount + sig { returns(String) } + attr_accessor :minimum_amount + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Per unit amount + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a single tier + sig do + params( + minimum_amount: String, + tier_lower_bound: String, + unit_amount: String + ).returns(T.attached_class) + end + def self.new( + # Minimum amount + minimum_amount:, + # Tier lower bound + tier_lower_bound:, + # Per unit amount + unit_amount: + ) + end + + sig do + override.returns( + { + minimum_amount: String, + tier_lower_bound: String, + unit_amount: String + } + ) + end + def to_hash + end + end + end end end end diff --git a/rbi/orb/models/new_plan_unit_price.rbi b/rbi/orb/models/new_plan_unit_price.rbi index 2a4ed766..77cb026b 100644 --- a/rbi/orb/models/new_plan_unit_price.rbi +++ b/rbi/orb/models/new_plan_unit_price.rbi @@ -14,6 +14,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Orb::NewPlanUnitPrice::ModelType::OrSymbol) } attr_accessor :model_type @@ -21,6 +22,7 @@ module Orb sig { returns(String) } attr_accessor :name + # Configuration for unit pricing sig { returns(Orb::UnitConfig) } attr_reader :unit_config @@ -157,9 +159,11 @@ module Orb cadence:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for unit pricing unit_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -262,6 +266,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_plan_unit_with_percent_price.rbi b/rbi/orb/models/new_plan_unit_with_percent_price.rbi index 65135664..6cac6210 100644 --- a/rbi/orb/models/new_plan_unit_with_percent_price.rbi +++ b/rbi/orb/models/new_plan_unit_with_percent_price.rbi @@ -16,6 +16,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Orb::NewPlanUnitWithPercentPrice::ModelType::OrSymbol) } attr_accessor :model_type @@ -23,8 +24,17 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :unit_with_percent_config + # Configuration for unit_with_percent pricing + sig { returns(Orb::NewPlanUnitWithPercentPrice::UnitWithPercentConfig) } + attr_reader :unit_with_percent_config + + sig do + params( + unit_with_percent_config: + Orb::NewPlanUnitWithPercentPrice::UnitWithPercentConfig::OrHash + ).void + end + attr_writer :unit_with_percent_config # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -126,7 +136,8 @@ module Orb item_id: String, model_type: Orb::NewPlanUnitWithPercentPrice::ModelType::OrSymbol, name: String, - unit_with_percent_config: T::Hash[Symbol, T.anything], + unit_with_percent_config: + Orb::NewPlanUnitWithPercentPrice::UnitWithPercentConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -156,9 +167,11 @@ module Orb cadence:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for unit_with_percent pricing unit_with_percent_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -205,7 +218,8 @@ module Orb item_id: String, model_type: Orb::NewPlanUnitWithPercentPrice::ModelType::OrSymbol, name: String, - unit_with_percent_config: T::Hash[Symbol, T.anything], + unit_with_percent_config: + Orb::NewPlanUnitWithPercentPrice::UnitWithPercentConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -284,6 +298,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum @@ -307,6 +322,40 @@ module Orb def self.values end end + + class UnitWithPercentConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewPlanUnitWithPercentPrice::UnitWithPercentConfig, + Orb::Internal::AnyHash + ) + end + + # What percent, out of 100, of the calculated total to charge + sig { returns(String) } + attr_accessor :percent + + # Rate per unit of usage + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for unit_with_percent pricing + sig do + params(percent: String, unit_amount: String).returns(T.attached_class) + end + def self.new( + # What percent, out of 100, of the calculated total to charge + percent:, + # Rate per unit of usage + unit_amount: + ) + end + + sig { override.returns({ percent: String, unit_amount: String }) } + def to_hash + end + end end end end diff --git a/rbi/orb/models/new_plan_unit_with_proration_price.rbi b/rbi/orb/models/new_plan_unit_with_proration_price.rbi index ddeba166..410a8977 100644 --- a/rbi/orb/models/new_plan_unit_with_proration_price.rbi +++ b/rbi/orb/models/new_plan_unit_with_proration_price.rbi @@ -16,6 +16,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Orb::NewPlanUnitWithProrationPrice::ModelType::OrSymbol) } attr_accessor :model_type @@ -23,8 +24,19 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :unit_with_proration_config + # Configuration for unit_with_proration pricing + sig do + returns(Orb::NewPlanUnitWithProrationPrice::UnitWithProrationConfig) + end + attr_reader :unit_with_proration_config + + sig do + params( + unit_with_proration_config: + Orb::NewPlanUnitWithProrationPrice::UnitWithProrationConfig::OrHash + ).void + end + attr_writer :unit_with_proration_config # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -126,7 +138,8 @@ module Orb item_id: String, model_type: Orb::NewPlanUnitWithProrationPrice::ModelType::OrSymbol, name: String, - unit_with_proration_config: T::Hash[Symbol, T.anything], + unit_with_proration_config: + Orb::NewPlanUnitWithProrationPrice::UnitWithProrationConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -156,9 +169,11 @@ module Orb cadence:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for unit_with_proration pricing unit_with_proration_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -205,7 +220,8 @@ module Orb item_id: String, model_type: Orb::NewPlanUnitWithProrationPrice::ModelType::OrSymbol, name: String, - unit_with_proration_config: T::Hash[Symbol, T.anything], + unit_with_proration_config: + Orb::NewPlanUnitWithProrationPrice::UnitWithProrationConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -284,6 +300,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum @@ -309,6 +326,32 @@ module Orb def self.values end end + + class UnitWithProrationConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewPlanUnitWithProrationPrice::UnitWithProrationConfig, + Orb::Internal::AnyHash + ) + end + + # Rate per unit of usage + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for unit_with_proration pricing + sig { params(unit_amount: String).returns(T.attached_class) } + def self.new( + # Rate per unit of usage + unit_amount: + ) + end + + sig { override.returns({ unit_amount: String }) } + def to_hash + end + end end end end diff --git a/rbi/orb/models/new_subscription_bulk_price.rbi b/rbi/orb/models/new_subscription_bulk_price.rbi index d32fc825..43ef13c0 100644 --- a/rbi/orb/models/new_subscription_bulk_price.rbi +++ b/rbi/orb/models/new_subscription_bulk_price.rbi @@ -8,6 +8,7 @@ module Orb T.any(Orb::NewSubscriptionBulkPrice, Orb::Internal::AnyHash) end + # Configuration for bulk pricing sig { returns(Orb::BulkConfig) } attr_reader :bulk_config @@ -22,6 +23,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Orb::NewSubscriptionBulkPrice::ModelType::OrSymbol) } attr_accessor :model_type @@ -155,11 +157,13 @@ module Orb ).returns(T.attached_class) end def self.new( + # Configuration for bulk pricing bulk_config:, # The cadence to bill for this price on. cadence:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, @@ -273,6 +277,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_subscription_bulk_with_proration_price.rbi b/rbi/orb/models/new_subscription_bulk_with_proration_price.rbi index 8a2559d6..7967bbbe 100644 --- a/rbi/orb/models/new_subscription_bulk_with_proration_price.rbi +++ b/rbi/orb/models/new_subscription_bulk_with_proration_price.rbi @@ -11,8 +11,21 @@ module Orb ) end - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :bulk_with_proration_config + # Configuration for bulk_with_proration pricing + sig do + returns( + Orb::NewSubscriptionBulkWithProrationPrice::BulkWithProrationConfig + ) + end + attr_reader :bulk_with_proration_config + + sig do + params( + bulk_with_proration_config: + Orb::NewSubscriptionBulkWithProrationPrice::BulkWithProrationConfig::OrHash + ).void + end + attr_writer :bulk_with_proration_config # The cadence to bill for this price on. sig do @@ -24,6 +37,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns(Orb::NewSubscriptionBulkWithProrationPrice::ModelType::OrSymbol) end @@ -129,7 +143,8 @@ module Orb sig do params( - bulk_with_proration_config: T::Hash[Symbol, T.anything], + bulk_with_proration_config: + Orb::NewSubscriptionBulkWithProrationPrice::BulkWithProrationConfig::OrHash, cadence: Orb::NewSubscriptionBulkWithProrationPrice::Cadence::OrSymbol, item_id: String, @@ -161,11 +176,13 @@ module Orb ).returns(T.attached_class) end def self.new( + # Configuration for bulk_with_proration pricing bulk_with_proration_config:, # The cadence to bill for this price on. cadence:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, @@ -210,7 +227,8 @@ module Orb sig do override.returns( { - bulk_with_proration_config: T::Hash[Symbol, T.anything], + bulk_with_proration_config: + Orb::NewSubscriptionBulkWithProrationPrice::BulkWithProrationConfig, cadence: Orb::NewSubscriptionBulkWithProrationPrice::Cadence::OrSymbol, item_id: String, @@ -245,6 +263,95 @@ module Orb def to_hash end + class BulkWithProrationConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionBulkWithProrationPrice::BulkWithProrationConfig, + Orb::Internal::AnyHash + ) + end + + # Bulk tiers for rating based on total usage volume + sig do + returns( + T::Array[ + Orb::NewSubscriptionBulkWithProrationPrice::BulkWithProrationConfig::Tier + ] + ) + end + attr_accessor :tiers + + # Configuration for bulk_with_proration pricing + sig do + params( + tiers: + T::Array[ + Orb::NewSubscriptionBulkWithProrationPrice::BulkWithProrationConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Bulk tiers for rating based on total usage volume + tiers: + ) + end + + sig do + override.returns( + { + tiers: + T::Array[ + Orb::NewSubscriptionBulkWithProrationPrice::BulkWithProrationConfig::Tier + ] + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionBulkWithProrationPrice::BulkWithProrationConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Cost per unit + sig { returns(String) } + attr_accessor :unit_amount + + # The lower bound for this tier + sig { returns(T.nilable(String)) } + attr_accessor :tier_lower_bound + + # Configuration for a single bulk pricing tier with proration + sig do + params( + unit_amount: String, + tier_lower_bound: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # Cost per unit + unit_amount:, + # The lower bound for this tier + tier_lower_bound: nil + ) + end + + sig do + override.returns( + { unit_amount: String, tier_lower_bound: T.nilable(String) } + ) + end + def to_hash + end + end + end + # The cadence to bill for this price on. module Cadence extend Orb::Internal::Type::Enum @@ -297,6 +404,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_subscription_cumulative_grouped_bulk_price.rbi b/rbi/orb/models/new_subscription_cumulative_grouped_bulk_price.rbi index 88143f51..ad28ff8b 100644 --- a/rbi/orb/models/new_subscription_cumulative_grouped_bulk_price.rbi +++ b/rbi/orb/models/new_subscription_cumulative_grouped_bulk_price.rbi @@ -19,13 +19,27 @@ module Orb end attr_accessor :cadence - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :cumulative_grouped_bulk_config + # Configuration for cumulative_grouped_bulk pricing + sig do + returns( + Orb::NewSubscriptionCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig + ) + end + attr_reader :cumulative_grouped_bulk_config + + sig do + params( + cumulative_grouped_bulk_config: + Orb::NewSubscriptionCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig::OrHash + ).void + end + attr_writer :cumulative_grouped_bulk_config # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns( Orb::NewSubscriptionCumulativeGroupedBulkPrice::ModelType::OrSymbol @@ -135,7 +149,8 @@ module Orb params( cadence: Orb::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::OrSymbol, - cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], + cumulative_grouped_bulk_config: + Orb::NewSubscriptionCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig::OrHash, item_id: String, model_type: Orb::NewSubscriptionCumulativeGroupedBulkPrice::ModelType::OrSymbol, @@ -167,9 +182,11 @@ module Orb def self.new( # The cadence to bill for this price on. cadence:, + # Configuration for cumulative_grouped_bulk pricing cumulative_grouped_bulk_config:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, @@ -216,7 +233,8 @@ module Orb { cadence: Orb::NewSubscriptionCumulativeGroupedBulkPrice::Cadence::OrSymbol, - cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], + cumulative_grouped_bulk_config: + Orb::NewSubscriptionCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig, item_id: String, model_type: Orb::NewSubscriptionCumulativeGroupedBulkPrice::ModelType::OrSymbol, @@ -304,6 +322,115 @@ module Orb end end + class CumulativeGroupedBulkConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig, + Orb::Internal::AnyHash + ) + end + + # Each tier lower bound must have the same group of values. + sig do + returns( + T::Array[ + Orb::NewSubscriptionCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig::DimensionValue + ] + ) + end + attr_accessor :dimension_values + + # Grouping key name + sig { returns(String) } + attr_accessor :group + + # Configuration for cumulative_grouped_bulk pricing + sig do + params( + dimension_values: + T::Array[ + Orb::NewSubscriptionCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig::DimensionValue::OrHash + ], + group: String + ).returns(T.attached_class) + end + def self.new( + # Each tier lower bound must have the same group of values. + dimension_values:, + # Grouping key name + group: + ) + end + + sig do + override.returns( + { + dimension_values: + T::Array[ + Orb::NewSubscriptionCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig::DimensionValue + ], + group: String + } + ) + end + def to_hash + end + + class DimensionValue < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig::DimensionValue, + Orb::Internal::AnyHash + ) + end + + # Grouping key value + sig { returns(String) } + attr_accessor :grouping_key + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Unit amount for this combination + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a dimension value entry + sig do + params( + grouping_key: String, + tier_lower_bound: String, + unit_amount: String + ).returns(T.attached_class) + end + def self.new( + # Grouping key value + grouping_key:, + # Tier lower bound + tier_lower_bound:, + # Unit amount for this combination + unit_amount: + ) + end + + sig do + override.returns( + { + grouping_key: String, + tier_lower_bound: String, + unit_amount: String + } + ) + end + def to_hash + end + end + end + + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_subscription_grouped_allocation_price.rbi b/rbi/orb/models/new_subscription_grouped_allocation_price.rbi index 34d184a6..8ced1803 100644 --- a/rbi/orb/models/new_subscription_grouped_allocation_price.rbi +++ b/rbi/orb/models/new_subscription_grouped_allocation_price.rbi @@ -17,13 +17,27 @@ module Orb end attr_accessor :cadence - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_allocation_config + # Configuration for grouped_allocation pricing + sig do + returns( + Orb::NewSubscriptionGroupedAllocationPrice::GroupedAllocationConfig + ) + end + attr_reader :grouped_allocation_config + + sig do + params( + grouped_allocation_config: + Orb::NewSubscriptionGroupedAllocationPrice::GroupedAllocationConfig::OrHash + ).void + end + attr_writer :grouped_allocation_config # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns(Orb::NewSubscriptionGroupedAllocationPrice::ModelType::OrSymbol) end @@ -131,7 +145,8 @@ module Orb params( cadence: Orb::NewSubscriptionGroupedAllocationPrice::Cadence::OrSymbol, - grouped_allocation_config: T::Hash[Symbol, T.anything], + grouped_allocation_config: + Orb::NewSubscriptionGroupedAllocationPrice::GroupedAllocationConfig::OrHash, item_id: String, model_type: Orb::NewSubscriptionGroupedAllocationPrice::ModelType::OrSymbol, @@ -163,9 +178,11 @@ module Orb def self.new( # The cadence to bill for this price on. cadence:, + # Configuration for grouped_allocation pricing grouped_allocation_config:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, @@ -212,7 +229,8 @@ module Orb { cadence: Orb::NewSubscriptionGroupedAllocationPrice::Cadence::OrSymbol, - grouped_allocation_config: T::Hash[Symbol, T.anything], + grouped_allocation_config: + Orb::NewSubscriptionGroupedAllocationPrice::GroupedAllocationConfig, item_id: String, model_type: Orb::NewSubscriptionGroupedAllocationPrice::ModelType::OrSymbol, @@ -297,6 +315,59 @@ module Orb end end + class GroupedAllocationConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionGroupedAllocationPrice::GroupedAllocationConfig, + Orb::Internal::AnyHash + ) + end + + # Usage allocation per group + sig { returns(String) } + attr_accessor :allocation + + # How to determine the groups that should each be allocated some quantity + sig { returns(String) } + attr_accessor :grouping_key + + # Unit rate for post-allocation + sig { returns(String) } + attr_accessor :overage_unit_rate + + # Configuration for grouped_allocation pricing + sig do + params( + allocation: String, + grouping_key: String, + overage_unit_rate: String + ).returns(T.attached_class) + end + def self.new( + # Usage allocation per group + allocation:, + # How to determine the groups that should each be allocated some quantity + grouping_key:, + # Unit rate for post-allocation + overage_unit_rate: + ) + end + + sig do + override.returns( + { + allocation: String, + grouping_key: String, + overage_unit_rate: String + } + ) + end + def to_hash + end + end + + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_subscription_grouped_tiered_package_price.rbi b/rbi/orb/models/new_subscription_grouped_tiered_package_price.rbi index 398b7217..c9e3d55a 100644 --- a/rbi/orb/models/new_subscription_grouped_tiered_package_price.rbi +++ b/rbi/orb/models/new_subscription_grouped_tiered_package_price.rbi @@ -19,13 +19,27 @@ module Orb end attr_accessor :cadence - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_tiered_package_config + # Configuration for grouped_tiered_package pricing + sig do + returns( + Orb::NewSubscriptionGroupedTieredPackagePrice::GroupedTieredPackageConfig + ) + end + attr_reader :grouped_tiered_package_config + + sig do + params( + grouped_tiered_package_config: + Orb::NewSubscriptionGroupedTieredPackagePrice::GroupedTieredPackageConfig::OrHash + ).void + end + attr_writer :grouped_tiered_package_config # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns( Orb::NewSubscriptionGroupedTieredPackagePrice::ModelType::OrSymbol @@ -135,7 +149,8 @@ module Orb params( cadence: Orb::NewSubscriptionGroupedTieredPackagePrice::Cadence::OrSymbol, - grouped_tiered_package_config: T::Hash[Symbol, T.anything], + grouped_tiered_package_config: + Orb::NewSubscriptionGroupedTieredPackagePrice::GroupedTieredPackageConfig::OrHash, item_id: String, model_type: Orb::NewSubscriptionGroupedTieredPackagePrice::ModelType::OrSymbol, @@ -167,9 +182,11 @@ module Orb def self.new( # The cadence to bill for this price on. cadence:, + # Configuration for grouped_tiered_package pricing grouped_tiered_package_config:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, @@ -216,7 +233,8 @@ module Orb { cadence: Orb::NewSubscriptionGroupedTieredPackagePrice::Cadence::OrSymbol, - grouped_tiered_package_config: T::Hash[Symbol, T.anything], + grouped_tiered_package_config: + Orb::NewSubscriptionGroupedTieredPackagePrice::GroupedTieredPackageConfig, item_id: String, model_type: Orb::NewSubscriptionGroupedTieredPackagePrice::ModelType::OrSymbol, @@ -304,6 +322,111 @@ module Orb end end + class GroupedTieredPackageConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionGroupedTieredPackagePrice::GroupedTieredPackageConfig, + Orb::Internal::AnyHash + ) + end + + # The event property used to group before tiering + sig { returns(String) } + attr_accessor :grouping_key + + # Package size + sig { returns(String) } + attr_accessor :package_size + + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + sig do + returns( + T::Array[ + Orb::NewSubscriptionGroupedTieredPackagePrice::GroupedTieredPackageConfig::Tier + ] + ) + end + attr_accessor :tiers + + # Configuration for grouped_tiered_package pricing + sig do + params( + grouping_key: String, + package_size: String, + tiers: + T::Array[ + Orb::NewSubscriptionGroupedTieredPackagePrice::GroupedTieredPackageConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # The event property used to group before tiering + grouping_key:, + # Package size + package_size:, + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + tiers: + ) + end + + sig do + override.returns( + { + grouping_key: String, + package_size: String, + tiers: + T::Array[ + Orb::NewSubscriptionGroupedTieredPackagePrice::GroupedTieredPackageConfig::Tier + ] + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionGroupedTieredPackagePrice::GroupedTieredPackageConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Price per package + sig { returns(String) } + attr_accessor :per_unit + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Configuration for a single tier + sig do + params(per_unit: String, tier_lower_bound: String).returns( + T.attached_class + ) + end + def self.new( + # Price per package + per_unit:, + # Tier lower bound + tier_lower_bound: + ) + end + + sig do + override.returns({ per_unit: String, tier_lower_bound: String }) + end + def to_hash + end + end + end + + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_subscription_grouped_tiered_price.rbi b/rbi/orb/models/new_subscription_grouped_tiered_price.rbi index 296c9e16..61337fcc 100644 --- a/rbi/orb/models/new_subscription_grouped_tiered_price.rbi +++ b/rbi/orb/models/new_subscription_grouped_tiered_price.rbi @@ -12,13 +12,25 @@ module Orb sig { returns(Orb::NewSubscriptionGroupedTieredPrice::Cadence::OrSymbol) } attr_accessor :cadence - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_tiered_config + # Configuration for grouped_tiered pricing + sig do + returns(Orb::NewSubscriptionGroupedTieredPrice::GroupedTieredConfig) + end + attr_reader :grouped_tiered_config + + sig do + params( + grouped_tiered_config: + Orb::NewSubscriptionGroupedTieredPrice::GroupedTieredConfig::OrHash + ).void + end + attr_writer :grouped_tiered_config # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns(Orb::NewSubscriptionGroupedTieredPrice::ModelType::OrSymbol) end @@ -125,7 +137,8 @@ module Orb sig do params( cadence: Orb::NewSubscriptionGroupedTieredPrice::Cadence::OrSymbol, - grouped_tiered_config: T::Hash[Symbol, T.anything], + grouped_tiered_config: + Orb::NewSubscriptionGroupedTieredPrice::GroupedTieredConfig::OrHash, item_id: String, model_type: Orb::NewSubscriptionGroupedTieredPrice::ModelType::OrSymbol, @@ -157,9 +170,11 @@ module Orb def self.new( # The cadence to bill for this price on. cadence:, + # Configuration for grouped_tiered pricing grouped_tiered_config:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, @@ -205,7 +220,8 @@ module Orb override.returns( { cadence: Orb::NewSubscriptionGroupedTieredPrice::Cadence::OrSymbol, - grouped_tiered_config: T::Hash[Symbol, T.anything], + grouped_tiered_config: + Orb::NewSubscriptionGroupedTieredPrice::GroupedTieredConfig, item_id: String, model_type: Orb::NewSubscriptionGroupedTieredPrice::ModelType::OrSymbol, @@ -290,6 +306,103 @@ module Orb end end + class GroupedTieredConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionGroupedTieredPrice::GroupedTieredConfig, + Orb::Internal::AnyHash + ) + end + + # The billable metric property used to group before tiering + sig { returns(String) } + attr_accessor :grouping_key + + # Apply tiered pricing to each segment generated after grouping with the provided + # key + sig do + returns( + T::Array[ + Orb::NewSubscriptionGroupedTieredPrice::GroupedTieredConfig::Tier + ] + ) + end + attr_accessor :tiers + + # Configuration for grouped_tiered pricing + sig do + params( + grouping_key: String, + tiers: + T::Array[ + Orb::NewSubscriptionGroupedTieredPrice::GroupedTieredConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # The billable metric property used to group before tiering + grouping_key:, + # Apply tiered pricing to each segment generated after grouping with the provided + # key + tiers: + ) + end + + sig do + override.returns( + { + grouping_key: String, + tiers: + T::Array[ + Orb::NewSubscriptionGroupedTieredPrice::GroupedTieredConfig::Tier + ] + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionGroupedTieredPrice::GroupedTieredConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Per unit amount + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a single tier + sig do + params(tier_lower_bound: String, unit_amount: String).returns( + T.attached_class + ) + end + def self.new( + # Tier lower bound + tier_lower_bound:, + # Per unit amount + unit_amount: + ) + end + + sig do + override.returns({ tier_lower_bound: String, unit_amount: String }) + end + def to_hash + end + end + end + + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_subscription_grouped_with_metered_minimum_price.rbi b/rbi/orb/models/new_subscription_grouped_with_metered_minimum_price.rbi index b26e6a21..12fdf0c8 100644 --- a/rbi/orb/models/new_subscription_grouped_with_metered_minimum_price.rbi +++ b/rbi/orb/models/new_subscription_grouped_with_metered_minimum_price.rbi @@ -19,13 +19,27 @@ module Orb end attr_accessor :cadence - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_with_metered_minimum_config + # Configuration for grouped_with_metered_minimum pricing + sig do + returns( + Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig + ) + end + attr_reader :grouped_with_metered_minimum_config + + sig do + params( + grouped_with_metered_minimum_config: + Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::OrHash + ).void + end + attr_writer :grouped_with_metered_minimum_config # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns( Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::ModelType::OrSymbol @@ -135,7 +149,8 @@ module Orb params( cadence: Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::OrSymbol, - grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], + grouped_with_metered_minimum_config: + Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::OrHash, item_id: String, model_type: Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::ModelType::OrSymbol, @@ -167,9 +182,11 @@ module Orb def self.new( # The cadence to bill for this price on. cadence:, + # Configuration for grouped_with_metered_minimum pricing grouped_with_metered_minimum_config:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, @@ -216,7 +233,8 @@ module Orb { cadence: Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::Cadence::OrSymbol, - grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], + grouped_with_metered_minimum_config: + Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig, item_id: String, model_type: Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::ModelType::OrSymbol, @@ -304,6 +322,187 @@ module Orb end end + class GroupedWithMeteredMinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig, + Orb::Internal::AnyHash + ) + end + + # Used to partition the usage into groups. The minimum amount is applied to each + # group. + sig { returns(String) } + attr_accessor :grouping_key + + # The minimum amount to charge per group per unit + sig { returns(String) } + attr_accessor :minimum_unit_amount + + # Used to determine the unit rate + sig { returns(String) } + attr_accessor :pricing_key + + # Scale the unit rates by the scaling factor. + sig do + returns( + T::Array[ + Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::ScalingFactor + ] + ) + end + attr_accessor :scaling_factors + + # Used to determine the unit rate scaling factor + sig { returns(String) } + attr_accessor :scaling_key + + # Apply per unit pricing to each pricing value. The minimum amount is applied any + # unmatched usage. + sig do + returns( + T::Array[ + Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::UnitAmount + ] + ) + end + attr_accessor :unit_amounts + + # Configuration for grouped_with_metered_minimum pricing + sig do + params( + grouping_key: String, + minimum_unit_amount: String, + pricing_key: String, + scaling_factors: + T::Array[ + Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::ScalingFactor::OrHash + ], + scaling_key: String, + unit_amounts: + T::Array[ + Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::UnitAmount::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Used to partition the usage into groups. The minimum amount is applied to each + # group. + grouping_key:, + # The minimum amount to charge per group per unit + minimum_unit_amount:, + # Used to determine the unit rate + pricing_key:, + # Scale the unit rates by the scaling factor. + scaling_factors:, + # Used to determine the unit rate scaling factor + scaling_key:, + # Apply per unit pricing to each pricing value. The minimum amount is applied any + # unmatched usage. + unit_amounts: + ) + end + + sig do + override.returns( + { + grouping_key: String, + minimum_unit_amount: String, + pricing_key: String, + scaling_factors: + T::Array[ + Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::ScalingFactor + ], + scaling_key: String, + unit_amounts: + T::Array[ + Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::UnitAmount + ] + } + ) + end + def to_hash + end + + class ScalingFactor < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::ScalingFactor, + Orb::Internal::AnyHash + ) + end + + # Scaling factor + sig { returns(String) } + attr_accessor :scaling_factor + + # Scaling value + sig { returns(String) } + attr_accessor :scaling_value + + # Configuration for a scaling factor + sig do + params(scaling_factor: String, scaling_value: String).returns( + T.attached_class + ) + end + def self.new( + # Scaling factor + scaling_factor:, + # Scaling value + scaling_value: + ) + end + + sig do + override.returns({ scaling_factor: String, scaling_value: String }) + end + def to_hash + end + end + + class UnitAmount < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::UnitAmount, + Orb::Internal::AnyHash + ) + end + + # Pricing value + sig { returns(String) } + attr_accessor :pricing_value + + # Per unit amount + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a unit amount + sig do + params(pricing_value: String, unit_amount: String).returns( + T.attached_class + ) + end + def self.new( + # Pricing value + pricing_value:, + # Per unit amount + unit_amount: + ) + end + + sig do + override.returns({ pricing_value: String, unit_amount: String }) + end + def to_hash + end + end + end + + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbi b/rbi/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbi index 73c7c9ee..c273a36e 100644 --- a/rbi/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbi +++ b/rbi/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbi @@ -19,13 +19,27 @@ module Orb end attr_accessor :cadence - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_with_prorated_minimum_config + # Configuration for grouped_with_prorated_minimum pricing + sig do + returns( + Orb::NewSubscriptionGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig + ) + end + attr_reader :grouped_with_prorated_minimum_config + + sig do + params( + grouped_with_prorated_minimum_config: + Orb::NewSubscriptionGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig::OrHash + ).void + end + attr_writer :grouped_with_prorated_minimum_config # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns( Orb::NewSubscriptionGroupedWithProratedMinimumPrice::ModelType::OrSymbol @@ -135,7 +149,8 @@ module Orb params( cadence: Orb::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::OrSymbol, - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], + grouped_with_prorated_minimum_config: + Orb::NewSubscriptionGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig::OrHash, item_id: String, model_type: Orb::NewSubscriptionGroupedWithProratedMinimumPrice::ModelType::OrSymbol, @@ -167,9 +182,11 @@ module Orb def self.new( # The cadence to bill for this price on. cadence:, + # Configuration for grouped_with_prorated_minimum pricing grouped_with_prorated_minimum_config:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, @@ -216,7 +233,8 @@ module Orb { cadence: Orb::NewSubscriptionGroupedWithProratedMinimumPrice::Cadence::OrSymbol, - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], + grouped_with_prorated_minimum_config: + Orb::NewSubscriptionGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig, item_id: String, model_type: Orb::NewSubscriptionGroupedWithProratedMinimumPrice::ModelType::OrSymbol, @@ -304,6 +322,55 @@ module Orb end end + class GroupedWithProratedMinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig, + Orb::Internal::AnyHash + ) + end + + # How to determine the groups that should each have a minimum + sig { returns(String) } + attr_accessor :grouping_key + + # The minimum amount to charge per group + sig { returns(String) } + attr_accessor :minimum + + # The amount to charge per unit + sig { returns(String) } + attr_accessor :unit_rate + + # Configuration for grouped_with_prorated_minimum pricing + sig do + params( + grouping_key: String, + minimum: String, + unit_rate: String + ).returns(T.attached_class) + end + def self.new( + # How to determine the groups that should each have a minimum + grouping_key:, + # The minimum amount to charge per group + minimum:, + # The amount to charge per unit + unit_rate: + ) + end + + sig do + override.returns( + { grouping_key: String, minimum: String, unit_rate: String } + ) + end + def to_hash + end + end + + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_subscription_matrix_price.rbi b/rbi/orb/models/new_subscription_matrix_price.rbi index 7393db83..a6a760ca 100644 --- a/rbi/orb/models/new_subscription_matrix_price.rbi +++ b/rbi/orb/models/new_subscription_matrix_price.rbi @@ -16,12 +16,14 @@ module Orb sig { returns(String) } attr_accessor :item_id + # Configuration for matrix pricing sig { returns(Orb::MatrixConfig) } attr_reader :matrix_config sig { params(matrix_config: Orb::MatrixConfig::OrHash).void } attr_writer :matrix_config + # The pricing model type sig { returns(Orb::NewSubscriptionMatrixPrice::ModelType::OrSymbol) } attr_accessor :model_type @@ -159,7 +161,9 @@ module Orb cadence:, # The id of the item the price will be associated with. item_id:, + # Configuration for matrix pricing matrix_config:, + # The pricing model type model_type:, # The name of the price. name:, @@ -281,6 +285,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_subscription_matrix_with_allocation_price.rbi b/rbi/orb/models/new_subscription_matrix_with_allocation_price.rbi index aaff8e4e..c38bcbb4 100644 --- a/rbi/orb/models/new_subscription_matrix_with_allocation_price.rbi +++ b/rbi/orb/models/new_subscription_matrix_with_allocation_price.rbi @@ -23,6 +23,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # Configuration for matrix_with_allocation pricing sig { returns(Orb::MatrixWithAllocationConfig) } attr_reader :matrix_with_allocation_config @@ -33,6 +34,7 @@ module Orb end attr_writer :matrix_with_allocation_config + # The pricing model type sig do returns( Orb::NewSubscriptionMatrixWithAllocationPrice::ModelType::OrSymbol @@ -177,7 +179,9 @@ module Orb cadence:, # The id of the item the price will be associated with. item_id:, + # Configuration for matrix_with_allocation pricing matrix_with_allocation_config:, + # The pricing model type model_type:, # The name of the price. name:, @@ -312,6 +316,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_subscription_matrix_with_display_name_price.rbi b/rbi/orb/models/new_subscription_matrix_with_display_name_price.rbi index e91f3e48..e58021c3 100644 --- a/rbi/orb/models/new_subscription_matrix_with_display_name_price.rbi +++ b/rbi/orb/models/new_subscription_matrix_with_display_name_price.rbi @@ -23,9 +23,23 @@ module Orb sig { returns(String) } attr_accessor :item_id - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :matrix_with_display_name_config + # Configuration for matrix_with_display_name pricing + sig do + returns( + Orb::NewSubscriptionMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig + ) + end + attr_reader :matrix_with_display_name_config + sig do + params( + matrix_with_display_name_config: + Orb::NewSubscriptionMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::OrHash + ).void + end + attr_writer :matrix_with_display_name_config + + # The pricing model type sig do returns( Orb::NewSubscriptionMatrixWithDisplayNamePrice::ModelType::OrSymbol @@ -136,7 +150,8 @@ module Orb cadence: Orb::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::OrSymbol, item_id: String, - matrix_with_display_name_config: T::Hash[Symbol, T.anything], + matrix_with_display_name_config: + Orb::NewSubscriptionMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::OrHash, model_type: Orb::NewSubscriptionMatrixWithDisplayNamePrice::ModelType::OrSymbol, name: String, @@ -169,7 +184,9 @@ module Orb cadence:, # The id of the item the price will be associated with. item_id:, + # Configuration for matrix_with_display_name pricing matrix_with_display_name_config:, + # The pricing model type model_type:, # The name of the price. name:, @@ -217,7 +234,8 @@ module Orb cadence: Orb::NewSubscriptionMatrixWithDisplayNamePrice::Cadence::OrSymbol, item_id: String, - matrix_with_display_name_config: T::Hash[Symbol, T.anything], + matrix_with_display_name_config: + Orb::NewSubscriptionMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig, model_type: Orb::NewSubscriptionMatrixWithDisplayNamePrice::ModelType::OrSymbol, name: String, @@ -304,6 +322,115 @@ module Orb end end + class MatrixWithDisplayNameConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig, + Orb::Internal::AnyHash + ) + end + + # Used to determine the unit rate + sig { returns(String) } + attr_accessor :dimension + + # Apply per unit pricing to each dimension value + sig do + returns( + T::Array[ + Orb::NewSubscriptionMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::UnitAmount + ] + ) + end + attr_accessor :unit_amounts + + # Configuration for matrix_with_display_name pricing + sig do + params( + dimension: String, + unit_amounts: + T::Array[ + Orb::NewSubscriptionMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::UnitAmount::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Used to determine the unit rate + dimension:, + # Apply per unit pricing to each dimension value + unit_amounts: + ) + end + + sig do + override.returns( + { + dimension: String, + unit_amounts: + T::Array[ + Orb::NewSubscriptionMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::UnitAmount + ] + } + ) + end + def to_hash + end + + class UnitAmount < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::UnitAmount, + Orb::Internal::AnyHash + ) + end + + # The dimension value + sig { returns(String) } + attr_accessor :dimension_value + + # Display name for this dimension value + sig { returns(String) } + attr_accessor :display_name + + # Per unit amount + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a unit amount item + sig do + params( + dimension_value: String, + display_name: String, + unit_amount: String + ).returns(T.attached_class) + end + def self.new( + # The dimension value + dimension_value:, + # Display name for this dimension value + display_name:, + # Per unit amount + unit_amount: + ) + end + + sig do + override.returns( + { + dimension_value: String, + display_name: String, + unit_amount: String + } + ) + end + def to_hash + end + end + end + + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_subscription_max_group_tiered_package_price.rbi b/rbi/orb/models/new_subscription_max_group_tiered_package_price.rbi index 298ea888..e29a8e7e 100644 --- a/rbi/orb/models/new_subscription_max_group_tiered_package_price.rbi +++ b/rbi/orb/models/new_subscription_max_group_tiered_package_price.rbi @@ -23,9 +23,23 @@ module Orb sig { returns(String) } attr_accessor :item_id - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :max_group_tiered_package_config + # Configuration for max_group_tiered_package pricing + sig do + returns( + Orb::NewSubscriptionMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig + ) + end + attr_reader :max_group_tiered_package_config + + sig do + params( + max_group_tiered_package_config: + Orb::NewSubscriptionMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig::OrHash + ).void + end + attr_writer :max_group_tiered_package_config + # The pricing model type sig do returns( Orb::NewSubscriptionMaxGroupTieredPackagePrice::ModelType::OrSymbol @@ -136,7 +150,8 @@ module Orb cadence: Orb::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::OrSymbol, item_id: String, - max_group_tiered_package_config: T::Hash[Symbol, T.anything], + max_group_tiered_package_config: + Orb::NewSubscriptionMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig::OrHash, model_type: Orb::NewSubscriptionMaxGroupTieredPackagePrice::ModelType::OrSymbol, name: String, @@ -169,7 +184,9 @@ module Orb cadence:, # The id of the item the price will be associated with. item_id:, + # Configuration for max_group_tiered_package pricing max_group_tiered_package_config:, + # The pricing model type model_type:, # The name of the price. name:, @@ -217,7 +234,8 @@ module Orb cadence: Orb::NewSubscriptionMaxGroupTieredPackagePrice::Cadence::OrSymbol, item_id: String, - max_group_tiered_package_config: T::Hash[Symbol, T.anything], + max_group_tiered_package_config: + Orb::NewSubscriptionMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig, model_type: Orb::NewSubscriptionMaxGroupTieredPackagePrice::ModelType::OrSymbol, name: String, @@ -304,6 +322,109 @@ module Orb end end + class MaxGroupTieredPackageConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig, + Orb::Internal::AnyHash + ) + end + + # The event property used to group before tiering the group with the highest value + sig { returns(String) } + attr_accessor :grouping_key + + # Package size + sig { returns(String) } + attr_accessor :package_size + + # Apply tiered pricing to the largest group after grouping with the provided key. + sig do + returns( + T::Array[ + Orb::NewSubscriptionMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig::Tier + ] + ) + end + attr_accessor :tiers + + # Configuration for max_group_tiered_package pricing + sig do + params( + grouping_key: String, + package_size: String, + tiers: + T::Array[ + Orb::NewSubscriptionMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # The event property used to group before tiering the group with the highest value + grouping_key:, + # Package size + package_size:, + # Apply tiered pricing to the largest group after grouping with the provided key. + tiers: + ) + end + + sig do + override.returns( + { + grouping_key: String, + package_size: String, + tiers: + T::Array[ + Orb::NewSubscriptionMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig::Tier + ] + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Per unit amount + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a single tier + sig do + params(tier_lower_bound: String, unit_amount: String).returns( + T.attached_class + ) + end + def self.new( + # Tier lower bound + tier_lower_bound:, + # Per unit amount + unit_amount: + ) + end + + sig do + override.returns({ tier_lower_bound: String, unit_amount: String }) + end + def to_hash + end + end + end + + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_subscription_minimum_composite_price.rbi b/rbi/orb/models/new_subscription_minimum_composite_price.rbi index 63803224..cfc58bab 100644 --- a/rbi/orb/models/new_subscription_minimum_composite_price.rbi +++ b/rbi/orb/models/new_subscription_minimum_composite_price.rbi @@ -21,6 +21,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # Configuration for minimum pricing sig { returns(Orb::NewSubscriptionMinimumCompositePrice::MinimumConfig) } attr_reader :minimum_config @@ -32,6 +33,7 @@ module Orb end attr_writer :minimum_config + # The pricing model type sig do returns(Orb::NewSubscriptionMinimumCompositePrice::ModelType::OrSymbol) end @@ -173,7 +175,9 @@ module Orb cadence:, # The id of the item the price will be associated with. item_id:, + # Configuration for minimum pricing minimum_config:, + # The pricing model type model_type:, # The name of the price. name:, @@ -319,35 +323,35 @@ module Orb sig { returns(String) } attr_accessor :minimum_amount - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. + # If true, subtotals from this price are prorated based on the service period sig { returns(T.nilable(T::Boolean)) } - attr_accessor :prorated + attr_reader :prorated + sig { params(prorated: T::Boolean).void } + attr_writer :prorated + + # Configuration for minimum pricing sig do - params( - minimum_amount: String, - prorated: T.nilable(T::Boolean) - ).returns(T.attached_class) + params(minimum_amount: String, prorated: T::Boolean).returns( + T.attached_class + ) end def self.new( # The minimum amount to apply minimum_amount:, - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. + # If true, subtotals from this price are prorated based on the service period prorated: nil ) end sig do - override.returns( - { minimum_amount: String, prorated: T.nilable(T::Boolean) } - ) + override.returns({ minimum_amount: String, prorated: T::Boolean }) end def to_hash end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_subscription_package_price.rbi b/rbi/orb/models/new_subscription_package_price.rbi index ea7477a9..bff8498a 100644 --- a/rbi/orb/models/new_subscription_package_price.rbi +++ b/rbi/orb/models/new_subscription_package_price.rbi @@ -16,6 +16,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Orb::NewSubscriptionPackagePrice::ModelType::OrSymbol) } attr_accessor :model_type @@ -23,6 +24,7 @@ module Orb sig { returns(String) } attr_accessor :name + # Configuration for package pricing sig { returns(Orb::PackageConfig) } attr_reader :package_config @@ -159,9 +161,11 @@ module Orb cadence:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for package pricing package_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -287,6 +291,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_subscription_package_with_allocation_price.rbi b/rbi/orb/models/new_subscription_package_with_allocation_price.rbi index 81ffa370..b45cbbeb 100644 --- a/rbi/orb/models/new_subscription_package_with_allocation_price.rbi +++ b/rbi/orb/models/new_subscription_package_with_allocation_price.rbi @@ -23,6 +23,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns( Orb::NewSubscriptionPackageWithAllocationPrice::ModelType::OrSymbol @@ -34,8 +35,21 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :package_with_allocation_config + # Configuration for package_with_allocation pricing + sig do + returns( + Orb::NewSubscriptionPackageWithAllocationPrice::PackageWithAllocationConfig + ) + end + attr_reader :package_with_allocation_config + + sig do + params( + package_with_allocation_config: + Orb::NewSubscriptionPackageWithAllocationPrice::PackageWithAllocationConfig::OrHash + ).void + end + attr_writer :package_with_allocation_config # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -139,7 +153,8 @@ module Orb model_type: Orb::NewSubscriptionPackageWithAllocationPrice::ModelType::OrSymbol, name: String, - package_with_allocation_config: T::Hash[Symbol, T.anything], + package_with_allocation_config: + Orb::NewSubscriptionPackageWithAllocationPrice::PackageWithAllocationConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -169,9 +184,11 @@ module Orb cadence:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for package_with_allocation pricing package_with_allocation_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -220,7 +237,8 @@ module Orb model_type: Orb::NewSubscriptionPackageWithAllocationPrice::ModelType::OrSymbol, name: String, - package_with_allocation_config: T::Hash[Symbol, T.anything], + package_with_allocation_config: + Orb::NewSubscriptionPackageWithAllocationPrice::PackageWithAllocationConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -304,6 +322,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum @@ -332,6 +351,54 @@ module Orb def self.values end end + + class PackageWithAllocationConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionPackageWithAllocationPrice::PackageWithAllocationConfig, + Orb::Internal::AnyHash + ) + end + + # Usage allocation + sig { returns(String) } + attr_accessor :allocation + + # Price per package + sig { returns(String) } + attr_accessor :package_amount + + # Package size + sig { returns(String) } + attr_accessor :package_size + + # Configuration for package_with_allocation pricing + sig do + params( + allocation: String, + package_amount: String, + package_size: String + ).returns(T.attached_class) + end + def self.new( + # Usage allocation + allocation:, + # Price per package + package_amount:, + # Package size + package_size: + ) + end + + sig do + override.returns( + { allocation: String, package_amount: String, package_size: String } + ) + end + def to_hash + end + end end end end diff --git a/rbi/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbi b/rbi/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbi index 57f27a2e..b61ee8b1 100644 --- a/rbi/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbi +++ b/rbi/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbi @@ -23,6 +23,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns( Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ModelType::OrSymbol @@ -34,8 +35,21 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :scalable_matrix_with_tiered_pricing_config + # Configuration for scalable_matrix_with_tiered_pricing pricing + sig do + returns( + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig + ) + end + attr_reader :scalable_matrix_with_tiered_pricing_config + + sig do + params( + scalable_matrix_with_tiered_pricing_config: + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::OrHash + ).void + end + attr_writer :scalable_matrix_with_tiered_pricing_config # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -140,7 +154,7 @@ module Orb Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ModelType::OrSymbol, name: String, scalable_matrix_with_tiered_pricing_config: - T::Hash[Symbol, T.anything], + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -170,9 +184,11 @@ module Orb cadence:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for scalable_matrix_with_tiered_pricing pricing scalable_matrix_with_tiered_pricing_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -222,7 +238,7 @@ module Orb Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ModelType::OrSymbol, name: String, scalable_matrix_with_tiered_pricing_config: - T::Hash[Symbol, T.anything], + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -306,6 +322,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum @@ -334,6 +351,180 @@ module Orb def self.values end end + + class ScalableMatrixWithTieredPricingConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig, + Orb::Internal::AnyHash + ) + end + + # Used for the scalable matrix first dimension + sig { returns(String) } + attr_accessor :first_dimension + + # Apply a scaling factor to each dimension + sig do + returns( + T::Array[ + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor + ] + ) + end + attr_accessor :matrix_scaling_factors + + # Tier pricing structure + sig do + returns( + T::Array[ + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::Tier + ] + ) + end + attr_accessor :tiers + + # Used for the scalable matrix second dimension (optional) + sig { returns(T.nilable(String)) } + attr_accessor :second_dimension + + # Configuration for scalable_matrix_with_tiered_pricing pricing + sig do + params( + first_dimension: String, + matrix_scaling_factors: + T::Array[ + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor::OrHash + ], + tiers: + T::Array[ + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::Tier::OrHash + ], + second_dimension: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # Used for the scalable matrix first dimension + first_dimension:, + # Apply a scaling factor to each dimension + matrix_scaling_factors:, + # Tier pricing structure + tiers:, + # Used for the scalable matrix second dimension (optional) + second_dimension: nil + ) + end + + sig do + override.returns( + { + first_dimension: String, + matrix_scaling_factors: + T::Array[ + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor + ], + tiers: + T::Array[ + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::Tier + ], + second_dimension: T.nilable(String) + } + ) + end + def to_hash + end + + class MatrixScalingFactor < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor, + Orb::Internal::AnyHash + ) + end + + # First dimension value + sig { returns(String) } + attr_accessor :first_dimension_value + + # Scaling factor + sig { returns(String) } + attr_accessor :scaling_factor + + # Second dimension value (optional) + sig { returns(T.nilable(String)) } + attr_accessor :second_dimension_value + + # Configuration for a single matrix scaling factor + sig do + params( + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # First dimension value + first_dimension_value:, + # Scaling factor + scaling_factor:, + # Second dimension value (optional) + second_dimension_value: nil + ) + end + + sig do + override.returns( + { + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: T.nilable(String) + } + ) + end + def to_hash + end + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Per unit amount + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a single tier entry with business logic + sig do + params(tier_lower_bound: String, unit_amount: String).returns( + T.attached_class + ) + end + def self.new( + # Tier lower bound + tier_lower_bound:, + # Per unit amount + unit_amount: + ) + end + + sig do + override.returns({ tier_lower_bound: String, unit_amount: String }) + end + def to_hash + end + end + end end end end diff --git a/rbi/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbi b/rbi/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbi index a5504053..a266d4c2 100644 --- a/rbi/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbi +++ b/rbi/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbi @@ -23,6 +23,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns( Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::ModelType::OrSymbol @@ -34,8 +35,21 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :scalable_matrix_with_unit_pricing_config + # Configuration for scalable_matrix_with_unit_pricing pricing + sig do + returns( + Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig + ) + end + attr_reader :scalable_matrix_with_unit_pricing_config + + sig do + params( + scalable_matrix_with_unit_pricing_config: + Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig::OrHash + ).void + end + attr_writer :scalable_matrix_with_unit_pricing_config # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -139,7 +153,8 @@ module Orb model_type: Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::ModelType::OrSymbol, name: String, - scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], + scalable_matrix_with_unit_pricing_config: + Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -169,9 +184,11 @@ module Orb cadence:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for scalable_matrix_with_unit_pricing pricing scalable_matrix_with_unit_pricing_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -221,7 +238,7 @@ module Orb Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::ModelType::OrSymbol, name: String, scalable_matrix_with_unit_pricing_config: - T::Hash[Symbol, T.anything], + Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -305,6 +322,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum @@ -333,6 +351,138 @@ module Orb def self.values end end + + class ScalableMatrixWithUnitPricingConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig, + Orb::Internal::AnyHash + ) + end + + # Used to determine the unit rate + sig { returns(String) } + attr_accessor :first_dimension + + # Apply a scaling factor to each dimension + sig do + returns( + T::Array[ + Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor + ] + ) + end + attr_accessor :matrix_scaling_factors + + # The final unit price to rate against the output of the matrix + sig { returns(String) } + attr_accessor :unit_price + + # If true, the unit price will be prorated to the billing period + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :prorate + + # Used to determine the unit rate (optional) + sig { returns(T.nilable(String)) } + attr_accessor :second_dimension + + # Configuration for scalable_matrix_with_unit_pricing pricing + sig do + params( + first_dimension: String, + matrix_scaling_factors: + T::Array[ + Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor::OrHash + ], + unit_price: String, + prorate: T.nilable(T::Boolean), + second_dimension: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # Used to determine the unit rate + first_dimension:, + # Apply a scaling factor to each dimension + matrix_scaling_factors:, + # The final unit price to rate against the output of the matrix + unit_price:, + # If true, the unit price will be prorated to the billing period + prorate: nil, + # Used to determine the unit rate (optional) + second_dimension: nil + ) + end + + sig do + override.returns( + { + first_dimension: String, + matrix_scaling_factors: + T::Array[ + Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor + ], + unit_price: String, + prorate: T.nilable(T::Boolean), + second_dimension: T.nilable(String) + } + ) + end + def to_hash + end + + class MatrixScalingFactor < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor, + Orb::Internal::AnyHash + ) + end + + # First dimension value + sig { returns(String) } + attr_accessor :first_dimension_value + + # Scaling factor + sig { returns(String) } + attr_accessor :scaling_factor + + # Second dimension value (optional) + sig { returns(T.nilable(String)) } + attr_accessor :second_dimension_value + + # Configuration for a single matrix scaling factor + sig do + params( + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # First dimension value + first_dimension_value:, + # Scaling factor + scaling_factor:, + # Second dimension value (optional) + second_dimension_value: nil + ) + end + + sig do + override.returns( + { + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: T.nilable(String) + } + ) + end + def to_hash + end + end + end end end end diff --git a/rbi/orb/models/new_subscription_threshold_total_amount_price.rbi b/rbi/orb/models/new_subscription_threshold_total_amount_price.rbi index 8fe9bcb1..ffb1b5b2 100644 --- a/rbi/orb/models/new_subscription_threshold_total_amount_price.rbi +++ b/rbi/orb/models/new_subscription_threshold_total_amount_price.rbi @@ -23,6 +23,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns( Orb::NewSubscriptionThresholdTotalAmountPrice::ModelType::OrSymbol @@ -34,8 +35,21 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :threshold_total_amount_config + # Configuration for threshold_total_amount pricing + sig do + returns( + Orb::NewSubscriptionThresholdTotalAmountPrice::ThresholdTotalAmountConfig + ) + end + attr_reader :threshold_total_amount_config + + sig do + params( + threshold_total_amount_config: + Orb::NewSubscriptionThresholdTotalAmountPrice::ThresholdTotalAmountConfig::OrHash + ).void + end + attr_writer :threshold_total_amount_config # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -139,7 +153,8 @@ module Orb model_type: Orb::NewSubscriptionThresholdTotalAmountPrice::ModelType::OrSymbol, name: String, - threshold_total_amount_config: T::Hash[Symbol, T.anything], + threshold_total_amount_config: + Orb::NewSubscriptionThresholdTotalAmountPrice::ThresholdTotalAmountConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -169,9 +184,11 @@ module Orb cadence:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for threshold_total_amount pricing threshold_total_amount_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -220,7 +237,8 @@ module Orb model_type: Orb::NewSubscriptionThresholdTotalAmountPrice::ModelType::OrSymbol, name: String, - threshold_total_amount_config: T::Hash[Symbol, T.anything], + threshold_total_amount_config: + Orb::NewSubscriptionThresholdTotalAmountPrice::ThresholdTotalAmountConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -304,6 +322,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum @@ -332,6 +351,100 @@ module Orb def self.values end end + + class ThresholdTotalAmountConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionThresholdTotalAmountPrice::ThresholdTotalAmountConfig, + Orb::Internal::AnyHash + ) + end + + # When the quantity consumed passes a provided threshold, the configured total + # will be charged + sig do + returns( + T::Array[ + Orb::NewSubscriptionThresholdTotalAmountPrice::ThresholdTotalAmountConfig::ConsumptionTable + ] + ) + end + attr_accessor :consumption_table + + # If true, the unit price will be prorated to the billing period + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :prorate + + # Configuration for threshold_total_amount pricing + sig do + params( + consumption_table: + T::Array[ + Orb::NewSubscriptionThresholdTotalAmountPrice::ThresholdTotalAmountConfig::ConsumptionTable::OrHash + ], + prorate: T.nilable(T::Boolean) + ).returns(T.attached_class) + end + def self.new( + # When the quantity consumed passes a provided threshold, the configured total + # will be charged + consumption_table:, + # If true, the unit price will be prorated to the billing period + prorate: nil + ) + end + + sig do + override.returns( + { + consumption_table: + T::Array[ + Orb::NewSubscriptionThresholdTotalAmountPrice::ThresholdTotalAmountConfig::ConsumptionTable + ], + prorate: T.nilable(T::Boolean) + } + ) + end + def to_hash + end + + class ConsumptionTable < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionThresholdTotalAmountPrice::ThresholdTotalAmountConfig::ConsumptionTable, + Orb::Internal::AnyHash + ) + end + + # Quantity threshold + sig { returns(String) } + attr_accessor :threshold + + # Total amount for this threshold + sig { returns(String) } + attr_accessor :total_amount + + # Configuration for a single threshold + sig do + params(threshold: String, total_amount: String).returns( + T.attached_class + ) + end + def self.new( + # Quantity threshold + threshold:, + # Total amount for this threshold + total_amount: + ) + end + + sig { override.returns({ threshold: String, total_amount: String }) } + def to_hash + end + end + end end end end diff --git a/rbi/orb/models/new_subscription_tier_with_proration_price.rbi b/rbi/orb/models/new_subscription_tier_with_proration_price.rbi deleted file mode 100644 index d3b119c4..00000000 --- a/rbi/orb/models/new_subscription_tier_with_proration_price.rbi +++ /dev/null @@ -1,327 +0,0 @@ -# typed: strong - -module Orb - module Models - class NewSubscriptionTierWithProrationPrice < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::NewSubscriptionTierWithProrationPrice, - Orb::Internal::AnyHash - ) - end - - # The cadence to bill for this price on. - sig do - returns(Orb::NewSubscriptionTierWithProrationPrice::Cadence::OrSymbol) - end - attr_accessor :cadence - - # The id of the item the price will be associated with. - sig { returns(String) } - attr_accessor :item_id - - sig do - returns(Orb::NewSubscriptionTierWithProrationPrice::ModelType::OrSymbol) - end - attr_accessor :model_type - - # The name of the price. - sig { returns(String) } - attr_accessor :name - - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :tiered_with_proration_config - - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - sig { returns(T.nilable(String)) } - attr_accessor :billable_metric_id - - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - sig { returns(T.nilable(T::Boolean)) } - attr_accessor :billed_in_advance - - # For custom cadence: specifies the duration of the billing period in days or - # months. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :billing_cycle_configuration - - sig do - params( - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :billing_cycle_configuration - - # The per unit conversion rate of the price currency to the invoicing currency. - sig { returns(T.nilable(Float)) } - attr_accessor :conversion_rate - - # The configuration for the rate of the price currency to the invoicing currency. - sig do - returns( - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ) - ) - end - attr_accessor :conversion_rate_config - - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - sig { returns(T.nilable(String)) } - attr_accessor :currency - - # For dimensional price: specifies a price group and dimension values - sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } - attr_reader :dimensional_price_configuration - - sig do - params( - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) - ).void - end - attr_writer :dimensional_price_configuration - - # An alias for the price. - sig { returns(T.nilable(String)) } - attr_accessor :external_price_id - - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - sig { returns(T.nilable(Float)) } - attr_accessor :fixed_price_quantity - - # The property used to group this price on an invoice - sig { returns(T.nilable(String)) } - attr_accessor :invoice_grouping_key - - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } - attr_reader :invoicing_cycle_configuration - - sig do - params( - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash) - ).void - end - attr_writer :invoicing_cycle_configuration - - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } - attr_accessor :metadata - - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - sig { returns(T.nilable(String)) } - attr_accessor :reference_id - - sig do - params( - cadence: - Orb::NewSubscriptionTierWithProrationPrice::Cadence::OrSymbol, - item_id: String, - model_type: - Orb::NewSubscriptionTierWithProrationPrice::ModelType::OrSymbol, - name: String, - tiered_with_proration_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig::OrHash, - Orb::TieredConversionRateConfig::OrHash - ) - ), - currency: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration::OrHash), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - ).returns(T.attached_class) - end - def self.new( - # The cadence to bill for this price on. - cadence:, - # The id of the item the price will be associated with. - item_id:, - model_type:, - # The name of the price. - name:, - tiered_with_proration_config:, - # The id of the billable metric for the price. Only needed if the price is - # usage-based. - billable_metric_id: nil, - # If the Price represents a fixed cost, the price will be billed in-advance if - # this is true, and in-arrears if this is false. - billed_in_advance: nil, - # For custom cadence: specifies the duration of the billing period in days or - # months. - billing_cycle_configuration: nil, - # The per unit conversion rate of the price currency to the invoicing currency. - conversion_rate: nil, - # The configuration for the rate of the price currency to the invoicing currency. - conversion_rate_config: nil, - # An ISO 4217 currency string, or custom pricing unit identifier, in which this - # price is billed. - currency: nil, - # For dimensional price: specifies a price group and dimension values - dimensional_price_configuration: nil, - # An alias for the price. - external_price_id: nil, - # If the Price represents a fixed cost, this represents the quantity of units - # applied. - fixed_price_quantity: nil, - # The property used to group this price on an invoice - invoice_grouping_key: nil, - # Within each billing cycle, specifies the cadence at which invoices are produced. - # If unspecified, a single invoice is produced per billing cycle. - invoicing_cycle_configuration: nil, - # User-specified key/value pairs for the resource. Individual keys can be removed - # by setting the value to `null`, and the entire metadata mapping can be cleared - # by setting `metadata` to `null`. - metadata: nil, - # A transient ID that can be used to reference this price when adding adjustments - # in the same API call. - reference_id: nil - ) - end - - sig do - override.returns( - { - cadence: - Orb::NewSubscriptionTierWithProrationPrice::Cadence::OrSymbol, - item_id: String, - model_type: - Orb::NewSubscriptionTierWithProrationPrice::ModelType::OrSymbol, - name: String, - tiered_with_proration_config: T::Hash[Symbol, T.anything], - billable_metric_id: T.nilable(String), - billed_in_advance: T.nilable(T::Boolean), - billing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - conversion_rate: T.nilable(Float), - conversion_rate_config: - T.nilable( - T.any( - Orb::UnitConversionRateConfig, - Orb::TieredConversionRateConfig - ) - ), - currency: T.nilable(String), - dimensional_price_configuration: - T.nilable(Orb::NewDimensionalPriceConfiguration), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - invoice_grouping_key: T.nilable(String), - invoicing_cycle_configuration: - T.nilable(Orb::NewBillingCycleConfiguration), - metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), - reference_id: T.nilable(String) - } - ) - end - def to_hash - end - - # The cadence to bill for this price on. - module Cadence - extend Orb::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, Orb::NewSubscriptionTierWithProrationPrice::Cadence) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - ANNUAL = - T.let( - :annual, - Orb::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol - ) - SEMI_ANNUAL = - T.let( - :semi_annual, - Orb::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol - ) - MONTHLY = - T.let( - :monthly, - Orb::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol - ) - QUARTERLY = - T.let( - :quarterly, - Orb::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol - ) - ONE_TIME = - T.let( - :one_time, - Orb::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol - ) - CUSTOM = - T.let( - :custom, - Orb::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Orb::NewSubscriptionTierWithProrationPrice::Cadence::TaggedSymbol - ] - ) - end - def self.values - end - end - - module ModelType - extend Orb::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all(Symbol, Orb::NewSubscriptionTierWithProrationPrice::ModelType) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - TIERED_WITH_PRORATION = - T.let( - :tiered_with_proration, - Orb::NewSubscriptionTierWithProrationPrice::ModelType::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Orb::NewSubscriptionTierWithProrationPrice::ModelType::TaggedSymbol - ] - ) - end - def self.values - end - end - end - end -end diff --git a/rbi/orb/models/new_subscription_tiered_package_price.rbi b/rbi/orb/models/new_subscription_tiered_package_price.rbi index 910b14e9..119d1682 100644 --- a/rbi/orb/models/new_subscription_tiered_package_price.rbi +++ b/rbi/orb/models/new_subscription_tiered_package_price.rbi @@ -16,6 +16,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns(Orb::NewSubscriptionTieredPackagePrice::ModelType::OrSymbol) end @@ -25,8 +26,19 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :tiered_package_config + # Configuration for tiered_package pricing + sig do + returns(Orb::NewSubscriptionTieredPackagePrice::TieredPackageConfig) + end + attr_reader :tiered_package_config + + sig do + params( + tiered_package_config: + Orb::NewSubscriptionTieredPackagePrice::TieredPackageConfig::OrHash + ).void + end + attr_writer :tiered_package_config # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -129,7 +141,8 @@ module Orb model_type: Orb::NewSubscriptionTieredPackagePrice::ModelType::OrSymbol, name: String, - tiered_package_config: T::Hash[Symbol, T.anything], + tiered_package_config: + Orb::NewSubscriptionTieredPackagePrice::TieredPackageConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -159,9 +172,11 @@ module Orb cadence:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for tiered_package pricing tiered_package_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -209,7 +224,8 @@ module Orb model_type: Orb::NewSubscriptionTieredPackagePrice::ModelType::OrSymbol, name: String, - tiered_package_config: T::Hash[Symbol, T.anything], + tiered_package_config: + Orb::NewSubscriptionTieredPackagePrice::TieredPackageConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -290,6 +306,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum @@ -315,6 +332,102 @@ module Orb def self.values end end + + class TieredPackageConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionTieredPackagePrice::TieredPackageConfig, + Orb::Internal::AnyHash + ) + end + + # Package size + sig { returns(String) } + attr_accessor :package_size + + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + sig do + returns( + T::Array[ + Orb::NewSubscriptionTieredPackagePrice::TieredPackageConfig::Tier + ] + ) + end + attr_accessor :tiers + + # Configuration for tiered_package pricing + sig do + params( + package_size: String, + tiers: + T::Array[ + Orb::NewSubscriptionTieredPackagePrice::TieredPackageConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Package size + package_size:, + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + tiers: + ) + end + + sig do + override.returns( + { + package_size: String, + tiers: + T::Array[ + Orb::NewSubscriptionTieredPackagePrice::TieredPackageConfig::Tier + ] + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionTieredPackagePrice::TieredPackageConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Price per package + sig { returns(String) } + attr_accessor :per_unit + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Configuration for a single tier with business logic + sig do + params(per_unit: String, tier_lower_bound: String).returns( + T.attached_class + ) + end + def self.new( + # Price per package + per_unit:, + # Tier lower bound + tier_lower_bound: + ) + end + + sig do + override.returns({ per_unit: String, tier_lower_bound: String }) + end + def to_hash + end + end + end end end end diff --git a/rbi/orb/models/new_subscription_tiered_package_with_minimum_price.rbi b/rbi/orb/models/new_subscription_tiered_package_with_minimum_price.rbi index 1bcfde2b..beb1c529 100644 --- a/rbi/orb/models/new_subscription_tiered_package_with_minimum_price.rbi +++ b/rbi/orb/models/new_subscription_tiered_package_with_minimum_price.rbi @@ -23,6 +23,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns( Orb::NewSubscriptionTieredPackageWithMinimumPrice::ModelType::OrSymbol @@ -34,8 +35,21 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :tiered_package_with_minimum_config + # Configuration for tiered_package_with_minimum pricing + sig do + returns( + Orb::NewSubscriptionTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig + ) + end + attr_reader :tiered_package_with_minimum_config + + sig do + params( + tiered_package_with_minimum_config: + Orb::NewSubscriptionTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::OrHash + ).void + end + attr_writer :tiered_package_with_minimum_config # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -139,7 +153,8 @@ module Orb model_type: Orb::NewSubscriptionTieredPackageWithMinimumPrice::ModelType::OrSymbol, name: String, - tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], + tiered_package_with_minimum_config: + Orb::NewSubscriptionTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -169,9 +184,11 @@ module Orb cadence:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for tiered_package_with_minimum pricing tiered_package_with_minimum_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -220,7 +237,8 @@ module Orb model_type: Orb::NewSubscriptionTieredPackageWithMinimumPrice::ModelType::OrSymbol, name: String, - tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], + tiered_package_with_minimum_config: + Orb::NewSubscriptionTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -304,6 +322,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum @@ -332,6 +351,116 @@ module Orb def self.values end end + + class TieredPackageWithMinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig, + Orb::Internal::AnyHash + ) + end + + # Package size + sig { returns(Float) } + attr_accessor :package_size + + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + sig do + returns( + T::Array[ + Orb::NewSubscriptionTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::Tier + ] + ) + end + attr_accessor :tiers + + # Configuration for tiered_package_with_minimum pricing + sig do + params( + package_size: Float, + tiers: + T::Array[ + Orb::NewSubscriptionTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Package size + package_size:, + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + tiers: + ) + end + + sig do + override.returns( + { + package_size: Float, + tiers: + T::Array[ + Orb::NewSubscriptionTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::Tier + ] + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Minimum amount + sig { returns(String) } + attr_accessor :minimum_amount + + # Price per package + sig { returns(String) } + attr_accessor :per_unit + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Configuration for a single tier + sig do + params( + minimum_amount: String, + per_unit: String, + tier_lower_bound: String + ).returns(T.attached_class) + end + def self.new( + # Minimum amount + minimum_amount:, + # Price per package + per_unit:, + # Tier lower bound + tier_lower_bound: + ) + end + + sig do + override.returns( + { + minimum_amount: String, + per_unit: String, + tier_lower_bound: String + } + ) + end + def to_hash + end + end + end end end end diff --git a/rbi/orb/models/new_subscription_tiered_price.rbi b/rbi/orb/models/new_subscription_tiered_price.rbi index dca7bb96..0d9da3f2 100644 --- a/rbi/orb/models/new_subscription_tiered_price.rbi +++ b/rbi/orb/models/new_subscription_tiered_price.rbi @@ -16,6 +16,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Orb::NewSubscriptionTieredPrice::ModelType::OrSymbol) } attr_accessor :model_type @@ -23,6 +24,7 @@ module Orb sig { returns(String) } attr_accessor :name + # Configuration for tiered pricing sig { returns(Orb::TieredConfig) } attr_reader :tiered_config @@ -159,9 +161,11 @@ module Orb cadence:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for tiered pricing tiered_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -281,6 +285,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_subscription_tiered_with_minimum_price.rbi b/rbi/orb/models/new_subscription_tiered_with_minimum_price.rbi index ac0c1027..8da6e51d 100644 --- a/rbi/orb/models/new_subscription_tiered_with_minimum_price.rbi +++ b/rbi/orb/models/new_subscription_tiered_with_minimum_price.rbi @@ -21,6 +21,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns(Orb::NewSubscriptionTieredWithMinimumPrice::ModelType::OrSymbol) end @@ -30,8 +31,21 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :tiered_with_minimum_config + # Configuration for tiered_with_minimum pricing + sig do + returns( + Orb::NewSubscriptionTieredWithMinimumPrice::TieredWithMinimumConfig + ) + end + attr_reader :tiered_with_minimum_config + + sig do + params( + tiered_with_minimum_config: + Orb::NewSubscriptionTieredWithMinimumPrice::TieredWithMinimumConfig::OrHash + ).void + end + attr_writer :tiered_with_minimum_config # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -135,7 +149,8 @@ module Orb model_type: Orb::NewSubscriptionTieredWithMinimumPrice::ModelType::OrSymbol, name: String, - tiered_with_minimum_config: T::Hash[Symbol, T.anything], + tiered_with_minimum_config: + Orb::NewSubscriptionTieredWithMinimumPrice::TieredWithMinimumConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -165,9 +180,11 @@ module Orb cadence:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for tiered_with_minimum pricing tiered_with_minimum_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -216,7 +233,8 @@ module Orb model_type: Orb::NewSubscriptionTieredWithMinimumPrice::ModelType::OrSymbol, name: String, - tiered_with_minimum_config: T::Hash[Symbol, T.anything], + tiered_with_minimum_config: + Orb::NewSubscriptionTieredWithMinimumPrice::TieredWithMinimumConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -297,6 +315,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum @@ -322,6 +341,130 @@ module Orb def self.values end end + + class TieredWithMinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionTieredWithMinimumPrice::TieredWithMinimumConfig, + Orb::Internal::AnyHash + ) + end + + # Tiered pricing with a minimum amount dependent on the volume tier. Tiers are + # defined using exclusive lower bounds. + sig do + returns( + T::Array[ + Orb::NewSubscriptionTieredWithMinimumPrice::TieredWithMinimumConfig::Tier + ] + ) + end + attr_accessor :tiers + + # If true, tiers with an accrued amount of 0 will not be included in the rating. + sig { returns(T.nilable(T::Boolean)) } + attr_reader :hide_zero_amount_tiers + + sig { params(hide_zero_amount_tiers: T::Boolean).void } + attr_writer :hide_zero_amount_tiers + + # If true, the unit price will be prorated to the billing period + sig { returns(T.nilable(T::Boolean)) } + attr_reader :prorate + + sig { params(prorate: T::Boolean).void } + attr_writer :prorate + + # Configuration for tiered_with_minimum pricing + sig do + params( + tiers: + T::Array[ + Orb::NewSubscriptionTieredWithMinimumPrice::TieredWithMinimumConfig::Tier::OrHash + ], + hide_zero_amount_tiers: T::Boolean, + prorate: T::Boolean + ).returns(T.attached_class) + end + def self.new( + # Tiered pricing with a minimum amount dependent on the volume tier. Tiers are + # defined using exclusive lower bounds. + tiers:, + # If true, tiers with an accrued amount of 0 will not be included in the rating. + hide_zero_amount_tiers: nil, + # If true, the unit price will be prorated to the billing period + prorate: nil + ) + end + + sig do + override.returns( + { + tiers: + T::Array[ + Orb::NewSubscriptionTieredWithMinimumPrice::TieredWithMinimumConfig::Tier + ], + hide_zero_amount_tiers: T::Boolean, + prorate: T::Boolean + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionTieredWithMinimumPrice::TieredWithMinimumConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Minimum amount + sig { returns(String) } + attr_accessor :minimum_amount + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Per unit amount + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a single tier + sig do + params( + minimum_amount: String, + tier_lower_bound: String, + unit_amount: String + ).returns(T.attached_class) + end + def self.new( + # Minimum amount + minimum_amount:, + # Tier lower bound + tier_lower_bound:, + # Per unit amount + unit_amount: + ) + end + + sig do + override.returns( + { + minimum_amount: String, + tier_lower_bound: String, + unit_amount: String + } + ) + end + def to_hash + end + end + end end end end diff --git a/rbi/orb/models/new_subscription_unit_price.rbi b/rbi/orb/models/new_subscription_unit_price.rbi index dc8956d0..805949cd 100644 --- a/rbi/orb/models/new_subscription_unit_price.rbi +++ b/rbi/orb/models/new_subscription_unit_price.rbi @@ -16,6 +16,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Orb::NewSubscriptionUnitPrice::ModelType::OrSymbol) } attr_accessor :model_type @@ -23,6 +24,7 @@ module Orb sig { returns(String) } attr_accessor :name + # Configuration for unit pricing sig { returns(Orb::UnitConfig) } attr_reader :unit_config @@ -159,9 +161,11 @@ module Orb cadence:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for unit pricing unit_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -273,6 +277,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/new_subscription_unit_with_percent_price.rbi b/rbi/orb/models/new_subscription_unit_with_percent_price.rbi index b33067d9..709110ed 100644 --- a/rbi/orb/models/new_subscription_unit_with_percent_price.rbi +++ b/rbi/orb/models/new_subscription_unit_with_percent_price.rbi @@ -21,6 +21,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns(Orb::NewSubscriptionUnitWithPercentPrice::ModelType::OrSymbol) end @@ -30,8 +31,19 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :unit_with_percent_config + # Configuration for unit_with_percent pricing + sig do + returns(Orb::NewSubscriptionUnitWithPercentPrice::UnitWithPercentConfig) + end + attr_reader :unit_with_percent_config + + sig do + params( + unit_with_percent_config: + Orb::NewSubscriptionUnitWithPercentPrice::UnitWithPercentConfig::OrHash + ).void + end + attr_writer :unit_with_percent_config # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -134,7 +146,8 @@ module Orb model_type: Orb::NewSubscriptionUnitWithPercentPrice::ModelType::OrSymbol, name: String, - unit_with_percent_config: T::Hash[Symbol, T.anything], + unit_with_percent_config: + Orb::NewSubscriptionUnitWithPercentPrice::UnitWithPercentConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -164,9 +177,11 @@ module Orb cadence:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for unit_with_percent pricing unit_with_percent_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -215,7 +230,8 @@ module Orb model_type: Orb::NewSubscriptionUnitWithPercentPrice::ModelType::OrSymbol, name: String, - unit_with_percent_config: T::Hash[Symbol, T.anything], + unit_with_percent_config: + Orb::NewSubscriptionUnitWithPercentPrice::UnitWithPercentConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -296,6 +312,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum @@ -321,6 +338,40 @@ module Orb def self.values end end + + class UnitWithPercentConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionUnitWithPercentPrice::UnitWithPercentConfig, + Orb::Internal::AnyHash + ) + end + + # What percent, out of 100, of the calculated total to charge + sig { returns(String) } + attr_accessor :percent + + # Rate per unit of usage + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for unit_with_percent pricing + sig do + params(percent: String, unit_amount: String).returns(T.attached_class) + end + def self.new( + # What percent, out of 100, of the calculated total to charge + percent:, + # Rate per unit of usage + unit_amount: + ) + end + + sig { override.returns({ percent: String, unit_amount: String }) } + def to_hash + end + end end end end diff --git a/rbi/orb/models/new_subscription_unit_with_proration_price.rbi b/rbi/orb/models/new_subscription_unit_with_proration_price.rbi index f984781d..4f898523 100644 --- a/rbi/orb/models/new_subscription_unit_with_proration_price.rbi +++ b/rbi/orb/models/new_subscription_unit_with_proration_price.rbi @@ -21,6 +21,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig do returns(Orb::NewSubscriptionUnitWithProrationPrice::ModelType::OrSymbol) end @@ -30,8 +31,21 @@ module Orb sig { returns(String) } attr_accessor :name - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :unit_with_proration_config + # Configuration for unit_with_proration pricing + sig do + returns( + Orb::NewSubscriptionUnitWithProrationPrice::UnitWithProrationConfig + ) + end + attr_reader :unit_with_proration_config + + sig do + params( + unit_with_proration_config: + Orb::NewSubscriptionUnitWithProrationPrice::UnitWithProrationConfig::OrHash + ).void + end + attr_writer :unit_with_proration_config # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -135,7 +149,8 @@ module Orb model_type: Orb::NewSubscriptionUnitWithProrationPrice::ModelType::OrSymbol, name: String, - unit_with_proration_config: T::Hash[Symbol, T.anything], + unit_with_proration_config: + Orb::NewSubscriptionUnitWithProrationPrice::UnitWithProrationConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -165,9 +180,11 @@ module Orb cadence:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for unit_with_proration pricing unit_with_proration_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -216,7 +233,8 @@ module Orb model_type: Orb::NewSubscriptionUnitWithProrationPrice::ModelType::OrSymbol, name: String, - unit_with_proration_config: T::Hash[Symbol, T.anything], + unit_with_proration_config: + Orb::NewSubscriptionUnitWithProrationPrice::UnitWithProrationConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -297,6 +315,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum @@ -322,6 +341,32 @@ module Orb def self.values end end + + class UnitWithProrationConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::NewSubscriptionUnitWithProrationPrice::UnitWithProrationConfig, + Orb::Internal::AnyHash + ) + end + + # Rate per unit of usage + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for unit_with_proration pricing + sig { params(unit_amount: String).returns(T.attached_class) } + def self.new( + # Rate per unit of usage + unit_amount: + ) + end + + sig { override.returns({ unit_amount: String }) } + def to_hash + end + end end end end diff --git a/rbi/orb/models/package_config.rbi b/rbi/orb/models/package_config.rbi index 2bcb528f..f4f15c74 100644 --- a/rbi/orb/models/package_config.rbi +++ b/rbi/orb/models/package_config.rbi @@ -15,6 +15,7 @@ module Orb sig { returns(Integer) } attr_accessor :package_size + # Configuration for package pricing sig do params(package_amount: String, package_size: Integer).returns( T.attached_class diff --git a/rbi/orb/models/per_price_cost.rbi b/rbi/orb/models/per_price_cost.rbi index 62afc7a5..c4adc95e 100644 --- a/rbi/orb/models/per_price_cost.rbi +++ b/rbi/orb/models/per_price_cost.rbi @@ -30,14 +30,14 @@ module Orb price: T.any( Orb::Price::Unit::OrHash, - Orb::Price::Package::OrHash, - Orb::Price::Matrix::OrHash, Orb::Price::Tiered::OrHash, Orb::Price::Bulk::OrHash, + Orb::Price::Package::OrHash, + Orb::Price::Matrix::OrHash, Orb::Price::ThresholdTotalAmount::OrHash, Orb::Price::TieredPackage::OrHash, - Orb::Price::GroupedTiered::OrHash, Orb::Price::TieredWithMinimum::OrHash, + Orb::Price::GroupedTiered::OrHash, Orb::Price::TieredPackageWithMinimum::OrHash, Orb::Price::PackageWithAllocation::OrHash, Orb::Price::UnitWithPercent::OrHash, @@ -45,16 +45,16 @@ module Orb Orb::Price::TieredWithProration::OrHash, Orb::Price::UnitWithProration::OrHash, Orb::Price::GroupedAllocation::OrHash, + Orb::Price::BulkWithProration::OrHash, Orb::Price::GroupedWithProratedMinimum::OrHash, Orb::Price::GroupedWithMeteredMinimum::OrHash, + Orb::Price::GroupedWithMinMaxThresholds::OrHash, Orb::Price::MatrixWithDisplayName::OrHash, - Orb::Price::BulkWithProration::OrHash, Orb::Price::GroupedTieredPackage::OrHash, Orb::Price::MaxGroupTieredPackage::OrHash, Orb::Price::ScalableMatrixWithUnitPricing::OrHash, Orb::Price::ScalableMatrixWithTieredPricing::OrHash, Orb::Price::CumulativeGroupedBulk::OrHash, - Orb::Price::GroupedWithMinMaxThresholds::OrHash, Orb::Price::Minimum::OrHash ), price_id: String, diff --git a/rbi/orb/models/plan.rbi b/rbi/orb/models/plan.rbi index a541bc29..0030e5e7 100644 --- a/rbi/orb/models/plan.rbi +++ b/rbi/orb/models/plan.rbi @@ -162,14 +162,14 @@ module Orb T::Array[ T.any( Orb::Price::Unit::OrHash, - Orb::Price::Package::OrHash, - Orb::Price::Matrix::OrHash, Orb::Price::Tiered::OrHash, Orb::Price::Bulk::OrHash, + Orb::Price::Package::OrHash, + Orb::Price::Matrix::OrHash, Orb::Price::ThresholdTotalAmount::OrHash, Orb::Price::TieredPackage::OrHash, - Orb::Price::GroupedTiered::OrHash, Orb::Price::TieredWithMinimum::OrHash, + Orb::Price::GroupedTiered::OrHash, Orb::Price::TieredPackageWithMinimum::OrHash, Orb::Price::PackageWithAllocation::OrHash, Orb::Price::UnitWithPercent::OrHash, @@ -177,16 +177,16 @@ module Orb Orb::Price::TieredWithProration::OrHash, Orb::Price::UnitWithProration::OrHash, Orb::Price::GroupedAllocation::OrHash, + Orb::Price::BulkWithProration::OrHash, Orb::Price::GroupedWithProratedMinimum::OrHash, Orb::Price::GroupedWithMeteredMinimum::OrHash, + Orb::Price::GroupedWithMinMaxThresholds::OrHash, Orb::Price::MatrixWithDisplayName::OrHash, - Orb::Price::BulkWithProration::OrHash, Orb::Price::GroupedTieredPackage::OrHash, Orb::Price::MaxGroupTieredPackage::OrHash, Orb::Price::ScalableMatrixWithUnitPricing::OrHash, Orb::Price::ScalableMatrixWithTieredPricing::OrHash, Orb::Price::CumulativeGroupedBulk::OrHash, - Orb::Price::GroupedWithMinMaxThresholds::OrHash, Orb::Price::Minimum::OrHash ) ], diff --git a/rbi/orb/models/plan_create_params.rbi b/rbi/orb/models/plan_create_params.rbi index d4fd2d60..081a364b 100644 --- a/rbi/orb/models/plan_create_params.rbi +++ b/rbi/orb/models/plan_create_params.rbi @@ -149,37 +149,37 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - # The price to add to the plan + # New plan price request body params. sig do returns( T.nilable( T.any( Orb::NewPlanUnitPrice, - Orb::NewPlanPackagePrice, - Orb::NewPlanMatrixPrice, Orb::NewPlanTieredPrice, Orb::NewPlanBulkPrice, + Orb::NewPlanPackagePrice, + Orb::NewPlanMatrixPrice, Orb::NewPlanThresholdTotalAmountPrice, Orb::NewPlanTieredPackagePrice, Orb::NewPlanTieredWithMinimumPrice, - Orb::NewPlanUnitWithPercentPrice, + Orb::NewPlanGroupedTieredPrice, + Orb::NewPlanTieredPackageWithMinimumPrice, Orb::NewPlanPackageWithAllocationPrice, - Orb::NewPlanTierWithProrationPrice, + Orb::NewPlanUnitWithPercentPrice, + Orb::NewPlanMatrixWithAllocationPrice, + Orb::PlanCreateParams::Price::Price::TieredWithProration, Orb::NewPlanUnitWithProrationPrice, Orb::NewPlanGroupedAllocationPrice, + Orb::NewPlanBulkWithProrationPrice, Orb::NewPlanGroupedWithProratedMinimumPrice, Orb::NewPlanGroupedWithMeteredMinimumPrice, Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds, Orb::NewPlanMatrixWithDisplayNamePrice, - Orb::NewPlanBulkWithProrationPrice, Orb::NewPlanGroupedTieredPackagePrice, Orb::NewPlanMaxGroupTieredPackagePrice, Orb::NewPlanScalableMatrixWithUnitPricingPrice, Orb::NewPlanScalableMatrixWithTieredPricingPrice, Orb::NewPlanCumulativeGroupedBulkPrice, - Orb::NewPlanTieredPackageWithMinimumPrice, - Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice, Orb::NewPlanMinimumCompositePrice ) ) @@ -195,31 +195,31 @@ module Orb T.nilable( T.any( Orb::NewPlanUnitPrice::OrHash, - Orb::NewPlanPackagePrice::OrHash, - Orb::NewPlanMatrixPrice::OrHash, Orb::NewPlanTieredPrice::OrHash, Orb::NewPlanBulkPrice::OrHash, + Orb::NewPlanPackagePrice::OrHash, + Orb::NewPlanMatrixPrice::OrHash, Orb::NewPlanThresholdTotalAmountPrice::OrHash, Orb::NewPlanTieredPackagePrice::OrHash, Orb::NewPlanTieredWithMinimumPrice::OrHash, - Orb::NewPlanUnitWithPercentPrice::OrHash, + Orb::NewPlanGroupedTieredPrice::OrHash, + Orb::NewPlanTieredPackageWithMinimumPrice::OrHash, Orb::NewPlanPackageWithAllocationPrice::OrHash, - Orb::NewPlanTierWithProrationPrice::OrHash, + Orb::NewPlanUnitWithPercentPrice::OrHash, + Orb::NewPlanMatrixWithAllocationPrice::OrHash, + Orb::PlanCreateParams::Price::Price::TieredWithProration::OrHash, Orb::NewPlanUnitWithProrationPrice::OrHash, Orb::NewPlanGroupedAllocationPrice::OrHash, + Orb::NewPlanBulkWithProrationPrice::OrHash, Orb::NewPlanGroupedWithProratedMinimumPrice::OrHash, Orb::NewPlanGroupedWithMeteredMinimumPrice::OrHash, Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::OrHash, Orb::NewPlanMatrixWithDisplayNamePrice::OrHash, - Orb::NewPlanBulkWithProrationPrice::OrHash, Orb::NewPlanGroupedTieredPackagePrice::OrHash, Orb::NewPlanMaxGroupTieredPackagePrice::OrHash, Orb::NewPlanScalableMatrixWithUnitPricingPrice::OrHash, Orb::NewPlanScalableMatrixWithTieredPricingPrice::OrHash, Orb::NewPlanCumulativeGroupedBulkPrice::OrHash, - Orb::NewPlanTieredPackageWithMinimumPrice::OrHash, - Orb::NewPlanMatrixWithAllocationPrice::OrHash, - Orb::NewPlanGroupedTieredPrice::OrHash, Orb::NewPlanMinimumCompositePrice::OrHash ) ) @@ -230,7 +230,7 @@ module Orb allocation_price: nil, # The phase to add this price to. plan_phase_order: nil, - # The price to add to the plan + # New plan price request body params. price: nil ) end @@ -244,31 +244,31 @@ module Orb T.nilable( T.any( Orb::NewPlanUnitPrice, - Orb::NewPlanPackagePrice, - Orb::NewPlanMatrixPrice, Orb::NewPlanTieredPrice, Orb::NewPlanBulkPrice, + Orb::NewPlanPackagePrice, + Orb::NewPlanMatrixPrice, Orb::NewPlanThresholdTotalAmountPrice, Orb::NewPlanTieredPackagePrice, Orb::NewPlanTieredWithMinimumPrice, - Orb::NewPlanUnitWithPercentPrice, + Orb::NewPlanGroupedTieredPrice, + Orb::NewPlanTieredPackageWithMinimumPrice, Orb::NewPlanPackageWithAllocationPrice, - Orb::NewPlanTierWithProrationPrice, + Orb::NewPlanUnitWithPercentPrice, + Orb::NewPlanMatrixWithAllocationPrice, + Orb::PlanCreateParams::Price::Price::TieredWithProration, Orb::NewPlanUnitWithProrationPrice, Orb::NewPlanGroupedAllocationPrice, + Orb::NewPlanBulkWithProrationPrice, Orb::NewPlanGroupedWithProratedMinimumPrice, Orb::NewPlanGroupedWithMeteredMinimumPrice, Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds, Orb::NewPlanMatrixWithDisplayNamePrice, - Orb::NewPlanBulkWithProrationPrice, Orb::NewPlanGroupedTieredPackagePrice, Orb::NewPlanMaxGroupTieredPackagePrice, Orb::NewPlanScalableMatrixWithUnitPricingPrice, Orb::NewPlanScalableMatrixWithTieredPricingPrice, Orb::NewPlanCumulativeGroupedBulkPrice, - Orb::NewPlanTieredPackageWithMinimumPrice, - Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice, Orb::NewPlanMinimumCompositePrice ) ) @@ -278,7 +278,7 @@ module Orb def to_hash end - # The price to add to the plan + # New plan price request body params. module Price extend Orb::Internal::Type::Union @@ -286,35 +286,440 @@ module Orb T.type_alias do T.any( Orb::NewPlanUnitPrice, - Orb::NewPlanPackagePrice, - Orb::NewPlanMatrixPrice, Orb::NewPlanTieredPrice, Orb::NewPlanBulkPrice, + Orb::NewPlanPackagePrice, + Orb::NewPlanMatrixPrice, Orb::NewPlanThresholdTotalAmountPrice, Orb::NewPlanTieredPackagePrice, Orb::NewPlanTieredWithMinimumPrice, - Orb::NewPlanUnitWithPercentPrice, + Orb::NewPlanGroupedTieredPrice, + Orb::NewPlanTieredPackageWithMinimumPrice, Orb::NewPlanPackageWithAllocationPrice, - Orb::NewPlanTierWithProrationPrice, + Orb::NewPlanUnitWithPercentPrice, + Orb::NewPlanMatrixWithAllocationPrice, + Orb::PlanCreateParams::Price::Price::TieredWithProration, Orb::NewPlanUnitWithProrationPrice, Orb::NewPlanGroupedAllocationPrice, + Orb::NewPlanBulkWithProrationPrice, Orb::NewPlanGroupedWithProratedMinimumPrice, Orb::NewPlanGroupedWithMeteredMinimumPrice, Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds, Orb::NewPlanMatrixWithDisplayNamePrice, - Orb::NewPlanBulkWithProrationPrice, Orb::NewPlanGroupedTieredPackagePrice, Orb::NewPlanMaxGroupTieredPackagePrice, Orb::NewPlanScalableMatrixWithUnitPricingPrice, Orb::NewPlanScalableMatrixWithTieredPricingPrice, Orb::NewPlanCumulativeGroupedBulkPrice, - Orb::NewPlanTieredPackageWithMinimumPrice, - Orb::NewPlanMatrixWithAllocationPrice, - Orb::NewPlanGroupedTieredPrice, Orb::NewPlanMinimumCompositePrice ) end + class TieredWithProration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::Price::TieredWithProration, + Orb::Internal::AnyHash + ) + end + + # The cadence to bill for this price on. + sig do + returns( + Orb::PlanCreateParams::Price::Price::TieredWithProration::Cadence::OrSymbol + ) + end + attr_accessor :cadence + + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id + + # The pricing model type + sig { returns(Symbol) } + attr_accessor :model_type + + # The name of the price. + sig { returns(String) } + attr_accessor :name + + # Configuration for tiered_with_proration pricing + sig do + returns( + Orb::PlanCreateParams::Price::Price::TieredWithProration::TieredWithProrationConfig + ) + end + attr_reader :tiered_with_proration_config + + sig do + params( + tiered_with_proration_config: + Orb::PlanCreateParams::Price::Price::TieredWithProration::TieredWithProrationConfig::OrHash + ).void + end + attr_writer :tiered_with_proration_config + + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id + + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance + + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration + + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) + ) + end + attr_accessor :conversion_rate_config + + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + sig { returns(T.nilable(String)) } + attr_accessor :currency + + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration + + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + sig { returns(T.nilable(String)) } + attr_accessor :reference_id + + sig do + params( + cadence: + Orb::PlanCreateParams::Price::Price::TieredWithProration::Cadence::OrSymbol, + item_id: String, + name: String, + tiered_with_proration_config: + Orb::PlanCreateParams::Price::Price::TieredWithProration::TieredWithProrationConfig::OrHash, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String), + model_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + # The id of the item the price will be associated with. + item_id:, + # The name of the price. + name:, + # Configuration for tiered_with_proration pricing + tiered_with_proration_config:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + currency: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + reference_id: nil, + # The pricing model type + model_type: :tiered_with_proration + ) + end + + sig do + override.returns( + { + cadence: + Orb::PlanCreateParams::Price::Price::TieredWithProration::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_proration_config: + Orb::PlanCreateParams::Price::Price::TieredWithProration::TieredWithProrationConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::PlanCreateParams::Price::Price::TieredWithProration::Cadence + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::PlanCreateParams::Price::Price::TieredWithProration::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::PlanCreateParams::Price::Price::TieredWithProration::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::PlanCreateParams::Price::Price::TieredWithProration::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::PlanCreateParams::Price::Price::TieredWithProration::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::PlanCreateParams::Price::Price::TieredWithProration::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::PlanCreateParams::Price::Price::TieredWithProration::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::PlanCreateParams::Price::Price::TieredWithProration::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end + + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::Price::TieredWithProration::TieredWithProrationConfig, + Orb::Internal::AnyHash + ) + end + + # Tiers for rating based on total usage quantities into the specified tier with + # proration + sig do + returns( + T::Array[ + Orb::PlanCreateParams::Price::Price::TieredWithProration::TieredWithProrationConfig::Tier + ] + ) + end + attr_accessor :tiers + + # Configuration for tiered_with_proration pricing + sig do + params( + tiers: + T::Array[ + Orb::PlanCreateParams::Price::Price::TieredWithProration::TieredWithProrationConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Tiers for rating based on total usage quantities into the specified tier with + # proration + tiers: + ) + end + + sig do + override.returns( + { + tiers: + T::Array[ + Orb::PlanCreateParams::Price::Price::TieredWithProration::TieredWithProrationConfig::Tier + ] + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::Price::TieredWithProration::TieredWithProrationConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Inclusive tier starting value + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Amount per unit + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a single tiered with proration tier + sig do + params(tier_lower_bound: String, unit_amount: String).returns( + T.attached_class + ) + end + def self.new( + # Inclusive tier starting value + tier_lower_bound:, + # Amount per unit + unit_amount: + ) + end + + sig do + override.returns( + { tier_lower_bound: String, unit_amount: String } + ) + end + def to_hash + end + end + end + end + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel OrHash = T.type_alias do @@ -332,13 +737,27 @@ module Orb end attr_accessor :cadence - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_with_min_max_thresholds_config + # Configuration for grouped_with_min_max_thresholds pricing + sig do + returns( + Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig + ) + end + attr_reader :grouped_with_min_max_thresholds_config + + sig do + params( + grouped_with_min_max_thresholds_config: + Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig::OrHash + ).void + end + attr_writer :grouped_with_min_max_thresholds_config # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -445,7 +864,7 @@ module Orb cadence: Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, grouped_with_min_max_thresholds_config: - T::Hash[Symbol, T.anything], + Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig::OrHash, item_id: String, name: String, billable_metric_id: T.nilable(String), @@ -476,6 +895,7 @@ module Orb def self.new( # The cadence to bill for this price on. cadence:, + # Configuration for grouped_with_min_max_thresholds pricing grouped_with_min_max_thresholds_config:, # The id of the item the price will be associated with. item_id:, @@ -516,6 +936,7 @@ module Orb # A transient ID that can be used to reference this price when adding adjustments # in the same API call. reference_id: nil, + # The pricing model type model_type: :grouped_with_min_max_thresholds ) end @@ -526,7 +947,7 @@ module Orb cadence: Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, grouped_with_min_max_thresholds_config: - T::Hash[Symbol, T.anything], + Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, model_type: Symbol, name: String, @@ -612,6 +1033,66 @@ module Orb def self.values end end + + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, + Orb::Internal::AnyHash + ) + end + + # The event property used to group before applying thresholds + sig { returns(String) } + attr_accessor :grouping_key + + # The maximum amount to charge each group + sig { returns(String) } + attr_accessor :maximum_charge + + # The minimum amount to charge each group, regardless of usage + sig { returns(String) } + attr_accessor :minimum_charge + + # The base price charged per group + sig { returns(String) } + attr_accessor :per_unit_rate + + # Configuration for grouped_with_min_max_thresholds pricing + sig do + params( + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + ).returns(T.attached_class) + end + def self.new( + # The event property used to group before applying thresholds + grouping_key:, + # The maximum amount to charge each group + maximum_charge:, + # The minimum amount to charge each group, regardless of usage + minimum_charge:, + # The base price charged per group + per_unit_rate: + ) + end + + sig do + override.returns( + { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + ) + end + def to_hash + end + end end sig do diff --git a/rbi/orb/models/plan_version.rbi b/rbi/orb/models/plan_version.rbi index a60e22bd..ad844e12 100644 --- a/rbi/orb/models/plan_version.rbi +++ b/rbi/orb/models/plan_version.rbi @@ -44,14 +44,14 @@ module Orb T::Array[ T.any( Orb::Price::Unit::OrHash, - Orb::Price::Package::OrHash, - Orb::Price::Matrix::OrHash, Orb::Price::Tiered::OrHash, Orb::Price::Bulk::OrHash, + Orb::Price::Package::OrHash, + Orb::Price::Matrix::OrHash, Orb::Price::ThresholdTotalAmount::OrHash, Orb::Price::TieredPackage::OrHash, - Orb::Price::GroupedTiered::OrHash, Orb::Price::TieredWithMinimum::OrHash, + Orb::Price::GroupedTiered::OrHash, Orb::Price::TieredPackageWithMinimum::OrHash, Orb::Price::PackageWithAllocation::OrHash, Orb::Price::UnitWithPercent::OrHash, @@ -59,16 +59,16 @@ module Orb Orb::Price::TieredWithProration::OrHash, Orb::Price::UnitWithProration::OrHash, Orb::Price::GroupedAllocation::OrHash, + Orb::Price::BulkWithProration::OrHash, Orb::Price::GroupedWithProratedMinimum::OrHash, Orb::Price::GroupedWithMeteredMinimum::OrHash, + Orb::Price::GroupedWithMinMaxThresholds::OrHash, Orb::Price::MatrixWithDisplayName::OrHash, - Orb::Price::BulkWithProration::OrHash, Orb::Price::GroupedTieredPackage::OrHash, Orb::Price::MaxGroupTieredPackage::OrHash, Orb::Price::ScalableMatrixWithUnitPricing::OrHash, Orb::Price::ScalableMatrixWithTieredPricing::OrHash, Orb::Price::CumulativeGroupedBulk::OrHash, - Orb::Price::GroupedWithMinMaxThresholds::OrHash, Orb::Price::Minimum::OrHash ) ], diff --git a/rbi/orb/models/price.rbi b/rbi/orb/models/price.rbi index 9ca9ce1f..255ee0b5 100644 --- a/rbi/orb/models/price.rbi +++ b/rbi/orb/models/price.rbi @@ -19,14 +19,14 @@ module Orb T.type_alias do T.any( Orb::Price::Unit, - Orb::Price::Package, - Orb::Price::Matrix, Orb::Price::Tiered, Orb::Price::Bulk, + Orb::Price::Package, + Orb::Price::Matrix, Orb::Price::ThresholdTotalAmount, Orb::Price::TieredPackage, - Orb::Price::GroupedTiered, Orb::Price::TieredWithMinimum, + Orb::Price::GroupedTiered, Orb::Price::TieredPackageWithMinimum, Orb::Price::PackageWithAllocation, Orb::Price::UnitWithPercent, @@ -34,16 +34,16 @@ module Orb Orb::Price::TieredWithProration, Orb::Price::UnitWithProration, Orb::Price::GroupedAllocation, + Orb::Price::BulkWithProration, Orb::Price::GroupedWithProratedMinimum, Orb::Price::GroupedWithMeteredMinimum, + Orb::Price::GroupedWithMinMaxThresholds, Orb::Price::MatrixWithDisplayName, - Orb::Price::BulkWithProration, Orb::Price::GroupedTieredPackage, Orb::Price::MaxGroupTieredPackage, Orb::Price::ScalableMatrixWithUnitPricing, Orb::Price::ScalableMatrixWithTieredPricing, Orb::Price::CumulativeGroupedBulk, - Orb::Price::GroupedWithMinMaxThresholds, Orb::Price::Minimum ) end @@ -154,6 +154,7 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :minimum_amount + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -171,6 +172,7 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :replaces_price_id + # Configuration for unit pricing sig { returns(Orb::UnitConfig) } attr_reader :unit_config @@ -267,8 +269,10 @@ module Orb # The price id this price replaces. This price will take the place of the replaced # price in plan version migrations. replaces_price_id:, + # Configuration for unit pricing unit_config:, dimensional_price_configuration: nil, + # The pricing model type model_type: :unit ) end @@ -357,9 +361,9 @@ module Orb end end - class Package < Orb::Internal::Type::BaseModel + class Tiered < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(Orb::Price::Package, Orb::Internal::AnyHash) } + T.type_alias { T.any(Orb::Price::Tiered, Orb::Internal::AnyHash) } sig { returns(String) } attr_accessor :id @@ -384,7 +388,7 @@ module Orb end attr_writer :billing_cycle_configuration - sig { returns(Orb::Price::Package::Cadence::TaggedSymbol) } + sig { returns(Orb::Price::Tiered::Cadence::TaggedSymbol) } attr_accessor :cadence sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } @@ -394,9 +398,7 @@ module Orb attr_accessor :conversion_rate sig do - returns( - T.nilable(Orb::Price::Package::ConversionRateConfig::Variants) - ) + returns(T.nilable(Orb::Price::Tiered::ConversionRateConfig::Variants)) end attr_accessor :conversion_rate_config @@ -465,22 +467,17 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :minimum_amount + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type sig { returns(String) } attr_accessor :name - sig { returns(Orb::PackageConfig) } - attr_reader :package_config - - sig { params(package_config: Orb::PackageConfig::OrHash).void } - attr_writer :package_config - sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Price::Package::PriceType::TaggedSymbol) } + sig { returns(Orb::Price::Tiered::PriceType::TaggedSymbol) } attr_accessor :price_type # The price id this price replaces. This price will take the place of the replaced @@ -488,6 +485,13 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :replaces_price_id + # Configuration for tiered pricing + sig { returns(Orb::TieredConfig) } + attr_reader :tiered_config + + sig { params(tiered_config: Orb::TieredConfig::OrHash).void } + attr_writer :tiered_config + sig { returns(T.nilable(Orb::DimensionalPriceConfiguration)) } attr_reader :dimensional_price_configuration @@ -504,7 +508,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - cadence: Orb::Price::Package::Cadence::OrSymbol, + cadence: Orb::Price::Tiered::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), @@ -538,10 +542,10 @@ module Orb minimum: T.nilable(Orb::Minimum::OrHash), minimum_amount: T.nilable(String), name: String, - package_config: Orb::PackageConfig::OrHash, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::Package::PriceType::OrSymbol, + price_type: Orb::Price::Tiered::PriceType::OrSymbol, replaces_price_id: T.nilable(String), + tiered_config: Orb::TieredConfig::OrHash, dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), model_type: Symbol @@ -573,14 +577,16 @@ module Orb minimum:, minimum_amount:, name:, - package_config:, plan_phase_order:, price_type:, # The price id this price replaces. This price will take the place of the replaced # price in plan version migrations. replaces_price_id:, + # Configuration for tiered pricing + tiered_config:, dimensional_price_configuration: nil, - model_type: :package + # The pricing model type + model_type: :tiered ) end @@ -590,12 +596,12 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::Package::Cadence::TaggedSymbol, + cadence: Orb::Price::Tiered::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: - T.nilable(Orb::Price::Package::ConversionRateConfig::Variants), + T.nilable(Orb::Price::Tiered::ConversionRateConfig::Variants), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), currency: String, @@ -612,10 +618,10 @@ module Orb minimum_amount: T.nilable(String), model_type: Symbol, name: String, - package_config: Orb::PackageConfig, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::Package::PriceType::TaggedSymbol, + price_type: Orb::Price::Tiered::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), + tiered_config: Orb::TieredConfig, dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) } @@ -628,22 +634,21 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Price::Package::Cadence) } + T.type_alias { T.all(Symbol, Orb::Price::Tiered::Cadence) } OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = - T.let(:one_time, Orb::Price::Package::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Price::Package::Cadence::TaggedSymbol) + ONE_TIME = T.let(:one_time, Orb::Price::Tiered::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Price::Tiered::Cadence::TaggedSymbol) QUARTERLY = - T.let(:quarterly, Orb::Price::Package::Cadence::TaggedSymbol) + T.let(:quarterly, Orb::Price::Tiered::Cadence::TaggedSymbol) SEMI_ANNUAL = - T.let(:semi_annual, Orb::Price::Package::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Price::Package::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Price::Package::Cadence::TaggedSymbol) + T.let(:semi_annual, Orb::Price::Tiered::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Price::Tiered::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Price::Tiered::Cadence::TaggedSymbol) sig do override.returns( - T::Array[Orb::Price::Package::Cadence::TaggedSymbol] + T::Array[Orb::Price::Tiered::Cadence::TaggedSymbol] ) end def self.values @@ -654,17 +659,17 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Price::Package::PriceType) } + T.type_alias { T.all(Symbol, Orb::Price::Tiered::PriceType) } OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = - T.let(:usage_price, Orb::Price::Package::PriceType::TaggedSymbol) + T.let(:usage_price, Orb::Price::Tiered::PriceType::TaggedSymbol) FIXED_PRICE = - T.let(:fixed_price, Orb::Price::Package::PriceType::TaggedSymbol) + T.let(:fixed_price, Orb::Price::Tiered::PriceType::TaggedSymbol) sig do override.returns( - T::Array[Orb::Price::Package::PriceType::TaggedSymbol] + T::Array[Orb::Price::Tiered::PriceType::TaggedSymbol] ) end def self.values @@ -672,9 +677,9 @@ module Orb end end - class Matrix < Orb::Internal::Type::BaseModel + class Bulk < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(Orb::Price::Matrix, Orb::Internal::AnyHash) } + T.type_alias { T.any(Orb::Price::Bulk, Orb::Internal::AnyHash) } sig { returns(String) } attr_accessor :id @@ -699,7 +704,14 @@ module Orb end attr_writer :billing_cycle_configuration - sig { returns(Orb::Price::Matrix::Cadence::TaggedSymbol) } + # Configuration for bulk pricing + sig { returns(Orb::BulkConfig) } + attr_reader :bulk_config + + sig { params(bulk_config: Orb::BulkConfig::OrHash).void } + attr_writer :bulk_config + + sig { returns(Orb::Price::Bulk::Cadence::TaggedSymbol) } attr_accessor :cadence sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } @@ -709,7 +721,7 @@ module Orb attr_accessor :conversion_rate sig do - returns(T.nilable(Orb::Price::Matrix::ConversionRateConfig::Variants)) + returns(T.nilable(Orb::Price::Bulk::ConversionRateConfig::Variants)) end attr_accessor :conversion_rate_config @@ -753,12 +765,6 @@ module Orb sig { params(item: Orb::ItemSlim::OrHash).void } attr_writer :item - sig { returns(Orb::MatrixConfig) } - attr_reader :matrix_config - - sig { params(matrix_config: Orb::MatrixConfig::OrHash).void } - attr_writer :matrix_config - sig { returns(T.nilable(Orb::Maximum)) } attr_reader :maximum @@ -784,6 +790,7 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :minimum_amount + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -793,7 +800,7 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Price::Matrix::PriceType::TaggedSymbol) } + sig { returns(Orb::Price::Bulk::PriceType::TaggedSymbol) } attr_accessor :price_type # The price id this price replaces. This price will take the place of the replaced @@ -817,7 +824,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - cadence: Orb::Price::Matrix::Cadence::OrSymbol, + bulk_config: Orb::BulkConfig::OrHash, + cadence: Orb::Price::Bulk::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), @@ -845,7 +853,6 @@ module Orb invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration::OrHash), item: Orb::ItemSlim::OrHash, - matrix_config: Orb::MatrixConfig::OrHash, maximum: T.nilable(Orb::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], @@ -853,7 +860,7 @@ module Orb minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::Matrix::PriceType::OrSymbol, + price_type: Orb::Price::Bulk::PriceType::OrSymbol, replaces_price_id: T.nilable(String), dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), @@ -864,6 +871,8 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, + # Configuration for bulk pricing + bulk_config:, cadence:, composite_price_filters:, conversion_rate:, @@ -876,7 +885,6 @@ module Orb fixed_price_quantity:, invoicing_cycle_configuration:, item:, - matrix_config:, maximum:, maximum_amount:, # User specified key-value pairs for the resource. If not present, this defaults @@ -893,7 +901,8 @@ module Orb # price in plan version migrations. replaces_price_id:, dimensional_price_configuration: nil, - model_type: :matrix + # The pricing model type + model_type: :bulk ) end @@ -903,12 +912,13 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::Matrix::Cadence::TaggedSymbol, + bulk_config: Orb::BulkConfig, + cadence: Orb::Price::Bulk::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: - T.nilable(Orb::Price::Matrix::ConversionRateConfig::Variants), + T.nilable(Orb::Price::Bulk::ConversionRateConfig::Variants), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), currency: String, @@ -918,7 +928,6 @@ module Orb invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration), item: Orb::ItemSlim, - matrix_config: Orb::MatrixConfig, maximum: T.nilable(Orb::Maximum), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], @@ -927,7 +936,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::Matrix::PriceType::TaggedSymbol, + price_type: Orb::Price::Bulk::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) @@ -941,22 +950,19 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Price::Matrix::Cadence) } + T.type_alias { T.all(Symbol, Orb::Price::Bulk::Cadence) } OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = T.let(:one_time, Orb::Price::Matrix::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Price::Matrix::Cadence::TaggedSymbol) - QUARTERLY = - T.let(:quarterly, Orb::Price::Matrix::Cadence::TaggedSymbol) + ONE_TIME = T.let(:one_time, Orb::Price::Bulk::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Price::Bulk::Cadence::TaggedSymbol) + QUARTERLY = T.let(:quarterly, Orb::Price::Bulk::Cadence::TaggedSymbol) SEMI_ANNUAL = - T.let(:semi_annual, Orb::Price::Matrix::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Price::Matrix::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Price::Matrix::Cadence::TaggedSymbol) + T.let(:semi_annual, Orb::Price::Bulk::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Price::Bulk::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Price::Bulk::Cadence::TaggedSymbol) sig do - override.returns( - T::Array[Orb::Price::Matrix::Cadence::TaggedSymbol] - ) + override.returns(T::Array[Orb::Price::Bulk::Cadence::TaggedSymbol]) end def self.values end @@ -966,17 +972,17 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Price::Matrix::PriceType) } + T.type_alias { T.all(Symbol, Orb::Price::Bulk::PriceType) } OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = - T.let(:usage_price, Orb::Price::Matrix::PriceType::TaggedSymbol) + T.let(:usage_price, Orb::Price::Bulk::PriceType::TaggedSymbol) FIXED_PRICE = - T.let(:fixed_price, Orb::Price::Matrix::PriceType::TaggedSymbol) + T.let(:fixed_price, Orb::Price::Bulk::PriceType::TaggedSymbol) sig do override.returns( - T::Array[Orb::Price::Matrix::PriceType::TaggedSymbol] + T::Array[Orb::Price::Bulk::PriceType::TaggedSymbol] ) end def self.values @@ -984,9 +990,9 @@ module Orb end end - class Tiered < Orb::Internal::Type::BaseModel + class Package < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(Orb::Price::Tiered, Orb::Internal::AnyHash) } + T.type_alias { T.any(Orb::Price::Package, Orb::Internal::AnyHash) } sig { returns(String) } attr_accessor :id @@ -1011,7 +1017,7 @@ module Orb end attr_writer :billing_cycle_configuration - sig { returns(Orb::Price::Tiered::Cadence::TaggedSymbol) } + sig { returns(Orb::Price::Package::Cadence::TaggedSymbol) } attr_accessor :cadence sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } @@ -1021,7 +1027,9 @@ module Orb attr_accessor :conversion_rate sig do - returns(T.nilable(Orb::Price::Tiered::ConversionRateConfig::Variants)) + returns( + T.nilable(Orb::Price::Package::ConversionRateConfig::Variants) + ) end attr_accessor :conversion_rate_config @@ -1090,16 +1098,24 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :minimum_amount + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type sig { returns(String) } attr_accessor :name + # Configuration for package pricing + sig { returns(Orb::PackageConfig) } + attr_reader :package_config + + sig { params(package_config: Orb::PackageConfig::OrHash).void } + attr_writer :package_config + sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Price::Tiered::PriceType::TaggedSymbol) } + sig { returns(Orb::Price::Package::PriceType::TaggedSymbol) } attr_accessor :price_type # The price id this price replaces. This price will take the place of the replaced @@ -1107,12 +1123,6 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :replaces_price_id - sig { returns(Orb::TieredConfig) } - attr_reader :tiered_config - - sig { params(tiered_config: Orb::TieredConfig::OrHash).void } - attr_writer :tiered_config - sig { returns(T.nilable(Orb::DimensionalPriceConfiguration)) } attr_reader :dimensional_price_configuration @@ -1129,7 +1139,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - cadence: Orb::Price::Tiered::Cadence::OrSymbol, + cadence: Orb::Price::Package::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), @@ -1163,10 +1173,10 @@ module Orb minimum: T.nilable(Orb::Minimum::OrHash), minimum_amount: T.nilable(String), name: String, + package_config: Orb::PackageConfig::OrHash, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::Tiered::PriceType::OrSymbol, + price_type: Orb::Price::Package::PriceType::OrSymbol, replaces_price_id: T.nilable(String), - tiered_config: Orb::TieredConfig::OrHash, dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), model_type: Symbol @@ -1198,14 +1208,16 @@ module Orb minimum:, minimum_amount:, name:, + # Configuration for package pricing + package_config:, plan_phase_order:, price_type:, # The price id this price replaces. This price will take the place of the replaced # price in plan version migrations. replaces_price_id:, - tiered_config:, dimensional_price_configuration: nil, - model_type: :tiered + # The pricing model type + model_type: :package ) end @@ -1215,12 +1227,12 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::Tiered::Cadence::TaggedSymbol, + cadence: Orb::Price::Package::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: - T.nilable(Orb::Price::Tiered::ConversionRateConfig::Variants), + T.nilable(Orb::Price::Package::ConversionRateConfig::Variants), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), currency: String, @@ -1237,10 +1249,10 @@ module Orb minimum_amount: T.nilable(String), model_type: Symbol, name: String, + package_config: Orb::PackageConfig, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::Tiered::PriceType::TaggedSymbol, + price_type: Orb::Price::Package::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), - tiered_config: Orb::TieredConfig, dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) } @@ -1253,21 +1265,22 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Price::Tiered::Cadence) } + T.type_alias { T.all(Symbol, Orb::Price::Package::Cadence) } OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = T.let(:one_time, Orb::Price::Tiered::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Price::Tiered::Cadence::TaggedSymbol) + ONE_TIME = + T.let(:one_time, Orb::Price::Package::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Price::Package::Cadence::TaggedSymbol) QUARTERLY = - T.let(:quarterly, Orb::Price::Tiered::Cadence::TaggedSymbol) + T.let(:quarterly, Orb::Price::Package::Cadence::TaggedSymbol) SEMI_ANNUAL = - T.let(:semi_annual, Orb::Price::Tiered::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Price::Tiered::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Price::Tiered::Cadence::TaggedSymbol) + T.let(:semi_annual, Orb::Price::Package::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Price::Package::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Price::Package::Cadence::TaggedSymbol) sig do override.returns( - T::Array[Orb::Price::Tiered::Cadence::TaggedSymbol] + T::Array[Orb::Price::Package::Cadence::TaggedSymbol] ) end def self.values @@ -1278,17 +1291,17 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Price::Tiered::PriceType) } + T.type_alias { T.all(Symbol, Orb::Price::Package::PriceType) } OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = - T.let(:usage_price, Orb::Price::Tiered::PriceType::TaggedSymbol) + T.let(:usage_price, Orb::Price::Package::PriceType::TaggedSymbol) FIXED_PRICE = - T.let(:fixed_price, Orb::Price::Tiered::PriceType::TaggedSymbol) + T.let(:fixed_price, Orb::Price::Package::PriceType::TaggedSymbol) sig do override.returns( - T::Array[Orb::Price::Tiered::PriceType::TaggedSymbol] + T::Array[Orb::Price::Package::PriceType::TaggedSymbol] ) end def self.values @@ -1296,9 +1309,9 @@ module Orb end end - class Bulk < Orb::Internal::Type::BaseModel + class Matrix < Orb::Internal::Type::BaseModel OrHash = - T.type_alias { T.any(Orb::Price::Bulk, Orb::Internal::AnyHash) } + T.type_alias { T.any(Orb::Price::Matrix, Orb::Internal::AnyHash) } sig { returns(String) } attr_accessor :id @@ -1323,13 +1336,7 @@ module Orb end attr_writer :billing_cycle_configuration - sig { returns(Orb::BulkConfig) } - attr_reader :bulk_config - - sig { params(bulk_config: Orb::BulkConfig::OrHash).void } - attr_writer :bulk_config - - sig { returns(Orb::Price::Bulk::Cadence::TaggedSymbol) } + sig { returns(Orb::Price::Matrix::Cadence::TaggedSymbol) } attr_accessor :cadence sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } @@ -1339,7 +1346,7 @@ module Orb attr_accessor :conversion_rate sig do - returns(T.nilable(Orb::Price::Bulk::ConversionRateConfig::Variants)) + returns(T.nilable(Orb::Price::Matrix::ConversionRateConfig::Variants)) end attr_accessor :conversion_rate_config @@ -1383,6 +1390,13 @@ module Orb sig { params(item: Orb::ItemSlim::OrHash).void } attr_writer :item + # Configuration for matrix pricing + sig { returns(Orb::MatrixConfig) } + attr_reader :matrix_config + + sig { params(matrix_config: Orb::MatrixConfig::OrHash).void } + attr_writer :matrix_config + sig { returns(T.nilable(Orb::Maximum)) } attr_reader :maximum @@ -1408,6 +1422,7 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :minimum_amount + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -1417,7 +1432,7 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Price::Bulk::PriceType::TaggedSymbol) } + sig { returns(Orb::Price::Matrix::PriceType::TaggedSymbol) } attr_accessor :price_type # The price id this price replaces. This price will take the place of the replaced @@ -1441,8 +1456,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - bulk_config: Orb::BulkConfig::OrHash, - cadence: Orb::Price::Bulk::Cadence::OrSymbol, + cadence: Orb::Price::Matrix::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), @@ -1470,6 +1484,7 @@ module Orb invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration::OrHash), item: Orb::ItemSlim::OrHash, + matrix_config: Orb::MatrixConfig::OrHash, maximum: T.nilable(Orb::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], @@ -1477,7 +1492,7 @@ module Orb minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::Bulk::PriceType::OrSymbol, + price_type: Orb::Price::Matrix::PriceType::OrSymbol, replaces_price_id: T.nilable(String), dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), @@ -1488,7 +1503,6 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, - bulk_config:, cadence:, composite_price_filters:, conversion_rate:, @@ -1501,6 +1515,8 @@ module Orb fixed_price_quantity:, invoicing_cycle_configuration:, item:, + # Configuration for matrix pricing + matrix_config:, maximum:, maximum_amount:, # User specified key-value pairs for the resource. If not present, this defaults @@ -1517,7 +1533,8 @@ module Orb # price in plan version migrations. replaces_price_id:, dimensional_price_configuration: nil, - model_type: :bulk + # The pricing model type + model_type: :matrix ) end @@ -1527,13 +1544,12 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - bulk_config: Orb::BulkConfig, - cadence: Orb::Price::Bulk::Cadence::TaggedSymbol, + cadence: Orb::Price::Matrix::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: - T.nilable(Orb::Price::Bulk::ConversionRateConfig::Variants), + T.nilable(Orb::Price::Matrix::ConversionRateConfig::Variants), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), currency: String, @@ -1543,6 +1559,7 @@ module Orb invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration), item: Orb::ItemSlim, + matrix_config: Orb::MatrixConfig, maximum: T.nilable(Orb::Maximum), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], @@ -1551,7 +1568,7 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::Bulk::PriceType::TaggedSymbol, + price_type: Orb::Price::Matrix::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) @@ -1565,19 +1582,22 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Price::Bulk::Cadence) } + T.type_alias { T.all(Symbol, Orb::Price::Matrix::Cadence) } OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = T.let(:one_time, Orb::Price::Bulk::Cadence::TaggedSymbol) - MONTHLY = T.let(:monthly, Orb::Price::Bulk::Cadence::TaggedSymbol) - QUARTERLY = T.let(:quarterly, Orb::Price::Bulk::Cadence::TaggedSymbol) + ONE_TIME = T.let(:one_time, Orb::Price::Matrix::Cadence::TaggedSymbol) + MONTHLY = T.let(:monthly, Orb::Price::Matrix::Cadence::TaggedSymbol) + QUARTERLY = + T.let(:quarterly, Orb::Price::Matrix::Cadence::TaggedSymbol) SEMI_ANNUAL = - T.let(:semi_annual, Orb::Price::Bulk::Cadence::TaggedSymbol) - ANNUAL = T.let(:annual, Orb::Price::Bulk::Cadence::TaggedSymbol) - CUSTOM = T.let(:custom, Orb::Price::Bulk::Cadence::TaggedSymbol) + T.let(:semi_annual, Orb::Price::Matrix::Cadence::TaggedSymbol) + ANNUAL = T.let(:annual, Orb::Price::Matrix::Cadence::TaggedSymbol) + CUSTOM = T.let(:custom, Orb::Price::Matrix::Cadence::TaggedSymbol) sig do - override.returns(T::Array[Orb::Price::Bulk::Cadence::TaggedSymbol]) + override.returns( + T::Array[Orb::Price::Matrix::Cadence::TaggedSymbol] + ) end def self.values end @@ -1587,17 +1607,17 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Price::Bulk::PriceType) } + T.type_alias { T.all(Symbol, Orb::Price::Matrix::PriceType) } OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = - T.let(:usage_price, Orb::Price::Bulk::PriceType::TaggedSymbol) + T.let(:usage_price, Orb::Price::Matrix::PriceType::TaggedSymbol) FIXED_PRICE = - T.let(:fixed_price, Orb::Price::Bulk::PriceType::TaggedSymbol) + T.let(:fixed_price, Orb::Price::Matrix::PriceType::TaggedSymbol) sig do override.returns( - T::Array[Orb::Price::Bulk::PriceType::TaggedSymbol] + T::Array[Orb::Price::Matrix::PriceType::TaggedSymbol] ) end def self.values @@ -1717,6 +1737,7 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :minimum_amount + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -1736,8 +1757,19 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :replaces_price_id - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :threshold_total_amount_config + # Configuration for threshold_total_amount pricing + sig do + returns(Orb::Price::ThresholdTotalAmount::ThresholdTotalAmountConfig) + end + attr_reader :threshold_total_amount_config + + sig do + params( + threshold_total_amount_config: + Orb::Price::ThresholdTotalAmount::ThresholdTotalAmountConfig::OrHash + ).void + end + attr_writer :threshold_total_amount_config sig { returns(T.nilable(Orb::DimensionalPriceConfiguration)) } attr_reader :dimensional_price_configuration @@ -1792,7 +1824,8 @@ module Orb plan_phase_order: T.nilable(Integer), price_type: Orb::Price::ThresholdTotalAmount::PriceType::OrSymbol, replaces_price_id: T.nilable(String), - threshold_total_amount_config: T::Hash[Symbol, T.anything], + threshold_total_amount_config: + Orb::Price::ThresholdTotalAmount::ThresholdTotalAmountConfig::OrHash, dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), model_type: Symbol @@ -1829,8 +1862,10 @@ module Orb # The price id this price replaces. This price will take the place of the replaced # price in plan version migrations. replaces_price_id:, + # Configuration for threshold_total_amount pricing threshold_total_amount_config:, dimensional_price_configuration: nil, + # The pricing model type model_type: :threshold_total_amount ) end @@ -1869,7 +1904,8 @@ module Orb price_type: Orb::Price::ThresholdTotalAmount::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), - threshold_total_amount_config: T::Hash[Symbol, T.anything], + threshold_total_amount_config: + Orb::Price::ThresholdTotalAmount::ThresholdTotalAmountConfig, dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) } @@ -1957,6 +1993,102 @@ module Orb def self.values end end + + class ThresholdTotalAmountConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::ThresholdTotalAmount::ThresholdTotalAmountConfig, + Orb::Internal::AnyHash + ) + end + + # When the quantity consumed passes a provided threshold, the configured total + # will be charged + sig do + returns( + T::Array[ + Orb::Price::ThresholdTotalAmount::ThresholdTotalAmountConfig::ConsumptionTable + ] + ) + end + attr_accessor :consumption_table + + # If true, the unit price will be prorated to the billing period + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :prorate + + # Configuration for threshold_total_amount pricing + sig do + params( + consumption_table: + T::Array[ + Orb::Price::ThresholdTotalAmount::ThresholdTotalAmountConfig::ConsumptionTable::OrHash + ], + prorate: T.nilable(T::Boolean) + ).returns(T.attached_class) + end + def self.new( + # When the quantity consumed passes a provided threshold, the configured total + # will be charged + consumption_table:, + # If true, the unit price will be prorated to the billing period + prorate: nil + ) + end + + sig do + override.returns( + { + consumption_table: + T::Array[ + Orb::Price::ThresholdTotalAmount::ThresholdTotalAmountConfig::ConsumptionTable + ], + prorate: T.nilable(T::Boolean) + } + ) + end + def to_hash + end + + class ConsumptionTable < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::ThresholdTotalAmount::ThresholdTotalAmountConfig::ConsumptionTable, + Orb::Internal::AnyHash + ) + end + + # Quantity threshold + sig { returns(String) } + attr_accessor :threshold + + # Total amount for this threshold + sig { returns(String) } + attr_accessor :total_amount + + # Configuration for a single threshold + sig do + params(threshold: String, total_amount: String).returns( + T.attached_class + ) + end + def self.new( + # Quantity threshold + threshold:, + # Total amount for this threshold + total_amount: + ) + end + + sig do + override.returns({ threshold: String, total_amount: String }) + end + def to_hash + end + end + end end class TieredPackage < Orb::Internal::Type::BaseModel @@ -2069,6 +2201,7 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :minimum_amount + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -2086,8 +2219,17 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :replaces_price_id - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :tiered_package_config + # Configuration for tiered_package pricing + sig { returns(Orb::Price::TieredPackage::TieredPackageConfig) } + attr_reader :tiered_package_config + + sig do + params( + tiered_package_config: + Orb::Price::TieredPackage::TieredPackageConfig::OrHash + ).void + end + attr_writer :tiered_package_config sig { returns(T.nilable(Orb::DimensionalPriceConfiguration)) } attr_reader :dimensional_price_configuration @@ -2142,7 +2284,8 @@ module Orb plan_phase_order: T.nilable(Integer), price_type: Orb::Price::TieredPackage::PriceType::OrSymbol, replaces_price_id: T.nilable(String), - tiered_package_config: T::Hash[Symbol, T.anything], + tiered_package_config: + Orb::Price::TieredPackage::TieredPackageConfig::OrHash, dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), model_type: Symbol @@ -2179,8 +2322,10 @@ module Orb # The price id this price replaces. This price will take the place of the replaced # price in plan version migrations. replaces_price_id:, + # Configuration for tiered_package pricing tiered_package_config:, dimensional_price_configuration: nil, + # The pricing model type model_type: :tiered_package ) end @@ -2218,7 +2363,8 @@ module Orb plan_phase_order: T.nilable(Integer), price_type: Orb::Price::TieredPackage::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), - tiered_package_config: T::Hash[Symbol, T.anything], + tiered_package_config: + Orb::Price::TieredPackage::TieredPackageConfig, dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) } @@ -2285,12 +2431,104 @@ module Orb def self.values end end + + class TieredPackageConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredPackage::TieredPackageConfig, + Orb::Internal::AnyHash + ) + end + + # Package size + sig { returns(String) } + attr_accessor :package_size + + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + sig do + returns( + T::Array[Orb::Price::TieredPackage::TieredPackageConfig::Tier] + ) + end + attr_accessor :tiers + + # Configuration for tiered_package pricing + sig do + params( + package_size: String, + tiers: + T::Array[ + Orb::Price::TieredPackage::TieredPackageConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Package size + package_size:, + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + tiers: + ) + end + + sig do + override.returns( + { + package_size: String, + tiers: + T::Array[Orb::Price::TieredPackage::TieredPackageConfig::Tier] + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredPackage::TieredPackageConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Price per package + sig { returns(String) } + attr_accessor :per_unit + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Configuration for a single tier with business logic + sig do + params(per_unit: String, tier_lower_bound: String).returns( + T.attached_class + ) + end + def self.new( + # Price per package + per_unit:, + # Tier lower bound + tier_lower_bound: + ) + end + + sig do + override.returns({ per_unit: String, tier_lower_bound: String }) + end + def to_hash + end + end + end end - class GroupedTiered < Orb::Internal::Type::BaseModel + class TieredWithMinimum < Orb::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(Orb::Price::GroupedTiered, Orb::Internal::AnyHash) + T.any(Orb::Price::TieredWithMinimum, Orb::Internal::AnyHash) end sig { returns(String) } @@ -2316,7 +2554,7 @@ module Orb end attr_writer :billing_cycle_configuration - sig { returns(Orb::Price::GroupedTiered::Cadence::TaggedSymbol) } + sig { returns(Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol) } attr_accessor :cadence sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } @@ -2327,7 +2565,9 @@ module Orb sig do returns( - T.nilable(Orb::Price::GroupedTiered::ConversionRateConfig::Variants) + T.nilable( + Orb::Price::TieredWithMinimum::ConversionRateConfig::Variants + ) ) end attr_accessor :conversion_rate_config @@ -2355,9 +2595,6 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_tiered_config - sig { returns(T.nilable(Orb::BillingCycleConfiguration)) } attr_reader :invoicing_cycle_configuration @@ -2400,6 +2637,7 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :minimum_amount + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -2409,7 +2647,7 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Price::GroupedTiered::PriceType::TaggedSymbol) } + sig { returns(Orb::Price::TieredWithMinimum::PriceType::TaggedSymbol) } attr_accessor :price_type # The price id this price replaces. This price will take the place of the replaced @@ -2417,6 +2655,18 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :replaces_price_id + # Configuration for tiered_with_minimum pricing + sig { returns(Orb::Price::TieredWithMinimum::TieredWithMinimumConfig) } + attr_reader :tiered_with_minimum_config + + sig do + params( + tiered_with_minimum_config: + Orb::Price::TieredWithMinimum::TieredWithMinimumConfig::OrHash + ).void + end + attr_writer :tiered_with_minimum_config + sig { returns(T.nilable(Orb::DimensionalPriceConfiguration)) } attr_reader :dimensional_price_configuration @@ -2433,7 +2683,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - cadence: Orb::Price::GroupedTiered::Cadence::OrSymbol, + cadence: Orb::Price::TieredWithMinimum::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), @@ -2458,7 +2708,6 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - grouped_tiered_config: T::Hash[Symbol, T.anything], invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration::OrHash), item: Orb::ItemSlim::OrHash, @@ -2469,8 +2718,10 @@ module Orb minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::GroupedTiered::PriceType::OrSymbol, + price_type: Orb::Price::TieredWithMinimum::PriceType::OrSymbol, replaces_price_id: T.nilable(String), + tiered_with_minimum_config: + Orb::Price::TieredWithMinimum::TieredWithMinimumConfig::OrHash, dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), model_type: Symbol @@ -2490,7 +2741,6 @@ module Orb discount:, external_price_id:, fixed_price_quantity:, - grouped_tiered_config:, invoicing_cycle_configuration:, item:, maximum:, @@ -2508,8 +2758,11 @@ module Orb # The price id this price replaces. This price will take the place of the replaced # price in plan version migrations. replaces_price_id:, + # Configuration for tiered_with_minimum pricing + tiered_with_minimum_config:, dimensional_price_configuration: nil, - model_type: :grouped_tiered + # The pricing model type + model_type: :tiered_with_minimum ) end @@ -2519,13 +2772,13 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::GroupedTiered::Cadence::TaggedSymbol, + cadence: Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::GroupedTiered::ConversionRateConfig::Variants + Orb::Price::TieredWithMinimum::ConversionRateConfig::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -2533,7 +2786,6 @@ module Orb discount: T.nilable(Orb::Discount::Variants), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - grouped_tiered_config: T::Hash[Symbol, T.anything], invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration), item: Orb::ItemSlim, @@ -2545,8 +2797,11 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::GroupedTiered::PriceType::TaggedSymbol, + price_type: + Orb::Price::TieredWithMinimum::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), + tiered_with_minimum_config: + Orb::Price::TieredWithMinimum::TieredWithMinimumConfig, dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) } @@ -2559,28 +2814,39 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Price::GroupedTiered::Cadence) } + T.type_alias do + T.all(Symbol, Orb::Price::TieredWithMinimum::Cadence) + end OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = - T.let(:one_time, Orb::Price::GroupedTiered::Cadence::TaggedSymbol) + T.let( + :one_time, + Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol + ) MONTHLY = - T.let(:monthly, Orb::Price::GroupedTiered::Cadence::TaggedSymbol) + T.let( + :monthly, + Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol + ) QUARTERLY = - T.let(:quarterly, Orb::Price::GroupedTiered::Cadence::TaggedSymbol) + T.let( + :quarterly, + Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol + ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Price::GroupedTiered::Cadence::TaggedSymbol + Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol ) ANNUAL = - T.let(:annual, Orb::Price::GroupedTiered::Cadence::TaggedSymbol) + T.let(:annual, Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol) CUSTOM = - T.let(:custom, Orb::Price::GroupedTiered::Cadence::TaggedSymbol) + T.let(:custom, Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol) sig do override.returns( - T::Array[Orb::Price::GroupedTiered::Cadence::TaggedSymbol] + T::Array[Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol] ) end def self.values @@ -2591,34 +2857,160 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias { T.all(Symbol, Orb::Price::GroupedTiered::PriceType) } + T.type_alias do + T.all(Symbol, Orb::Price::TieredWithMinimum::PriceType) + end OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = T.let( :usage_price, - Orb::Price::GroupedTiered::PriceType::TaggedSymbol + Orb::Price::TieredWithMinimum::PriceType::TaggedSymbol ) FIXED_PRICE = T.let( :fixed_price, - Orb::Price::GroupedTiered::PriceType::TaggedSymbol + Orb::Price::TieredWithMinimum::PriceType::TaggedSymbol ) sig do override.returns( - T::Array[Orb::Price::GroupedTiered::PriceType::TaggedSymbol] + T::Array[Orb::Price::TieredWithMinimum::PriceType::TaggedSymbol] ) end def self.values end end + + class TieredWithMinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredWithMinimum::TieredWithMinimumConfig, + Orb::Internal::AnyHash + ) + end + + # Tiered pricing with a minimum amount dependent on the volume tier. Tiers are + # defined using exclusive lower bounds. + sig do + returns( + T::Array[ + Orb::Price::TieredWithMinimum::TieredWithMinimumConfig::Tier + ] + ) + end + attr_accessor :tiers + + # If true, tiers with an accrued amount of 0 will not be included in the rating. + sig { returns(T.nilable(T::Boolean)) } + attr_reader :hide_zero_amount_tiers + + sig { params(hide_zero_amount_tiers: T::Boolean).void } + attr_writer :hide_zero_amount_tiers + + # If true, the unit price will be prorated to the billing period + sig { returns(T.nilable(T::Boolean)) } + attr_reader :prorate + + sig { params(prorate: T::Boolean).void } + attr_writer :prorate + + # Configuration for tiered_with_minimum pricing + sig do + params( + tiers: + T::Array[ + Orb::Price::TieredWithMinimum::TieredWithMinimumConfig::Tier::OrHash + ], + hide_zero_amount_tiers: T::Boolean, + prorate: T::Boolean + ).returns(T.attached_class) + end + def self.new( + # Tiered pricing with a minimum amount dependent on the volume tier. Tiers are + # defined using exclusive lower bounds. + tiers:, + # If true, tiers with an accrued amount of 0 will not be included in the rating. + hide_zero_amount_tiers: nil, + # If true, the unit price will be prorated to the billing period + prorate: nil + ) + end + + sig do + override.returns( + { + tiers: + T::Array[ + Orb::Price::TieredWithMinimum::TieredWithMinimumConfig::Tier + ], + hide_zero_amount_tiers: T::Boolean, + prorate: T::Boolean + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredWithMinimum::TieredWithMinimumConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Minimum amount + sig { returns(String) } + attr_accessor :minimum_amount + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Per unit amount + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a single tier + sig do + params( + minimum_amount: String, + tier_lower_bound: String, + unit_amount: String + ).returns(T.attached_class) + end + def self.new( + # Minimum amount + minimum_amount:, + # Tier lower bound + tier_lower_bound:, + # Per unit amount + unit_amount: + ) + end + + sig do + override.returns( + { + minimum_amount: String, + tier_lower_bound: String, + unit_amount: String + } + ) + end + def to_hash + end + end + end end - class TieredWithMinimum < Orb::Internal::Type::BaseModel + class GroupedTiered < Orb::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(Orb::Price::TieredWithMinimum, Orb::Internal::AnyHash) + T.any(Orb::Price::GroupedTiered, Orb::Internal::AnyHash) end sig { returns(String) } @@ -2644,7 +3036,7 @@ module Orb end attr_writer :billing_cycle_configuration - sig { returns(Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol) } + sig { returns(Orb::Price::GroupedTiered::Cadence::TaggedSymbol) } attr_accessor :cadence sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } @@ -2655,9 +3047,7 @@ module Orb sig do returns( - T.nilable( - Orb::Price::TieredWithMinimum::ConversionRateConfig::Variants - ) + T.nilable(Orb::Price::GroupedTiered::ConversionRateConfig::Variants) ) end attr_accessor :conversion_rate_config @@ -2685,6 +3075,18 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity + # Configuration for grouped_tiered pricing + sig { returns(Orb::Price::GroupedTiered::GroupedTieredConfig) } + attr_reader :grouped_tiered_config + + sig do + params( + grouped_tiered_config: + Orb::Price::GroupedTiered::GroupedTieredConfig::OrHash + ).void + end + attr_writer :grouped_tiered_config + sig { returns(T.nilable(Orb::BillingCycleConfiguration)) } attr_reader :invoicing_cycle_configuration @@ -2727,6 +3129,7 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :minimum_amount + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -2736,7 +3139,7 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Price::TieredWithMinimum::PriceType::TaggedSymbol) } + sig { returns(Orb::Price::GroupedTiered::PriceType::TaggedSymbol) } attr_accessor :price_type # The price id this price replaces. This price will take the place of the replaced @@ -2744,9 +3147,6 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :replaces_price_id - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :tiered_with_minimum_config - sig { returns(T.nilable(Orb::DimensionalPriceConfiguration)) } attr_reader :dimensional_price_configuration @@ -2763,7 +3163,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - cadence: Orb::Price::TieredWithMinimum::Cadence::OrSymbol, + cadence: Orb::Price::GroupedTiered::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), @@ -2788,6 +3188,8 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), + grouped_tiered_config: + Orb::Price::GroupedTiered::GroupedTieredConfig::OrHash, invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration::OrHash), item: Orb::ItemSlim::OrHash, @@ -2798,9 +3200,8 @@ module Orb minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::TieredWithMinimum::PriceType::OrSymbol, + price_type: Orb::Price::GroupedTiered::PriceType::OrSymbol, replaces_price_id: T.nilable(String), - tiered_with_minimum_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), model_type: Symbol @@ -2820,6 +3221,8 @@ module Orb discount:, external_price_id:, fixed_price_quantity:, + # Configuration for grouped_tiered pricing + grouped_tiered_config:, invoicing_cycle_configuration:, item:, maximum:, @@ -2837,9 +3240,9 @@ module Orb # The price id this price replaces. This price will take the place of the replaced # price in plan version migrations. replaces_price_id:, - tiered_with_minimum_config:, dimensional_price_configuration: nil, - model_type: :tiered_with_minimum + # The pricing model type + model_type: :grouped_tiered ) end @@ -2849,13 +3252,13 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol, + cadence: Orb::Price::GroupedTiered::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::TieredWithMinimum::ConversionRateConfig::Variants + Orb::Price::GroupedTiered::ConversionRateConfig::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -2863,6 +3266,8 @@ module Orb discount: T.nilable(Orb::Discount::Variants), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), + grouped_tiered_config: + Orb::Price::GroupedTiered::GroupedTieredConfig, invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration), item: Orb::ItemSlim, @@ -2874,10 +3279,8 @@ module Orb model_type: Symbol, name: String, plan_phase_order: T.nilable(Integer), - price_type: - Orb::Price::TieredWithMinimum::PriceType::TaggedSymbol, + price_type: Orb::Price::GroupedTiered::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), - tiered_with_minimum_config: T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) } @@ -2890,68 +3293,149 @@ module Orb extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias do - T.all(Symbol, Orb::Price::TieredWithMinimum::Cadence) - end + T.type_alias { T.all(Symbol, Orb::Price::GroupedTiered::Cadence) } OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = - T.let( - :one_time, - Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol - ) + T.let(:one_time, Orb::Price::GroupedTiered::Cadence::TaggedSymbol) MONTHLY = - T.let( - :monthly, - Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol - ) + T.let(:monthly, Orb::Price::GroupedTiered::Cadence::TaggedSymbol) QUARTERLY = - T.let( - :quarterly, - Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol - ) + T.let(:quarterly, Orb::Price::GroupedTiered::Cadence::TaggedSymbol) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol + Orb::Price::GroupedTiered::Cadence::TaggedSymbol ) ANNUAL = - T.let(:annual, Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol) + T.let(:annual, Orb::Price::GroupedTiered::Cadence::TaggedSymbol) CUSTOM = - T.let(:custom, Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol) + T.let(:custom, Orb::Price::GroupedTiered::Cadence::TaggedSymbol) sig do override.returns( - T::Array[Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol] + T::Array[Orb::Price::GroupedTiered::Cadence::TaggedSymbol] ) end def self.values end end + class GroupedTieredConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedTiered::GroupedTieredConfig, + Orb::Internal::AnyHash + ) + end + + # The billable metric property used to group before tiering + sig { returns(String) } + attr_accessor :grouping_key + + # Apply tiered pricing to each segment generated after grouping with the provided + # key + sig do + returns( + T::Array[Orb::Price::GroupedTiered::GroupedTieredConfig::Tier] + ) + end + attr_accessor :tiers + + # Configuration for grouped_tiered pricing + sig do + params( + grouping_key: String, + tiers: + T::Array[ + Orb::Price::GroupedTiered::GroupedTieredConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # The billable metric property used to group before tiering + grouping_key:, + # Apply tiered pricing to each segment generated after grouping with the provided + # key + tiers: + ) + end + + sig do + override.returns( + { + grouping_key: String, + tiers: + T::Array[Orb::Price::GroupedTiered::GroupedTieredConfig::Tier] + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedTiered::GroupedTieredConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Per unit amount + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a single tier + sig do + params(tier_lower_bound: String, unit_amount: String).returns( + T.attached_class + ) + end + def self.new( + # Tier lower bound + tier_lower_bound:, + # Per unit amount + unit_amount: + ) + end + + sig do + override.returns( + { tier_lower_bound: String, unit_amount: String } + ) + end + def to_hash + end + end + end + module PriceType extend Orb::Internal::Type::Enum TaggedSymbol = - T.type_alias do - T.all(Symbol, Orb::Price::TieredWithMinimum::PriceType) - end + T.type_alias { T.all(Symbol, Orb::Price::GroupedTiered::PriceType) } OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = T.let( :usage_price, - Orb::Price::TieredWithMinimum::PriceType::TaggedSymbol + Orb::Price::GroupedTiered::PriceType::TaggedSymbol ) FIXED_PRICE = T.let( :fixed_price, - Orb::Price::TieredWithMinimum::PriceType::TaggedSymbol + Orb::Price::GroupedTiered::PriceType::TaggedSymbol ) sig do override.returns( - T::Array[Orb::Price::TieredWithMinimum::PriceType::TaggedSymbol] + T::Array[Orb::Price::GroupedTiered::PriceType::TaggedSymbol] ) end def self.values @@ -3073,6 +3557,7 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :minimum_amount + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -3092,8 +3577,21 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :replaces_price_id - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :tiered_package_with_minimum_config + # Configuration for tiered_package_with_minimum pricing + sig do + returns( + Orb::Price::TieredPackageWithMinimum::TieredPackageWithMinimumConfig + ) + end + attr_reader :tiered_package_with_minimum_config + + sig do + params( + tiered_package_with_minimum_config: + Orb::Price::TieredPackageWithMinimum::TieredPackageWithMinimumConfig::OrHash + ).void + end + attr_writer :tiered_package_with_minimum_config sig { returns(T.nilable(Orb::DimensionalPriceConfiguration)) } attr_reader :dimensional_price_configuration @@ -3149,7 +3647,8 @@ module Orb price_type: Orb::Price::TieredPackageWithMinimum::PriceType::OrSymbol, replaces_price_id: T.nilable(String), - tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], + tiered_package_with_minimum_config: + Orb::Price::TieredPackageWithMinimum::TieredPackageWithMinimumConfig::OrHash, dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), model_type: Symbol @@ -3186,8 +3685,10 @@ module Orb # The price id this price replaces. This price will take the place of the replaced # price in plan version migrations. replaces_price_id:, + # Configuration for tiered_package_with_minimum pricing tiered_package_with_minimum_config:, dimensional_price_configuration: nil, + # The pricing model type model_type: :tiered_package_with_minimum ) end @@ -3227,7 +3728,8 @@ module Orb price_type: Orb::Price::TieredPackageWithMinimum::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), - tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], + tiered_package_with_minimum_config: + Orb::Price::TieredPackageWithMinimum::TieredPackageWithMinimumConfig, dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) } @@ -3317,6 +3819,116 @@ module Orb def self.values end end + + class TieredPackageWithMinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredPackageWithMinimum::TieredPackageWithMinimumConfig, + Orb::Internal::AnyHash + ) + end + + # Package size + sig { returns(Float) } + attr_accessor :package_size + + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + sig do + returns( + T::Array[ + Orb::Price::TieredPackageWithMinimum::TieredPackageWithMinimumConfig::Tier + ] + ) + end + attr_accessor :tiers + + # Configuration for tiered_package_with_minimum pricing + sig do + params( + package_size: Float, + tiers: + T::Array[ + Orb::Price::TieredPackageWithMinimum::TieredPackageWithMinimumConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Package size + package_size:, + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + tiers: + ) + end + + sig do + override.returns( + { + package_size: Float, + tiers: + T::Array[ + Orb::Price::TieredPackageWithMinimum::TieredPackageWithMinimumConfig::Tier + ] + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredPackageWithMinimum::TieredPackageWithMinimumConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Minimum amount + sig { returns(String) } + attr_accessor :minimum_amount + + # Price per package + sig { returns(String) } + attr_accessor :per_unit + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Configuration for a single tier + sig do + params( + minimum_amount: String, + per_unit: String, + tier_lower_bound: String + ).returns(T.attached_class) + end + def self.new( + # Minimum amount + minimum_amount:, + # Price per package + per_unit:, + # Tier lower bound + tier_lower_bound: + ) + end + + sig do + override.returns( + { + minimum_amount: String, + per_unit: String, + tier_lower_bound: String + } + ) + end + def to_hash + end + end + end end class PackageWithAllocation < Orb::Internal::Type::BaseModel @@ -3433,14 +4045,28 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :minimum_amount + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type sig { returns(String) } attr_accessor :name - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :package_with_allocation_config + # Configuration for package_with_allocation pricing + sig do + returns( + Orb::Price::PackageWithAllocation::PackageWithAllocationConfig + ) + end + attr_reader :package_with_allocation_config + + sig do + params( + package_with_allocation_config: + Orb::Price::PackageWithAllocation::PackageWithAllocationConfig::OrHash + ).void + end + attr_writer :package_with_allocation_config sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order @@ -3505,7 +4131,8 @@ module Orb minimum: T.nilable(Orb::Minimum::OrHash), minimum_amount: T.nilable(String), name: String, - package_with_allocation_config: T::Hash[Symbol, T.anything], + package_with_allocation_config: + Orb::Price::PackageWithAllocation::PackageWithAllocationConfig::OrHash, plan_phase_order: T.nilable(Integer), price_type: Orb::Price::PackageWithAllocation::PriceType::OrSymbol, replaces_price_id: T.nilable(String), @@ -3540,6 +4167,7 @@ module Orb minimum:, minimum_amount:, name:, + # Configuration for package_with_allocation pricing package_with_allocation_config:, plan_phase_order:, price_type:, @@ -3547,6 +4175,7 @@ module Orb # price in plan version migrations. replaces_price_id:, dimensional_price_configuration: nil, + # The pricing model type model_type: :package_with_allocation ) end @@ -3581,7 +4210,8 @@ module Orb minimum_amount: T.nilable(String), model_type: Symbol, name: String, - package_with_allocation_config: T::Hash[Symbol, T.anything], + package_with_allocation_config: + Orb::Price::PackageWithAllocation::PackageWithAllocationConfig, plan_phase_order: T.nilable(Integer), price_type: Orb::Price::PackageWithAllocation::PriceType::TaggedSymbol, @@ -3643,6 +4273,58 @@ module Orb end end + class PackageWithAllocationConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::PackageWithAllocation::PackageWithAllocationConfig, + Orb::Internal::AnyHash + ) + end + + # Usage allocation + sig { returns(String) } + attr_accessor :allocation + + # Price per package + sig { returns(String) } + attr_accessor :package_amount + + # Package size + sig { returns(String) } + attr_accessor :package_size + + # Configuration for package_with_allocation pricing + sig do + params( + allocation: String, + package_amount: String, + package_size: String + ).returns(T.attached_class) + end + def self.new( + # Usage allocation + allocation:, + # Price per package + package_amount:, + # Package size + package_size: + ) + end + + sig do + override.returns( + { + allocation: String, + package_amount: String, + package_size: String + } + ) + end + def to_hash + end + end + module PriceType extend Orb::Internal::Type::Enum @@ -3787,6 +4469,7 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :minimum_amount + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -3804,8 +4487,17 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :replaces_price_id - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :unit_with_percent_config + # Configuration for unit_with_percent pricing + sig { returns(Orb::Price::UnitWithPercent::UnitWithPercentConfig) } + attr_reader :unit_with_percent_config + + sig do + params( + unit_with_percent_config: + Orb::Price::UnitWithPercent::UnitWithPercentConfig::OrHash + ).void + end + attr_writer :unit_with_percent_config sig { returns(T.nilable(Orb::DimensionalPriceConfiguration)) } attr_reader :dimensional_price_configuration @@ -3860,7 +4552,8 @@ module Orb plan_phase_order: T.nilable(Integer), price_type: Orb::Price::UnitWithPercent::PriceType::OrSymbol, replaces_price_id: T.nilable(String), - unit_with_percent_config: T::Hash[Symbol, T.anything], + unit_with_percent_config: + Orb::Price::UnitWithPercent::UnitWithPercentConfig::OrHash, dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), model_type: Symbol @@ -3897,8 +4590,10 @@ module Orb # The price id this price replaces. This price will take the place of the replaced # price in plan version migrations. replaces_price_id:, + # Configuration for unit_with_percent pricing unit_with_percent_config:, dimensional_price_configuration: nil, + # The pricing model type model_type: :unit_with_percent ) end @@ -3936,7 +4631,8 @@ module Orb plan_phase_order: T.nilable(Integer), price_type: Orb::Price::UnitWithPercent::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), - unit_with_percent_config: T::Hash[Symbol, T.anything], + unit_with_percent_config: + Orb::Price::UnitWithPercent::UnitWithPercentConfig, dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) } @@ -4008,6 +4704,42 @@ module Orb def self.values end end + + class UnitWithPercentConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::UnitWithPercent::UnitWithPercentConfig, + Orb::Internal::AnyHash + ) + end + + # What percent, out of 100, of the calculated total to charge + sig { returns(String) } + attr_accessor :percent + + # Rate per unit of usage + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for unit_with_percent pricing + sig do + params(percent: String, unit_amount: String).returns( + T.attached_class + ) + end + def self.new( + # What percent, out of 100, of the calculated total to charge + percent:, + # Rate per unit of usage + unit_amount: + ) + end + + sig { override.returns({ percent: String, unit_amount: String }) } + def to_hash + end + end end class MatrixWithAllocation < Orb::Internal::Type::BaseModel @@ -4097,6 +4829,7 @@ module Orb sig { params(item: Orb::ItemSlim::OrHash).void } attr_writer :item + # Configuration for matrix_with_allocation pricing sig { returns(Orb::MatrixWithAllocationConfig) } attr_reader :matrix_with_allocation_config @@ -4133,6 +4866,7 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :minimum_amount + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -4228,6 +4962,7 @@ module Orb fixed_price_quantity:, invoicing_cycle_configuration:, item:, + # Configuration for matrix_with_allocation pricing matrix_with_allocation_config:, maximum:, maximum_amount:, @@ -4245,6 +4980,7 @@ module Orb # price in plan version migrations. replaces_price_id:, dimensional_price_configuration: nil, + # The pricing model type model_type: :matrix_with_allocation ) end @@ -4485,6 +5221,7 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :minimum_amount + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -4504,8 +5241,19 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :replaces_price_id - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :tiered_with_proration_config + # Configuration for tiered_with_proration pricing + sig do + returns(Orb::Price::TieredWithProration::TieredWithProrationConfig) + end + attr_reader :tiered_with_proration_config + + sig do + params( + tiered_with_proration_config: + Orb::Price::TieredWithProration::TieredWithProrationConfig::OrHash + ).void + end + attr_writer :tiered_with_proration_config sig { returns(T.nilable(Orb::DimensionalPriceConfiguration)) } attr_reader :dimensional_price_configuration @@ -4560,7 +5308,8 @@ module Orb plan_phase_order: T.nilable(Integer), price_type: Orb::Price::TieredWithProration::PriceType::OrSymbol, replaces_price_id: T.nilable(String), - tiered_with_proration_config: T::Hash[Symbol, T.anything], + tiered_with_proration_config: + Orb::Price::TieredWithProration::TieredWithProrationConfig::OrHash, dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), model_type: Symbol @@ -4597,8 +5346,10 @@ module Orb # The price id this price replaces. This price will take the place of the replaced # price in plan version migrations. replaces_price_id:, + # Configuration for tiered_with_proration pricing tiered_with_proration_config:, dimensional_price_configuration: nil, + # The pricing model type model_type: :tiered_with_proration ) end @@ -4637,7 +5388,8 @@ module Orb price_type: Orb::Price::TieredWithProration::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), - tiered_with_proration_config: T::Hash[Symbol, T.anything], + tiered_with_proration_config: + Orb::Price::TieredWithProration::TieredWithProrationConfig, dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) } @@ -4723,6 +5475,96 @@ module Orb def self.values end end + + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredWithProration::TieredWithProrationConfig, + Orb::Internal::AnyHash + ) + end + + # Tiers for rating based on total usage quantities into the specified tier with + # proration + sig do + returns( + T::Array[ + Orb::Price::TieredWithProration::TieredWithProrationConfig::Tier + ] + ) + end + attr_accessor :tiers + + # Configuration for tiered_with_proration pricing + sig do + params( + tiers: + T::Array[ + Orb::Price::TieredWithProration::TieredWithProrationConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Tiers for rating based on total usage quantities into the specified tier with + # proration + tiers: + ) + end + + sig do + override.returns( + { + tiers: + T::Array[ + Orb::Price::TieredWithProration::TieredWithProrationConfig::Tier + ] + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::TieredWithProration::TieredWithProrationConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Inclusive tier starting value + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Amount per unit + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a single tiered with proration tier + sig do + params(tier_lower_bound: String, unit_amount: String).returns( + T.attached_class + ) + end + def self.new( + # Inclusive tier starting value + tier_lower_bound:, + # Amount per unit + unit_amount: + ) + end + + sig do + override.returns( + { tier_lower_bound: String, unit_amount: String } + ) + end + def to_hash + end + end + end end class UnitWithProration < Orb::Internal::Type::BaseModel @@ -4837,6 +5679,7 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :minimum_amount + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -4854,8 +5697,17 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :replaces_price_id - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :unit_with_proration_config + # Configuration for unit_with_proration pricing + sig { returns(Orb::Price::UnitWithProration::UnitWithProrationConfig) } + attr_reader :unit_with_proration_config + + sig do + params( + unit_with_proration_config: + Orb::Price::UnitWithProration::UnitWithProrationConfig::OrHash + ).void + end + attr_writer :unit_with_proration_config sig { returns(T.nilable(Orb::DimensionalPriceConfiguration)) } attr_reader :dimensional_price_configuration @@ -4910,7 +5762,8 @@ module Orb plan_phase_order: T.nilable(Integer), price_type: Orb::Price::UnitWithProration::PriceType::OrSymbol, replaces_price_id: T.nilable(String), - unit_with_proration_config: T::Hash[Symbol, T.anything], + unit_with_proration_config: + Orb::Price::UnitWithProration::UnitWithProrationConfig::OrHash, dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), model_type: Symbol @@ -4947,8 +5800,10 @@ module Orb # The price id this price replaces. This price will take the place of the replaced # price in plan version migrations. replaces_price_id:, + # Configuration for unit_with_proration pricing unit_with_proration_config:, dimensional_price_configuration: nil, + # The pricing model type model_type: :unit_with_proration ) end @@ -4987,7 +5842,8 @@ module Orb price_type: Orb::Price::UnitWithProration::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), - unit_with_proration_config: T::Hash[Symbol, T.anything], + unit_with_proration_config: + Orb::Price::UnitWithProration::UnitWithProrationConfig, dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) } @@ -5067,10 +5923,36 @@ module Orb def self.values end end - end - class GroupedAllocation < Orb::Internal::Type::BaseModel - OrHash = + class UnitWithProrationConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::UnitWithProration::UnitWithProrationConfig, + Orb::Internal::AnyHash + ) + end + + # Rate per unit of usage + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for unit_with_proration pricing + sig { params(unit_amount: String).returns(T.attached_class) } + def self.new( + # Rate per unit of usage + unit_amount: + ) + end + + sig { override.returns({ unit_amount: String }) } + def to_hash + end + end + end + + class GroupedAllocation < Orb::Internal::Type::BaseModel + OrHash = T.type_alias do T.any(Orb::Price::GroupedAllocation, Orb::Internal::AnyHash) end @@ -5139,8 +6021,17 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_allocation_config + # Configuration for grouped_allocation pricing + sig { returns(Orb::Price::GroupedAllocation::GroupedAllocationConfig) } + attr_reader :grouped_allocation_config + + sig do + params( + grouped_allocation_config: + Orb::Price::GroupedAllocation::GroupedAllocationConfig::OrHash + ).void + end + attr_writer :grouped_allocation_config sig { returns(T.nilable(Orb::BillingCycleConfiguration)) } attr_reader :invoicing_cycle_configuration @@ -5184,6 +6075,7 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :minimum_amount + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -5242,7 +6134,8 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - grouped_allocation_config: T::Hash[Symbol, T.anything], + grouped_allocation_config: + Orb::Price::GroupedAllocation::GroupedAllocationConfig::OrHash, invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration::OrHash), item: Orb::ItemSlim::OrHash, @@ -5274,6 +6167,7 @@ module Orb discount:, external_price_id:, fixed_price_quantity:, + # Configuration for grouped_allocation pricing grouped_allocation_config:, invoicing_cycle_configuration:, item:, @@ -5293,6 +6187,7 @@ module Orb # price in plan version migrations. replaces_price_id:, dimensional_price_configuration: nil, + # The pricing model type model_type: :grouped_allocation ) end @@ -5317,7 +6212,8 @@ module Orb discount: T.nilable(Orb::Discount::Variants), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - grouped_allocation_config: T::Hash[Symbol, T.anything], + grouped_allocation_config: + Orb::Price::GroupedAllocation::GroupedAllocationConfig, invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration), item: Orb::ItemSlim, @@ -5383,6 +6279,58 @@ module Orb end end + class GroupedAllocationConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedAllocation::GroupedAllocationConfig, + Orb::Internal::AnyHash + ) + end + + # Usage allocation per group + sig { returns(String) } + attr_accessor :allocation + + # How to determine the groups that should each be allocated some quantity + sig { returns(String) } + attr_accessor :grouping_key + + # Unit rate for post-allocation + sig { returns(String) } + attr_accessor :overage_unit_rate + + # Configuration for grouped_allocation pricing + sig do + params( + allocation: String, + grouping_key: String, + overage_unit_rate: String + ).returns(T.attached_class) + end + def self.new( + # Usage allocation per group + allocation:, + # How to determine the groups that should each be allocated some quantity + grouping_key:, + # Unit rate for post-allocation + overage_unit_rate: + ) + end + + sig do + override.returns( + { + allocation: String, + grouping_key: String, + overage_unit_rate: String + } + ) + end + def to_hash + end + end + module PriceType extend Orb::Internal::Type::Enum @@ -5413,13 +6361,10 @@ module Orb end end - class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel + class BulkWithProration < Orb::Internal::Type::BaseModel OrHash = T.type_alias do - T.any( - Orb::Price::GroupedWithProratedMinimum, - Orb::Internal::AnyHash - ) + T.any(Orb::Price::BulkWithProration, Orb::Internal::AnyHash) end sig { returns(String) } @@ -5445,9 +6390,19 @@ module Orb end attr_writer :billing_cycle_configuration + # Configuration for bulk_with_proration pricing + sig { returns(Orb::Price::BulkWithProration::BulkWithProrationConfig) } + attr_reader :bulk_with_proration_config + sig do - returns(Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol) + params( + bulk_with_proration_config: + Orb::Price::BulkWithProration::BulkWithProrationConfig::OrHash + ).void end + attr_writer :bulk_with_proration_config + + sig { returns(Orb::Price::BulkWithProration::Cadence::TaggedSymbol) } attr_accessor :cadence sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } @@ -5459,7 +6414,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::GroupedWithProratedMinimum::ConversionRateConfig::Variants + Orb::Price::BulkWithProration::ConversionRateConfig::Variants ) ) end @@ -5488,9 +6443,6 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_with_prorated_minimum_config - sig { returns(T.nilable(Orb::BillingCycleConfiguration)) } attr_reader :invoicing_cycle_configuration @@ -5533,6 +6485,7 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :minimum_amount + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -5542,11 +6495,7 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig do - returns( - Orb::Price::GroupedWithProratedMinimum::PriceType::TaggedSymbol - ) - end + sig { returns(Orb::Price::BulkWithProration::PriceType::TaggedSymbol) } attr_accessor :price_type # The price id this price replaces. This price will take the place of the replaced @@ -5570,7 +6519,9 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - cadence: Orb::Price::GroupedWithProratedMinimum::Cadence::OrSymbol, + bulk_with_proration_config: + Orb::Price::BulkWithProration::BulkWithProrationConfig::OrHash, + cadence: Orb::Price::BulkWithProration::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), @@ -5595,7 +6546,6 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration::OrHash), item: Orb::ItemSlim::OrHash, @@ -5606,8 +6556,7 @@ module Orb minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: - Orb::Price::GroupedWithProratedMinimum::PriceType::OrSymbol, + price_type: Orb::Price::BulkWithProration::PriceType::OrSymbol, replaces_price_id: T.nilable(String), dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), @@ -5618,6 +6567,8 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, + # Configuration for bulk_with_proration pricing + bulk_with_proration_config:, cadence:, composite_price_filters:, conversion_rate:, @@ -5628,7 +6579,6 @@ module Orb discount:, external_price_id:, fixed_price_quantity:, - grouped_with_prorated_minimum_config:, invoicing_cycle_configuration:, item:, maximum:, @@ -5647,7 +6597,8 @@ module Orb # price in plan version migrations. replaces_price_id:, dimensional_price_configuration: nil, - model_type: :grouped_with_prorated_minimum + # The pricing model type + model_type: :bulk_with_proration ) end @@ -5657,14 +6608,15 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: - Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol, + bulk_with_proration_config: + Orb::Price::BulkWithProration::BulkWithProrationConfig, + cadence: Orb::Price::BulkWithProration::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::GroupedWithProratedMinimum::ConversionRateConfig::Variants + Orb::Price::BulkWithProration::ConversionRateConfig::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -5672,7 +6624,6 @@ module Orb discount: T.nilable(Orb::Discount::Variants), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration), item: Orb::ItemSlim, @@ -5685,7 +6636,7 @@ module Orb name: String, plan_phase_order: T.nilable(Integer), price_type: - Orb::Price::GroupedWithProratedMinimum::PriceType::TaggedSymbol, + Orb::Price::BulkWithProration::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) @@ -5695,51 +6646,132 @@ module Orb def to_hash end + class BulkWithProrationConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::BulkWithProration::BulkWithProrationConfig, + Orb::Internal::AnyHash + ) + end + + # Bulk tiers for rating based on total usage volume + sig do + returns( + T::Array[ + Orb::Price::BulkWithProration::BulkWithProrationConfig::Tier + ] + ) + end + attr_accessor :tiers + + # Configuration for bulk_with_proration pricing + sig do + params( + tiers: + T::Array[ + Orb::Price::BulkWithProration::BulkWithProrationConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Bulk tiers for rating based on total usage volume + tiers: + ) + end + + sig do + override.returns( + { + tiers: + T::Array[ + Orb::Price::BulkWithProration::BulkWithProrationConfig::Tier + ] + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::BulkWithProration::BulkWithProrationConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Cost per unit + sig { returns(String) } + attr_accessor :unit_amount + + # The lower bound for this tier + sig { returns(T.nilable(String)) } + attr_accessor :tier_lower_bound + + # Configuration for a single bulk pricing tier with proration + sig do + params( + unit_amount: String, + tier_lower_bound: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # Cost per unit + unit_amount:, + # The lower bound for this tier + tier_lower_bound: nil + ) + end + + sig do + override.returns( + { unit_amount: String, tier_lower_bound: T.nilable(String) } + ) + end + def to_hash + end + end + end + module Cadence extend Orb::Internal::Type::Enum TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::GroupedWithProratedMinimum::Cadence) + T.all(Symbol, Orb::Price::BulkWithProration::Cadence) end OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = T.let( :one_time, - Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::Price::BulkWithProration::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::Price::BulkWithProration::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::Price::BulkWithProration::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol + Orb::Price::BulkWithProration::Cadence::TaggedSymbol ) ANNUAL = - T.let( - :annual, - Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol - ) + T.let(:annual, Orb::Price::BulkWithProration::Cadence::TaggedSymbol) CUSTOM = - T.let( - :custom, - Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol - ) + T.let(:custom, Orb::Price::BulkWithProration::Cadence::TaggedSymbol) sig do override.returns( - T::Array[ - Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol - ] + T::Array[Orb::Price::BulkWithProration::Cadence::TaggedSymbol] ) end def self.values @@ -5751,26 +6783,24 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::GroupedWithProratedMinimum::PriceType) + T.all(Symbol, Orb::Price::BulkWithProration::PriceType) end OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = T.let( :usage_price, - Orb::Price::GroupedWithProratedMinimum::PriceType::TaggedSymbol + Orb::Price::BulkWithProration::PriceType::TaggedSymbol ) FIXED_PRICE = T.let( :fixed_price, - Orb::Price::GroupedWithProratedMinimum::PriceType::TaggedSymbol + Orb::Price::BulkWithProration::PriceType::TaggedSymbol ) sig do override.returns( - T::Array[ - Orb::Price::GroupedWithProratedMinimum::PriceType::TaggedSymbol - ] + T::Array[Orb::Price::BulkWithProration::PriceType::TaggedSymbol] ) end def self.values @@ -5778,10 +6808,13 @@ module Orb end end - class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel + class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(Orb::Price::GroupedWithMeteredMinimum, Orb::Internal::AnyHash) + T.any( + Orb::Price::GroupedWithProratedMinimum, + Orb::Internal::AnyHash + ) end sig { returns(String) } @@ -5808,7 +6841,7 @@ module Orb attr_writer :billing_cycle_configuration sig do - returns(Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol) + returns(Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol) end attr_accessor :cadence @@ -5821,7 +6854,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::GroupedWithMeteredMinimum::ConversionRateConfig::Variants + Orb::Price::GroupedWithProratedMinimum::ConversionRateConfig::Variants ) ) end @@ -5850,8 +6883,21 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_with_metered_minimum_config + # Configuration for grouped_with_prorated_minimum pricing + sig do + returns( + Orb::Price::GroupedWithProratedMinimum::GroupedWithProratedMinimumConfig + ) + end + attr_reader :grouped_with_prorated_minimum_config + + sig do + params( + grouped_with_prorated_minimum_config: + Orb::Price::GroupedWithProratedMinimum::GroupedWithProratedMinimumConfig::OrHash + ).void + end + attr_writer :grouped_with_prorated_minimum_config sig { returns(T.nilable(Orb::BillingCycleConfiguration)) } attr_reader :invoicing_cycle_configuration @@ -5895,6 +6941,7 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :minimum_amount + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -5906,7 +6953,7 @@ module Orb sig do returns( - Orb::Price::GroupedWithMeteredMinimum::PriceType::TaggedSymbol + Orb::Price::GroupedWithProratedMinimum::PriceType::TaggedSymbol ) end attr_accessor :price_type @@ -5932,7 +6979,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol, + cadence: Orb::Price::GroupedWithProratedMinimum::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), @@ -5957,7 +7004,8 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], + grouped_with_prorated_minimum_config: + Orb::Price::GroupedWithProratedMinimum::GroupedWithProratedMinimumConfig::OrHash, invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration::OrHash), item: Orb::ItemSlim::OrHash, @@ -5969,7 +7017,7 @@ module Orb name: String, plan_phase_order: T.nilable(Integer), price_type: - Orb::Price::GroupedWithMeteredMinimum::PriceType::OrSymbol, + Orb::Price::GroupedWithProratedMinimum::PriceType::OrSymbol, replaces_price_id: T.nilable(String), dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), @@ -5990,7 +7038,8 @@ module Orb discount:, external_price_id:, fixed_price_quantity:, - grouped_with_metered_minimum_config:, + # Configuration for grouped_with_prorated_minimum pricing + grouped_with_prorated_minimum_config:, invoicing_cycle_configuration:, item:, maximum:, @@ -6009,7 +7058,8 @@ module Orb # price in plan version migrations. replaces_price_id:, dimensional_price_configuration: nil, - model_type: :grouped_with_metered_minimum + # The pricing model type + model_type: :grouped_with_prorated_minimum ) end @@ -6020,13 +7070,13 @@ module Orb billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: - Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol, + Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::GroupedWithMeteredMinimum::ConversionRateConfig::Variants + Orb::Price::GroupedWithProratedMinimum::ConversionRateConfig::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -6034,7 +7084,8 @@ module Orb discount: T.nilable(Orb::Discount::Variants), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], + grouped_with_prorated_minimum_config: + Orb::Price::GroupedWithProratedMinimum::GroupedWithProratedMinimumConfig, invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration), item: Orb::ItemSlim, @@ -6047,7 +7098,7 @@ module Orb name: String, plan_phase_order: T.nilable(Integer), price_type: - Orb::Price::GroupedWithMeteredMinimum::PriceType::TaggedSymbol, + Orb::Price::GroupedWithProratedMinimum::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) @@ -6062,45 +7113,45 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::GroupedWithMeteredMinimum::Cadence) + T.all(Symbol, Orb::Price::GroupedWithProratedMinimum::Cadence) end OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = T.let( :one_time, - Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) ANNUAL = T.let( :annual, - Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ) sig do override.returns( T::Array[ - Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol ] ) end @@ -6108,30 +7159,78 @@ module Orb end end + class GroupedWithProratedMinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedWithProratedMinimum::GroupedWithProratedMinimumConfig, + Orb::Internal::AnyHash + ) + end + + # How to determine the groups that should each have a minimum + sig { returns(String) } + attr_accessor :grouping_key + + # The minimum amount to charge per group + sig { returns(String) } + attr_accessor :minimum + + # The amount to charge per unit + sig { returns(String) } + attr_accessor :unit_rate + + # Configuration for grouped_with_prorated_minimum pricing + sig do + params( + grouping_key: String, + minimum: String, + unit_rate: String + ).returns(T.attached_class) + end + def self.new( + # How to determine the groups that should each have a minimum + grouping_key:, + # The minimum amount to charge per group + minimum:, + # The amount to charge per unit + unit_rate: + ) + end + + sig do + override.returns( + { grouping_key: String, minimum: String, unit_rate: String } + ) + end + def to_hash + end + end + module PriceType extend Orb::Internal::Type::Enum TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::GroupedWithMeteredMinimum::PriceType) + T.all(Symbol, Orb::Price::GroupedWithProratedMinimum::PriceType) end OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = T.let( :usage_price, - Orb::Price::GroupedWithMeteredMinimum::PriceType::TaggedSymbol + Orb::Price::GroupedWithProratedMinimum::PriceType::TaggedSymbol ) FIXED_PRICE = T.let( :fixed_price, - Orb::Price::GroupedWithMeteredMinimum::PriceType::TaggedSymbol + Orb::Price::GroupedWithProratedMinimum::PriceType::TaggedSymbol ) sig do override.returns( T::Array[ - Orb::Price::GroupedWithMeteredMinimum::PriceType::TaggedSymbol + Orb::Price::GroupedWithProratedMinimum::PriceType::TaggedSymbol ] ) end @@ -6140,10 +7239,10 @@ module Orb end end - class MatrixWithDisplayName < Orb::Internal::Type::BaseModel + class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(Orb::Price::MatrixWithDisplayName, Orb::Internal::AnyHash) + T.any(Orb::Price::GroupedWithMeteredMinimum, Orb::Internal::AnyHash) end sig { returns(String) } @@ -6170,7 +7269,7 @@ module Orb attr_writer :billing_cycle_configuration sig do - returns(Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol) + returns(Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol) end attr_accessor :cadence @@ -6183,7 +7282,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::MatrixWithDisplayName::ConversionRateConfig::Variants + Orb::Price::GroupedWithMeteredMinimum::ConversionRateConfig::Variants ) ) end @@ -6212,7 +7311,23 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity - sig { returns(T.nilable(Orb::BillingCycleConfiguration)) } + # Configuration for grouped_with_metered_minimum pricing + sig do + returns( + Orb::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig + ) + end + attr_reader :grouped_with_metered_minimum_config + + sig do + params( + grouped_with_metered_minimum_config: + Orb::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig::OrHash + ).void + end + attr_writer :grouped_with_metered_minimum_config + + sig { returns(T.nilable(Orb::BillingCycleConfiguration)) } attr_reader :invoicing_cycle_configuration sig do @@ -6229,9 +7344,6 @@ module Orb sig { params(item: Orb::ItemSlim::OrHash).void } attr_writer :item - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :matrix_with_display_name_config - sig { returns(T.nilable(Orb::Maximum)) } attr_reader :maximum @@ -6257,6 +7369,7 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :minimum_amount + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -6267,7 +7380,9 @@ module Orb attr_accessor :plan_phase_order sig do - returns(Orb::Price::MatrixWithDisplayName::PriceType::TaggedSymbol) + returns( + Orb::Price::GroupedWithMeteredMinimum::PriceType::TaggedSymbol + ) end attr_accessor :price_type @@ -6292,7 +7407,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - cadence: Orb::Price::MatrixWithDisplayName::Cadence::OrSymbol, + cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), @@ -6317,10 +7432,11 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), + grouped_with_metered_minimum_config: + Orb::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig::OrHash, invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration::OrHash), item: Orb::ItemSlim::OrHash, - matrix_with_display_name_config: T::Hash[Symbol, T.anything], maximum: T.nilable(Orb::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], @@ -6328,7 +7444,8 @@ module Orb minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::MatrixWithDisplayName::PriceType::OrSymbol, + price_type: + Orb::Price::GroupedWithMeteredMinimum::PriceType::OrSymbol, replaces_price_id: T.nilable(String), dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), @@ -6349,9 +7466,10 @@ module Orb discount:, external_price_id:, fixed_price_quantity:, + # Configuration for grouped_with_metered_minimum pricing + grouped_with_metered_minimum_config:, invoicing_cycle_configuration:, item:, - matrix_with_display_name_config:, maximum:, maximum_amount:, # User specified key-value pairs for the resource. If not present, this defaults @@ -6368,7 +7486,8 @@ module Orb # price in plan version migrations. replaces_price_id:, dimensional_price_configuration: nil, - model_type: :matrix_with_display_name + # The pricing model type + model_type: :grouped_with_metered_minimum ) end @@ -6378,13 +7497,14 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol, + cadence: + Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::MatrixWithDisplayName::ConversionRateConfig::Variants + Orb::Price::GroupedWithMeteredMinimum::ConversionRateConfig::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -6392,10 +7512,11 @@ module Orb discount: T.nilable(Orb::Discount::Variants), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), + grouped_with_metered_minimum_config: + Orb::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig, invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration), item: Orb::ItemSlim, - matrix_with_display_name_config: T::Hash[Symbol, T.anything], maximum: T.nilable(Orb::Maximum), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], @@ -6405,7 +7526,7 @@ module Orb name: String, plan_phase_order: T.nilable(Integer), price_type: - Orb::Price::MatrixWithDisplayName::PriceType::TaggedSymbol, + Orb::Price::GroupedWithMeteredMinimum::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) @@ -6420,74 +7541,258 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::MatrixWithDisplayName::Cadence) + T.all(Symbol, Orb::Price::GroupedWithMeteredMinimum::Cadence) end OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = T.let( :one_time, - Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) ANNUAL = T.let( :annual, - Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol + Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol ) sig do override.returns( - T::Array[Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol] + T::Array[ + Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol + ] ) end def self.values end end + class GroupedWithMeteredMinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig, + Orb::Internal::AnyHash + ) + end + + # Used to partition the usage into groups. The minimum amount is applied to each + # group. + sig { returns(String) } + attr_accessor :grouping_key + + # The minimum amount to charge per group per unit + sig { returns(String) } + attr_accessor :minimum_unit_amount + + # Used to determine the unit rate + sig { returns(String) } + attr_accessor :pricing_key + + # Scale the unit rates by the scaling factor. + sig do + returns( + T::Array[ + Orb::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig::ScalingFactor + ] + ) + end + attr_accessor :scaling_factors + + # Used to determine the unit rate scaling factor + sig { returns(String) } + attr_accessor :scaling_key + + # Apply per unit pricing to each pricing value. The minimum amount is applied any + # unmatched usage. + sig do + returns( + T::Array[ + Orb::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig::UnitAmount + ] + ) + end + attr_accessor :unit_amounts + + # Configuration for grouped_with_metered_minimum pricing + sig do + params( + grouping_key: String, + minimum_unit_amount: String, + pricing_key: String, + scaling_factors: + T::Array[ + Orb::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig::ScalingFactor::OrHash + ], + scaling_key: String, + unit_amounts: + T::Array[ + Orb::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig::UnitAmount::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Used to partition the usage into groups. The minimum amount is applied to each + # group. + grouping_key:, + # The minimum amount to charge per group per unit + minimum_unit_amount:, + # Used to determine the unit rate + pricing_key:, + # Scale the unit rates by the scaling factor. + scaling_factors:, + # Used to determine the unit rate scaling factor + scaling_key:, + # Apply per unit pricing to each pricing value. The minimum amount is applied any + # unmatched usage. + unit_amounts: + ) + end + + sig do + override.returns( + { + grouping_key: String, + minimum_unit_amount: String, + pricing_key: String, + scaling_factors: + T::Array[ + Orb::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig::ScalingFactor + ], + scaling_key: String, + unit_amounts: + T::Array[ + Orb::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig::UnitAmount + ] + } + ) + end + def to_hash + end + + class ScalingFactor < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig::ScalingFactor, + Orb::Internal::AnyHash + ) + end + + # Scaling factor + sig { returns(String) } + attr_accessor :scaling_factor + + # Scaling value + sig { returns(String) } + attr_accessor :scaling_value + + # Configuration for a scaling factor + sig do + params(scaling_factor: String, scaling_value: String).returns( + T.attached_class + ) + end + def self.new( + # Scaling factor + scaling_factor:, + # Scaling value + scaling_value: + ) + end + + sig do + override.returns( + { scaling_factor: String, scaling_value: String } + ) + end + def to_hash + end + end + + class UnitAmount < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig::UnitAmount, + Orb::Internal::AnyHash + ) + end + + # Pricing value + sig { returns(String) } + attr_accessor :pricing_value + + # Per unit amount + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a unit amount + sig do + params(pricing_value: String, unit_amount: String).returns( + T.attached_class + ) + end + def self.new( + # Pricing value + pricing_value:, + # Per unit amount + unit_amount: + ) + end + + sig do + override.returns({ pricing_value: String, unit_amount: String }) + end + def to_hash + end + end + end + module PriceType extend Orb::Internal::Type::Enum TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::MatrixWithDisplayName::PriceType) + T.all(Symbol, Orb::Price::GroupedWithMeteredMinimum::PriceType) end OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = T.let( :usage_price, - Orb::Price::MatrixWithDisplayName::PriceType::TaggedSymbol + Orb::Price::GroupedWithMeteredMinimum::PriceType::TaggedSymbol ) FIXED_PRICE = T.let( :fixed_price, - Orb::Price::MatrixWithDisplayName::PriceType::TaggedSymbol + Orb::Price::GroupedWithMeteredMinimum::PriceType::TaggedSymbol ) sig do override.returns( T::Array[ - Orb::Price::MatrixWithDisplayName::PriceType::TaggedSymbol + Orb::Price::GroupedWithMeteredMinimum::PriceType::TaggedSymbol ] ) end @@ -6496,10 +7801,13 @@ module Orb end end - class BulkWithProration < Orb::Internal::Type::BaseModel + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(Orb::Price::BulkWithProration, Orb::Internal::AnyHash) + T.any( + Orb::Price::GroupedWithMinMaxThresholds, + Orb::Internal::AnyHash + ) end sig { returns(String) } @@ -6525,10 +7833,11 @@ module Orb end attr_writer :billing_cycle_configuration - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :bulk_with_proration_config - - sig { returns(Orb::Price::BulkWithProration::Cadence::TaggedSymbol) } + sig do + returns( + Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + end attr_accessor :cadence sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } @@ -6540,7 +7849,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::BulkWithProration::ConversionRateConfig::Variants + Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig::Variants ) ) end @@ -6569,6 +7878,22 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity + # Configuration for grouped_with_min_max_thresholds pricing + sig do + returns( + Orb::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig + ) + end + attr_reader :grouped_with_min_max_thresholds_config + + sig do + params( + grouped_with_min_max_thresholds_config: + Orb::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig::OrHash + ).void + end + attr_writer :grouped_with_min_max_thresholds_config + sig { returns(T.nilable(Orb::BillingCycleConfiguration)) } attr_reader :invoicing_cycle_configuration @@ -6611,6 +7936,7 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :minimum_amount + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -6620,7 +7946,11 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - sig { returns(Orb::Price::BulkWithProration::PriceType::TaggedSymbol) } + sig do + returns( + Orb::Price::GroupedWithMinMaxThresholds::PriceType::TaggedSymbol + ) + end attr_accessor :price_type # The price id this price replaces. This price will take the place of the replaced @@ -6644,8 +7974,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Orb::Price::BulkWithProration::Cadence::OrSymbol, + cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), @@ -6670,6 +7999,8 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), + grouped_with_min_max_thresholds_config: + Orb::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig::OrHash, invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration::OrHash), item: Orb::ItemSlim::OrHash, @@ -6680,7 +8011,8 @@ module Orb minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::BulkWithProration::PriceType::OrSymbol, + price_type: + Orb::Price::GroupedWithMinMaxThresholds::PriceType::OrSymbol, replaces_price_id: T.nilable(String), dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), @@ -6691,7 +8023,6 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, - bulk_with_proration_config:, cadence:, composite_price_filters:, conversion_rate:, @@ -6702,6 +8033,8 @@ module Orb discount:, external_price_id:, fixed_price_quantity:, + # Configuration for grouped_with_min_max_thresholds pricing + grouped_with_min_max_thresholds_config:, invoicing_cycle_configuration:, item:, maximum:, @@ -6720,7 +8053,8 @@ module Orb # price in plan version migrations. replaces_price_id:, dimensional_price_configuration: nil, - model_type: :bulk_with_proration + # The pricing model type + model_type: :grouped_with_min_max_thresholds ) end @@ -6730,14 +8064,14 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - bulk_with_proration_config: T::Hash[Symbol, T.anything], - cadence: Orb::Price::BulkWithProration::Cadence::TaggedSymbol, + cadence: + Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::BulkWithProration::ConversionRateConfig::Variants + Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -6745,6 +8079,8 @@ module Orb discount: T.nilable(Orb::Discount::Variants), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), + grouped_with_min_max_thresholds_config: + Orb::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration), item: Orb::ItemSlim, @@ -6757,7 +8093,7 @@ module Orb name: String, plan_phase_order: T.nilable(Integer), price_type: - Orb::Price::BulkWithProration::PriceType::TaggedSymbol, + Orb::Price::GroupedWithMinMaxThresholds::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) @@ -6772,67 +8108,137 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::BulkWithProration::Cadence) + T.all(Symbol, Orb::Price::GroupedWithMinMaxThresholds::Cadence) end OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = T.let( :one_time, - Orb::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Price::BulkWithProration::Cadence::TaggedSymbol + Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol ) ANNUAL = - T.let(:annual, Orb::Price::BulkWithProration::Cadence::TaggedSymbol) + T.let( + :annual, + Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) CUSTOM = - T.let(:custom, Orb::Price::BulkWithProration::Cadence::TaggedSymbol) + T.let( + :custom, + Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) sig do override.returns( - T::Array[Orb::Price::BulkWithProration::Cadence::TaggedSymbol] + T::Array[ + Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ] ) end def self.values end end + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, + Orb::Internal::AnyHash + ) + end + + # The event property used to group before applying thresholds + sig { returns(String) } + attr_accessor :grouping_key + + # The maximum amount to charge each group + sig { returns(String) } + attr_accessor :maximum_charge + + # The minimum amount to charge each group, regardless of usage + sig { returns(String) } + attr_accessor :minimum_charge + + # The base price charged per group + sig { returns(String) } + attr_accessor :per_unit_rate + + # Configuration for grouped_with_min_max_thresholds pricing + sig do + params( + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + ).returns(T.attached_class) + end + def self.new( + # The event property used to group before applying thresholds + grouping_key:, + # The maximum amount to charge each group + maximum_charge:, + # The minimum amount to charge each group, regardless of usage + minimum_charge:, + # The base price charged per group + per_unit_rate: + ) + end + + sig do + override.returns( + { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + ) + end + def to_hash + end + end + module PriceType extend Orb::Internal::Type::Enum TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::BulkWithProration::PriceType) + T.all(Symbol, Orb::Price::GroupedWithMinMaxThresholds::PriceType) end OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = T.let( :usage_price, - Orb::Price::BulkWithProration::PriceType::TaggedSymbol + Orb::Price::GroupedWithMinMaxThresholds::PriceType::TaggedSymbol ) FIXED_PRICE = T.let( :fixed_price, - Orb::Price::BulkWithProration::PriceType::TaggedSymbol + Orb::Price::GroupedWithMinMaxThresholds::PriceType::TaggedSymbol ) sig do override.returns( - T::Array[Orb::Price::BulkWithProration::PriceType::TaggedSymbol] + T::Array[ + Orb::Price::GroupedWithMinMaxThresholds::PriceType::TaggedSymbol + ] ) end def self.values @@ -6840,10 +8246,10 @@ module Orb end end - class GroupedTieredPackage < Orb::Internal::Type::BaseModel + class MatrixWithDisplayName < Orb::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(Orb::Price::GroupedTieredPackage, Orb::Internal::AnyHash) + T.any(Orb::Price::MatrixWithDisplayName, Orb::Internal::AnyHash) end sig { returns(String) } @@ -6869,7 +8275,9 @@ module Orb end attr_writer :billing_cycle_configuration - sig { returns(Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol) } + sig do + returns(Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol) + end attr_accessor :cadence sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } @@ -6881,7 +8289,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::GroupedTieredPackage::ConversionRateConfig::Variants + Orb::Price::MatrixWithDisplayName::ConversionRateConfig::Variants ) ) end @@ -6910,9 +8318,6 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_tiered_package_config - sig { returns(T.nilable(Orb::BillingCycleConfiguration)) } attr_reader :invoicing_cycle_configuration @@ -6930,6 +8335,22 @@ module Orb sig { params(item: Orb::ItemSlim::OrHash).void } attr_writer :item + # Configuration for matrix_with_display_name pricing + sig do + returns( + Orb::Price::MatrixWithDisplayName::MatrixWithDisplayNameConfig + ) + end + attr_reader :matrix_with_display_name_config + + sig do + params( + matrix_with_display_name_config: + Orb::Price::MatrixWithDisplayName::MatrixWithDisplayNameConfig::OrHash + ).void + end + attr_writer :matrix_with_display_name_config + sig { returns(T.nilable(Orb::Maximum)) } attr_reader :maximum @@ -6955,6 +8376,7 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :minimum_amount + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -6965,7 +8387,7 @@ module Orb attr_accessor :plan_phase_order sig do - returns(Orb::Price::GroupedTieredPackage::PriceType::TaggedSymbol) + returns(Orb::Price::MatrixWithDisplayName::PriceType::TaggedSymbol) end attr_accessor :price_type @@ -6990,7 +8412,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - cadence: Orb::Price::GroupedTieredPackage::Cadence::OrSymbol, + cadence: Orb::Price::MatrixWithDisplayName::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), @@ -7015,10 +8437,11 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - grouped_tiered_package_config: T::Hash[Symbol, T.anything], invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration::OrHash), item: Orb::ItemSlim::OrHash, + matrix_with_display_name_config: + Orb::Price::MatrixWithDisplayName::MatrixWithDisplayNameConfig::OrHash, maximum: T.nilable(Orb::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], @@ -7026,7 +8449,7 @@ module Orb minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::GroupedTieredPackage::PriceType::OrSymbol, + price_type: Orb::Price::MatrixWithDisplayName::PriceType::OrSymbol, replaces_price_id: T.nilable(String), dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), @@ -7047,9 +8470,10 @@ module Orb discount:, external_price_id:, fixed_price_quantity:, - grouped_tiered_package_config:, invoicing_cycle_configuration:, item:, + # Configuration for matrix_with_display_name pricing + matrix_with_display_name_config:, maximum:, maximum_amount:, # User specified key-value pairs for the resource. If not present, this defaults @@ -7066,7 +8490,8 @@ module Orb # price in plan version migrations. replaces_price_id:, dimensional_price_configuration: nil, - model_type: :grouped_tiered_package + # The pricing model type + model_type: :matrix_with_display_name ) end @@ -7076,13 +8501,13 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol, + cadence: Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::GroupedTieredPackage::ConversionRateConfig::Variants + Orb::Price::MatrixWithDisplayName::ConversionRateConfig::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -7090,10 +8515,11 @@ module Orb discount: T.nilable(Orb::Discount::Variants), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - grouped_tiered_package_config: T::Hash[Symbol, T.anything], invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration), item: Orb::ItemSlim, + matrix_with_display_name_config: + Orb::Price::MatrixWithDisplayName::MatrixWithDisplayNameConfig, maximum: T.nilable(Orb::Maximum), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], @@ -7103,7 +8529,7 @@ module Orb name: String, plan_phase_order: T.nilable(Integer), price_type: - Orb::Price::GroupedTieredPackage::PriceType::TaggedSymbol, + Orb::Price::MatrixWithDisplayName::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) @@ -7118,74 +8544,182 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::GroupedTieredPackage::Cadence) + T.all(Symbol, Orb::Price::MatrixWithDisplayName::Cadence) end OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = T.let( :one_time, - Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) ANNUAL = T.let( :annual, - Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol + Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol ) sig do override.returns( - T::Array[Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol] + T::Array[Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol] ) end def self.values end end + class MatrixWithDisplayNameConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::MatrixWithDisplayName::MatrixWithDisplayNameConfig, + Orb::Internal::AnyHash + ) + end + + # Used to determine the unit rate + sig { returns(String) } + attr_accessor :dimension + + # Apply per unit pricing to each dimension value + sig do + returns( + T::Array[ + Orb::Price::MatrixWithDisplayName::MatrixWithDisplayNameConfig::UnitAmount + ] + ) + end + attr_accessor :unit_amounts + + # Configuration for matrix_with_display_name pricing + sig do + params( + dimension: String, + unit_amounts: + T::Array[ + Orb::Price::MatrixWithDisplayName::MatrixWithDisplayNameConfig::UnitAmount::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Used to determine the unit rate + dimension:, + # Apply per unit pricing to each dimension value + unit_amounts: + ) + end + + sig do + override.returns( + { + dimension: String, + unit_amounts: + T::Array[ + Orb::Price::MatrixWithDisplayName::MatrixWithDisplayNameConfig::UnitAmount + ] + } + ) + end + def to_hash + end + + class UnitAmount < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::MatrixWithDisplayName::MatrixWithDisplayNameConfig::UnitAmount, + Orb::Internal::AnyHash + ) + end + + # The dimension value + sig { returns(String) } + attr_accessor :dimension_value + + # Display name for this dimension value + sig { returns(String) } + attr_accessor :display_name + + # Per unit amount + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a unit amount item + sig do + params( + dimension_value: String, + display_name: String, + unit_amount: String + ).returns(T.attached_class) + end + def self.new( + # The dimension value + dimension_value:, + # Display name for this dimension value + display_name:, + # Per unit amount + unit_amount: + ) + end + + sig do + override.returns( + { + dimension_value: String, + display_name: String, + unit_amount: String + } + ) + end + def to_hash + end + end + end + module PriceType extend Orb::Internal::Type::Enum TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::GroupedTieredPackage::PriceType) + T.all(Symbol, Orb::Price::MatrixWithDisplayName::PriceType) end OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = T.let( :usage_price, - Orb::Price::GroupedTieredPackage::PriceType::TaggedSymbol + Orb::Price::MatrixWithDisplayName::PriceType::TaggedSymbol ) FIXED_PRICE = T.let( :fixed_price, - Orb::Price::GroupedTieredPackage::PriceType::TaggedSymbol + Orb::Price::MatrixWithDisplayName::PriceType::TaggedSymbol ) sig do override.returns( T::Array[ - Orb::Price::GroupedTieredPackage::PriceType::TaggedSymbol + Orb::Price::MatrixWithDisplayName::PriceType::TaggedSymbol ] ) end @@ -7194,10 +8728,10 @@ module Orb end end - class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel + class GroupedTieredPackage < Orb::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(Orb::Price::MaxGroupTieredPackage, Orb::Internal::AnyHash) + T.any(Orb::Price::GroupedTieredPackage, Orb::Internal::AnyHash) end sig { returns(String) } @@ -7223,9 +8757,7 @@ module Orb end attr_writer :billing_cycle_configuration - sig do - returns(Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol) - end + sig { returns(Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol) } attr_accessor :cadence sig { returns(T.nilable(T::Array[Orb::TransformPriceFilter])) } @@ -7237,7 +8769,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::MaxGroupTieredPackage::ConversionRateConfig::Variants + Orb::Price::GroupedTieredPackage::ConversionRateConfig::Variants ) ) end @@ -7266,6 +8798,20 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity + # Configuration for grouped_tiered_package pricing + sig do + returns(Orb::Price::GroupedTieredPackage::GroupedTieredPackageConfig) + end + attr_reader :grouped_tiered_package_config + + sig do + params( + grouped_tiered_package_config: + Orb::Price::GroupedTieredPackage::GroupedTieredPackageConfig::OrHash + ).void + end + attr_writer :grouped_tiered_package_config + sig { returns(T.nilable(Orb::BillingCycleConfiguration)) } attr_reader :invoicing_cycle_configuration @@ -7283,9 +8829,6 @@ module Orb sig { params(item: Orb::ItemSlim::OrHash).void } attr_writer :item - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :max_group_tiered_package_config - sig { returns(T.nilable(Orb::Maximum)) } attr_reader :maximum @@ -7311,6 +8854,7 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :minimum_amount + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -7321,7 +8865,7 @@ module Orb attr_accessor :plan_phase_order sig do - returns(Orb::Price::MaxGroupTieredPackage::PriceType::TaggedSymbol) + returns(Orb::Price::GroupedTieredPackage::PriceType::TaggedSymbol) end attr_accessor :price_type @@ -7346,7 +8890,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - cadence: Orb::Price::MaxGroupTieredPackage::Cadence::OrSymbol, + cadence: Orb::Price::GroupedTieredPackage::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), @@ -7371,10 +8915,11 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), + grouped_tiered_package_config: + Orb::Price::GroupedTieredPackage::GroupedTieredPackageConfig::OrHash, invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration::OrHash), item: Orb::ItemSlim::OrHash, - max_group_tiered_package_config: T::Hash[Symbol, T.anything], maximum: T.nilable(Orb::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], @@ -7382,7 +8927,7 @@ module Orb minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::MaxGroupTieredPackage::PriceType::OrSymbol, + price_type: Orb::Price::GroupedTieredPackage::PriceType::OrSymbol, replaces_price_id: T.nilable(String), dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), @@ -7403,9 +8948,10 @@ module Orb discount:, external_price_id:, fixed_price_quantity:, + # Configuration for grouped_tiered_package pricing + grouped_tiered_package_config:, invoicing_cycle_configuration:, item:, - max_group_tiered_package_config:, maximum:, maximum_amount:, # User specified key-value pairs for the resource. If not present, this defaults @@ -7422,7 +8968,8 @@ module Orb # price in plan version migrations. replaces_price_id:, dimensional_price_configuration: nil, - model_type: :max_group_tiered_package + # The pricing model type + model_type: :grouped_tiered_package ) end @@ -7432,13 +8979,13 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol, + cadence: Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::MaxGroupTieredPackage::ConversionRateConfig::Variants + Orb::Price::GroupedTieredPackage::ConversionRateConfig::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -7446,10 +8993,11 @@ module Orb discount: T.nilable(Orb::Discount::Variants), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), + grouped_tiered_package_config: + Orb::Price::GroupedTieredPackage::GroupedTieredPackageConfig, invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration), item: Orb::ItemSlim, - max_group_tiered_package_config: T::Hash[Symbol, T.anything], maximum: T.nilable(Orb::Maximum), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], @@ -7459,7 +9007,7 @@ module Orb name: String, plan_phase_order: T.nilable(Integer), price_type: - Orb::Price::MaxGroupTieredPackage::PriceType::TaggedSymbol, + Orb::Price::GroupedTieredPackage::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) @@ -7474,47 +9022,151 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::MaxGroupTieredPackage::Cadence) + T.all(Symbol, Orb::Price::GroupedTieredPackage::Cadence) end OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = T.let( :one_time, - Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) ANNUAL = T.let( :annual, - Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol + Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol] + ) + end + def self.values + end + end + + class GroupedTieredPackageConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedTieredPackage::GroupedTieredPackageConfig, + Orb::Internal::AnyHash + ) + end + + # The event property used to group before tiering + sig { returns(String) } + attr_accessor :grouping_key + + # Package size + sig { returns(String) } + attr_accessor :package_size + + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + sig do + returns( + T::Array[ + Orb::Price::GroupedTieredPackage::GroupedTieredPackageConfig::Tier + ] ) + end + attr_accessor :tiers + + # Configuration for grouped_tiered_package pricing + sig do + params( + grouping_key: String, + package_size: String, + tiers: + T::Array[ + Orb::Price::GroupedTieredPackage::GroupedTieredPackageConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # The event property used to group before tiering + grouping_key:, + # Package size + package_size:, + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + tiers: + ) + end sig do override.returns( - T::Array[Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol] + { + grouping_key: String, + package_size: String, + tiers: + T::Array[ + Orb::Price::GroupedTieredPackage::GroupedTieredPackageConfig::Tier + ] + } ) end - def self.values + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::GroupedTieredPackage::GroupedTieredPackageConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Price per package + sig { returns(String) } + attr_accessor :per_unit + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Configuration for a single tier + sig do + params(per_unit: String, tier_lower_bound: String).returns( + T.attached_class + ) + end + def self.new( + # Price per package + per_unit:, + # Tier lower bound + tier_lower_bound: + ) + end + + sig do + override.returns({ per_unit: String, tier_lower_bound: String }) + end + def to_hash + end end end @@ -7523,25 +9175,25 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::MaxGroupTieredPackage::PriceType) + T.all(Symbol, Orb::Price::GroupedTieredPackage::PriceType) end OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = T.let( :usage_price, - Orb::Price::MaxGroupTieredPackage::PriceType::TaggedSymbol + Orb::Price::GroupedTieredPackage::PriceType::TaggedSymbol ) FIXED_PRICE = T.let( :fixed_price, - Orb::Price::MaxGroupTieredPackage::PriceType::TaggedSymbol + Orb::Price::GroupedTieredPackage::PriceType::TaggedSymbol ) sig do override.returns( T::Array[ - Orb::Price::MaxGroupTieredPackage::PriceType::TaggedSymbol + Orb::Price::GroupedTieredPackage::PriceType::TaggedSymbol ] ) end @@ -7550,13 +9202,10 @@ module Orb end end - class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel + class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel OrHash = T.type_alias do - T.any( - Orb::Price::ScalableMatrixWithUnitPricing, - Orb::Internal::AnyHash - ) + T.any(Orb::Price::MaxGroupTieredPackage, Orb::Internal::AnyHash) end sig { returns(String) } @@ -7583,9 +9232,7 @@ module Orb attr_writer :billing_cycle_configuration sig do - returns( - Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol - ) + returns(Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol) end attr_accessor :cadence @@ -7598,7 +9245,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::ScalableMatrixWithUnitPricing::ConversionRateConfig::Variants + Orb::Price::MaxGroupTieredPackage::ConversionRateConfig::Variants ) ) end @@ -7644,6 +9291,22 @@ module Orb sig { params(item: Orb::ItemSlim::OrHash).void } attr_writer :item + # Configuration for max_group_tiered_package pricing + sig do + returns( + Orb::Price::MaxGroupTieredPackage::MaxGroupTieredPackageConfig + ) + end + attr_reader :max_group_tiered_package_config + + sig do + params( + max_group_tiered_package_config: + Orb::Price::MaxGroupTieredPackage::MaxGroupTieredPackageConfig::OrHash + ).void + end + attr_writer :max_group_tiered_package_config + sig { returns(T.nilable(Orb::Maximum)) } attr_reader :maximum @@ -7669,6 +9332,7 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :minimum_amount + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -7679,9 +9343,7 @@ module Orb attr_accessor :plan_phase_order sig do - returns( - Orb::Price::ScalableMatrixWithUnitPricing::PriceType::TaggedSymbol - ) + returns(Orb::Price::MaxGroupTieredPackage::PriceType::TaggedSymbol) end attr_accessor :price_type @@ -7690,9 +9352,6 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :replaces_price_id - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :scalable_matrix_with_unit_pricing_config - sig { returns(T.nilable(Orb::DimensionalPriceConfiguration)) } attr_reader :dimensional_price_configuration @@ -7709,8 +9368,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - cadence: - Orb::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol, + cadence: Orb::Price::MaxGroupTieredPackage::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), @@ -7738,6 +9396,8 @@ module Orb invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration::OrHash), item: Orb::ItemSlim::OrHash, + max_group_tiered_package_config: + Orb::Price::MaxGroupTieredPackage::MaxGroupTieredPackageConfig::OrHash, maximum: T.nilable(Orb::Maximum::OrHash), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], @@ -7745,11 +9405,8 @@ module Orb minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: - Orb::Price::ScalableMatrixWithUnitPricing::PriceType::OrSymbol, + price_type: Orb::Price::MaxGroupTieredPackage::PriceType::OrSymbol, replaces_price_id: T.nilable(String), - scalable_matrix_with_unit_pricing_config: - T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), model_type: Symbol @@ -7771,6 +9428,8 @@ module Orb fixed_price_quantity:, invoicing_cycle_configuration:, item:, + # Configuration for max_group_tiered_package pricing + max_group_tiered_package_config:, maximum:, maximum_amount:, # User specified key-value pairs for the resource. If not present, this defaults @@ -7786,9 +9445,9 @@ module Orb # The price id this price replaces. This price will take the place of the replaced # price in plan version migrations. replaces_price_id:, - scalable_matrix_with_unit_pricing_config:, dimensional_price_configuration: nil, - model_type: :scalable_matrix_with_unit_pricing + # The pricing model type + model_type: :max_group_tiered_package ) end @@ -7798,14 +9457,13 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: - Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol, + cadence: Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::ScalableMatrixWithUnitPricing::ConversionRateConfig::Variants + Orb::Price::MaxGroupTieredPackage::ConversionRateConfig::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -7816,6 +9474,8 @@ module Orb invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration), item: Orb::ItemSlim, + max_group_tiered_package_config: + Orb::Price::MaxGroupTieredPackage::MaxGroupTieredPackageConfig, maximum: T.nilable(Orb::Maximum), maximum_amount: T.nilable(String), metadata: T::Hash[Symbol, String], @@ -7825,10 +9485,8 @@ module Orb name: String, plan_phase_order: T.nilable(Integer), price_type: - Orb::Price::ScalableMatrixWithUnitPricing::PriceType::TaggedSymbol, + Orb::Price::MaxGroupTieredPackage::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), - scalable_matrix_with_unit_pricing_config: - T::Hash[Symbol, T.anything], dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) } @@ -7842,49 +9500,151 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::ScalableMatrixWithUnitPricing::Cadence) + T.all(Symbol, Orb::Price::MaxGroupTieredPackage::Cadence) end OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = T.let( :one_time, - Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) ANNUAL = T.let( :annual, - Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol ) sig do override.returns( + T::Array[Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol] + ) + end + def self.values + end + end + + class MaxGroupTieredPackageConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::MaxGroupTieredPackage::MaxGroupTieredPackageConfig, + Orb::Internal::AnyHash + ) + end + + # The event property used to group before tiering the group with the highest value + sig { returns(String) } + attr_accessor :grouping_key + + # Package size + sig { returns(String) } + attr_accessor :package_size + + # Apply tiered pricing to the largest group after grouping with the provided key. + sig do + returns( T::Array[ - Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol + Orb::Price::MaxGroupTieredPackage::MaxGroupTieredPackageConfig::Tier ] ) end - def self.values + attr_accessor :tiers + + # Configuration for max_group_tiered_package pricing + sig do + params( + grouping_key: String, + package_size: String, + tiers: + T::Array[ + Orb::Price::MaxGroupTieredPackage::MaxGroupTieredPackageConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # The event property used to group before tiering the group with the highest value + grouping_key:, + # Package size + package_size:, + # Apply tiered pricing to the largest group after grouping with the provided key. + tiers: + ) + end + + sig do + override.returns( + { + grouping_key: String, + package_size: String, + tiers: + T::Array[ + Orb::Price::MaxGroupTieredPackage::MaxGroupTieredPackageConfig::Tier + ] + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::MaxGroupTieredPackage::MaxGroupTieredPackageConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Per unit amount + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a single tier + sig do + params(tier_lower_bound: String, unit_amount: String).returns( + T.attached_class + ) + end + def self.new( + # Tier lower bound + tier_lower_bound:, + # Per unit amount + unit_amount: + ) + end + + sig do + override.returns( + { tier_lower_bound: String, unit_amount: String } + ) + end + def to_hash + end end end @@ -7893,28 +9653,25 @@ module Orb TaggedSymbol = T.type_alias do - T.all( - Symbol, - Orb::Price::ScalableMatrixWithUnitPricing::PriceType - ) + T.all(Symbol, Orb::Price::MaxGroupTieredPackage::PriceType) end OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = T.let( :usage_price, - Orb::Price::ScalableMatrixWithUnitPricing::PriceType::TaggedSymbol + Orb::Price::MaxGroupTieredPackage::PriceType::TaggedSymbol ) FIXED_PRICE = T.let( :fixed_price, - Orb::Price::ScalableMatrixWithUnitPricing::PriceType::TaggedSymbol + Orb::Price::MaxGroupTieredPackage::PriceType::TaggedSymbol ) sig do override.returns( T::Array[ - Orb::Price::ScalableMatrixWithUnitPricing::PriceType::TaggedSymbol + Orb::Price::MaxGroupTieredPackage::PriceType::TaggedSymbol ] ) end @@ -7923,11 +9680,11 @@ module Orb end end - class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel + class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Price::ScalableMatrixWithUnitPricing, Orb::Internal::AnyHash ) end @@ -7957,7 +9714,7 @@ module Orb sig do returns( - Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) end attr_accessor :cadence @@ -7971,7 +9728,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::ScalableMatrixWithTieredPricing::ConversionRateConfig::Variants + Orb::Price::ScalableMatrixWithUnitPricing::ConversionRateConfig::Variants ) ) end @@ -8042,6 +9799,7 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :minimum_amount + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -8053,7 +9811,7 @@ module Orb sig do returns( - Orb::Price::ScalableMatrixWithTieredPricing::PriceType::TaggedSymbol + Orb::Price::ScalableMatrixWithUnitPricing::PriceType::TaggedSymbol ) end attr_accessor :price_type @@ -8063,8 +9821,21 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :replaces_price_id - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :scalable_matrix_with_tiered_pricing_config + # Configuration for scalable_matrix_with_unit_pricing pricing + sig do + returns( + Orb::Price::ScalableMatrixWithUnitPricing::ScalableMatrixWithUnitPricingConfig + ) + end + attr_reader :scalable_matrix_with_unit_pricing_config + + sig do + params( + scalable_matrix_with_unit_pricing_config: + Orb::Price::ScalableMatrixWithUnitPricing::ScalableMatrixWithUnitPricingConfig::OrHash + ).void + end + attr_writer :scalable_matrix_with_unit_pricing_config sig { returns(T.nilable(Orb::DimensionalPriceConfiguration)) } attr_reader :dimensional_price_configuration @@ -8083,7 +9854,7 @@ module Orb billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, cadence: - Orb::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol, + Orb::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), @@ -8119,10 +9890,10 @@ module Orb name: String, plan_phase_order: T.nilable(Integer), price_type: - Orb::Price::ScalableMatrixWithTieredPricing::PriceType::OrSymbol, + Orb::Price::ScalableMatrixWithUnitPricing::PriceType::OrSymbol, replaces_price_id: T.nilable(String), - scalable_matrix_with_tiered_pricing_config: - T::Hash[Symbol, T.anything], + scalable_matrix_with_unit_pricing_config: + Orb::Price::ScalableMatrixWithUnitPricing::ScalableMatrixWithUnitPricingConfig::OrHash, dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), model_type: Symbol @@ -8159,9 +9930,11 @@ module Orb # The price id this price replaces. This price will take the place of the replaced # price in plan version migrations. replaces_price_id:, - scalable_matrix_with_tiered_pricing_config:, + # Configuration for scalable_matrix_with_unit_pricing pricing + scalable_matrix_with_unit_pricing_config:, dimensional_price_configuration: nil, - model_type: :scalable_matrix_with_tiered_pricing + # The pricing model type + model_type: :scalable_matrix_with_unit_pricing ) end @@ -8172,13 +9945,13 @@ module Orb billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, cadence: - Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol, + Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::ScalableMatrixWithTieredPricing::ConversionRateConfig::Variants + Orb::Price::ScalableMatrixWithUnitPricing::ConversionRateConfig::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), @@ -8198,10 +9971,10 @@ module Orb name: String, plan_phase_order: T.nilable(Integer), price_type: - Orb::Price::ScalableMatrixWithTieredPricing::PriceType::TaggedSymbol, + Orb::Price::ScalableMatrixWithUnitPricing::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), - scalable_matrix_with_tiered_pricing_config: - T::Hash[Symbol, T.anything], + scalable_matrix_with_unit_pricing_config: + Orb::Price::ScalableMatrixWithUnitPricing::ScalableMatrixWithUnitPricingConfig, dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) } @@ -8215,48 +9988,45 @@ module Orb TaggedSymbol = T.type_alias do - T.all( - Symbol, - Orb::Price::ScalableMatrixWithTieredPricing::Cadence - ) + T.all(Symbol, Orb::Price::ScalableMatrixWithUnitPricing::Cadence) end OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = T.let( :one_time, - Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) ANNUAL = T.let( :annual, - Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ) sig do override.returns( T::Array[ - Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol ] ) end @@ -8271,7 +10041,7 @@ module Orb T.type_alias do T.all( Symbol, - Orb::Price::ScalableMatrixWithTieredPricing::PriceType + Orb::Price::ScalableMatrixWithUnitPricing::PriceType ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -8279,30 +10049,165 @@ module Orb USAGE_PRICE = T.let( :usage_price, - Orb::Price::ScalableMatrixWithTieredPricing::PriceType::TaggedSymbol + Orb::Price::ScalableMatrixWithUnitPricing::PriceType::TaggedSymbol ) FIXED_PRICE = T.let( :fixed_price, - Orb::Price::ScalableMatrixWithTieredPricing::PriceType::TaggedSymbol + Orb::Price::ScalableMatrixWithUnitPricing::PriceType::TaggedSymbol ) sig do override.returns( T::Array[ - Orb::Price::ScalableMatrixWithTieredPricing::PriceType::TaggedSymbol + Orb::Price::ScalableMatrixWithUnitPricing::PriceType::TaggedSymbol ] ) end def self.values end end + + class ScalableMatrixWithUnitPricingConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::ScalableMatrixWithUnitPricing::ScalableMatrixWithUnitPricingConfig, + Orb::Internal::AnyHash + ) + end + + # Used to determine the unit rate + sig { returns(String) } + attr_accessor :first_dimension + + # Apply a scaling factor to each dimension + sig do + returns( + T::Array[ + Orb::Price::ScalableMatrixWithUnitPricing::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor + ] + ) + end + attr_accessor :matrix_scaling_factors + + # The final unit price to rate against the output of the matrix + sig { returns(String) } + attr_accessor :unit_price + + # If true, the unit price will be prorated to the billing period + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :prorate + + # Used to determine the unit rate (optional) + sig { returns(T.nilable(String)) } + attr_accessor :second_dimension + + # Configuration for scalable_matrix_with_unit_pricing pricing + sig do + params( + first_dimension: String, + matrix_scaling_factors: + T::Array[ + Orb::Price::ScalableMatrixWithUnitPricing::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor::OrHash + ], + unit_price: String, + prorate: T.nilable(T::Boolean), + second_dimension: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # Used to determine the unit rate + first_dimension:, + # Apply a scaling factor to each dimension + matrix_scaling_factors:, + # The final unit price to rate against the output of the matrix + unit_price:, + # If true, the unit price will be prorated to the billing period + prorate: nil, + # Used to determine the unit rate (optional) + second_dimension: nil + ) + end + + sig do + override.returns( + { + first_dimension: String, + matrix_scaling_factors: + T::Array[ + Orb::Price::ScalableMatrixWithUnitPricing::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor + ], + unit_price: String, + prorate: T.nilable(T::Boolean), + second_dimension: T.nilable(String) + } + ) + end + def to_hash + end + + class MatrixScalingFactor < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::ScalableMatrixWithUnitPricing::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor, + Orb::Internal::AnyHash + ) + end + + # First dimension value + sig { returns(String) } + attr_accessor :first_dimension_value + + # Scaling factor + sig { returns(String) } + attr_accessor :scaling_factor + + # Second dimension value (optional) + sig { returns(T.nilable(String)) } + attr_accessor :second_dimension_value + + # Configuration for a single matrix scaling factor + sig do + params( + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # First dimension value + first_dimension_value:, + # Scaling factor + scaling_factor:, + # Second dimension value (optional) + second_dimension_value: nil + ) + end + + sig do + override.returns( + { + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: T.nilable(String) + } + ) + end + def to_hash + end + end + end end - class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel + class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(Orb::Price::CumulativeGroupedBulk, Orb::Internal::AnyHash) + T.any( + Orb::Price::ScalableMatrixWithTieredPricing, + Orb::Internal::AnyHash + ) end sig { returns(String) } @@ -8329,7 +10234,9 @@ module Orb attr_writer :billing_cycle_configuration sig do - returns(Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol) + returns( + Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + ) end attr_accessor :cadence @@ -8342,7 +10249,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::CumulativeGroupedBulk::ConversionRateConfig::Variants + Orb::Price::ScalableMatrixWithTieredPricing::ConversionRateConfig::Variants ) ) end @@ -8359,9 +10266,6 @@ module Orb end attr_writer :credit_allocation - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :cumulative_grouped_bulk_config - sig { returns(String) } attr_accessor :currency @@ -8416,6 +10320,7 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :minimum_amount + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -8426,7 +10331,9 @@ module Orb attr_accessor :plan_phase_order sig do - returns(Orb::Price::CumulativeGroupedBulk::PriceType::TaggedSymbol) + returns( + Orb::Price::ScalableMatrixWithTieredPricing::PriceType::TaggedSymbol + ) end attr_accessor :price_type @@ -8435,6 +10342,22 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :replaces_price_id + # Configuration for scalable_matrix_with_tiered_pricing pricing + sig do + returns( + Orb::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig + ) + end + attr_reader :scalable_matrix_with_tiered_pricing_config + + sig do + params( + scalable_matrix_with_tiered_pricing_config: + Orb::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig::OrHash + ).void + end + attr_writer :scalable_matrix_with_tiered_pricing_config + sig { returns(T.nilable(Orb::DimensionalPriceConfiguration)) } attr_reader :dimensional_price_configuration @@ -8451,7 +10374,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - cadence: Orb::Price::CumulativeGroupedBulk::Cadence::OrSymbol, + cadence: + Orb::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), @@ -8464,7 +10388,6 @@ module Orb ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation::OrHash), - cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], currency: String, discount: T.nilable( @@ -8487,8 +10410,11 @@ module Orb minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: Orb::Price::CumulativeGroupedBulk::PriceType::OrSymbol, + price_type: + Orb::Price::ScalableMatrixWithTieredPricing::PriceType::OrSymbol, replaces_price_id: T.nilable(String), + scalable_matrix_with_tiered_pricing_config: + Orb::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig::OrHash, dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), model_type: Symbol @@ -8504,7 +10430,6 @@ module Orb conversion_rate_config:, created_at:, credit_allocation:, - cumulative_grouped_bulk_config:, currency:, discount:, external_price_id:, @@ -8526,8 +10451,11 @@ module Orb # The price id this price replaces. This price will take the place of the replaced # price in plan version migrations. replaces_price_id:, + # Configuration for scalable_matrix_with_tiered_pricing pricing + scalable_matrix_with_tiered_pricing_config:, dimensional_price_configuration: nil, - model_type: :cumulative_grouped_bulk + # The pricing model type + model_type: :scalable_matrix_with_tiered_pricing ) end @@ -8537,17 +10465,17 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol, + cadence: + Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::CumulativeGroupedBulk::ConversionRateConfig::Variants + Orb::Price::ScalableMatrixWithTieredPricing::ConversionRateConfig::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), - cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], currency: String, discount: T.nilable(Orb::Discount::Variants), external_price_id: T.nilable(String), @@ -8564,8 +10492,10 @@ module Orb name: String, plan_phase_order: T.nilable(Integer), price_type: - Orb::Price::CumulativeGroupedBulk::PriceType::TaggedSymbol, + Orb::Price::ScalableMatrixWithTieredPricing::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), + scalable_matrix_with_tiered_pricing_config: + Orb::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig, dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) } @@ -8579,44 +10509,49 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::CumulativeGroupedBulk::Cadence) + T.all( + Symbol, + Orb::Price::ScalableMatrixWithTieredPricing::Cadence + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = T.let( :one_time, - Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) ANNUAL = T.let( :annual, - Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol + Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol ) sig do override.returns( - T::Array[Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol] + T::Array[ + Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol + ] ) end def self.values @@ -8628,40 +10563,216 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::CumulativeGroupedBulk::PriceType) + T.all( + Symbol, + Orb::Price::ScalableMatrixWithTieredPricing::PriceType + ) end OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = T.let( :usage_price, - Orb::Price::CumulativeGroupedBulk::PriceType::TaggedSymbol + Orb::Price::ScalableMatrixWithTieredPricing::PriceType::TaggedSymbol ) FIXED_PRICE = T.let( :fixed_price, - Orb::Price::CumulativeGroupedBulk::PriceType::TaggedSymbol + Orb::Price::ScalableMatrixWithTieredPricing::PriceType::TaggedSymbol ) sig do override.returns( T::Array[ - Orb::Price::CumulativeGroupedBulk::PriceType::TaggedSymbol + Orb::Price::ScalableMatrixWithTieredPricing::PriceType::TaggedSymbol ] ) end def self.values end end + + class ScalableMatrixWithTieredPricingConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig, + Orb::Internal::AnyHash + ) + end + + # Used for the scalable matrix first dimension + sig { returns(String) } + attr_accessor :first_dimension + + # Apply a scaling factor to each dimension + sig do + returns( + T::Array[ + Orb::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor + ] + ) + end + attr_accessor :matrix_scaling_factors + + # Tier pricing structure + sig do + returns( + T::Array[ + Orb::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig::Tier + ] + ) + end + attr_accessor :tiers + + # Used for the scalable matrix second dimension (optional) + sig { returns(T.nilable(String)) } + attr_accessor :second_dimension + + # Configuration for scalable_matrix_with_tiered_pricing pricing + sig do + params( + first_dimension: String, + matrix_scaling_factors: + T::Array[ + Orb::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor::OrHash + ], + tiers: + T::Array[ + Orb::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig::Tier::OrHash + ], + second_dimension: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # Used for the scalable matrix first dimension + first_dimension:, + # Apply a scaling factor to each dimension + matrix_scaling_factors:, + # Tier pricing structure + tiers:, + # Used for the scalable matrix second dimension (optional) + second_dimension: nil + ) + end + + sig do + override.returns( + { + first_dimension: String, + matrix_scaling_factors: + T::Array[ + Orb::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor + ], + tiers: + T::Array[ + Orb::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig::Tier + ], + second_dimension: T.nilable(String) + } + ) + end + def to_hash + end + + class MatrixScalingFactor < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor, + Orb::Internal::AnyHash + ) + end + + # First dimension value + sig { returns(String) } + attr_accessor :first_dimension_value + + # Scaling factor + sig { returns(String) } + attr_accessor :scaling_factor + + # Second dimension value (optional) + sig { returns(T.nilable(String)) } + attr_accessor :second_dimension_value + + # Configuration for a single matrix scaling factor + sig do + params( + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # First dimension value + first_dimension_value:, + # Scaling factor + scaling_factor:, + # Second dimension value (optional) + second_dimension_value: nil + ) + end + + sig do + override.returns( + { + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: T.nilable(String) + } + ) + end + def to_hash + end + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Per unit amount + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a single tier entry with business logic + sig do + params(tier_lower_bound: String, unit_amount: String).returns( + T.attached_class + ) + end + def self.new( + # Tier lower bound + tier_lower_bound:, + # Per unit amount + unit_amount: + ) + end + + sig do + override.returns( + { tier_lower_bound: String, unit_amount: String } + ) + end + def to_hash + end + end + end end - class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel OrHash = T.type_alias do - T.any( - Orb::Price::GroupedWithMinMaxThresholds, - Orb::Internal::AnyHash - ) + T.any(Orb::Price::CumulativeGroupedBulk, Orb::Internal::AnyHash) end sig { returns(String) } @@ -8688,9 +10799,7 @@ module Orb attr_writer :billing_cycle_configuration sig do - returns( - Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol - ) + returns(Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol) end attr_accessor :cadence @@ -8703,7 +10812,7 @@ module Orb sig do returns( T.nilable( - Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig::Variants + Orb::Price::CumulativeGroupedBulk::ConversionRateConfig::Variants ) ) end @@ -8720,6 +10829,22 @@ module Orb end attr_writer :credit_allocation + # Configuration for cumulative_grouped_bulk pricing + sig do + returns( + Orb::Price::CumulativeGroupedBulk::CumulativeGroupedBulkConfig + ) + end + attr_reader :cumulative_grouped_bulk_config + + sig do + params( + cumulative_grouped_bulk_config: + Orb::Price::CumulativeGroupedBulk::CumulativeGroupedBulkConfig::OrHash + ).void + end + attr_writer :cumulative_grouped_bulk_config + sig { returns(String) } attr_accessor :currency @@ -8732,9 +10857,6 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :fixed_price_quantity - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_with_min_max_thresholds_config - sig { returns(T.nilable(Orb::BillingCycleConfiguration)) } attr_reader :invoicing_cycle_configuration @@ -8777,6 +10899,7 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :minimum_amount + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -8787,9 +10910,7 @@ module Orb attr_accessor :plan_phase_order sig do - returns( - Orb::Price::GroupedWithMinMaxThresholds::PriceType::TaggedSymbol - ) + returns(Orb::Price::CumulativeGroupedBulk::PriceType::TaggedSymbol) end attr_accessor :price_type @@ -8814,7 +10935,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, - cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + cadence: Orb::Price::CumulativeGroupedBulk::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), conversion_rate: T.nilable(Float), @@ -8827,6 +10948,8 @@ module Orb ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation::OrHash), + cumulative_grouped_bulk_config: + Orb::Price::CumulativeGroupedBulk::CumulativeGroupedBulkConfig::OrHash, currency: String, discount: T.nilable( @@ -8839,7 +10962,6 @@ module Orb ), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - grouped_with_min_max_thresholds_config: T::Hash[Symbol, T.anything], invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration::OrHash), item: Orb::ItemSlim::OrHash, @@ -8850,8 +10972,7 @@ module Orb minimum_amount: T.nilable(String), name: String, plan_phase_order: T.nilable(Integer), - price_type: - Orb::Price::GroupedWithMinMaxThresholds::PriceType::OrSymbol, + price_type: Orb::Price::CumulativeGroupedBulk::PriceType::OrSymbol, replaces_price_id: T.nilable(String), dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration::OrHash), @@ -8868,11 +10989,12 @@ module Orb conversion_rate_config:, created_at:, credit_allocation:, + # Configuration for cumulative_grouped_bulk pricing + cumulative_grouped_bulk_config:, currency:, discount:, external_price_id:, fixed_price_quantity:, - grouped_with_min_max_thresholds_config:, invoicing_cycle_configuration:, item:, maximum:, @@ -8891,7 +11013,8 @@ module Orb # price in plan version migrations. replaces_price_id:, dimensional_price_configuration: nil, - model_type: :grouped_with_min_max_thresholds + # The pricing model type + model_type: :cumulative_grouped_bulk ) end @@ -8901,23 +11024,22 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: - Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol, + cadence: Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), conversion_rate: T.nilable(Float), conversion_rate_config: T.nilable( - Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig::Variants + Orb::Price::CumulativeGroupedBulk::ConversionRateConfig::Variants ), created_at: Time, credit_allocation: T.nilable(Orb::Allocation), + cumulative_grouped_bulk_config: + Orb::Price::CumulativeGroupedBulk::CumulativeGroupedBulkConfig, currency: String, discount: T.nilable(Orb::Discount::Variants), external_price_id: T.nilable(String), fixed_price_quantity: T.nilable(Float), - grouped_with_min_max_thresholds_config: - T::Hash[Symbol, T.anything], invoicing_cycle_configuration: T.nilable(Orb::BillingCycleConfiguration), item: Orb::ItemSlim, @@ -8930,7 +11052,7 @@ module Orb name: String, plan_phase_order: T.nilable(Integer), price_type: - Orb::Price::GroupedWithMinMaxThresholds::PriceType::TaggedSymbol, + Orb::Price::CumulativeGroupedBulk::PriceType::TaggedSymbol, replaces_price_id: T.nilable(String), dimensional_price_configuration: T.nilable(Orb::DimensionalPriceConfiguration) @@ -8945,49 +11067,155 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::GroupedWithMinMaxThresholds::Cadence) + T.all(Symbol, Orb::Price::CumulativeGroupedBulk::Cadence) end OrSymbol = T.type_alias { T.any(Symbol, String) } ONE_TIME = T.let( :one_time, - Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) ANNUAL = T.let( :annual, - Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol ) sig do override.returns( + T::Array[Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol] + ) + end + def self.values + end + end + + class CumulativeGroupedBulkConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::CumulativeGroupedBulk::CumulativeGroupedBulkConfig, + Orb::Internal::AnyHash + ) + end + + # Each tier lower bound must have the same group of values. + sig do + returns( T::Array[ - Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::Price::CumulativeGroupedBulk::CumulativeGroupedBulkConfig::DimensionValue ] ) end - def self.values + attr_accessor :dimension_values + + # Grouping key name + sig { returns(String) } + attr_accessor :group + + # Configuration for cumulative_grouped_bulk pricing + sig do + params( + dimension_values: + T::Array[ + Orb::Price::CumulativeGroupedBulk::CumulativeGroupedBulkConfig::DimensionValue::OrHash + ], + group: String + ).returns(T.attached_class) + end + def self.new( + # Each tier lower bound must have the same group of values. + dimension_values:, + # Grouping key name + group: + ) + end + + sig do + override.returns( + { + dimension_values: + T::Array[ + Orb::Price::CumulativeGroupedBulk::CumulativeGroupedBulkConfig::DimensionValue + ], + group: String + } + ) + end + def to_hash + end + + class DimensionValue < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::Price::CumulativeGroupedBulk::CumulativeGroupedBulkConfig::DimensionValue, + Orb::Internal::AnyHash + ) + end + + # Grouping key value + sig { returns(String) } + attr_accessor :grouping_key + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Unit amount for this combination + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a dimension value entry + sig do + params( + grouping_key: String, + tier_lower_bound: String, + unit_amount: String + ).returns(T.attached_class) + end + def self.new( + # Grouping key value + grouping_key:, + # Tier lower bound + tier_lower_bound:, + # Unit amount for this combination + unit_amount: + ) + end + + sig do + override.returns( + { + grouping_key: String, + tier_lower_bound: String, + unit_amount: String + } + ) + end + def to_hash + end end end @@ -8996,25 +11224,25 @@ module Orb TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::GroupedWithMinMaxThresholds::PriceType) + T.all(Symbol, Orb::Price::CumulativeGroupedBulk::PriceType) end OrSymbol = T.type_alias { T.any(Symbol, String) } USAGE_PRICE = T.let( :usage_price, - Orb::Price::GroupedWithMinMaxThresholds::PriceType::TaggedSymbol + Orb::Price::CumulativeGroupedBulk::PriceType::TaggedSymbol ) FIXED_PRICE = T.let( :fixed_price, - Orb::Price::GroupedWithMinMaxThresholds::PriceType::TaggedSymbol + Orb::Price::CumulativeGroupedBulk::PriceType::TaggedSymbol ) sig do override.returns( T::Array[ - Orb::Price::GroupedWithMinMaxThresholds::PriceType::TaggedSymbol + Orb::Price::CumulativeGroupedBulk::PriceType::TaggedSymbol ] ) end @@ -9131,6 +11359,7 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :minimum_amount + # Configuration for minimum pricing sig { returns(Orb::Price::Minimum::MinimumConfig) } attr_reader :minimum_config @@ -9141,6 +11370,7 @@ module Orb end attr_writer :minimum_config + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -9242,6 +11472,7 @@ module Orb metadata:, minimum:, minimum_amount:, + # Configuration for minimum pricing minimum_config:, name:, plan_phase_order:, @@ -9250,6 +11481,7 @@ module Orb # price in plan version migrations. replaces_price_id:, dimensional_price_configuration: nil, + # The pricing model type model_type: :minimum ) end @@ -9330,30 +11562,29 @@ module Orb sig { returns(String) } attr_accessor :minimum_amount - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. + # If true, subtotals from this price are prorated based on the service period sig { returns(T.nilable(T::Boolean)) } - attr_accessor :prorated + attr_reader :prorated + sig { params(prorated: T::Boolean).void } + attr_writer :prorated + + # Configuration for minimum pricing sig do - params( - minimum_amount: String, - prorated: T.nilable(T::Boolean) - ).returns(T.attached_class) + params(minimum_amount: String, prorated: T::Boolean).returns( + T.attached_class + ) end def self.new( # The minimum amount to apply minimum_amount:, - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. + # If true, subtotals from this price are prorated based on the service period prorated: nil ) end sig do - override.returns( - { minimum_amount: String, prorated: T.nilable(T::Boolean) } - ) + override.returns({ minimum_amount: String, prorated: T::Boolean }) end def to_hash end diff --git a/rbi/orb/models/price_create_params.rbi b/rbi/orb/models/price_create_params.rbi index 27b2e818..c1efbb8c 100644 --- a/rbi/orb/models/price_create_params.rbi +++ b/rbi/orb/models/price_create_params.rbi @@ -21,6 +21,7 @@ module Orb sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Orb::PriceCreateParams::ModelType::OrSymbol) } attr_accessor :model_type @@ -28,6 +29,7 @@ module Orb sig { returns(String) } attr_accessor :name + # Configuration for unit pricing sig { returns(Orb::UnitConfig) } attr_reader :unit_config @@ -118,18 +120,119 @@ module Orb sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } attr_accessor :metadata + # Configuration for tiered pricing + sig { returns(Orb::TieredConfig) } + attr_reader :tiered_config + + sig { params(tiered_config: Orb::TieredConfig::OrHash).void } + attr_writer :tiered_config + + # Configuration for bulk pricing + sig { returns(Orb::BulkConfig) } + attr_reader :bulk_config + + sig { params(bulk_config: Orb::BulkConfig::OrHash).void } + attr_writer :bulk_config + + # Configuration for package pricing sig { returns(Orb::PackageConfig) } attr_reader :package_config sig { params(package_config: Orb::PackageConfig::OrHash).void } attr_writer :package_config + # Configuration for matrix pricing sig { returns(Orb::MatrixConfig) } attr_reader :matrix_config sig { params(matrix_config: Orb::MatrixConfig::OrHash).void } attr_writer :matrix_config + # Configuration for threshold_total_amount pricing + sig { returns(Orb::PriceCreateParams::ThresholdTotalAmountConfig) } + attr_reader :threshold_total_amount_config + + sig do + params( + threshold_total_amount_config: + Orb::PriceCreateParams::ThresholdTotalAmountConfig::OrHash + ).void + end + attr_writer :threshold_total_amount_config + + # Configuration for tiered_package pricing + sig { returns(Orb::PriceCreateParams::TieredPackageConfig) } + attr_reader :tiered_package_config + + sig do + params( + tiered_package_config: + Orb::PriceCreateParams::TieredPackageConfig::OrHash + ).void + end + attr_writer :tiered_package_config + + # Configuration for tiered_with_minimum pricing + sig { returns(Orb::PriceCreateParams::TieredWithMinimumConfig) } + attr_reader :tiered_with_minimum_config + + sig do + params( + tiered_with_minimum_config: + Orb::PriceCreateParams::TieredWithMinimumConfig::OrHash + ).void + end + attr_writer :tiered_with_minimum_config + + # Configuration for grouped_tiered pricing + sig { returns(Orb::PriceCreateParams::GroupedTieredConfig) } + attr_reader :grouped_tiered_config + + sig do + params( + grouped_tiered_config: + Orb::PriceCreateParams::GroupedTieredConfig::OrHash + ).void + end + attr_writer :grouped_tiered_config + + # Configuration for tiered_package_with_minimum pricing + sig { returns(Orb::PriceCreateParams::TieredPackageWithMinimumConfig) } + attr_reader :tiered_package_with_minimum_config + + sig do + params( + tiered_package_with_minimum_config: + Orb::PriceCreateParams::TieredPackageWithMinimumConfig::OrHash + ).void + end + attr_writer :tiered_package_with_minimum_config + + # Configuration for package_with_allocation pricing + sig { returns(Orb::PriceCreateParams::PackageWithAllocationConfig) } + attr_reader :package_with_allocation_config + + sig do + params( + package_with_allocation_config: + Orb::PriceCreateParams::PackageWithAllocationConfig::OrHash + ).void + end + attr_writer :package_with_allocation_config + + # Configuration for unit_with_percent pricing + sig { returns(Orb::PriceCreateParams::UnitWithPercentConfig) } + attr_reader :unit_with_percent_config + + sig do + params( + unit_with_percent_config: + Orb::PriceCreateParams::UnitWithPercentConfig::OrHash + ).void + end + attr_writer :unit_with_percent_config + + # Configuration for matrix_with_allocation pricing sig { returns(Orb::MatrixWithAllocationConfig) } attr_reader :matrix_with_allocation_config @@ -140,78 +243,167 @@ module Orb end attr_writer :matrix_with_allocation_config - sig { returns(Orb::TieredConfig) } - attr_reader :tiered_config + # Configuration for tiered_with_proration pricing + sig { returns(Orb::PriceCreateParams::TieredWithProrationConfig) } + attr_reader :tiered_with_proration_config - sig { params(tiered_config: Orb::TieredConfig::OrHash).void } - attr_writer :tiered_config + sig do + params( + tiered_with_proration_config: + Orb::PriceCreateParams::TieredWithProrationConfig::OrHash + ).void + end + attr_writer :tiered_with_proration_config - sig { returns(Orb::BulkConfig) } - attr_reader :bulk_config + # Configuration for unit_with_proration pricing + sig { returns(Orb::PriceCreateParams::UnitWithProrationConfig) } + attr_reader :unit_with_proration_config - sig { params(bulk_config: Orb::BulkConfig::OrHash).void } - attr_writer :bulk_config + sig do + params( + unit_with_proration_config: + Orb::PriceCreateParams::UnitWithProrationConfig::OrHash + ).void + end + attr_writer :unit_with_proration_config + + # Configuration for grouped_allocation pricing + sig { returns(Orb::PriceCreateParams::GroupedAllocationConfig) } + attr_reader :grouped_allocation_config + + sig do + params( + grouped_allocation_config: + Orb::PriceCreateParams::GroupedAllocationConfig::OrHash + ).void + end + attr_writer :grouped_allocation_config - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :threshold_total_amount_config + # Configuration for bulk_with_proration pricing + sig { returns(Orb::PriceCreateParams::BulkWithProrationConfig) } + attr_reader :bulk_with_proration_config - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :tiered_package_config + sig do + params( + bulk_with_proration_config: + Orb::PriceCreateParams::BulkWithProrationConfig::OrHash + ).void + end + attr_writer :bulk_with_proration_config - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_tiered_config + # Configuration for grouped_with_prorated_minimum pricing + sig { returns(Orb::PriceCreateParams::GroupedWithProratedMinimumConfig) } + attr_reader :grouped_with_prorated_minimum_config - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :max_group_tiered_package_config + sig do + params( + grouped_with_prorated_minimum_config: + Orb::PriceCreateParams::GroupedWithProratedMinimumConfig::OrHash + ).void + end + attr_writer :grouped_with_prorated_minimum_config - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :tiered_with_minimum_config + # Configuration for grouped_with_metered_minimum pricing + sig { returns(Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig) } + attr_reader :grouped_with_metered_minimum_config - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :package_with_allocation_config + sig do + params( + grouped_with_metered_minimum_config: + Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig::OrHash + ).void + end + attr_writer :grouped_with_metered_minimum_config - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :tiered_package_with_minimum_config + # Configuration for grouped_with_min_max_thresholds pricing + sig { returns(Orb::PriceCreateParams::GroupedWithMinMaxThresholdsConfig) } + attr_reader :grouped_with_min_max_thresholds_config - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :unit_with_percent_config + sig do + params( + grouped_with_min_max_thresholds_config: + Orb::PriceCreateParams::GroupedWithMinMaxThresholdsConfig::OrHash + ).void + end + attr_writer :grouped_with_min_max_thresholds_config - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :tiered_with_proration_config + # Configuration for matrix_with_display_name pricing + sig { returns(Orb::PriceCreateParams::MatrixWithDisplayNameConfig) } + attr_reader :matrix_with_display_name_config - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :unit_with_proration_config + sig do + params( + matrix_with_display_name_config: + Orb::PriceCreateParams::MatrixWithDisplayNameConfig::OrHash + ).void + end + attr_writer :matrix_with_display_name_config - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_allocation_config + # Configuration for grouped_tiered_package pricing + sig { returns(Orb::PriceCreateParams::GroupedTieredPackageConfig) } + attr_reader :grouped_tiered_package_config - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_with_prorated_minimum_config + sig do + params( + grouped_tiered_package_config: + Orb::PriceCreateParams::GroupedTieredPackageConfig::OrHash + ).void + end + attr_writer :grouped_tiered_package_config - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_with_metered_minimum_config + # Configuration for max_group_tiered_package pricing + sig { returns(Orb::PriceCreateParams::MaxGroupTieredPackageConfig) } + attr_reader :max_group_tiered_package_config - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :matrix_with_display_name_config + sig do + params( + max_group_tiered_package_config: + Orb::PriceCreateParams::MaxGroupTieredPackageConfig::OrHash + ).void + end + attr_writer :max_group_tiered_package_config - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :bulk_with_proration_config + # Configuration for scalable_matrix_with_unit_pricing pricing + sig do + returns(Orb::PriceCreateParams::ScalableMatrixWithUnitPricingConfig) + end + attr_reader :scalable_matrix_with_unit_pricing_config - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_tiered_package_config + sig do + params( + scalable_matrix_with_unit_pricing_config: + Orb::PriceCreateParams::ScalableMatrixWithUnitPricingConfig::OrHash + ).void + end + attr_writer :scalable_matrix_with_unit_pricing_config - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :scalable_matrix_with_unit_pricing_config + # Configuration for scalable_matrix_with_tiered_pricing pricing + sig do + returns(Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig) + end + attr_reader :scalable_matrix_with_tiered_pricing_config - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :scalable_matrix_with_tiered_pricing_config + sig do + params( + scalable_matrix_with_tiered_pricing_config: + Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig::OrHash + ).void + end + attr_writer :scalable_matrix_with_tiered_pricing_config - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :cumulative_grouped_bulk_config + # Configuration for cumulative_grouped_bulk pricing + sig { returns(Orb::PriceCreateParams::CumulativeGroupedBulkConfig) } + attr_reader :cumulative_grouped_bulk_config - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_with_min_max_thresholds_config + sig do + params( + cumulative_grouped_bulk_config: + Orb::PriceCreateParams::CumulativeGroupedBulkConfig::OrHash + ).void + end + attr_writer :cumulative_grouped_bulk_config + # Configuration for minimum pricing sig { returns(Orb::PriceCreateParams::MinimumConfig) } attr_reader :minimum_config @@ -230,33 +422,52 @@ module Orb model_type: Orb::PriceCreateParams::ModelType::OrSymbol, name: String, unit_config: Orb::UnitConfig::OrHash, + tiered_config: Orb::TieredConfig::OrHash, + bulk_config: Orb::BulkConfig::OrHash, package_config: Orb::PackageConfig::OrHash, matrix_config: Orb::MatrixConfig::OrHash, + threshold_total_amount_config: + Orb::PriceCreateParams::ThresholdTotalAmountConfig::OrHash, + tiered_package_config: + Orb::PriceCreateParams::TieredPackageConfig::OrHash, + tiered_with_minimum_config: + Orb::PriceCreateParams::TieredWithMinimumConfig::OrHash, + grouped_tiered_config: + Orb::PriceCreateParams::GroupedTieredConfig::OrHash, + tiered_package_with_minimum_config: + Orb::PriceCreateParams::TieredPackageWithMinimumConfig::OrHash, + package_with_allocation_config: + Orb::PriceCreateParams::PackageWithAllocationConfig::OrHash, + unit_with_percent_config: + Orb::PriceCreateParams::UnitWithPercentConfig::OrHash, matrix_with_allocation_config: Orb::MatrixWithAllocationConfig::OrHash, - tiered_config: Orb::TieredConfig::OrHash, - bulk_config: Orb::BulkConfig::OrHash, - threshold_total_amount_config: T::Hash[Symbol, T.anything], - tiered_package_config: T::Hash[Symbol, T.anything], - grouped_tiered_config: T::Hash[Symbol, T.anything], - max_group_tiered_package_config: T::Hash[Symbol, T.anything], - tiered_with_minimum_config: T::Hash[Symbol, T.anything], - package_with_allocation_config: T::Hash[Symbol, T.anything], - tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], - unit_with_percent_config: T::Hash[Symbol, T.anything], - tiered_with_proration_config: T::Hash[Symbol, T.anything], - unit_with_proration_config: T::Hash[Symbol, T.anything], - grouped_allocation_config: T::Hash[Symbol, T.anything], - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], - grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], - matrix_with_display_name_config: T::Hash[Symbol, T.anything], - bulk_with_proration_config: T::Hash[Symbol, T.anything], - grouped_tiered_package_config: T::Hash[Symbol, T.anything], - scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], + tiered_with_proration_config: + Orb::PriceCreateParams::TieredWithProrationConfig::OrHash, + unit_with_proration_config: + Orb::PriceCreateParams::UnitWithProrationConfig::OrHash, + grouped_allocation_config: + Orb::PriceCreateParams::GroupedAllocationConfig::OrHash, + bulk_with_proration_config: + Orb::PriceCreateParams::BulkWithProrationConfig::OrHash, + grouped_with_prorated_minimum_config: + Orb::PriceCreateParams::GroupedWithProratedMinimumConfig::OrHash, + grouped_with_metered_minimum_config: + Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig::OrHash, + grouped_with_min_max_thresholds_config: + Orb::PriceCreateParams::GroupedWithMinMaxThresholdsConfig::OrHash, + matrix_with_display_name_config: + Orb::PriceCreateParams::MatrixWithDisplayNameConfig::OrHash, + grouped_tiered_package_config: + Orb::PriceCreateParams::GroupedTieredPackageConfig::OrHash, + max_group_tiered_package_config: + Orb::PriceCreateParams::MaxGroupTieredPackageConfig::OrHash, + scalable_matrix_with_unit_pricing_config: + Orb::PriceCreateParams::ScalableMatrixWithUnitPricingConfig::OrHash, scalable_matrix_with_tiered_pricing_config: - T::Hash[Symbol, T.anything], - cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], - grouped_with_min_max_thresholds_config: T::Hash[Symbol, T.anything], + Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig::OrHash, + cumulative_grouped_bulk_config: + Orb::PriceCreateParams::CumulativeGroupedBulkConfig::OrHash, minimum_config: Orb::PriceCreateParams::MinimumConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), @@ -288,35 +499,63 @@ module Orb currency:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for unit pricing unit_config:, - package_config:, - matrix_config:, - matrix_with_allocation_config:, + # Configuration for tiered pricing tiered_config:, + # Configuration for bulk pricing bulk_config:, + # Configuration for package pricing + package_config:, + # Configuration for matrix pricing + matrix_config:, + # Configuration for threshold_total_amount pricing threshold_total_amount_config:, + # Configuration for tiered_package pricing tiered_package_config:, - grouped_tiered_config:, - max_group_tiered_package_config:, + # Configuration for tiered_with_minimum pricing tiered_with_minimum_config:, - package_with_allocation_config:, + # Configuration for grouped_tiered pricing + grouped_tiered_config:, + # Configuration for tiered_package_with_minimum pricing tiered_package_with_minimum_config:, + # Configuration for package_with_allocation pricing + package_with_allocation_config:, + # Configuration for unit_with_percent pricing unit_with_percent_config:, + # Configuration for matrix_with_allocation pricing + matrix_with_allocation_config:, + # Configuration for tiered_with_proration pricing tiered_with_proration_config:, + # Configuration for unit_with_proration pricing unit_with_proration_config:, + # Configuration for grouped_allocation pricing grouped_allocation_config:, + # Configuration for bulk_with_proration pricing + bulk_with_proration_config:, + # Configuration for grouped_with_prorated_minimum pricing grouped_with_prorated_minimum_config:, + # Configuration for grouped_with_metered_minimum pricing grouped_with_metered_minimum_config:, + # Configuration for grouped_with_min_max_thresholds pricing + grouped_with_min_max_thresholds_config:, + # Configuration for matrix_with_display_name pricing matrix_with_display_name_config:, - bulk_with_proration_config:, + # Configuration for grouped_tiered_package pricing grouped_tiered_package_config:, + # Configuration for max_group_tiered_package pricing + max_group_tiered_package_config:, + # Configuration for scalable_matrix_with_unit_pricing pricing scalable_matrix_with_unit_pricing_config:, + # Configuration for scalable_matrix_with_tiered_pricing pricing scalable_matrix_with_tiered_pricing_config:, + # Configuration for cumulative_grouped_bulk pricing cumulative_grouped_bulk_config:, - grouped_with_min_max_thresholds_config:, + # Configuration for minimum pricing minimum_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. @@ -380,33 +619,49 @@ module Orb invoicing_cycle_configuration: T.nilable(Orb::NewBillingCycleConfiguration), metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + tiered_config: Orb::TieredConfig, + bulk_config: Orb::BulkConfig, package_config: Orb::PackageConfig, matrix_config: Orb::MatrixConfig, + threshold_total_amount_config: + Orb::PriceCreateParams::ThresholdTotalAmountConfig, + tiered_package_config: Orb::PriceCreateParams::TieredPackageConfig, + tiered_with_minimum_config: + Orb::PriceCreateParams::TieredWithMinimumConfig, + grouped_tiered_config: Orb::PriceCreateParams::GroupedTieredConfig, + tiered_package_with_minimum_config: + Orb::PriceCreateParams::TieredPackageWithMinimumConfig, + package_with_allocation_config: + Orb::PriceCreateParams::PackageWithAllocationConfig, + unit_with_percent_config: + Orb::PriceCreateParams::UnitWithPercentConfig, matrix_with_allocation_config: Orb::MatrixWithAllocationConfig, - tiered_config: Orb::TieredConfig, - bulk_config: Orb::BulkConfig, - threshold_total_amount_config: T::Hash[Symbol, T.anything], - tiered_package_config: T::Hash[Symbol, T.anything], - grouped_tiered_config: T::Hash[Symbol, T.anything], - max_group_tiered_package_config: T::Hash[Symbol, T.anything], - tiered_with_minimum_config: T::Hash[Symbol, T.anything], - package_with_allocation_config: T::Hash[Symbol, T.anything], - tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], - unit_with_percent_config: T::Hash[Symbol, T.anything], - tiered_with_proration_config: T::Hash[Symbol, T.anything], - unit_with_proration_config: T::Hash[Symbol, T.anything], - grouped_allocation_config: T::Hash[Symbol, T.anything], - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], - grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], - matrix_with_display_name_config: T::Hash[Symbol, T.anything], - bulk_with_proration_config: T::Hash[Symbol, T.anything], - grouped_tiered_package_config: T::Hash[Symbol, T.anything], + tiered_with_proration_config: + Orb::PriceCreateParams::TieredWithProrationConfig, + unit_with_proration_config: + Orb::PriceCreateParams::UnitWithProrationConfig, + grouped_allocation_config: + Orb::PriceCreateParams::GroupedAllocationConfig, + bulk_with_proration_config: + Orb::PriceCreateParams::BulkWithProrationConfig, + grouped_with_prorated_minimum_config: + Orb::PriceCreateParams::GroupedWithProratedMinimumConfig, + grouped_with_metered_minimum_config: + Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig, + grouped_with_min_max_thresholds_config: + Orb::PriceCreateParams::GroupedWithMinMaxThresholdsConfig, + matrix_with_display_name_config: + Orb::PriceCreateParams::MatrixWithDisplayNameConfig, + grouped_tiered_package_config: + Orb::PriceCreateParams::GroupedTieredPackageConfig, + max_group_tiered_package_config: + Orb::PriceCreateParams::MaxGroupTieredPackageConfig, scalable_matrix_with_unit_pricing_config: - T::Hash[Symbol, T.anything], + Orb::PriceCreateParams::ScalableMatrixWithUnitPricingConfig, scalable_matrix_with_tiered_pricing_config: - T::Hash[Symbol, T.anything], - cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], - grouped_with_min_max_thresholds_config: T::Hash[Symbol, T.anything], + Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig, + cumulative_grouped_bulk_config: + Orb::PriceCreateParams::CumulativeGroupedBulkConfig, minimum_config: Orb::PriceCreateParams::MinimumConfig, request_options: Orb::RequestOptions } @@ -442,6 +697,7 @@ module Orb end end + # The pricing model type module ModelType extend Orb::Internal::Type::Enum @@ -461,40 +717,1884 @@ module Orb end end - class MinimumConfig < Orb::Internal::Type::BaseModel + class ThresholdTotalAmountConfig < Orb::Internal::Type::BaseModel OrHash = T.type_alias do - T.any(Orb::PriceCreateParams::MinimumConfig, Orb::Internal::AnyHash) + T.any( + Orb::PriceCreateParams::ThresholdTotalAmountConfig, + Orb::Internal::AnyHash + ) end - # The minimum amount to apply + # When the quantity consumed passes a provided threshold, the configured total + # will be charged + sig do + returns( + T::Array[ + Orb::PriceCreateParams::ThresholdTotalAmountConfig::ConsumptionTable + ] + ) + end + attr_accessor :consumption_table + + # If true, the unit price will be prorated to the billing period + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :prorate + + # Configuration for threshold_total_amount pricing + sig do + params( + consumption_table: + T::Array[ + Orb::PriceCreateParams::ThresholdTotalAmountConfig::ConsumptionTable::OrHash + ], + prorate: T.nilable(T::Boolean) + ).returns(T.attached_class) + end + def self.new( + # When the quantity consumed passes a provided threshold, the configured total + # will be charged + consumption_table:, + # If true, the unit price will be prorated to the billing period + prorate: nil + ) + end + + sig do + override.returns( + { + consumption_table: + T::Array[ + Orb::PriceCreateParams::ThresholdTotalAmountConfig::ConsumptionTable + ], + prorate: T.nilable(T::Boolean) + } + ) + end + def to_hash + end + + class ConsumptionTable < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::ThresholdTotalAmountConfig::ConsumptionTable, + Orb::Internal::AnyHash + ) + end + + # Quantity threshold + sig { returns(String) } + attr_accessor :threshold + + # Total amount for this threshold + sig { returns(String) } + attr_accessor :total_amount + + # Configuration for a single threshold + sig do + params(threshold: String, total_amount: String).returns( + T.attached_class + ) + end + def self.new( + # Quantity threshold + threshold:, + # Total amount for this threshold + total_amount: + ) + end + + sig { override.returns({ threshold: String, total_amount: String }) } + def to_hash + end + end + end + + class TieredPackageConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::TieredPackageConfig, + Orb::Internal::AnyHash + ) + end + + # Package size sig { returns(String) } - attr_accessor :minimum_amount + attr_accessor :package_size - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + sig do + returns(T::Array[Orb::PriceCreateParams::TieredPackageConfig::Tier]) + end + attr_accessor :tiers + + # Configuration for tiered_package pricing + sig do + params( + package_size: String, + tiers: + T::Array[ + Orb::PriceCreateParams::TieredPackageConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Package size + package_size:, + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + tiers: + ) + end + + sig do + override.returns( + { + package_size: String, + tiers: T::Array[Orb::PriceCreateParams::TieredPackageConfig::Tier] + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::TieredPackageConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Price per package + sig { returns(String) } + attr_accessor :per_unit + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Configuration for a single tier with business logic + sig do + params(per_unit: String, tier_lower_bound: String).returns( + T.attached_class + ) + end + def self.new( + # Price per package + per_unit:, + # Tier lower bound + tier_lower_bound: + ) + end + + sig do + override.returns({ per_unit: String, tier_lower_bound: String }) + end + def to_hash + end + end + end + + class TieredWithMinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::TieredWithMinimumConfig, + Orb::Internal::AnyHash + ) + end + + # Tiered pricing with a minimum amount dependent on the volume tier. Tiers are + # defined using exclusive lower bounds. + sig do + returns( + T::Array[Orb::PriceCreateParams::TieredWithMinimumConfig::Tier] + ) + end + attr_accessor :tiers + + # If true, tiers with an accrued amount of 0 will not be included in the rating. + sig { returns(T.nilable(T::Boolean)) } + attr_reader :hide_zero_amount_tiers + + sig { params(hide_zero_amount_tiers: T::Boolean).void } + attr_writer :hide_zero_amount_tiers + + # If true, the unit price will be prorated to the billing period sig { returns(T.nilable(T::Boolean)) } - attr_accessor :prorated + attr_reader :prorate + sig { params(prorate: T::Boolean).void } + attr_writer :prorate + + # Configuration for tiered_with_minimum pricing sig do params( - minimum_amount: String, - prorated: T.nilable(T::Boolean) + tiers: + T::Array[ + Orb::PriceCreateParams::TieredWithMinimumConfig::Tier::OrHash + ], + hide_zero_amount_tiers: T::Boolean, + prorate: T::Boolean ).returns(T.attached_class) end def self.new( - # The minimum amount to apply - minimum_amount:, - # By default, subtotals from minimum composite prices are prorated based on the - # service period. Set to false to disable proration. - prorated: nil + # Tiered pricing with a minimum amount dependent on the volume tier. Tiers are + # defined using exclusive lower bounds. + tiers:, + # If true, tiers with an accrued amount of 0 will not be included in the rating. + hide_zero_amount_tiers: nil, + # If true, the unit price will be prorated to the billing period + prorate: nil ) end sig do override.returns( - { minimum_amount: String, prorated: T.nilable(T::Boolean) } + { + tiers: + T::Array[Orb::PriceCreateParams::TieredWithMinimumConfig::Tier], + hide_zero_amount_tiers: T::Boolean, + prorate: T::Boolean + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::TieredWithMinimumConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Minimum amount + sig { returns(String) } + attr_accessor :minimum_amount + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Per unit amount + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a single tier + sig do + params( + minimum_amount: String, + tier_lower_bound: String, + unit_amount: String + ).returns(T.attached_class) + end + def self.new( + # Minimum amount + minimum_amount:, + # Tier lower bound + tier_lower_bound:, + # Per unit amount + unit_amount: ) + end + + sig do + override.returns( + { + minimum_amount: String, + tier_lower_bound: String, + unit_amount: String + } + ) + end + def to_hash + end + end + end + + class GroupedTieredConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::GroupedTieredConfig, + Orb::Internal::AnyHash + ) + end + + # The billable metric property used to group before tiering + sig { returns(String) } + attr_accessor :grouping_key + + # Apply tiered pricing to each segment generated after grouping with the provided + # key + sig do + returns(T::Array[Orb::PriceCreateParams::GroupedTieredConfig::Tier]) + end + attr_accessor :tiers + + # Configuration for grouped_tiered pricing + sig do + params( + grouping_key: String, + tiers: + T::Array[ + Orb::PriceCreateParams::GroupedTieredConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # The billable metric property used to group before tiering + grouping_key:, + # Apply tiered pricing to each segment generated after grouping with the provided + # key + tiers: + ) + end + + sig do + override.returns( + { + grouping_key: String, + tiers: T::Array[Orb::PriceCreateParams::GroupedTieredConfig::Tier] + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::GroupedTieredConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Per unit amount + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a single tier + sig do + params(tier_lower_bound: String, unit_amount: String).returns( + T.attached_class + ) + end + def self.new( + # Tier lower bound + tier_lower_bound:, + # Per unit amount + unit_amount: + ) + end + + sig do + override.returns({ tier_lower_bound: String, unit_amount: String }) + end + def to_hash + end + end + end + + class TieredPackageWithMinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::TieredPackageWithMinimumConfig, + Orb::Internal::AnyHash + ) + end + + # Package size + sig { returns(Float) } + attr_accessor :package_size + + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + sig do + returns( + T::Array[ + Orb::PriceCreateParams::TieredPackageWithMinimumConfig::Tier + ] + ) + end + attr_accessor :tiers + + # Configuration for tiered_package_with_minimum pricing + sig do + params( + package_size: Float, + tiers: + T::Array[ + Orb::PriceCreateParams::TieredPackageWithMinimumConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Package size + package_size:, + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + tiers: + ) + end + + sig do + override.returns( + { + package_size: Float, + tiers: + T::Array[ + Orb::PriceCreateParams::TieredPackageWithMinimumConfig::Tier + ] + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::TieredPackageWithMinimumConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Minimum amount + sig { returns(String) } + attr_accessor :minimum_amount + + # Price per package + sig { returns(String) } + attr_accessor :per_unit + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Configuration for a single tier + sig do + params( + minimum_amount: String, + per_unit: String, + tier_lower_bound: String + ).returns(T.attached_class) + end + def self.new( + # Minimum amount + minimum_amount:, + # Price per package + per_unit:, + # Tier lower bound + tier_lower_bound: + ) + end + + sig do + override.returns( + { + minimum_amount: String, + per_unit: String, + tier_lower_bound: String + } + ) + end + def to_hash + end + end + end + + class PackageWithAllocationConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::PackageWithAllocationConfig, + Orb::Internal::AnyHash + ) + end + + # Usage allocation + sig { returns(String) } + attr_accessor :allocation + + # Price per package + sig { returns(String) } + attr_accessor :package_amount + + # Package size + sig { returns(String) } + attr_accessor :package_size + + # Configuration for package_with_allocation pricing + sig do + params( + allocation: String, + package_amount: String, + package_size: String + ).returns(T.attached_class) + end + def self.new( + # Usage allocation + allocation:, + # Price per package + package_amount:, + # Package size + package_size: + ) + end + + sig do + override.returns( + { allocation: String, package_amount: String, package_size: String } + ) + end + def to_hash + end + end + + class UnitWithPercentConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::UnitWithPercentConfig, + Orb::Internal::AnyHash + ) + end + + # What percent, out of 100, of the calculated total to charge + sig { returns(String) } + attr_accessor :percent + + # Rate per unit of usage + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for unit_with_percent pricing + sig do + params(percent: String, unit_amount: String).returns(T.attached_class) + end + def self.new( + # What percent, out of 100, of the calculated total to charge + percent:, + # Rate per unit of usage + unit_amount: + ) + end + + sig { override.returns({ percent: String, unit_amount: String }) } + def to_hash + end + end + + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::TieredWithProrationConfig, + Orb::Internal::AnyHash + ) + end + + # Tiers for rating based on total usage quantities into the specified tier with + # proration + sig do + returns( + T::Array[Orb::PriceCreateParams::TieredWithProrationConfig::Tier] + ) + end + attr_accessor :tiers + + # Configuration for tiered_with_proration pricing + sig do + params( + tiers: + T::Array[ + Orb::PriceCreateParams::TieredWithProrationConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Tiers for rating based on total usage quantities into the specified tier with + # proration + tiers: + ) + end + + sig do + override.returns( + { + tiers: + T::Array[ + Orb::PriceCreateParams::TieredWithProrationConfig::Tier + ] + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::TieredWithProrationConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Inclusive tier starting value + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Amount per unit + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a single tiered with proration tier + sig do + params(tier_lower_bound: String, unit_amount: String).returns( + T.attached_class + ) + end + def self.new( + # Inclusive tier starting value + tier_lower_bound:, + # Amount per unit + unit_amount: + ) + end + + sig do + override.returns({ tier_lower_bound: String, unit_amount: String }) + end + def to_hash + end + end + end + + class UnitWithProrationConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::UnitWithProrationConfig, + Orb::Internal::AnyHash + ) + end + + # Rate per unit of usage + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for unit_with_proration pricing + sig { params(unit_amount: String).returns(T.attached_class) } + def self.new( + # Rate per unit of usage + unit_amount: + ) + end + + sig { override.returns({ unit_amount: String }) } + def to_hash + end + end + + class GroupedAllocationConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::GroupedAllocationConfig, + Orb::Internal::AnyHash + ) + end + + # Usage allocation per group + sig { returns(String) } + attr_accessor :allocation + + # How to determine the groups that should each be allocated some quantity + sig { returns(String) } + attr_accessor :grouping_key + + # Unit rate for post-allocation + sig { returns(String) } + attr_accessor :overage_unit_rate + + # Configuration for grouped_allocation pricing + sig do + params( + allocation: String, + grouping_key: String, + overage_unit_rate: String + ).returns(T.attached_class) + end + def self.new( + # Usage allocation per group + allocation:, + # How to determine the groups that should each be allocated some quantity + grouping_key:, + # Unit rate for post-allocation + overage_unit_rate: + ) + end + + sig do + override.returns( + { + allocation: String, + grouping_key: String, + overage_unit_rate: String + } + ) + end + def to_hash + end + end + + class BulkWithProrationConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::BulkWithProrationConfig, + Orb::Internal::AnyHash + ) + end + + # Bulk tiers for rating based on total usage volume + sig do + returns( + T::Array[Orb::PriceCreateParams::BulkWithProrationConfig::Tier] + ) + end + attr_accessor :tiers + + # Configuration for bulk_with_proration pricing + sig do + params( + tiers: + T::Array[ + Orb::PriceCreateParams::BulkWithProrationConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Bulk tiers for rating based on total usage volume + tiers: + ) + end + + sig do + override.returns( + { + tiers: + T::Array[Orb::PriceCreateParams::BulkWithProrationConfig::Tier] + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::BulkWithProrationConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Cost per unit + sig { returns(String) } + attr_accessor :unit_amount + + # The lower bound for this tier + sig { returns(T.nilable(String)) } + attr_accessor :tier_lower_bound + + # Configuration for a single bulk pricing tier with proration + sig do + params( + unit_amount: String, + tier_lower_bound: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # Cost per unit + unit_amount:, + # The lower bound for this tier + tier_lower_bound: nil + ) + end + + sig do + override.returns( + { unit_amount: String, tier_lower_bound: T.nilable(String) } + ) + end + def to_hash + end + end + end + + class GroupedWithProratedMinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::GroupedWithProratedMinimumConfig, + Orb::Internal::AnyHash + ) + end + + # How to determine the groups that should each have a minimum + sig { returns(String) } + attr_accessor :grouping_key + + # The minimum amount to charge per group + sig { returns(String) } + attr_accessor :minimum + + # The amount to charge per unit + sig { returns(String) } + attr_accessor :unit_rate + + # Configuration for grouped_with_prorated_minimum pricing + sig do + params( + grouping_key: String, + minimum: String, + unit_rate: String + ).returns(T.attached_class) + end + def self.new( + # How to determine the groups that should each have a minimum + grouping_key:, + # The minimum amount to charge per group + minimum:, + # The amount to charge per unit + unit_rate: + ) + end + + sig do + override.returns( + { grouping_key: String, minimum: String, unit_rate: String } + ) + end + def to_hash + end + end + + class GroupedWithMeteredMinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig, + Orb::Internal::AnyHash + ) + end + + # Used to partition the usage into groups. The minimum amount is applied to each + # group. + sig { returns(String) } + attr_accessor :grouping_key + + # The minimum amount to charge per group per unit + sig { returns(String) } + attr_accessor :minimum_unit_amount + + # Used to determine the unit rate + sig { returns(String) } + attr_accessor :pricing_key + + # Scale the unit rates by the scaling factor. + sig do + returns( + T::Array[ + Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig::ScalingFactor + ] + ) + end + attr_accessor :scaling_factors + + # Used to determine the unit rate scaling factor + sig { returns(String) } + attr_accessor :scaling_key + + # Apply per unit pricing to each pricing value. The minimum amount is applied any + # unmatched usage. + sig do + returns( + T::Array[ + Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig::UnitAmount + ] + ) + end + attr_accessor :unit_amounts + + # Configuration for grouped_with_metered_minimum pricing + sig do + params( + grouping_key: String, + minimum_unit_amount: String, + pricing_key: String, + scaling_factors: + T::Array[ + Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig::ScalingFactor::OrHash + ], + scaling_key: String, + unit_amounts: + T::Array[ + Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig::UnitAmount::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Used to partition the usage into groups. The minimum amount is applied to each + # group. + grouping_key:, + # The minimum amount to charge per group per unit + minimum_unit_amount:, + # Used to determine the unit rate + pricing_key:, + # Scale the unit rates by the scaling factor. + scaling_factors:, + # Used to determine the unit rate scaling factor + scaling_key:, + # Apply per unit pricing to each pricing value. The minimum amount is applied any + # unmatched usage. + unit_amounts: + ) + end + + sig do + override.returns( + { + grouping_key: String, + minimum_unit_amount: String, + pricing_key: String, + scaling_factors: + T::Array[ + Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig::ScalingFactor + ], + scaling_key: String, + unit_amounts: + T::Array[ + Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig::UnitAmount + ] + } + ) + end + def to_hash + end + + class ScalingFactor < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig::ScalingFactor, + Orb::Internal::AnyHash + ) + end + + # Scaling factor + sig { returns(String) } + attr_accessor :scaling_factor + + # Scaling value + sig { returns(String) } + attr_accessor :scaling_value + + # Configuration for a scaling factor + sig do + params(scaling_factor: String, scaling_value: String).returns( + T.attached_class + ) + end + def self.new( + # Scaling factor + scaling_factor:, + # Scaling value + scaling_value: + ) + end + + sig do + override.returns({ scaling_factor: String, scaling_value: String }) + end + def to_hash + end + end + + class UnitAmount < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig::UnitAmount, + Orb::Internal::AnyHash + ) + end + + # Pricing value + sig { returns(String) } + attr_accessor :pricing_value + + # Per unit amount + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a unit amount + sig do + params(pricing_value: String, unit_amount: String).returns( + T.attached_class + ) + end + def self.new( + # Pricing value + pricing_value:, + # Per unit amount + unit_amount: + ) + end + + sig do + override.returns({ pricing_value: String, unit_amount: String }) + end + def to_hash + end + end + end + + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::GroupedWithMinMaxThresholdsConfig, + Orb::Internal::AnyHash + ) + end + + # The event property used to group before applying thresholds + sig { returns(String) } + attr_accessor :grouping_key + + # The maximum amount to charge each group + sig { returns(String) } + attr_accessor :maximum_charge + + # The minimum amount to charge each group, regardless of usage + sig { returns(String) } + attr_accessor :minimum_charge + + # The base price charged per group + sig { returns(String) } + attr_accessor :per_unit_rate + + # Configuration for grouped_with_min_max_thresholds pricing + sig do + params( + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + ).returns(T.attached_class) + end + def self.new( + # The event property used to group before applying thresholds + grouping_key:, + # The maximum amount to charge each group + maximum_charge:, + # The minimum amount to charge each group, regardless of usage + minimum_charge:, + # The base price charged per group + per_unit_rate: + ) + end + + sig do + override.returns( + { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + ) + end + def to_hash + end + end + + class MatrixWithDisplayNameConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::MatrixWithDisplayNameConfig, + Orb::Internal::AnyHash + ) + end + + # Used to determine the unit rate + sig { returns(String) } + attr_accessor :dimension + + # Apply per unit pricing to each dimension value + sig do + returns( + T::Array[ + Orb::PriceCreateParams::MatrixWithDisplayNameConfig::UnitAmount + ] + ) + end + attr_accessor :unit_amounts + + # Configuration for matrix_with_display_name pricing + sig do + params( + dimension: String, + unit_amounts: + T::Array[ + Orb::PriceCreateParams::MatrixWithDisplayNameConfig::UnitAmount::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Used to determine the unit rate + dimension:, + # Apply per unit pricing to each dimension value + unit_amounts: + ) + end + + sig do + override.returns( + { + dimension: String, + unit_amounts: + T::Array[ + Orb::PriceCreateParams::MatrixWithDisplayNameConfig::UnitAmount + ] + } + ) + end + def to_hash + end + + class UnitAmount < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::MatrixWithDisplayNameConfig::UnitAmount, + Orb::Internal::AnyHash + ) + end + + # The dimension value + sig { returns(String) } + attr_accessor :dimension_value + + # Display name for this dimension value + sig { returns(String) } + attr_accessor :display_name + + # Per unit amount + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a unit amount item + sig do + params( + dimension_value: String, + display_name: String, + unit_amount: String + ).returns(T.attached_class) + end + def self.new( + # The dimension value + dimension_value:, + # Display name for this dimension value + display_name:, + # Per unit amount + unit_amount: + ) + end + + sig do + override.returns( + { + dimension_value: String, + display_name: String, + unit_amount: String + } + ) + end + def to_hash + end + end + end + + class GroupedTieredPackageConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::GroupedTieredPackageConfig, + Orb::Internal::AnyHash + ) + end + + # The event property used to group before tiering + sig { returns(String) } + attr_accessor :grouping_key + + # Package size + sig { returns(String) } + attr_accessor :package_size + + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + sig do + returns( + T::Array[Orb::PriceCreateParams::GroupedTieredPackageConfig::Tier] + ) + end + attr_accessor :tiers + + # Configuration for grouped_tiered_package pricing + sig do + params( + grouping_key: String, + package_size: String, + tiers: + T::Array[ + Orb::PriceCreateParams::GroupedTieredPackageConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # The event property used to group before tiering + grouping_key:, + # Package size + package_size:, + # Apply tiered pricing after rounding up the quantity to the package size. Tiers + # are defined using exclusive lower bounds. + tiers: + ) + end + + sig do + override.returns( + { + grouping_key: String, + package_size: String, + tiers: + T::Array[ + Orb::PriceCreateParams::GroupedTieredPackageConfig::Tier + ] + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::GroupedTieredPackageConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Price per package + sig { returns(String) } + attr_accessor :per_unit + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Configuration for a single tier + sig do + params(per_unit: String, tier_lower_bound: String).returns( + T.attached_class + ) + end + def self.new( + # Price per package + per_unit:, + # Tier lower bound + tier_lower_bound: + ) + end + + sig do + override.returns({ per_unit: String, tier_lower_bound: String }) + end + def to_hash + end + end + end + + class MaxGroupTieredPackageConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::MaxGroupTieredPackageConfig, + Orb::Internal::AnyHash + ) + end + + # The event property used to group before tiering the group with the highest value + sig { returns(String) } + attr_accessor :grouping_key + + # Package size + sig { returns(String) } + attr_accessor :package_size + + # Apply tiered pricing to the largest group after grouping with the provided key. + sig do + returns( + T::Array[Orb::PriceCreateParams::MaxGroupTieredPackageConfig::Tier] + ) + end + attr_accessor :tiers + + # Configuration for max_group_tiered_package pricing + sig do + params( + grouping_key: String, + package_size: String, + tiers: + T::Array[ + Orb::PriceCreateParams::MaxGroupTieredPackageConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # The event property used to group before tiering the group with the highest value + grouping_key:, + # Package size + package_size:, + # Apply tiered pricing to the largest group after grouping with the provided key. + tiers: + ) + end + + sig do + override.returns( + { + grouping_key: String, + package_size: String, + tiers: + T::Array[ + Orb::PriceCreateParams::MaxGroupTieredPackageConfig::Tier + ] + } + ) + end + def to_hash + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::MaxGroupTieredPackageConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Per unit amount + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a single tier + sig do + params(tier_lower_bound: String, unit_amount: String).returns( + T.attached_class + ) + end + def self.new( + # Tier lower bound + tier_lower_bound:, + # Per unit amount + unit_amount: + ) + end + + sig do + override.returns({ tier_lower_bound: String, unit_amount: String }) + end + def to_hash + end + end + end + + class ScalableMatrixWithUnitPricingConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::ScalableMatrixWithUnitPricingConfig, + Orb::Internal::AnyHash + ) + end + + # Used to determine the unit rate + sig { returns(String) } + attr_accessor :first_dimension + + # Apply a scaling factor to each dimension + sig do + returns( + T::Array[ + Orb::PriceCreateParams::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor + ] + ) + end + attr_accessor :matrix_scaling_factors + + # The final unit price to rate against the output of the matrix + sig { returns(String) } + attr_accessor :unit_price + + # If true, the unit price will be prorated to the billing period + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :prorate + + # Used to determine the unit rate (optional) + sig { returns(T.nilable(String)) } + attr_accessor :second_dimension + + # Configuration for scalable_matrix_with_unit_pricing pricing + sig do + params( + first_dimension: String, + matrix_scaling_factors: + T::Array[ + Orb::PriceCreateParams::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor::OrHash + ], + unit_price: String, + prorate: T.nilable(T::Boolean), + second_dimension: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # Used to determine the unit rate + first_dimension:, + # Apply a scaling factor to each dimension + matrix_scaling_factors:, + # The final unit price to rate against the output of the matrix + unit_price:, + # If true, the unit price will be prorated to the billing period + prorate: nil, + # Used to determine the unit rate (optional) + second_dimension: nil + ) + end + + sig do + override.returns( + { + first_dimension: String, + matrix_scaling_factors: + T::Array[ + Orb::PriceCreateParams::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor + ], + unit_price: String, + prorate: T.nilable(T::Boolean), + second_dimension: T.nilable(String) + } + ) + end + def to_hash + end + + class MatrixScalingFactor < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor, + Orb::Internal::AnyHash + ) + end + + # First dimension value + sig { returns(String) } + attr_accessor :first_dimension_value + + # Scaling factor + sig { returns(String) } + attr_accessor :scaling_factor + + # Second dimension value (optional) + sig { returns(T.nilable(String)) } + attr_accessor :second_dimension_value + + # Configuration for a single matrix scaling factor + sig do + params( + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # First dimension value + first_dimension_value:, + # Scaling factor + scaling_factor:, + # Second dimension value (optional) + second_dimension_value: nil + ) + end + + sig do + override.returns( + { + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: T.nilable(String) + } + ) + end + def to_hash + end + end + end + + class ScalableMatrixWithTieredPricingConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig, + Orb::Internal::AnyHash + ) + end + + # Used for the scalable matrix first dimension + sig { returns(String) } + attr_accessor :first_dimension + + # Apply a scaling factor to each dimension + sig do + returns( + T::Array[ + Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor + ] + ) + end + attr_accessor :matrix_scaling_factors + + # Tier pricing structure + sig do + returns( + T::Array[ + Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig::Tier + ] + ) + end + attr_accessor :tiers + + # Used for the scalable matrix second dimension (optional) + sig { returns(T.nilable(String)) } + attr_accessor :second_dimension + + # Configuration for scalable_matrix_with_tiered_pricing pricing + sig do + params( + first_dimension: String, + matrix_scaling_factors: + T::Array[ + Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor::OrHash + ], + tiers: + T::Array[ + Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig::Tier::OrHash + ], + second_dimension: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # Used for the scalable matrix first dimension + first_dimension:, + # Apply a scaling factor to each dimension + matrix_scaling_factors:, + # Tier pricing structure + tiers:, + # Used for the scalable matrix second dimension (optional) + second_dimension: nil + ) + end + + sig do + override.returns( + { + first_dimension: String, + matrix_scaling_factors: + T::Array[ + Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor + ], + tiers: + T::Array[ + Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig::Tier + ], + second_dimension: T.nilable(String) + } + ) + end + def to_hash + end + + class MatrixScalingFactor < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor, + Orb::Internal::AnyHash + ) + end + + # First dimension value + sig { returns(String) } + attr_accessor :first_dimension_value + + # Scaling factor + sig { returns(String) } + attr_accessor :scaling_factor + + # Second dimension value (optional) + sig { returns(T.nilable(String)) } + attr_accessor :second_dimension_value + + # Configuration for a single matrix scaling factor + sig do + params( + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # First dimension value + first_dimension_value:, + # Scaling factor + scaling_factor:, + # Second dimension value (optional) + second_dimension_value: nil + ) + end + + sig do + override.returns( + { + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: T.nilable(String) + } + ) + end + def to_hash + end + end + + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig::Tier, + Orb::Internal::AnyHash + ) + end + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Per unit amount + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a single tier entry with business logic + sig do + params(tier_lower_bound: String, unit_amount: String).returns( + T.attached_class + ) + end + def self.new( + # Tier lower bound + tier_lower_bound:, + # Per unit amount + unit_amount: + ) + end + + sig do + override.returns({ tier_lower_bound: String, unit_amount: String }) + end + def to_hash + end + end + end + + class CumulativeGroupedBulkConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::CumulativeGroupedBulkConfig, + Orb::Internal::AnyHash + ) + end + + # Each tier lower bound must have the same group of values. + sig do + returns( + T::Array[ + Orb::PriceCreateParams::CumulativeGroupedBulkConfig::DimensionValue + ] + ) + end + attr_accessor :dimension_values + + # Grouping key name + sig { returns(String) } + attr_accessor :group + + # Configuration for cumulative_grouped_bulk pricing + sig do + params( + dimension_values: + T::Array[ + Orb::PriceCreateParams::CumulativeGroupedBulkConfig::DimensionValue::OrHash + ], + group: String + ).returns(T.attached_class) + end + def self.new( + # Each tier lower bound must have the same group of values. + dimension_values:, + # Grouping key name + group: + ) + end + + sig do + override.returns( + { + dimension_values: + T::Array[ + Orb::PriceCreateParams::CumulativeGroupedBulkConfig::DimensionValue + ], + group: String + } + ) + end + def to_hash + end + + class DimensionValue < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceCreateParams::CumulativeGroupedBulkConfig::DimensionValue, + Orb::Internal::AnyHash + ) + end + + # Grouping key value + sig { returns(String) } + attr_accessor :grouping_key + + # Tier lower bound + sig { returns(String) } + attr_accessor :tier_lower_bound + + # Unit amount for this combination + sig { returns(String) } + attr_accessor :unit_amount + + # Configuration for a dimension value entry + sig do + params( + grouping_key: String, + tier_lower_bound: String, + unit_amount: String + ).returns(T.attached_class) + end + def self.new( + # Grouping key value + grouping_key:, + # Tier lower bound + tier_lower_bound:, + # Unit amount for this combination + unit_amount: + ) + end + + sig do + override.returns( + { + grouping_key: String, + tier_lower_bound: String, + unit_amount: String + } + ) + end + def to_hash + end + end + end + + class MinimumConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any(Orb::PriceCreateParams::MinimumConfig, Orb::Internal::AnyHash) + end + + # The minimum amount to apply + sig { returns(String) } + attr_accessor :minimum_amount + + # If true, subtotals from this price are prorated based on the service period + sig { returns(T.nilable(T::Boolean)) } + attr_reader :prorated + + sig { params(prorated: T::Boolean).void } + attr_writer :prorated + + # Configuration for minimum pricing + sig do + params(minimum_amount: String, prorated: T::Boolean).returns( + T.attached_class + ) + end + def self.new( + # The minimum amount to apply + minimum_amount:, + # If true, subtotals from this price are prorated based on the service period + prorated: nil + ) + end + + sig do + override.returns({ minimum_amount: String, prorated: T::Boolean }) end def to_hash end diff --git a/rbi/orb/models/price_evaluate_multiple_params.rbi b/rbi/orb/models/price_evaluate_multiple_params.rbi index 78d46f4b..0dd45db3 100644 --- a/rbi/orb/models/price_evaluate_multiple_params.rbi +++ b/rbi/orb/models/price_evaluate_multiple_params.rbi @@ -113,38 +113,37 @@ module Orb sig { params(grouping_keys: T::Array[String]).void } attr_writer :grouping_keys - # An inline price definition to evaluate, allowing you to test price - # configurations before adding them to Orb. + # New floating price request body params. sig do returns( T.nilable( T.any( Orb::NewFloatingUnitPrice, - Orb::NewFloatingPackagePrice, - Orb::NewFloatingMatrixPrice, - Orb::NewFloatingMatrixWithAllocationPrice, Orb::NewFloatingTieredPrice, Orb::NewFloatingBulkPrice, + Orb::NewFloatingPackagePrice, + Orb::NewFloatingMatrixPrice, Orb::NewFloatingThresholdTotalAmountPrice, Orb::NewFloatingTieredPackagePrice, - Orb::NewFloatingGroupedTieredPrice, - Orb::NewFloatingMaxGroupTieredPackagePrice, Orb::NewFloatingTieredWithMinimumPrice, - Orb::NewFloatingPackageWithAllocationPrice, + Orb::NewFloatingGroupedTieredPrice, Orb::NewFloatingTieredPackageWithMinimumPrice, + Orb::NewFloatingPackageWithAllocationPrice, Orb::NewFloatingUnitWithPercentPrice, + Orb::NewFloatingMatrixWithAllocationPrice, Orb::NewFloatingTieredWithProrationPrice, Orb::NewFloatingUnitWithProrationPrice, Orb::NewFloatingGroupedAllocationPrice, + Orb::NewFloatingBulkWithProrationPrice, Orb::NewFloatingGroupedWithProratedMinimumPrice, Orb::NewFloatingGroupedWithMeteredMinimumPrice, + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::NewFloatingMatrixWithDisplayNamePrice, - Orb::NewFloatingBulkWithProrationPrice, Orb::NewFloatingGroupedTieredPackagePrice, + Orb::NewFloatingMaxGroupTieredPackagePrice, Orb::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::NewFloatingCumulativeGroupedBulkPrice, - Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::NewFloatingMinimumCompositePrice ) ) @@ -165,31 +164,31 @@ module Orb T.nilable( T.any( Orb::NewFloatingUnitPrice::OrHash, - Orb::NewFloatingPackagePrice::OrHash, - Orb::NewFloatingMatrixPrice::OrHash, - Orb::NewFloatingMatrixWithAllocationPrice::OrHash, Orb::NewFloatingTieredPrice::OrHash, Orb::NewFloatingBulkPrice::OrHash, + Orb::NewFloatingPackagePrice::OrHash, + Orb::NewFloatingMatrixPrice::OrHash, Orb::NewFloatingThresholdTotalAmountPrice::OrHash, Orb::NewFloatingTieredPackagePrice::OrHash, - Orb::NewFloatingGroupedTieredPrice::OrHash, - Orb::NewFloatingMaxGroupTieredPackagePrice::OrHash, Orb::NewFloatingTieredWithMinimumPrice::OrHash, - Orb::NewFloatingPackageWithAllocationPrice::OrHash, + Orb::NewFloatingGroupedTieredPrice::OrHash, Orb::NewFloatingTieredPackageWithMinimumPrice::OrHash, + Orb::NewFloatingPackageWithAllocationPrice::OrHash, Orb::NewFloatingUnitWithPercentPrice::OrHash, + Orb::NewFloatingMatrixWithAllocationPrice::OrHash, Orb::NewFloatingTieredWithProrationPrice::OrHash, Orb::NewFloatingUnitWithProrationPrice::OrHash, Orb::NewFloatingGroupedAllocationPrice::OrHash, + Orb::NewFloatingBulkWithProrationPrice::OrHash, Orb::NewFloatingGroupedWithProratedMinimumPrice::OrHash, Orb::NewFloatingGroupedWithMeteredMinimumPrice::OrHash, + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::OrHash, Orb::NewFloatingMatrixWithDisplayNamePrice::OrHash, - Orb::NewFloatingBulkWithProrationPrice::OrHash, Orb::NewFloatingGroupedTieredPackagePrice::OrHash, + Orb::NewFloatingMaxGroupTieredPackagePrice::OrHash, Orb::NewFloatingScalableMatrixWithUnitPricingPrice::OrHash, Orb::NewFloatingScalableMatrixWithTieredPricingPrice::OrHash, Orb::NewFloatingCumulativeGroupedBulkPrice::OrHash, - Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::OrHash, Orb::NewFloatingMinimumCompositePrice::OrHash ) ), @@ -207,8 +206,7 @@ module Orb # [computed properties](/extensibility/advanced-metrics#computed-properties)) used # to group the underlying billable metric grouping_keys: nil, - # An inline price definition to evaluate, allowing you to test price - # configurations before adding them to Orb. + # New floating price request body params. price: nil, # The ID of a price to evaluate that exists in your Orb account. price_id: nil @@ -225,31 +223,31 @@ module Orb T.nilable( T.any( Orb::NewFloatingUnitPrice, - Orb::NewFloatingPackagePrice, - Orb::NewFloatingMatrixPrice, - Orb::NewFloatingMatrixWithAllocationPrice, Orb::NewFloatingTieredPrice, Orb::NewFloatingBulkPrice, + Orb::NewFloatingPackagePrice, + Orb::NewFloatingMatrixPrice, Orb::NewFloatingThresholdTotalAmountPrice, Orb::NewFloatingTieredPackagePrice, - Orb::NewFloatingGroupedTieredPrice, - Orb::NewFloatingMaxGroupTieredPackagePrice, Orb::NewFloatingTieredWithMinimumPrice, - Orb::NewFloatingPackageWithAllocationPrice, + Orb::NewFloatingGroupedTieredPrice, Orb::NewFloatingTieredPackageWithMinimumPrice, + Orb::NewFloatingPackageWithAllocationPrice, Orb::NewFloatingUnitWithPercentPrice, + Orb::NewFloatingMatrixWithAllocationPrice, Orb::NewFloatingTieredWithProrationPrice, Orb::NewFloatingUnitWithProrationPrice, Orb::NewFloatingGroupedAllocationPrice, + Orb::NewFloatingBulkWithProrationPrice, Orb::NewFloatingGroupedWithProratedMinimumPrice, Orb::NewFloatingGroupedWithMeteredMinimumPrice, + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::NewFloatingMatrixWithDisplayNamePrice, - Orb::NewFloatingBulkWithProrationPrice, Orb::NewFloatingGroupedTieredPackagePrice, + Orb::NewFloatingMaxGroupTieredPackagePrice, Orb::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::NewFloatingCumulativeGroupedBulkPrice, - Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::NewFloatingMinimumCompositePrice ) ), @@ -260,8 +258,7 @@ module Orb def to_hash end - # An inline price definition to evaluate, allowing you to test price - # configurations before adding them to Orb. + # New floating price request body params. module Price extend Orb::Internal::Type::Union @@ -269,31 +266,31 @@ module Orb T.type_alias do T.any( Orb::NewFloatingUnitPrice, - Orb::NewFloatingPackagePrice, - Orb::NewFloatingMatrixPrice, - Orb::NewFloatingMatrixWithAllocationPrice, Orb::NewFloatingTieredPrice, Orb::NewFloatingBulkPrice, + Orb::NewFloatingPackagePrice, + Orb::NewFloatingMatrixPrice, Orb::NewFloatingThresholdTotalAmountPrice, Orb::NewFloatingTieredPackagePrice, - Orb::NewFloatingGroupedTieredPrice, - Orb::NewFloatingMaxGroupTieredPackagePrice, Orb::NewFloatingTieredWithMinimumPrice, - Orb::NewFloatingPackageWithAllocationPrice, + Orb::NewFloatingGroupedTieredPrice, Orb::NewFloatingTieredPackageWithMinimumPrice, + Orb::NewFloatingPackageWithAllocationPrice, Orb::NewFloatingUnitWithPercentPrice, + Orb::NewFloatingMatrixWithAllocationPrice, Orb::NewFloatingTieredWithProrationPrice, Orb::NewFloatingUnitWithProrationPrice, Orb::NewFloatingGroupedAllocationPrice, + Orb::NewFloatingBulkWithProrationPrice, Orb::NewFloatingGroupedWithProratedMinimumPrice, Orb::NewFloatingGroupedWithMeteredMinimumPrice, + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::NewFloatingMatrixWithDisplayNamePrice, - Orb::NewFloatingBulkWithProrationPrice, Orb::NewFloatingGroupedTieredPackagePrice, + Orb::NewFloatingMaxGroupTieredPackagePrice, Orb::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::NewFloatingCumulativeGroupedBulkPrice, - Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::NewFloatingMinimumCompositePrice ) end @@ -319,13 +316,27 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_with_min_max_thresholds_config + # Configuration for grouped_with_min_max_thresholds pricing + sig do + returns( + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig + ) + end + attr_reader :grouped_with_min_max_thresholds_config + + sig do + params( + grouped_with_min_max_thresholds_config: + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig::OrHash + ).void + end + attr_writer :grouped_with_min_max_thresholds_config # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -423,7 +434,7 @@ module Orb Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, currency: String, grouped_with_min_max_thresholds_config: - T::Hash[Symbol, T.anything], + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig::OrHash, item_id: String, name: String, billable_metric_id: T.nilable(String), @@ -454,6 +465,7 @@ module Orb cadence:, # An ISO 4217 currency string for which this price is billed in. currency:, + # Configuration for grouped_with_min_max_thresholds pricing grouped_with_min_max_thresholds_config:, # The id of the item the price will be associated with. item_id:, @@ -488,6 +500,7 @@ module Orb # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. metadata: nil, + # The pricing model type model_type: :grouped_with_min_max_thresholds ) end @@ -499,7 +512,7 @@ module Orb Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, currency: String, grouped_with_min_max_thresholds_config: - T::Hash[Symbol, T.anything], + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, model_type: Symbol, name: String, @@ -583,6 +596,66 @@ module Orb def self.values end end + + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, + Orb::Internal::AnyHash + ) + end + + # The event property used to group before applying thresholds + sig { returns(String) } + attr_accessor :grouping_key + + # The maximum amount to charge each group + sig { returns(String) } + attr_accessor :maximum_charge + + # The minimum amount to charge each group, regardless of usage + sig { returns(String) } + attr_accessor :minimum_charge + + # The base price charged per group + sig { returns(String) } + attr_accessor :per_unit_rate + + # Configuration for grouped_with_min_max_thresholds pricing + sig do + params( + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + ).returns(T.attached_class) + end + def self.new( + # The event property used to group before applying thresholds + grouping_key:, + # The maximum amount to charge each group + maximum_charge:, + # The minimum amount to charge each group, regardless of usage + minimum_charge:, + # The base price charged per group + per_unit_rate: + ) + end + + sig do + override.returns( + { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + ) + end + def to_hash + end + end end sig do diff --git a/rbi/orb/models/price_evaluate_preview_events_params.rbi b/rbi/orb/models/price_evaluate_preview_events_params.rbi index 6e96f99b..2a341d73 100644 --- a/rbi/orb/models/price_evaluate_preview_events_params.rbi +++ b/rbi/orb/models/price_evaluate_preview_events_params.rbi @@ -214,38 +214,37 @@ module Orb sig { params(grouping_keys: T::Array[String]).void } attr_writer :grouping_keys - # An inline price definition to evaluate, allowing you to test price - # configurations before adding them to Orb. + # New floating price request body params. sig do returns( T.nilable( T.any( Orb::NewFloatingUnitPrice, - Orb::NewFloatingPackagePrice, - Orb::NewFloatingMatrixPrice, - Orb::NewFloatingMatrixWithAllocationPrice, Orb::NewFloatingTieredPrice, Orb::NewFloatingBulkPrice, + Orb::NewFloatingPackagePrice, + Orb::NewFloatingMatrixPrice, Orb::NewFloatingThresholdTotalAmountPrice, Orb::NewFloatingTieredPackagePrice, - Orb::NewFloatingGroupedTieredPrice, - Orb::NewFloatingMaxGroupTieredPackagePrice, Orb::NewFloatingTieredWithMinimumPrice, - Orb::NewFloatingPackageWithAllocationPrice, + Orb::NewFloatingGroupedTieredPrice, Orb::NewFloatingTieredPackageWithMinimumPrice, + Orb::NewFloatingPackageWithAllocationPrice, Orb::NewFloatingUnitWithPercentPrice, + Orb::NewFloatingMatrixWithAllocationPrice, Orb::NewFloatingTieredWithProrationPrice, Orb::NewFloatingUnitWithProrationPrice, Orb::NewFloatingGroupedAllocationPrice, + Orb::NewFloatingBulkWithProrationPrice, Orb::NewFloatingGroupedWithProratedMinimumPrice, Orb::NewFloatingGroupedWithMeteredMinimumPrice, + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::NewFloatingMatrixWithDisplayNamePrice, - Orb::NewFloatingBulkWithProrationPrice, Orb::NewFloatingGroupedTieredPackagePrice, + Orb::NewFloatingMaxGroupTieredPackagePrice, Orb::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::NewFloatingCumulativeGroupedBulkPrice, - Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::NewFloatingMinimumCompositePrice ) ) @@ -266,31 +265,31 @@ module Orb T.nilable( T.any( Orb::NewFloatingUnitPrice::OrHash, - Orb::NewFloatingPackagePrice::OrHash, - Orb::NewFloatingMatrixPrice::OrHash, - Orb::NewFloatingMatrixWithAllocationPrice::OrHash, Orb::NewFloatingTieredPrice::OrHash, Orb::NewFloatingBulkPrice::OrHash, + Orb::NewFloatingPackagePrice::OrHash, + Orb::NewFloatingMatrixPrice::OrHash, Orb::NewFloatingThresholdTotalAmountPrice::OrHash, Orb::NewFloatingTieredPackagePrice::OrHash, - Orb::NewFloatingGroupedTieredPrice::OrHash, - Orb::NewFloatingMaxGroupTieredPackagePrice::OrHash, Orb::NewFloatingTieredWithMinimumPrice::OrHash, - Orb::NewFloatingPackageWithAllocationPrice::OrHash, + Orb::NewFloatingGroupedTieredPrice::OrHash, Orb::NewFloatingTieredPackageWithMinimumPrice::OrHash, + Orb::NewFloatingPackageWithAllocationPrice::OrHash, Orb::NewFloatingUnitWithPercentPrice::OrHash, + Orb::NewFloatingMatrixWithAllocationPrice::OrHash, Orb::NewFloatingTieredWithProrationPrice::OrHash, Orb::NewFloatingUnitWithProrationPrice::OrHash, Orb::NewFloatingGroupedAllocationPrice::OrHash, + Orb::NewFloatingBulkWithProrationPrice::OrHash, Orb::NewFloatingGroupedWithProratedMinimumPrice::OrHash, Orb::NewFloatingGroupedWithMeteredMinimumPrice::OrHash, + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::OrHash, Orb::NewFloatingMatrixWithDisplayNamePrice::OrHash, - Orb::NewFloatingBulkWithProrationPrice::OrHash, Orb::NewFloatingGroupedTieredPackagePrice::OrHash, + Orb::NewFloatingMaxGroupTieredPackagePrice::OrHash, Orb::NewFloatingScalableMatrixWithUnitPricingPrice::OrHash, Orb::NewFloatingScalableMatrixWithTieredPricingPrice::OrHash, Orb::NewFloatingCumulativeGroupedBulkPrice::OrHash, - Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::OrHash, Orb::NewFloatingMinimumCompositePrice::OrHash ) ), @@ -308,8 +307,7 @@ module Orb # [computed properties](/extensibility/advanced-metrics#computed-properties)) used # to group the underlying billable metric grouping_keys: nil, - # An inline price definition to evaluate, allowing you to test price - # configurations before adding them to Orb. + # New floating price request body params. price: nil, # The ID of a price to evaluate that exists in your Orb account. price_id: nil @@ -326,31 +324,31 @@ module Orb T.nilable( T.any( Orb::NewFloatingUnitPrice, - Orb::NewFloatingPackagePrice, - Orb::NewFloatingMatrixPrice, - Orb::NewFloatingMatrixWithAllocationPrice, Orb::NewFloatingTieredPrice, Orb::NewFloatingBulkPrice, + Orb::NewFloatingPackagePrice, + Orb::NewFloatingMatrixPrice, Orb::NewFloatingThresholdTotalAmountPrice, Orb::NewFloatingTieredPackagePrice, - Orb::NewFloatingGroupedTieredPrice, - Orb::NewFloatingMaxGroupTieredPackagePrice, Orb::NewFloatingTieredWithMinimumPrice, - Orb::NewFloatingPackageWithAllocationPrice, + Orb::NewFloatingGroupedTieredPrice, Orb::NewFloatingTieredPackageWithMinimumPrice, + Orb::NewFloatingPackageWithAllocationPrice, Orb::NewFloatingUnitWithPercentPrice, + Orb::NewFloatingMatrixWithAllocationPrice, Orb::NewFloatingTieredWithProrationPrice, Orb::NewFloatingUnitWithProrationPrice, Orb::NewFloatingGroupedAllocationPrice, + Orb::NewFloatingBulkWithProrationPrice, Orb::NewFloatingGroupedWithProratedMinimumPrice, Orb::NewFloatingGroupedWithMeteredMinimumPrice, + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::NewFloatingMatrixWithDisplayNamePrice, - Orb::NewFloatingBulkWithProrationPrice, Orb::NewFloatingGroupedTieredPackagePrice, + Orb::NewFloatingMaxGroupTieredPackagePrice, Orb::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::NewFloatingCumulativeGroupedBulkPrice, - Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::NewFloatingMinimumCompositePrice ) ), @@ -361,8 +359,7 @@ module Orb def to_hash end - # An inline price definition to evaluate, allowing you to test price - # configurations before adding them to Orb. + # New floating price request body params. module Price extend Orb::Internal::Type::Union @@ -370,31 +367,31 @@ module Orb T.type_alias do T.any( Orb::NewFloatingUnitPrice, - Orb::NewFloatingPackagePrice, - Orb::NewFloatingMatrixPrice, - Orb::NewFloatingMatrixWithAllocationPrice, Orb::NewFloatingTieredPrice, Orb::NewFloatingBulkPrice, + Orb::NewFloatingPackagePrice, + Orb::NewFloatingMatrixPrice, Orb::NewFloatingThresholdTotalAmountPrice, Orb::NewFloatingTieredPackagePrice, - Orb::NewFloatingGroupedTieredPrice, - Orb::NewFloatingMaxGroupTieredPackagePrice, Orb::NewFloatingTieredWithMinimumPrice, - Orb::NewFloatingPackageWithAllocationPrice, + Orb::NewFloatingGroupedTieredPrice, Orb::NewFloatingTieredPackageWithMinimumPrice, + Orb::NewFloatingPackageWithAllocationPrice, Orb::NewFloatingUnitWithPercentPrice, + Orb::NewFloatingMatrixWithAllocationPrice, Orb::NewFloatingTieredWithProrationPrice, Orb::NewFloatingUnitWithProrationPrice, Orb::NewFloatingGroupedAllocationPrice, + Orb::NewFloatingBulkWithProrationPrice, Orb::NewFloatingGroupedWithProratedMinimumPrice, Orb::NewFloatingGroupedWithMeteredMinimumPrice, + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::NewFloatingMatrixWithDisplayNamePrice, - Orb::NewFloatingBulkWithProrationPrice, Orb::NewFloatingGroupedTieredPackagePrice, + Orb::NewFloatingMaxGroupTieredPackagePrice, Orb::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::NewFloatingCumulativeGroupedBulkPrice, - Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds, Orb::NewFloatingMinimumCompositePrice ) end @@ -420,13 +417,27 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_with_min_max_thresholds_config + # Configuration for grouped_with_min_max_thresholds pricing + sig do + returns( + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig + ) + end + attr_reader :grouped_with_min_max_thresholds_config + + sig do + params( + grouped_with_min_max_thresholds_config: + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig::OrHash + ).void + end + attr_writer :grouped_with_min_max_thresholds_config # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -524,7 +535,7 @@ module Orb Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, currency: String, grouped_with_min_max_thresholds_config: - T::Hash[Symbol, T.anything], + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig::OrHash, item_id: String, name: String, billable_metric_id: T.nilable(String), @@ -555,6 +566,7 @@ module Orb cadence:, # An ISO 4217 currency string for which this price is billed in. currency:, + # Configuration for grouped_with_min_max_thresholds pricing grouped_with_min_max_thresholds_config:, # The id of the item the price will be associated with. item_id:, @@ -589,6 +601,7 @@ module Orb # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. metadata: nil, + # The pricing model type model_type: :grouped_with_min_max_thresholds ) end @@ -600,7 +613,7 @@ module Orb Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, currency: String, grouped_with_min_max_thresholds_config: - T::Hash[Symbol, T.anything], + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, model_type: Symbol, name: String, @@ -684,6 +697,66 @@ module Orb def self.values end end + + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, + Orb::Internal::AnyHash + ) + end + + # The event property used to group before applying thresholds + sig { returns(String) } + attr_accessor :grouping_key + + # The maximum amount to charge each group + sig { returns(String) } + attr_accessor :maximum_charge + + # The minimum amount to charge each group, regardless of usage + sig { returns(String) } + attr_accessor :minimum_charge + + # The base price charged per group + sig { returns(String) } + attr_accessor :per_unit_rate + + # Configuration for grouped_with_min_max_thresholds pricing + sig do + params( + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + ).returns(T.attached_class) + end + def self.new( + # The event property used to group before applying thresholds + grouping_key:, + # The maximum amount to charge each group + maximum_charge:, + # The minimum amount to charge each group, regardless of usage + minimum_charge:, + # The base price charged per group + per_unit_rate: + ) + end + + sig do + override.returns( + { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + ) + end + def to_hash + end + end end sig do diff --git a/rbi/orb/models/price_interval.rbi b/rbi/orb/models/price_interval.rbi index ca42f58b..7a91a9cc 100644 --- a/rbi/orb/models/price_interval.rbi +++ b/rbi/orb/models/price_interval.rbi @@ -78,14 +78,14 @@ module Orb price: T.any( Orb::Price::Unit::OrHash, - Orb::Price::Package::OrHash, - Orb::Price::Matrix::OrHash, Orb::Price::Tiered::OrHash, Orb::Price::Bulk::OrHash, + Orb::Price::Package::OrHash, + Orb::Price::Matrix::OrHash, Orb::Price::ThresholdTotalAmount::OrHash, Orb::Price::TieredPackage::OrHash, - Orb::Price::GroupedTiered::OrHash, Orb::Price::TieredWithMinimum::OrHash, + Orb::Price::GroupedTiered::OrHash, Orb::Price::TieredPackageWithMinimum::OrHash, Orb::Price::PackageWithAllocation::OrHash, Orb::Price::UnitWithPercent::OrHash, @@ -93,16 +93,16 @@ module Orb Orb::Price::TieredWithProration::OrHash, Orb::Price::UnitWithProration::OrHash, Orb::Price::GroupedAllocation::OrHash, + Orb::Price::BulkWithProration::OrHash, Orb::Price::GroupedWithProratedMinimum::OrHash, Orb::Price::GroupedWithMeteredMinimum::OrHash, + Orb::Price::GroupedWithMinMaxThresholds::OrHash, Orb::Price::MatrixWithDisplayName::OrHash, - Orb::Price::BulkWithProration::OrHash, Orb::Price::GroupedTieredPackage::OrHash, Orb::Price::MaxGroupTieredPackage::OrHash, Orb::Price::ScalableMatrixWithUnitPricing::OrHash, Orb::Price::ScalableMatrixWithTieredPricing::OrHash, Orb::Price::CumulativeGroupedBulk::OrHash, - Orb::Price::GroupedWithMinMaxThresholds::OrHash, Orb::Price::Minimum::OrHash ), start_date: Time, diff --git a/rbi/orb/models/subscription_create_params.rbi b/rbi/orb/models/subscription_create_params.rbi index d7818d7c..29522556 100644 --- a/rbi/orb/models/subscription_create_params.rbi +++ b/rbi/orb/models/subscription_create_params.rbi @@ -578,37 +578,37 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - # The definition of a new price to create and add to the subscription. + # New subscription price request body params. sig do returns( T.nilable( T.any( Orb::NewSubscriptionUnitPrice, - Orb::NewSubscriptionPackagePrice, - Orb::NewSubscriptionMatrixPrice, Orb::NewSubscriptionTieredPrice, Orb::NewSubscriptionBulkPrice, + Orb::NewSubscriptionPackagePrice, + Orb::NewSubscriptionMatrixPrice, Orb::NewSubscriptionThresholdTotalAmountPrice, Orb::NewSubscriptionTieredPackagePrice, Orb::NewSubscriptionTieredWithMinimumPrice, - Orb::NewSubscriptionUnitWithPercentPrice, + Orb::NewSubscriptionGroupedTieredPrice, + Orb::NewSubscriptionTieredPackageWithMinimumPrice, Orb::NewSubscriptionPackageWithAllocationPrice, - Orb::NewSubscriptionTierWithProrationPrice, + Orb::NewSubscriptionUnitWithPercentPrice, + Orb::NewSubscriptionMatrixWithAllocationPrice, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration, Orb::NewSubscriptionUnitWithProrationPrice, Orb::NewSubscriptionGroupedAllocationPrice, - Orb::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::NewSubscriptionBulkWithProrationPrice, - Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::NewSubscriptionMaxGroupTieredPackagePrice, + Orb::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::NewSubscriptionGroupedWithMeteredMinimumPrice, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::NewSubscriptionMatrixWithDisplayNamePrice, Orb::NewSubscriptionGroupedTieredPackagePrice, - Orb::NewSubscriptionMatrixWithAllocationPrice, - Orb::NewSubscriptionTieredPackageWithMinimumPrice, - Orb::NewSubscriptionGroupedTieredPrice, - Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds, + Orb::NewSubscriptionMaxGroupTieredPackagePrice, + Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice, + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice, + Orb::NewSubscriptionCumulativeGroupedBulkPrice, Orb::NewSubscriptionMinimumCompositePrice ) ) @@ -639,31 +639,31 @@ module Orb T.nilable( T.any( Orb::NewSubscriptionUnitPrice::OrHash, - Orb::NewSubscriptionPackagePrice::OrHash, - Orb::NewSubscriptionMatrixPrice::OrHash, Orb::NewSubscriptionTieredPrice::OrHash, Orb::NewSubscriptionBulkPrice::OrHash, + Orb::NewSubscriptionPackagePrice::OrHash, + Orb::NewSubscriptionMatrixPrice::OrHash, Orb::NewSubscriptionThresholdTotalAmountPrice::OrHash, Orb::NewSubscriptionTieredPackagePrice::OrHash, Orb::NewSubscriptionTieredWithMinimumPrice::OrHash, - Orb::NewSubscriptionUnitWithPercentPrice::OrHash, + Orb::NewSubscriptionGroupedTieredPrice::OrHash, + Orb::NewSubscriptionTieredPackageWithMinimumPrice::OrHash, Orb::NewSubscriptionPackageWithAllocationPrice::OrHash, - Orb::NewSubscriptionTierWithProrationPrice::OrHash, + Orb::NewSubscriptionUnitWithPercentPrice::OrHash, + Orb::NewSubscriptionMatrixWithAllocationPrice::OrHash, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::OrHash, Orb::NewSubscriptionUnitWithProrationPrice::OrHash, Orb::NewSubscriptionGroupedAllocationPrice::OrHash, - Orb::NewSubscriptionGroupedWithProratedMinimumPrice::OrHash, Orb::NewSubscriptionBulkWithProrationPrice::OrHash, - Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::OrHash, - Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::OrHash, - Orb::NewSubscriptionCumulativeGroupedBulkPrice::OrHash, - Orb::NewSubscriptionMaxGroupTieredPackagePrice::OrHash, + Orb::NewSubscriptionGroupedWithProratedMinimumPrice::OrHash, Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::OrHash, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::OrHash, Orb::NewSubscriptionMatrixWithDisplayNamePrice::OrHash, Orb::NewSubscriptionGroupedTieredPackagePrice::OrHash, - Orb::NewSubscriptionMatrixWithAllocationPrice::OrHash, - Orb::NewSubscriptionTieredPackageWithMinimumPrice::OrHash, - Orb::NewSubscriptionGroupedTieredPrice::OrHash, - Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::OrHash, + Orb::NewSubscriptionMaxGroupTieredPackagePrice::OrHash, + Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::OrHash, + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::OrHash, + Orb::NewSubscriptionCumulativeGroupedBulkPrice::OrHash, Orb::NewSubscriptionMinimumCompositePrice::OrHash ) ), @@ -691,7 +691,7 @@ module Orb minimum_amount: nil, # The phase to add this price to. plan_phase_order: nil, - # The definition of a new price to create and add to the subscription. + # New subscription price request body params. price: nil, # The id of the price to add to the subscription. price_id: nil, @@ -716,31 +716,31 @@ module Orb T.nilable( T.any( Orb::NewSubscriptionUnitPrice, - Orb::NewSubscriptionPackagePrice, - Orb::NewSubscriptionMatrixPrice, Orb::NewSubscriptionTieredPrice, Orb::NewSubscriptionBulkPrice, + Orb::NewSubscriptionPackagePrice, + Orb::NewSubscriptionMatrixPrice, Orb::NewSubscriptionThresholdTotalAmountPrice, Orb::NewSubscriptionTieredPackagePrice, Orb::NewSubscriptionTieredWithMinimumPrice, - Orb::NewSubscriptionUnitWithPercentPrice, + Orb::NewSubscriptionGroupedTieredPrice, + Orb::NewSubscriptionTieredPackageWithMinimumPrice, Orb::NewSubscriptionPackageWithAllocationPrice, - Orb::NewSubscriptionTierWithProrationPrice, + Orb::NewSubscriptionUnitWithPercentPrice, + Orb::NewSubscriptionMatrixWithAllocationPrice, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration, Orb::NewSubscriptionUnitWithProrationPrice, Orb::NewSubscriptionGroupedAllocationPrice, - Orb::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::NewSubscriptionBulkWithProrationPrice, - Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::NewSubscriptionMaxGroupTieredPackagePrice, + Orb::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::NewSubscriptionGroupedWithMeteredMinimumPrice, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::NewSubscriptionMatrixWithDisplayNamePrice, Orb::NewSubscriptionGroupedTieredPackagePrice, - Orb::NewSubscriptionMatrixWithAllocationPrice, - Orb::NewSubscriptionTieredPackageWithMinimumPrice, - Orb::NewSubscriptionGroupedTieredPrice, - Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds, + Orb::NewSubscriptionMaxGroupTieredPackagePrice, + Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice, + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice, + Orb::NewSubscriptionCumulativeGroupedBulkPrice, Orb::NewSubscriptionMinimumCompositePrice ) ), @@ -752,7 +752,7 @@ module Orb def to_hash end - # The definition of a new price to create and add to the subscription. + # New subscription price request body params. module Price extend Orb::Internal::Type::Union @@ -760,40 +760,40 @@ module Orb T.type_alias do T.any( Orb::NewSubscriptionUnitPrice, - Orb::NewSubscriptionPackagePrice, - Orb::NewSubscriptionMatrixPrice, Orb::NewSubscriptionTieredPrice, Orb::NewSubscriptionBulkPrice, + Orb::NewSubscriptionPackagePrice, + Orb::NewSubscriptionMatrixPrice, Orb::NewSubscriptionThresholdTotalAmountPrice, Orb::NewSubscriptionTieredPackagePrice, Orb::NewSubscriptionTieredWithMinimumPrice, - Orb::NewSubscriptionUnitWithPercentPrice, + Orb::NewSubscriptionGroupedTieredPrice, + Orb::NewSubscriptionTieredPackageWithMinimumPrice, Orb::NewSubscriptionPackageWithAllocationPrice, - Orb::NewSubscriptionTierWithProrationPrice, + Orb::NewSubscriptionUnitWithPercentPrice, + Orb::NewSubscriptionMatrixWithAllocationPrice, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration, Orb::NewSubscriptionUnitWithProrationPrice, Orb::NewSubscriptionGroupedAllocationPrice, - Orb::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::NewSubscriptionBulkWithProrationPrice, - Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::NewSubscriptionMaxGroupTieredPackagePrice, + Orb::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::NewSubscriptionGroupedWithMeteredMinimumPrice, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::NewSubscriptionMatrixWithDisplayNamePrice, Orb::NewSubscriptionGroupedTieredPackagePrice, - Orb::NewSubscriptionMatrixWithAllocationPrice, - Orb::NewSubscriptionTieredPackageWithMinimumPrice, - Orb::NewSubscriptionGroupedTieredPrice, - Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds, + Orb::NewSubscriptionMaxGroupTieredPackagePrice, + Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice, + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice, + Orb::NewSubscriptionCumulativeGroupedBulkPrice, Orb::NewSubscriptionMinimumCompositePrice ) end - class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + class TieredWithProration < Orb::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds, + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration, Orb::Internal::AnyHash ) end @@ -801,18 +801,16 @@ module Orb # The cadence to bill for this price on. sig do returns( - Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence::OrSymbol ) end attr_accessor :cadence - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_with_min_max_thresholds_config - # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -820,6 +818,22 @@ module Orb sig { returns(String) } attr_accessor :name + # Configuration for tiered_with_proration pricing + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig + ) + end + attr_reader :tiered_with_proration_config + + sig do + params( + tiered_with_proration_config: + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::OrHash + ).void + end + attr_writer :tiered_with_proration_config + # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } @@ -917,11 +931,11 @@ module Orb sig do params( cadence: - Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, - grouped_with_min_max_thresholds_config: - T::Hash[Symbol, T.anything], + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence::OrSymbol, item_id: String, name: String, + tiered_with_proration_config: + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -950,11 +964,12 @@ module Orb def self.new( # The cadence to bill for this price on. cadence:, - grouped_with_min_max_thresholds_config:, # The id of the item the price will be associated with. item_id:, # The name of the price. name:, + # Configuration for tiered_with_proration pricing + tiered_with_proration_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. billable_metric_id: nil, @@ -990,7 +1005,8 @@ module Orb # A transient ID that can be used to reference this price when adding adjustments # in the same API call. reference_id: nil, - model_type: :grouped_with_min_max_thresholds + # The pricing model type + model_type: :tiered_with_proration ) end @@ -998,12 +1014,12 @@ module Orb override.returns( { cadence: - Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, - grouped_with_min_max_thresholds_config: - T::Hash[Symbol, T.anything], + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, + tiered_with_proration_config: + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -1040,7 +1056,7 @@ module Orb T.type_alias do T.all( Symbol, - Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -1048,496 +1064,1366 @@ module Orb ANNUAL = T.let( :annual, - Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) sig do override.returns( T::Array[ - Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ] ) end def self.values end end - end - - sig do - override.returns( - T::Array[Orb::SubscriptionCreateParams::AddPrice::Price::Variants] - ) - end - def self.variants - end - end - end - module ExternalMarketplace - extend Orb::Internal::Type::Enum + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig, + Orb::Internal::AnyHash + ) + end - TaggedSymbol = - T.type_alias do - T.all(Symbol, Orb::SubscriptionCreateParams::ExternalMarketplace) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } + # Tiers for rating based on total usage quantities into the specified tier with + # proration + sig do + returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier + ] + ) + end + attr_accessor :tiers - GOOGLE = - T.let( - :google, - Orb::SubscriptionCreateParams::ExternalMarketplace::TaggedSymbol - ) - AWS = - T.let( - :aws, - Orb::SubscriptionCreateParams::ExternalMarketplace::TaggedSymbol - ) - AZURE = - T.let( - :azure, - Orb::SubscriptionCreateParams::ExternalMarketplace::TaggedSymbol - ) + # Configuration for tiered_with_proration pricing + sig do + params( + tiers: + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Tiers for rating based on total usage quantities into the specified tier with + # proration + tiers: + ) + end - sig do - override.returns( - T::Array[ - Orb::SubscriptionCreateParams::ExternalMarketplace::TaggedSymbol - ] - ) - end - def self.values - end - end + sig do + override.returns( + { + tiers: + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier + ] + } + ) + end + def to_hash + end - class RemoveAdjustment < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::SubscriptionCreateParams::RemoveAdjustment, - Orb::Internal::AnyHash - ) - end + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier, + Orb::Internal::AnyHash + ) + end - # The id of the adjustment to remove on the subscription. - sig { returns(String) } - attr_accessor :adjustment_id + # Inclusive tier starting value + sig { returns(String) } + attr_accessor :tier_lower_bound - sig { params(adjustment_id: String).returns(T.attached_class) } - def self.new( - # The id of the adjustment to remove on the subscription. - adjustment_id: - ) - end + # Amount per unit + sig { returns(String) } + attr_accessor :unit_amount - sig { override.returns({ adjustment_id: String }) } - def to_hash - end - end + # Configuration for a single tiered with proration tier + sig do + params(tier_lower_bound: String, unit_amount: String).returns( + T.attached_class + ) + end + def self.new( + # Inclusive tier starting value + tier_lower_bound:, + # Amount per unit + unit_amount: + ) + end - class RemovePrice < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::SubscriptionCreateParams::RemovePrice, - Orb::Internal::AnyHash - ) + sig do + override.returns( + { tier_lower_bound: String, unit_amount: String } + ) + end + def to_hash + end + end + end end - # The external price id of the price to remove on the subscription. - sig { returns(T.nilable(String)) } - attr_accessor :external_price_id + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds, + Orb::Internal::AnyHash + ) + end - # The id of the price to remove on the subscription. - sig { returns(T.nilable(String)) } - attr_accessor :price_id + # The cadence to bill for this price on. + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol + ) + end + attr_accessor :cadence - sig do - params( - external_price_id: T.nilable(String), - price_id: T.nilable(String) - ).returns(T.attached_class) - end - def self.new( - # The external price id of the price to remove on the subscription. - external_price_id: nil, - # The id of the price to remove on the subscription. - price_id: nil - ) - end + # Configuration for grouped_with_min_max_thresholds pricing + sig do + returns( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig + ) + end + attr_reader :grouped_with_min_max_thresholds_config - sig do - override.returns( - { - external_price_id: T.nilable(String), - price_id: T.nilable(String) - } - ) - end - def to_hash - end - end + sig do + params( + grouped_with_min_max_thresholds_config: + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig::OrHash + ).void + end + attr_writer :grouped_with_min_max_thresholds_config - class ReplaceAdjustment < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::SubscriptionCreateParams::ReplaceAdjustment, - Orb::Internal::AnyHash - ) - end + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id - # The definition of a new adjustment to create and add to the subscription. - sig do - returns( - T.any( - Orb::NewPercentageDiscount, - Orb::NewUsageDiscount, - Orb::NewAmountDiscount, - Orb::NewMinimum, - Orb::NewMaximum - ) - ) - end - attr_accessor :adjustment + # The pricing model type + sig { returns(Symbol) } + attr_accessor :model_type - # The id of the adjustment on the plan to replace in the subscription. - sig { returns(String) } - attr_accessor :replaces_adjustment_id + # The name of the price. + sig { returns(String) } + attr_accessor :name - sig do - params( - adjustment: - T.any( - Orb::NewPercentageDiscount::OrHash, - Orb::NewUsageDiscount::OrHash, - Orb::NewAmountDiscount::OrHash, - Orb::NewMinimum::OrHash, - Orb::NewMaximum::OrHash - ), - replaces_adjustment_id: String - ).returns(T.attached_class) - end - def self.new( - # The definition of a new adjustment to create and add to the subscription. - adjustment:, - # The id of the adjustment on the plan to replace in the subscription. - replaces_adjustment_id: - ) - end + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id - sig do - override.returns( - { - adjustment: - T.any( - Orb::NewPercentageDiscount, - Orb::NewUsageDiscount, - Orb::NewAmountDiscount, - Orb::NewMinimum, - Orb::NewMaximum - ), - replaces_adjustment_id: String - } - ) - end - def to_hash - end + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance - # The definition of a new adjustment to create and add to the subscription. - module Adjustment - extend Orb::Internal::Type::Union + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration - Variants = - T.type_alias do - T.any( - Orb::NewPercentageDiscount, - Orb::NewUsageDiscount, - Orb::NewAmountDiscount, - Orb::NewMinimum, - Orb::NewMaximum + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) ) end + attr_accessor :conversion_rate_config - sig do - override.returns( - T::Array[ - Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Variants - ] - ) - end - def self.variants - end - end - end + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + sig { returns(T.nilable(String)) } + attr_accessor :currency - class ReplacePrice < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::SubscriptionCreateParams::ReplacePrice, - Orb::Internal::AnyHash - ) - end + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration - # The id of the price on the plan to replace in the subscription. - sig { returns(String) } - attr_accessor :replaces_price_id + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration - # The definition of a new allocation price to create and add to the subscription. - sig { returns(T.nilable(Orb::NewAllocationPrice)) } - attr_reader :allocation_price + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id - sig do - params( - allocation_price: T.nilable(Orb::NewAllocationPrice::OrHash) - ).void - end - attr_writer :allocation_price + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity - # [DEPRECATED] Use add_adjustments instead. The subscription's discounts for the - # replacement price. - sig { returns(T.nilable(T::Array[Orb::DiscountOverride])) } - attr_accessor :discounts + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + sig { returns(T.nilable(String)) } + attr_accessor :reference_id + + sig do + params( + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + grouped_with_min_max_thresholds_config: + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig::OrHash, + item_id: String, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String), + model_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + # Configuration for grouped_with_min_max_thresholds pricing + grouped_with_min_max_thresholds_config:, + # The id of the item the price will be associated with. + item_id:, + # The name of the price. + name:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + currency: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + reference_id: nil, + # The pricing model type + model_type: :grouped_with_min_max_thresholds + ) + end + + sig do + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + grouped_with_min_max_thresholds_config: + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end + + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, + Orb::Internal::AnyHash + ) + end + + # The event property used to group before applying thresholds + sig { returns(String) } + attr_accessor :grouping_key + + # The maximum amount to charge each group + sig { returns(String) } + attr_accessor :maximum_charge + + # The minimum amount to charge each group, regardless of usage + sig { returns(String) } + attr_accessor :minimum_charge + + # The base price charged per group + sig { returns(String) } + attr_accessor :per_unit_rate + + # Configuration for grouped_with_min_max_thresholds pricing + sig do + params( + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + ).returns(T.attached_class) + end + def self.new( + # The event property used to group before applying thresholds + grouping_key:, + # The maximum amount to charge each group + maximum_charge:, + # The minimum amount to charge each group, regardless of usage + minimum_charge:, + # The base price charged per group + per_unit_rate: + ) + end + + sig do + override.returns( + { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + ) + end + def to_hash + end + end + end + + sig do + override.returns( + T::Array[Orb::SubscriptionCreateParams::AddPrice::Price::Variants] + ) + end + def self.variants + end + end + end + + module ExternalMarketplace + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::SubscriptionCreateParams::ExternalMarketplace) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + GOOGLE = + T.let( + :google, + Orb::SubscriptionCreateParams::ExternalMarketplace::TaggedSymbol + ) + AWS = + T.let( + :aws, + Orb::SubscriptionCreateParams::ExternalMarketplace::TaggedSymbol + ) + AZURE = + T.let( + :azure, + Orb::SubscriptionCreateParams::ExternalMarketplace::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ExternalMarketplace::TaggedSymbol + ] + ) + end + def self.values + end + end + + class RemoveAdjustment < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::RemoveAdjustment, + Orb::Internal::AnyHash + ) + end + + # The id of the adjustment to remove on the subscription. + sig { returns(String) } + attr_accessor :adjustment_id + + sig { params(adjustment_id: String).returns(T.attached_class) } + def self.new( + # The id of the adjustment to remove on the subscription. + adjustment_id: + ) + end + + sig { override.returns({ adjustment_id: String }) } + def to_hash + end + end + + class RemovePrice < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::RemovePrice, + Orb::Internal::AnyHash + ) + end + + # The external price id of the price to remove on the subscription. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # The id of the price to remove on the subscription. + sig { returns(T.nilable(String)) } + attr_accessor :price_id + + sig do + params( + external_price_id: T.nilable(String), + price_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # The external price id of the price to remove on the subscription. + external_price_id: nil, + # The id of the price to remove on the subscription. + price_id: nil + ) + end + + sig do + override.returns( + { + external_price_id: T.nilable(String), + price_id: T.nilable(String) + } + ) + end + def to_hash + end + end + + class ReplaceAdjustment < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplaceAdjustment, + Orb::Internal::AnyHash + ) + end + + # The definition of a new adjustment to create and add to the subscription. + sig do + returns( + T.any( + Orb::NewPercentageDiscount, + Orb::NewUsageDiscount, + Orb::NewAmountDiscount, + Orb::NewMinimum, + Orb::NewMaximum + ) + ) + end + attr_accessor :adjustment + + # The id of the adjustment on the plan to replace in the subscription. + sig { returns(String) } + attr_accessor :replaces_adjustment_id + + sig do + params( + adjustment: + T.any( + Orb::NewPercentageDiscount::OrHash, + Orb::NewUsageDiscount::OrHash, + Orb::NewAmountDiscount::OrHash, + Orb::NewMinimum::OrHash, + Orb::NewMaximum::OrHash + ), + replaces_adjustment_id: String + ).returns(T.attached_class) + end + def self.new( + # The definition of a new adjustment to create and add to the subscription. + adjustment:, + # The id of the adjustment on the plan to replace in the subscription. + replaces_adjustment_id: + ) + end + + sig do + override.returns( + { + adjustment: + T.any( + Orb::NewPercentageDiscount, + Orb::NewUsageDiscount, + Orb::NewAmountDiscount, + Orb::NewMinimum, + Orb::NewMaximum + ), + replaces_adjustment_id: String + } + ) + end + def to_hash + end + + # The definition of a new adjustment to create and add to the subscription. + module Adjustment + extend Orb::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + Orb::NewPercentageDiscount, + Orb::NewUsageDiscount, + Orb::NewAmountDiscount, + Orb::NewMinimum, + Orb::NewMaximum + ) + end + + sig do + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplaceAdjustment::Adjustment::Variants + ] + ) + end + def self.variants + end + end + end + + class ReplacePrice < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice, + Orb::Internal::AnyHash + ) + end + + # The id of the price on the plan to replace in the subscription. + sig { returns(String) } + attr_accessor :replaces_price_id + + # The definition of a new allocation price to create and add to the subscription. + sig { returns(T.nilable(Orb::NewAllocationPrice)) } + attr_reader :allocation_price + + sig do + params( + allocation_price: T.nilable(Orb::NewAllocationPrice::OrHash) + ).void + end + attr_writer :allocation_price + + # [DEPRECATED] Use add_adjustments instead. The subscription's discounts for the + # replacement price. + sig { returns(T.nilable(T::Array[Orb::DiscountOverride])) } + attr_accessor :discounts + + # The external price id of the price to add to the subscription. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # The new quantity of the price, if the price is a fixed price. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # [DEPRECATED] Use add_adjustments instead. The subscription's maximum amount for + # the replacement price. + sig { returns(T.nilable(String)) } + attr_accessor :maximum_amount + + # [DEPRECATED] Use add_adjustments instead. The subscription's minimum amount for + # the replacement price. + sig { returns(T.nilable(String)) } + attr_accessor :minimum_amount + + # New subscription price request body params. + sig do + returns( + T.nilable( + T.any( + Orb::NewSubscriptionUnitPrice, + Orb::NewSubscriptionTieredPrice, + Orb::NewSubscriptionBulkPrice, + Orb::NewSubscriptionPackagePrice, + Orb::NewSubscriptionMatrixPrice, + Orb::NewSubscriptionThresholdTotalAmountPrice, + Orb::NewSubscriptionTieredPackagePrice, + Orb::NewSubscriptionTieredWithMinimumPrice, + Orb::NewSubscriptionGroupedTieredPrice, + Orb::NewSubscriptionTieredPackageWithMinimumPrice, + Orb::NewSubscriptionPackageWithAllocationPrice, + Orb::NewSubscriptionUnitWithPercentPrice, + Orb::NewSubscriptionMatrixWithAllocationPrice, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration, + Orb::NewSubscriptionUnitWithProrationPrice, + Orb::NewSubscriptionGroupedAllocationPrice, + Orb::NewSubscriptionBulkWithProrationPrice, + Orb::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::NewSubscriptionGroupedWithMeteredMinimumPrice, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, + Orb::NewSubscriptionMatrixWithDisplayNamePrice, + Orb::NewSubscriptionGroupedTieredPackagePrice, + Orb::NewSubscriptionMaxGroupTieredPackagePrice, + Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice, + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice, + Orb::NewSubscriptionCumulativeGroupedBulkPrice, + Orb::NewSubscriptionMinimumCompositePrice + ) + ) + ) + end + attr_accessor :price + + # The id of the price to add to the subscription. + sig { returns(T.nilable(String)) } + attr_accessor :price_id + + sig do + params( + replaces_price_id: String, + allocation_price: T.nilable(Orb::NewAllocationPrice::OrHash), + discounts: T.nilable(T::Array[Orb::DiscountOverride::OrHash]), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + maximum_amount: T.nilable(String), + minimum_amount: T.nilable(String), + price: + T.nilable( + T.any( + Orb::NewSubscriptionUnitPrice::OrHash, + Orb::NewSubscriptionTieredPrice::OrHash, + Orb::NewSubscriptionBulkPrice::OrHash, + Orb::NewSubscriptionPackagePrice::OrHash, + Orb::NewSubscriptionMatrixPrice::OrHash, + Orb::NewSubscriptionThresholdTotalAmountPrice::OrHash, + Orb::NewSubscriptionTieredPackagePrice::OrHash, + Orb::NewSubscriptionTieredWithMinimumPrice::OrHash, + Orb::NewSubscriptionGroupedTieredPrice::OrHash, + Orb::NewSubscriptionTieredPackageWithMinimumPrice::OrHash, + Orb::NewSubscriptionPackageWithAllocationPrice::OrHash, + Orb::NewSubscriptionUnitWithPercentPrice::OrHash, + Orb::NewSubscriptionMatrixWithAllocationPrice::OrHash, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::OrHash, + Orb::NewSubscriptionUnitWithProrationPrice::OrHash, + Orb::NewSubscriptionGroupedAllocationPrice::OrHash, + Orb::NewSubscriptionBulkWithProrationPrice::OrHash, + Orb::NewSubscriptionGroupedWithProratedMinimumPrice::OrHash, + Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::OrHash, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::OrHash, + Orb::NewSubscriptionMatrixWithDisplayNamePrice::OrHash, + Orb::NewSubscriptionGroupedTieredPackagePrice::OrHash, + Orb::NewSubscriptionMaxGroupTieredPackagePrice::OrHash, + Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::OrHash, + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::OrHash, + Orb::NewSubscriptionCumulativeGroupedBulkPrice::OrHash, + Orb::NewSubscriptionMinimumCompositePrice::OrHash + ) + ), + price_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # The id of the price on the plan to replace in the subscription. + replaces_price_id:, + # The definition of a new allocation price to create and add to the subscription. + allocation_price: nil, + # [DEPRECATED] Use add_adjustments instead. The subscription's discounts for the + # replacement price. + discounts: nil, + # The external price id of the price to add to the subscription. + external_price_id: nil, + # The new quantity of the price, if the price is a fixed price. + fixed_price_quantity: nil, + # [DEPRECATED] Use add_adjustments instead. The subscription's maximum amount for + # the replacement price. + maximum_amount: nil, + # [DEPRECATED] Use add_adjustments instead. The subscription's minimum amount for + # the replacement price. + minimum_amount: nil, + # New subscription price request body params. + price: nil, + # The id of the price to add to the subscription. + price_id: nil + ) + end + + sig do + override.returns( + { + replaces_price_id: String, + allocation_price: T.nilable(Orb::NewAllocationPrice), + discounts: T.nilable(T::Array[Orb::DiscountOverride]), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + maximum_amount: T.nilable(String), + minimum_amount: T.nilable(String), + price: + T.nilable( + T.any( + Orb::NewSubscriptionUnitPrice, + Orb::NewSubscriptionTieredPrice, + Orb::NewSubscriptionBulkPrice, + Orb::NewSubscriptionPackagePrice, + Orb::NewSubscriptionMatrixPrice, + Orb::NewSubscriptionThresholdTotalAmountPrice, + Orb::NewSubscriptionTieredPackagePrice, + Orb::NewSubscriptionTieredWithMinimumPrice, + Orb::NewSubscriptionGroupedTieredPrice, + Orb::NewSubscriptionTieredPackageWithMinimumPrice, + Orb::NewSubscriptionPackageWithAllocationPrice, + Orb::NewSubscriptionUnitWithPercentPrice, + Orb::NewSubscriptionMatrixWithAllocationPrice, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration, + Orb::NewSubscriptionUnitWithProrationPrice, + Orb::NewSubscriptionGroupedAllocationPrice, + Orb::NewSubscriptionBulkWithProrationPrice, + Orb::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::NewSubscriptionGroupedWithMeteredMinimumPrice, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, + Orb::NewSubscriptionMatrixWithDisplayNamePrice, + Orb::NewSubscriptionGroupedTieredPackagePrice, + Orb::NewSubscriptionMaxGroupTieredPackagePrice, + Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice, + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice, + Orb::NewSubscriptionCumulativeGroupedBulkPrice, + Orb::NewSubscriptionMinimumCompositePrice + ) + ), + price_id: T.nilable(String) + } + ) + end + def to_hash + end + + # New subscription price request body params. + module Price + extend Orb::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + Orb::NewSubscriptionUnitPrice, + Orb::NewSubscriptionTieredPrice, + Orb::NewSubscriptionBulkPrice, + Orb::NewSubscriptionPackagePrice, + Orb::NewSubscriptionMatrixPrice, + Orb::NewSubscriptionThresholdTotalAmountPrice, + Orb::NewSubscriptionTieredPackagePrice, + Orb::NewSubscriptionTieredWithMinimumPrice, + Orb::NewSubscriptionGroupedTieredPrice, + Orb::NewSubscriptionTieredPackageWithMinimumPrice, + Orb::NewSubscriptionPackageWithAllocationPrice, + Orb::NewSubscriptionUnitWithPercentPrice, + Orb::NewSubscriptionMatrixWithAllocationPrice, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration, + Orb::NewSubscriptionUnitWithProrationPrice, + Orb::NewSubscriptionGroupedAllocationPrice, + Orb::NewSubscriptionBulkWithProrationPrice, + Orb::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::NewSubscriptionGroupedWithMeteredMinimumPrice, + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, + Orb::NewSubscriptionMatrixWithDisplayNamePrice, + Orb::NewSubscriptionGroupedTieredPackagePrice, + Orb::NewSubscriptionMaxGroupTieredPackagePrice, + Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice, + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice, + Orb::NewSubscriptionCumulativeGroupedBulkPrice, + Orb::NewSubscriptionMinimumCompositePrice + ) + end + + class TieredWithProration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration, + Orb::Internal::AnyHash + ) + end + + # The cadence to bill for this price on. + sig do + returns( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence::OrSymbol + ) + end + attr_accessor :cadence + + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id + + # The pricing model type + sig { returns(Symbol) } + attr_accessor :model_type + + # The name of the price. + sig { returns(String) } + attr_accessor :name + + # Configuration for tiered_with_proration pricing + sig do + returns( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig + ) + end + attr_reader :tiered_with_proration_config + + sig do + params( + tiered_with_proration_config: + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::OrHash + ).void + end + attr_writer :tiered_with_proration_config + + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id + + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance + + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration + + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) + ) + end + attr_accessor :conversion_rate_config + + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + sig { returns(T.nilable(String)) } + attr_accessor :currency + + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration + + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + sig { returns(T.nilable(String)) } + attr_accessor :reference_id + + sig do + params( + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence::OrSymbol, + item_id: String, + name: String, + tiered_with_proration_config: + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::OrHash, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String), + model_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + # The id of the item the price will be associated with. + item_id:, + # The name of the price. + name:, + # Configuration for tiered_with_proration pricing + tiered_with_proration_config:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + currency: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + reference_id: nil, + # The pricing model type + model_type: :tiered_with_proration + ) + end + + sig do + override.returns( + { + cadence: + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_proration_config: + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end - # The external price id of the price to add to the subscription. - sig { returns(T.nilable(String)) } - attr_accessor :external_price_id + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig, + Orb::Internal::AnyHash + ) + end - # The new quantity of the price, if the price is a fixed price. - sig { returns(T.nilable(Float)) } - attr_accessor :fixed_price_quantity + # Tiers for rating based on total usage quantities into the specified tier with + # proration + sig do + returns( + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier + ] + ) + end + attr_accessor :tiers - # [DEPRECATED] Use add_adjustments instead. The subscription's maximum amount for - # the replacement price. - sig { returns(T.nilable(String)) } - attr_accessor :maximum_amount + # Configuration for tiered_with_proration pricing + sig do + params( + tiers: + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Tiers for rating based on total usage quantities into the specified tier with + # proration + tiers: + ) + end - # [DEPRECATED] Use add_adjustments instead. The subscription's minimum amount for - # the replacement price. - sig { returns(T.nilable(String)) } - attr_accessor :minimum_amount + sig do + override.returns( + { + tiers: + T::Array[ + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier + ] + } + ) + end + def to_hash + end - # The definition of a new price to create and add to the subscription. - sig do - returns( - T.nilable( - T.any( - Orb::NewSubscriptionUnitPrice, - Orb::NewSubscriptionPackagePrice, - Orb::NewSubscriptionMatrixPrice, - Orb::NewSubscriptionTieredPrice, - Orb::NewSubscriptionBulkPrice, - Orb::NewSubscriptionThresholdTotalAmountPrice, - Orb::NewSubscriptionTieredPackagePrice, - Orb::NewSubscriptionTieredWithMinimumPrice, - Orb::NewSubscriptionUnitWithPercentPrice, - Orb::NewSubscriptionPackageWithAllocationPrice, - Orb::NewSubscriptionTierWithProrationPrice, - Orb::NewSubscriptionUnitWithProrationPrice, - Orb::NewSubscriptionGroupedAllocationPrice, - Orb::NewSubscriptionGroupedWithProratedMinimumPrice, - Orb::NewSubscriptionBulkWithProrationPrice, - Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::NewSubscriptionMaxGroupTieredPackagePrice, - Orb::NewSubscriptionGroupedWithMeteredMinimumPrice, - Orb::NewSubscriptionMatrixWithDisplayNamePrice, - Orb::NewSubscriptionGroupedTieredPackagePrice, - Orb::NewSubscriptionMatrixWithAllocationPrice, - Orb::NewSubscriptionTieredPackageWithMinimumPrice, - Orb::NewSubscriptionGroupedTieredPrice, - Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, - Orb::NewSubscriptionMinimumCompositePrice - ) - ) - ) - end - attr_accessor :price + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier, + Orb::Internal::AnyHash + ) + end - # The id of the price to add to the subscription. - sig { returns(T.nilable(String)) } - attr_accessor :price_id + # Inclusive tier starting value + sig { returns(String) } + attr_accessor :tier_lower_bound - sig do - params( - replaces_price_id: String, - allocation_price: T.nilable(Orb::NewAllocationPrice::OrHash), - discounts: T.nilable(T::Array[Orb::DiscountOverride::OrHash]), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - maximum_amount: T.nilable(String), - minimum_amount: T.nilable(String), - price: - T.nilable( - T.any( - Orb::NewSubscriptionUnitPrice::OrHash, - Orb::NewSubscriptionPackagePrice::OrHash, - Orb::NewSubscriptionMatrixPrice::OrHash, - Orb::NewSubscriptionTieredPrice::OrHash, - Orb::NewSubscriptionBulkPrice::OrHash, - Orb::NewSubscriptionThresholdTotalAmountPrice::OrHash, - Orb::NewSubscriptionTieredPackagePrice::OrHash, - Orb::NewSubscriptionTieredWithMinimumPrice::OrHash, - Orb::NewSubscriptionUnitWithPercentPrice::OrHash, - Orb::NewSubscriptionPackageWithAllocationPrice::OrHash, - Orb::NewSubscriptionTierWithProrationPrice::OrHash, - Orb::NewSubscriptionUnitWithProrationPrice::OrHash, - Orb::NewSubscriptionGroupedAllocationPrice::OrHash, - Orb::NewSubscriptionGroupedWithProratedMinimumPrice::OrHash, - Orb::NewSubscriptionBulkWithProrationPrice::OrHash, - Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::OrHash, - Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::OrHash, - Orb::NewSubscriptionCumulativeGroupedBulkPrice::OrHash, - Orb::NewSubscriptionMaxGroupTieredPackagePrice::OrHash, - Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::OrHash, - Orb::NewSubscriptionMatrixWithDisplayNamePrice::OrHash, - Orb::NewSubscriptionGroupedTieredPackagePrice::OrHash, - Orb::NewSubscriptionMatrixWithAllocationPrice::OrHash, - Orb::NewSubscriptionTieredPackageWithMinimumPrice::OrHash, - Orb::NewSubscriptionGroupedTieredPrice::OrHash, - Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::OrHash, - Orb::NewSubscriptionMinimumCompositePrice::OrHash - ) - ), - price_id: T.nilable(String) - ).returns(T.attached_class) - end - def self.new( - # The id of the price on the plan to replace in the subscription. - replaces_price_id:, - # The definition of a new allocation price to create and add to the subscription. - allocation_price: nil, - # [DEPRECATED] Use add_adjustments instead. The subscription's discounts for the - # replacement price. - discounts: nil, - # The external price id of the price to add to the subscription. - external_price_id: nil, - # The new quantity of the price, if the price is a fixed price. - fixed_price_quantity: nil, - # [DEPRECATED] Use add_adjustments instead. The subscription's maximum amount for - # the replacement price. - maximum_amount: nil, - # [DEPRECATED] Use add_adjustments instead. The subscription's minimum amount for - # the replacement price. - minimum_amount: nil, - # The definition of a new price to create and add to the subscription. - price: nil, - # The id of the price to add to the subscription. - price_id: nil - ) - end + # Amount per unit + sig { returns(String) } + attr_accessor :unit_amount - sig do - override.returns( - { - replaces_price_id: String, - allocation_price: T.nilable(Orb::NewAllocationPrice), - discounts: T.nilable(T::Array[Orb::DiscountOverride]), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - maximum_amount: T.nilable(String), - minimum_amount: T.nilable(String), - price: - T.nilable( - T.any( - Orb::NewSubscriptionUnitPrice, - Orb::NewSubscriptionPackagePrice, - Orb::NewSubscriptionMatrixPrice, - Orb::NewSubscriptionTieredPrice, - Orb::NewSubscriptionBulkPrice, - Orb::NewSubscriptionThresholdTotalAmountPrice, - Orb::NewSubscriptionTieredPackagePrice, - Orb::NewSubscriptionTieredWithMinimumPrice, - Orb::NewSubscriptionUnitWithPercentPrice, - Orb::NewSubscriptionPackageWithAllocationPrice, - Orb::NewSubscriptionTierWithProrationPrice, - Orb::NewSubscriptionUnitWithProrationPrice, - Orb::NewSubscriptionGroupedAllocationPrice, - Orb::NewSubscriptionGroupedWithProratedMinimumPrice, - Orb::NewSubscriptionBulkWithProrationPrice, - Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::NewSubscriptionMaxGroupTieredPackagePrice, - Orb::NewSubscriptionGroupedWithMeteredMinimumPrice, - Orb::NewSubscriptionMatrixWithDisplayNamePrice, - Orb::NewSubscriptionGroupedTieredPackagePrice, - Orb::NewSubscriptionMatrixWithAllocationPrice, - Orb::NewSubscriptionTieredPackageWithMinimumPrice, - Orb::NewSubscriptionGroupedTieredPrice, - Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, - Orb::NewSubscriptionMinimumCompositePrice + # Configuration for a single tiered with proration tier + sig do + params(tier_lower_bound: String, unit_amount: String).returns( + T.attached_class ) - ), - price_id: T.nilable(String) - } - ) - end - def to_hash - end - - # The definition of a new price to create and add to the subscription. - module Price - extend Orb::Internal::Type::Union + end + def self.new( + # Inclusive tier starting value + tier_lower_bound:, + # Amount per unit + unit_amount: + ) + end - Variants = - T.type_alias do - T.any( - Orb::NewSubscriptionUnitPrice, - Orb::NewSubscriptionPackagePrice, - Orb::NewSubscriptionMatrixPrice, - Orb::NewSubscriptionTieredPrice, - Orb::NewSubscriptionBulkPrice, - Orb::NewSubscriptionThresholdTotalAmountPrice, - Orb::NewSubscriptionTieredPackagePrice, - Orb::NewSubscriptionTieredWithMinimumPrice, - Orb::NewSubscriptionUnitWithPercentPrice, - Orb::NewSubscriptionPackageWithAllocationPrice, - Orb::NewSubscriptionTierWithProrationPrice, - Orb::NewSubscriptionUnitWithProrationPrice, - Orb::NewSubscriptionGroupedAllocationPrice, - Orb::NewSubscriptionGroupedWithProratedMinimumPrice, - Orb::NewSubscriptionBulkWithProrationPrice, - Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::NewSubscriptionMaxGroupTieredPackagePrice, - Orb::NewSubscriptionGroupedWithMeteredMinimumPrice, - Orb::NewSubscriptionMatrixWithDisplayNamePrice, - Orb::NewSubscriptionGroupedTieredPackagePrice, - Orb::NewSubscriptionMatrixWithAllocationPrice, - Orb::NewSubscriptionTieredPackageWithMinimumPrice, - Orb::NewSubscriptionGroupedTieredPrice, - Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, - Orb::NewSubscriptionMinimumCompositePrice - ) + sig do + override.returns( + { tier_lower_bound: String, unit_amount: String } + ) + end + def to_hash + end + end end + end class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel OrHash = @@ -1556,13 +2442,27 @@ module Orb end attr_accessor :cadence - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_with_min_max_thresholds_config + # Configuration for grouped_with_min_max_thresholds pricing + sig do + returns( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig + ) + end + attr_reader :grouped_with_min_max_thresholds_config + + sig do + params( + grouped_with_min_max_thresholds_config: + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig::OrHash + ).void + end + attr_writer :grouped_with_min_max_thresholds_config # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -1669,7 +2569,7 @@ module Orb cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, grouped_with_min_max_thresholds_config: - T::Hash[Symbol, T.anything], + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig::OrHash, item_id: String, name: String, billable_metric_id: T.nilable(String), @@ -1700,6 +2600,7 @@ module Orb def self.new( # The cadence to bill for this price on. cadence:, + # Configuration for grouped_with_min_max_thresholds pricing grouped_with_min_max_thresholds_config:, # The id of the item the price will be associated with. item_id:, @@ -1740,6 +2641,7 @@ module Orb # A transient ID that can be used to reference this price when adding adjustments # in the same API call. reference_id: nil, + # The pricing model type model_type: :grouped_with_min_max_thresholds ) end @@ -1750,7 +2652,7 @@ module Orb cadence: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, grouped_with_min_max_thresholds_config: - T::Hash[Symbol, T.anything], + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, model_type: Symbol, name: String, @@ -1836,6 +2738,66 @@ module Orb def self.values end end + + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, + Orb::Internal::AnyHash + ) + end + + # The event property used to group before applying thresholds + sig { returns(String) } + attr_accessor :grouping_key + + # The maximum amount to charge each group + sig { returns(String) } + attr_accessor :maximum_charge + + # The minimum amount to charge each group, regardless of usage + sig { returns(String) } + attr_accessor :minimum_charge + + # The base price charged per group + sig { returns(String) } + attr_accessor :per_unit_rate + + # Configuration for grouped_with_min_max_thresholds pricing + sig do + params( + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + ).returns(T.attached_class) + end + def self.new( + # The event property used to group before applying thresholds + grouping_key:, + # The maximum amount to charge each group + maximum_charge:, + # The minimum amount to charge each group, regardless of usage + minimum_charge:, + # The base price charged per group + per_unit_rate: + ) + end + + sig do + override.returns( + { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + ) + end + def to_hash + end + end end sig do diff --git a/rbi/orb/models/subscription_price_intervals_params.rbi b/rbi/orb/models/subscription_price_intervals_params.rbi index 51ec5061..9b995de5 100644 --- a/rbi/orb/models/subscription_price_intervals_params.rbi +++ b/rbi/orb/models/subscription_price_intervals_params.rbi @@ -218,37 +218,37 @@ module Orb sig { returns(T.nilable(Float)) } attr_accessor :minimum_amount - # The definition of a new price to create and add to the subscription. + # New floating price request body params. sig do returns( T.nilable( T.any( Orb::NewFloatingUnitPrice, - Orb::NewFloatingPackagePrice, - Orb::NewFloatingMatrixPrice, - Orb::NewFloatingMatrixWithAllocationPrice, Orb::NewFloatingTieredPrice, Orb::NewFloatingBulkPrice, + Orb::NewFloatingPackagePrice, + Orb::NewFloatingMatrixPrice, Orb::NewFloatingThresholdTotalAmountPrice, Orb::NewFloatingTieredPackagePrice, - Orb::NewFloatingGroupedTieredPrice, - Orb::NewFloatingMaxGroupTieredPackagePrice, Orb::NewFloatingTieredWithMinimumPrice, - Orb::NewFloatingPackageWithAllocationPrice, + Orb::NewFloatingGroupedTieredPrice, Orb::NewFloatingTieredPackageWithMinimumPrice, + Orb::NewFloatingPackageWithAllocationPrice, Orb::NewFloatingUnitWithPercentPrice, + Orb::NewFloatingMatrixWithAllocationPrice, Orb::NewFloatingTieredWithProrationPrice, Orb::NewFloatingUnitWithProrationPrice, Orb::NewFloatingGroupedAllocationPrice, + Orb::NewFloatingBulkWithProrationPrice, Orb::NewFloatingGroupedWithProratedMinimumPrice, Orb::NewFloatingGroupedWithMeteredMinimumPrice, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds, Orb::NewFloatingMatrixWithDisplayNamePrice, - Orb::NewFloatingBulkWithProrationPrice, Orb::NewFloatingGroupedTieredPackagePrice, + Orb::NewFloatingMaxGroupTieredPackagePrice, Orb::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::NewFloatingCumulativeGroupedBulkPrice, - Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds, Orb::NewFloatingMinimumCompositePrice ) ) @@ -299,31 +299,31 @@ module Orb T.nilable( T.any( Orb::NewFloatingUnitPrice::OrHash, - Orb::NewFloatingPackagePrice::OrHash, - Orb::NewFloatingMatrixPrice::OrHash, - Orb::NewFloatingMatrixWithAllocationPrice::OrHash, Orb::NewFloatingTieredPrice::OrHash, Orb::NewFloatingBulkPrice::OrHash, + Orb::NewFloatingPackagePrice::OrHash, + Orb::NewFloatingMatrixPrice::OrHash, Orb::NewFloatingThresholdTotalAmountPrice::OrHash, Orb::NewFloatingTieredPackagePrice::OrHash, - Orb::NewFloatingGroupedTieredPrice::OrHash, - Orb::NewFloatingMaxGroupTieredPackagePrice::OrHash, Orb::NewFloatingTieredWithMinimumPrice::OrHash, - Orb::NewFloatingPackageWithAllocationPrice::OrHash, + Orb::NewFloatingGroupedTieredPrice::OrHash, Orb::NewFloatingTieredPackageWithMinimumPrice::OrHash, + Orb::NewFloatingPackageWithAllocationPrice::OrHash, Orb::NewFloatingUnitWithPercentPrice::OrHash, + Orb::NewFloatingMatrixWithAllocationPrice::OrHash, Orb::NewFloatingTieredWithProrationPrice::OrHash, Orb::NewFloatingUnitWithProrationPrice::OrHash, Orb::NewFloatingGroupedAllocationPrice::OrHash, + Orb::NewFloatingBulkWithProrationPrice::OrHash, Orb::NewFloatingGroupedWithProratedMinimumPrice::OrHash, Orb::NewFloatingGroupedWithMeteredMinimumPrice::OrHash, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::OrHash, Orb::NewFloatingMatrixWithDisplayNamePrice::OrHash, - Orb::NewFloatingBulkWithProrationPrice::OrHash, Orb::NewFloatingGroupedTieredPackagePrice::OrHash, + Orb::NewFloatingMaxGroupTieredPackagePrice::OrHash, Orb::NewFloatingScalableMatrixWithUnitPricingPrice::OrHash, Orb::NewFloatingScalableMatrixWithTieredPricingPrice::OrHash, Orb::NewFloatingCumulativeGroupedBulkPrice::OrHash, - Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::OrHash, Orb::NewFloatingMinimumCompositePrice::OrHash ) ), @@ -357,7 +357,7 @@ module Orb # The minimum amount that will be billed for this price interval for a given # billing period. minimum_amount: nil, - # The definition of a new price to create and add to the subscription. + # New floating price request body params. price: nil, # The id of the price to add to the subscription. price_id: nil, @@ -402,31 +402,31 @@ module Orb T.nilable( T.any( Orb::NewFloatingUnitPrice, - Orb::NewFloatingPackagePrice, - Orb::NewFloatingMatrixPrice, - Orb::NewFloatingMatrixWithAllocationPrice, Orb::NewFloatingTieredPrice, Orb::NewFloatingBulkPrice, + Orb::NewFloatingPackagePrice, + Orb::NewFloatingMatrixPrice, Orb::NewFloatingThresholdTotalAmountPrice, Orb::NewFloatingTieredPackagePrice, - Orb::NewFloatingGroupedTieredPrice, - Orb::NewFloatingMaxGroupTieredPackagePrice, Orb::NewFloatingTieredWithMinimumPrice, - Orb::NewFloatingPackageWithAllocationPrice, + Orb::NewFloatingGroupedTieredPrice, Orb::NewFloatingTieredPackageWithMinimumPrice, + Orb::NewFloatingPackageWithAllocationPrice, Orb::NewFloatingUnitWithPercentPrice, + Orb::NewFloatingMatrixWithAllocationPrice, Orb::NewFloatingTieredWithProrationPrice, Orb::NewFloatingUnitWithProrationPrice, Orb::NewFloatingGroupedAllocationPrice, + Orb::NewFloatingBulkWithProrationPrice, Orb::NewFloatingGroupedWithProratedMinimumPrice, Orb::NewFloatingGroupedWithMeteredMinimumPrice, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds, Orb::NewFloatingMatrixWithDisplayNamePrice, - Orb::NewFloatingBulkWithProrationPrice, Orb::NewFloatingGroupedTieredPackagePrice, + Orb::NewFloatingMaxGroupTieredPackagePrice, Orb::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::NewFloatingCumulativeGroupedBulkPrice, - Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds, Orb::NewFloatingMinimumCompositePrice ) ), @@ -651,7 +651,7 @@ module Orb end end - # The definition of a new price to create and add to the subscription. + # New floating price request body params. module Price extend Orb::Internal::Type::Union @@ -659,31 +659,31 @@ module Orb T.type_alias do T.any( Orb::NewFloatingUnitPrice, - Orb::NewFloatingPackagePrice, - Orb::NewFloatingMatrixPrice, - Orb::NewFloatingMatrixWithAllocationPrice, Orb::NewFloatingTieredPrice, Orb::NewFloatingBulkPrice, + Orb::NewFloatingPackagePrice, + Orb::NewFloatingMatrixPrice, Orb::NewFloatingThresholdTotalAmountPrice, Orb::NewFloatingTieredPackagePrice, - Orb::NewFloatingGroupedTieredPrice, - Orb::NewFloatingMaxGroupTieredPackagePrice, Orb::NewFloatingTieredWithMinimumPrice, - Orb::NewFloatingPackageWithAllocationPrice, + Orb::NewFloatingGroupedTieredPrice, Orb::NewFloatingTieredPackageWithMinimumPrice, + Orb::NewFloatingPackageWithAllocationPrice, Orb::NewFloatingUnitWithPercentPrice, + Orb::NewFloatingMatrixWithAllocationPrice, Orb::NewFloatingTieredWithProrationPrice, Orb::NewFloatingUnitWithProrationPrice, Orb::NewFloatingGroupedAllocationPrice, + Orb::NewFloatingBulkWithProrationPrice, Orb::NewFloatingGroupedWithProratedMinimumPrice, Orb::NewFloatingGroupedWithMeteredMinimumPrice, + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds, Orb::NewFloatingMatrixWithDisplayNamePrice, - Orb::NewFloatingBulkWithProrationPrice, Orb::NewFloatingGroupedTieredPackagePrice, + Orb::NewFloatingMaxGroupTieredPackagePrice, Orb::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::NewFloatingCumulativeGroupedBulkPrice, - Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds, Orb::NewFloatingMinimumCompositePrice ) end @@ -709,13 +709,27 @@ module Orb sig { returns(String) } attr_accessor :currency - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_with_min_max_thresholds_config + # Configuration for grouped_with_min_max_thresholds pricing + sig do + returns( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig + ) + end + attr_reader :grouped_with_min_max_thresholds_config + + sig do + params( + grouped_with_min_max_thresholds_config: + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig::OrHash + ).void + end + attr_writer :grouped_with_min_max_thresholds_config # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -813,7 +827,7 @@ module Orb Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, currency: String, grouped_with_min_max_thresholds_config: - T::Hash[Symbol, T.anything], + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig::OrHash, item_id: String, name: String, billable_metric_id: T.nilable(String), @@ -844,6 +858,7 @@ module Orb cadence:, # An ISO 4217 currency string for which this price is billed in. currency:, + # Configuration for grouped_with_min_max_thresholds pricing grouped_with_min_max_thresholds_config:, # The id of the item the price will be associated with. item_id:, @@ -878,6 +893,7 @@ module Orb # by setting the value to `null`, and the entire metadata mapping can be cleared # by setting `metadata` to `null`. metadata: nil, + # The pricing model type model_type: :grouped_with_min_max_thresholds ) end @@ -889,7 +905,7 @@ module Orb Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, currency: String, grouped_with_min_max_thresholds_config: - T::Hash[Symbol, T.anything], + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, model_type: Symbol, name: String, @@ -973,6 +989,66 @@ module Orb def self.values end end + + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, + Orb::Internal::AnyHash + ) + end + + # The event property used to group before applying thresholds + sig { returns(String) } + attr_accessor :grouping_key + + # The maximum amount to charge each group + sig { returns(String) } + attr_accessor :maximum_charge + + # The minimum amount to charge each group, regardless of usage + sig { returns(String) } + attr_accessor :minimum_charge + + # The base price charged per group + sig { returns(String) } + attr_accessor :per_unit_rate + + # Configuration for grouped_with_min_max_thresholds pricing + sig do + params( + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + ).returns(T.attached_class) + end + def self.new( + # The event property used to group before applying thresholds + grouping_key:, + # The maximum amount to charge each group + maximum_charge:, + # The minimum amount to charge each group, regardless of usage + minimum_charge:, + # The base price charged per group + per_unit_rate: + ) + end + + sig do + override.returns( + { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + ) + end + def to_hash + end + end end sig do diff --git a/rbi/orb/models/subscription_schedule_plan_change_params.rbi b/rbi/orb/models/subscription_schedule_plan_change_params.rbi index faddab68..73f5e85f 100644 --- a/rbi/orb/models/subscription_schedule_plan_change_params.rbi +++ b/rbi/orb/models/subscription_schedule_plan_change_params.rbi @@ -629,37 +629,37 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :plan_phase_order - # The definition of a new price to create and add to the subscription. + # New subscription price request body params. sig do returns( T.nilable( T.any( Orb::NewSubscriptionUnitPrice, - Orb::NewSubscriptionPackagePrice, - Orb::NewSubscriptionMatrixPrice, Orb::NewSubscriptionTieredPrice, Orb::NewSubscriptionBulkPrice, + Orb::NewSubscriptionPackagePrice, + Orb::NewSubscriptionMatrixPrice, Orb::NewSubscriptionThresholdTotalAmountPrice, Orb::NewSubscriptionTieredPackagePrice, Orb::NewSubscriptionTieredWithMinimumPrice, - Orb::NewSubscriptionUnitWithPercentPrice, + Orb::NewSubscriptionGroupedTieredPrice, + Orb::NewSubscriptionTieredPackageWithMinimumPrice, Orb::NewSubscriptionPackageWithAllocationPrice, - Orb::NewSubscriptionTierWithProrationPrice, + Orb::NewSubscriptionUnitWithPercentPrice, + Orb::NewSubscriptionMatrixWithAllocationPrice, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration, Orb::NewSubscriptionUnitWithProrationPrice, Orb::NewSubscriptionGroupedAllocationPrice, - Orb::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::NewSubscriptionBulkWithProrationPrice, - Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::NewSubscriptionMaxGroupTieredPackagePrice, + Orb::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::NewSubscriptionGroupedWithMeteredMinimumPrice, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::NewSubscriptionMatrixWithDisplayNamePrice, Orb::NewSubscriptionGroupedTieredPackagePrice, - Orb::NewSubscriptionMatrixWithAllocationPrice, - Orb::NewSubscriptionTieredPackageWithMinimumPrice, - Orb::NewSubscriptionGroupedTieredPrice, - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds, + Orb::NewSubscriptionMaxGroupTieredPackagePrice, + Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice, + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice, + Orb::NewSubscriptionCumulativeGroupedBulkPrice, Orb::NewSubscriptionMinimumCompositePrice ) ) @@ -690,31 +690,31 @@ module Orb T.nilable( T.any( Orb::NewSubscriptionUnitPrice::OrHash, - Orb::NewSubscriptionPackagePrice::OrHash, - Orb::NewSubscriptionMatrixPrice::OrHash, Orb::NewSubscriptionTieredPrice::OrHash, Orb::NewSubscriptionBulkPrice::OrHash, + Orb::NewSubscriptionPackagePrice::OrHash, + Orb::NewSubscriptionMatrixPrice::OrHash, Orb::NewSubscriptionThresholdTotalAmountPrice::OrHash, Orb::NewSubscriptionTieredPackagePrice::OrHash, Orb::NewSubscriptionTieredWithMinimumPrice::OrHash, - Orb::NewSubscriptionUnitWithPercentPrice::OrHash, + Orb::NewSubscriptionGroupedTieredPrice::OrHash, + Orb::NewSubscriptionTieredPackageWithMinimumPrice::OrHash, Orb::NewSubscriptionPackageWithAllocationPrice::OrHash, - Orb::NewSubscriptionTierWithProrationPrice::OrHash, + Orb::NewSubscriptionUnitWithPercentPrice::OrHash, + Orb::NewSubscriptionMatrixWithAllocationPrice::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::OrHash, Orb::NewSubscriptionUnitWithProrationPrice::OrHash, Orb::NewSubscriptionGroupedAllocationPrice::OrHash, - Orb::NewSubscriptionGroupedWithProratedMinimumPrice::OrHash, Orb::NewSubscriptionBulkWithProrationPrice::OrHash, - Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::OrHash, - Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::OrHash, - Orb::NewSubscriptionCumulativeGroupedBulkPrice::OrHash, - Orb::NewSubscriptionMaxGroupTieredPackagePrice::OrHash, + Orb::NewSubscriptionGroupedWithProratedMinimumPrice::OrHash, Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::OrHash, Orb::NewSubscriptionMatrixWithDisplayNamePrice::OrHash, Orb::NewSubscriptionGroupedTieredPackagePrice::OrHash, - Orb::NewSubscriptionMatrixWithAllocationPrice::OrHash, - Orb::NewSubscriptionTieredPackageWithMinimumPrice::OrHash, - Orb::NewSubscriptionGroupedTieredPrice::OrHash, - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::OrHash, + Orb::NewSubscriptionMaxGroupTieredPackagePrice::OrHash, + Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::OrHash, + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::OrHash, + Orb::NewSubscriptionCumulativeGroupedBulkPrice::OrHash, Orb::NewSubscriptionMinimumCompositePrice::OrHash ) ), @@ -742,7 +742,7 @@ module Orb minimum_amount: nil, # The phase to add this price to. plan_phase_order: nil, - # The definition of a new price to create and add to the subscription. + # New subscription price request body params. price: nil, # The id of the price to add to the subscription. price_id: nil, @@ -767,31 +767,31 @@ module Orb T.nilable( T.any( Orb::NewSubscriptionUnitPrice, - Orb::NewSubscriptionPackagePrice, - Orb::NewSubscriptionMatrixPrice, Orb::NewSubscriptionTieredPrice, Orb::NewSubscriptionBulkPrice, + Orb::NewSubscriptionPackagePrice, + Orb::NewSubscriptionMatrixPrice, Orb::NewSubscriptionThresholdTotalAmountPrice, Orb::NewSubscriptionTieredPackagePrice, Orb::NewSubscriptionTieredWithMinimumPrice, - Orb::NewSubscriptionUnitWithPercentPrice, + Orb::NewSubscriptionGroupedTieredPrice, + Orb::NewSubscriptionTieredPackageWithMinimumPrice, Orb::NewSubscriptionPackageWithAllocationPrice, - Orb::NewSubscriptionTierWithProrationPrice, + Orb::NewSubscriptionUnitWithPercentPrice, + Orb::NewSubscriptionMatrixWithAllocationPrice, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration, Orb::NewSubscriptionUnitWithProrationPrice, Orb::NewSubscriptionGroupedAllocationPrice, - Orb::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::NewSubscriptionBulkWithProrationPrice, - Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::NewSubscriptionMaxGroupTieredPackagePrice, + Orb::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::NewSubscriptionGroupedWithMeteredMinimumPrice, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::NewSubscriptionMatrixWithDisplayNamePrice, Orb::NewSubscriptionGroupedTieredPackagePrice, - Orb::NewSubscriptionMatrixWithAllocationPrice, - Orb::NewSubscriptionTieredPackageWithMinimumPrice, - Orb::NewSubscriptionGroupedTieredPrice, - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds, + Orb::NewSubscriptionMaxGroupTieredPackagePrice, + Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice, + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice, + Orb::NewSubscriptionCumulativeGroupedBulkPrice, Orb::NewSubscriptionMinimumCompositePrice ) ), @@ -803,7 +803,7 @@ module Orb def to_hash end - # The definition of a new price to create and add to the subscription. + # New subscription price request body params. module Price extend Orb::Internal::Type::Union @@ -811,40 +811,40 @@ module Orb T.type_alias do T.any( Orb::NewSubscriptionUnitPrice, - Orb::NewSubscriptionPackagePrice, - Orb::NewSubscriptionMatrixPrice, Orb::NewSubscriptionTieredPrice, Orb::NewSubscriptionBulkPrice, + Orb::NewSubscriptionPackagePrice, + Orb::NewSubscriptionMatrixPrice, Orb::NewSubscriptionThresholdTotalAmountPrice, Orb::NewSubscriptionTieredPackagePrice, Orb::NewSubscriptionTieredWithMinimumPrice, - Orb::NewSubscriptionUnitWithPercentPrice, + Orb::NewSubscriptionGroupedTieredPrice, + Orb::NewSubscriptionTieredPackageWithMinimumPrice, Orb::NewSubscriptionPackageWithAllocationPrice, - Orb::NewSubscriptionTierWithProrationPrice, + Orb::NewSubscriptionUnitWithPercentPrice, + Orb::NewSubscriptionMatrixWithAllocationPrice, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration, Orb::NewSubscriptionUnitWithProrationPrice, Orb::NewSubscriptionGroupedAllocationPrice, - Orb::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::NewSubscriptionBulkWithProrationPrice, - Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::NewSubscriptionMaxGroupTieredPackagePrice, + Orb::NewSubscriptionGroupedWithProratedMinimumPrice, Orb::NewSubscriptionGroupedWithMeteredMinimumPrice, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds, Orb::NewSubscriptionMatrixWithDisplayNamePrice, Orb::NewSubscriptionGroupedTieredPackagePrice, - Orb::NewSubscriptionMatrixWithAllocationPrice, - Orb::NewSubscriptionTieredPackageWithMinimumPrice, - Orb::NewSubscriptionGroupedTieredPrice, - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds, + Orb::NewSubscriptionMaxGroupTieredPackagePrice, + Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice, + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice, + Orb::NewSubscriptionCumulativeGroupedBulkPrice, Orb::NewSubscriptionMinimumCompositePrice ) end - class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + class TieredWithProration < Orb::Internal::Type::BaseModel OrHash = T.type_alias do T.any( - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration, Orb::Internal::AnyHash ) end @@ -852,18 +852,16 @@ module Orb # The cadence to bill for this price on. sig do returns( - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence::OrSymbol ) end attr_accessor :cadence - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_with_min_max_thresholds_config - # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -871,6 +869,22 @@ module Orb sig { returns(String) } attr_accessor :name + # Configuration for tiered_with_proration pricing + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig + ) + end + attr_reader :tiered_with_proration_config + + sig do + params( + tiered_with_proration_config: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::OrHash + ).void + end + attr_writer :tiered_with_proration_config + # The id of the billable metric for the price. Only needed if the price is # usage-based. sig { returns(T.nilable(String)) } @@ -968,11 +982,11 @@ module Orb sig do params( cadence: - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, - grouped_with_min_max_thresholds_config: - T::Hash[Symbol, T.anything], + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence::OrSymbol, item_id: String, name: String, + tiered_with_proration_config: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -1001,11 +1015,12 @@ module Orb def self.new( # The cadence to bill for this price on. cadence:, - grouped_with_min_max_thresholds_config:, # The id of the item the price will be associated with. item_id:, # The name of the price. name:, + # Configuration for tiered_with_proration pricing + tiered_with_proration_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. billable_metric_id: nil, @@ -1041,7 +1056,8 @@ module Orb # A transient ID that can be used to reference this price when adding adjustments # in the same API call. reference_id: nil, - model_type: :grouped_with_min_max_thresholds + # The pricing model type + model_type: :tiered_with_proration ) end @@ -1049,12 +1065,12 @@ module Orb override.returns( { cadence: - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, - grouped_with_min_max_thresholds_config: - T::Hash[Symbol, T.anything], + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence::OrSymbol, item_id: String, model_type: Symbol, name: String, + tiered_with_proration_config: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), billing_cycle_configuration: @@ -1091,7 +1107,7 @@ module Orb T.type_alias do T.all( Symbol, - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence ) end OrSymbol = T.type_alias { T.any(Symbol, String) } @@ -1099,504 +1115,1374 @@ module Orb ANNUAL = T.let( :annual, - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) SEMI_ANNUAL = T.let( :semi_annual, - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) MONTHLY = T.let( :monthly, - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) QUARTERLY = T.let( :quarterly, - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) ONE_TIME = T.let( :one_time, - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) CUSTOM = T.let( :custom, - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ) sig do override.returns( T::Array[ - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::Cadence::TaggedSymbol ] ) end def self.values end end - end - - sig do - override.returns( - T::Array[ - Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Variants - ] - ) - end - def self.variants - end - end - end - # Reset billing periods to be aligned with the plan change's effective date or - # start of the month. Defaults to `unchanged` which keeps subscription's existing - # billing cycle alignment. - module BillingCycleAlignment - extend Orb::Internal::Type::Enum + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig, + Orb::Internal::AnyHash + ) + end - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } + # Tiers for rating based on total usage quantities into the specified tier with + # proration + sig do + returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier + ] + ) + end + attr_accessor :tiers - UNCHANGED = - T.let( - :unchanged, - Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::TaggedSymbol - ) - PLAN_CHANGE_DATE = - T.let( - :plan_change_date, - Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::TaggedSymbol - ) - START_OF_MONTH = - T.let( - :start_of_month, - Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::TaggedSymbol - ) + # Configuration for tiered_with_proration pricing + sig do + params( + tiers: + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Tiers for rating based on total usage quantities into the specified tier with + # proration + tiers: + ) + end - sig do - override.returns( - T::Array[ - Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::TaggedSymbol - ] - ) - end - def self.values - end - end + sig do + override.returns( + { + tiers: + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier + ] + } + ) + end + def to_hash + end - class RemoveAdjustment < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::SubscriptionSchedulePlanChangeParams::RemoveAdjustment, - Orb::Internal::AnyHash - ) - end + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier, + Orb::Internal::AnyHash + ) + end - # The id of the adjustment to remove on the subscription. - sig { returns(String) } - attr_accessor :adjustment_id + # Inclusive tier starting value + sig { returns(String) } + attr_accessor :tier_lower_bound - sig { params(adjustment_id: String).returns(T.attached_class) } - def self.new( - # The id of the adjustment to remove on the subscription. - adjustment_id: - ) - end + # Amount per unit + sig { returns(String) } + attr_accessor :unit_amount - sig { override.returns({ adjustment_id: String }) } - def to_hash - end - end + # Configuration for a single tiered with proration tier + sig do + params(tier_lower_bound: String, unit_amount: String).returns( + T.attached_class + ) + end + def self.new( + # Inclusive tier starting value + tier_lower_bound:, + # Amount per unit + unit_amount: + ) + end - class RemovePrice < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::SubscriptionSchedulePlanChangeParams::RemovePrice, - Orb::Internal::AnyHash - ) + sig do + override.returns( + { tier_lower_bound: String, unit_amount: String } + ) + end + def to_hash + end + end + end end - # The external price id of the price to remove on the subscription. - sig { returns(T.nilable(String)) } - attr_accessor :external_price_id + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds, + Orb::Internal::AnyHash + ) + end - # The id of the price to remove on the subscription. - sig { returns(T.nilable(String)) } - attr_accessor :price_id + # The cadence to bill for this price on. + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol + ) + end + attr_accessor :cadence - sig do - params( - external_price_id: T.nilable(String), - price_id: T.nilable(String) - ).returns(T.attached_class) - end - def self.new( - # The external price id of the price to remove on the subscription. - external_price_id: nil, - # The id of the price to remove on the subscription. - price_id: nil - ) - end + # Configuration for grouped_with_min_max_thresholds pricing + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig + ) + end + attr_reader :grouped_with_min_max_thresholds_config - sig do - override.returns( - { - external_price_id: T.nilable(String), - price_id: T.nilable(String) - } - ) - end - def to_hash - end - end + sig do + params( + grouped_with_min_max_thresholds_config: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig::OrHash + ).void + end + attr_writer :grouped_with_min_max_thresholds_config - class ReplaceAdjustment < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment, - Orb::Internal::AnyHash - ) - end + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id - # The definition of a new adjustment to create and add to the subscription. - sig do - returns( - T.any( - Orb::NewPercentageDiscount, - Orb::NewUsageDiscount, - Orb::NewAmountDiscount, - Orb::NewMinimum, - Orb::NewMaximum - ) - ) - end - attr_accessor :adjustment + # The pricing model type + sig { returns(Symbol) } + attr_accessor :model_type - # The id of the adjustment on the plan to replace in the subscription. - sig { returns(String) } - attr_accessor :replaces_adjustment_id + # The name of the price. + sig { returns(String) } + attr_accessor :name - sig do - params( - adjustment: - T.any( - Orb::NewPercentageDiscount::OrHash, - Orb::NewUsageDiscount::OrHash, - Orb::NewAmountDiscount::OrHash, - Orb::NewMinimum::OrHash, - Orb::NewMaximum::OrHash - ), - replaces_adjustment_id: String - ).returns(T.attached_class) - end - def self.new( - # The definition of a new adjustment to create and add to the subscription. - adjustment:, - # The id of the adjustment on the plan to replace in the subscription. - replaces_adjustment_id: - ) - end + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id - sig do - override.returns( - { - adjustment: - T.any( - Orb::NewPercentageDiscount, - Orb::NewUsageDiscount, - Orb::NewAmountDiscount, - Orb::NewMinimum, - Orb::NewMaximum - ), - replaces_adjustment_id: String - } - ) - end - def to_hash - end + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance - # The definition of a new adjustment to create and add to the subscription. - module Adjustment - extend Orb::Internal::Type::Union + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration - Variants = - T.type_alias do - T.any( - Orb::NewPercentageDiscount, - Orb::NewUsageDiscount, - Orb::NewAmountDiscount, - Orb::NewMinimum, - Orb::NewMaximum + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) ) end + attr_accessor :conversion_rate_config - sig do - override.returns( - T::Array[ - Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Variants - ] - ) - end - def self.variants - end - end - end + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + sig { returns(T.nilable(String)) } + attr_accessor :currency - class ReplacePrice < Orb::Internal::Type::BaseModel - OrHash = - T.type_alias do - T.any( - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice, - Orb::Internal::AnyHash - ) - end + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration - # The id of the price on the plan to replace in the subscription. - sig { returns(String) } - attr_accessor :replaces_price_id + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration - # The definition of a new allocation price to create and add to the subscription. - sig { returns(T.nilable(Orb::NewAllocationPrice)) } - attr_reader :allocation_price + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id - sig do - params( - allocation_price: T.nilable(Orb::NewAllocationPrice::OrHash) - ).void - end - attr_writer :allocation_price + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity - # [DEPRECATED] Use add_adjustments instead. The subscription's discounts for the - # replacement price. - sig { returns(T.nilable(T::Array[Orb::DiscountOverride])) } - attr_accessor :discounts + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + sig { returns(T.nilable(String)) } + attr_accessor :reference_id + + sig do + params( + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + grouped_with_min_max_thresholds_config: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig::OrHash, + item_id: String, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String), + model_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + # Configuration for grouped_with_min_max_thresholds pricing + grouped_with_min_max_thresholds_config:, + # The id of the item the price will be associated with. + item_id:, + # The name of the price. + name:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + currency: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + reference_id: nil, + # The pricing model type + model_type: :grouped_with_min_max_thresholds + ) + end + + sig do + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, + grouped_with_min_max_thresholds_config: + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, + item_id: String, + model_type: Symbol, + name: String, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end + + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, + Orb::Internal::AnyHash + ) + end + + # The event property used to group before applying thresholds + sig { returns(String) } + attr_accessor :grouping_key + + # The maximum amount to charge each group + sig { returns(String) } + attr_accessor :maximum_charge + + # The minimum amount to charge each group, regardless of usage + sig { returns(String) } + attr_accessor :minimum_charge + + # The base price charged per group + sig { returns(String) } + attr_accessor :per_unit_rate + + # Configuration for grouped_with_min_max_thresholds pricing + sig do + params( + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + ).returns(T.attached_class) + end + def self.new( + # The event property used to group before applying thresholds + grouping_key:, + # The maximum amount to charge each group + maximum_charge:, + # The minimum amount to charge each group, regardless of usage + minimum_charge:, + # The base price charged per group + per_unit_rate: + ) + end + + sig do + override.returns( + { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + ) + end + def to_hash + end + end + end + + sig do + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::Variants + ] + ) + end + def self.variants + end + end + end + + # Reset billing periods to be aligned with the plan change's effective date or + # start of the month. Defaults to `unchanged` which keeps subscription's existing + # billing cycle alignment. + module BillingCycleAlignment + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + UNCHANGED = + T.let( + :unchanged, + Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::TaggedSymbol + ) + PLAN_CHANGE_DATE = + T.let( + :plan_change_date, + Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::TaggedSymbol + ) + START_OF_MONTH = + T.let( + :start_of_month, + Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::BillingCycleAlignment::TaggedSymbol + ] + ) + end + def self.values + end + end + + class RemoveAdjustment < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::RemoveAdjustment, + Orb::Internal::AnyHash + ) + end + + # The id of the adjustment to remove on the subscription. + sig { returns(String) } + attr_accessor :adjustment_id + + sig { params(adjustment_id: String).returns(T.attached_class) } + def self.new( + # The id of the adjustment to remove on the subscription. + adjustment_id: + ) + end + + sig { override.returns({ adjustment_id: String }) } + def to_hash + end + end + + class RemovePrice < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::RemovePrice, + Orb::Internal::AnyHash + ) + end + + # The external price id of the price to remove on the subscription. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # The id of the price to remove on the subscription. + sig { returns(T.nilable(String)) } + attr_accessor :price_id + + sig do + params( + external_price_id: T.nilable(String), + price_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # The external price id of the price to remove on the subscription. + external_price_id: nil, + # The id of the price to remove on the subscription. + price_id: nil + ) + end + + sig do + override.returns( + { + external_price_id: T.nilable(String), + price_id: T.nilable(String) + } + ) + end + def to_hash + end + end + + class ReplaceAdjustment < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment, + Orb::Internal::AnyHash + ) + end + + # The definition of a new adjustment to create and add to the subscription. + sig do + returns( + T.any( + Orb::NewPercentageDiscount, + Orb::NewUsageDiscount, + Orb::NewAmountDiscount, + Orb::NewMinimum, + Orb::NewMaximum + ) + ) + end + attr_accessor :adjustment + + # The id of the adjustment on the plan to replace in the subscription. + sig { returns(String) } + attr_accessor :replaces_adjustment_id + + sig do + params( + adjustment: + T.any( + Orb::NewPercentageDiscount::OrHash, + Orb::NewUsageDiscount::OrHash, + Orb::NewAmountDiscount::OrHash, + Orb::NewMinimum::OrHash, + Orb::NewMaximum::OrHash + ), + replaces_adjustment_id: String + ).returns(T.attached_class) + end + def self.new( + # The definition of a new adjustment to create and add to the subscription. + adjustment:, + # The id of the adjustment on the plan to replace in the subscription. + replaces_adjustment_id: + ) + end + + sig do + override.returns( + { + adjustment: + T.any( + Orb::NewPercentageDiscount, + Orb::NewUsageDiscount, + Orb::NewAmountDiscount, + Orb::NewMinimum, + Orb::NewMaximum + ), + replaces_adjustment_id: String + } + ) + end + def to_hash + end + + # The definition of a new adjustment to create and add to the subscription. + module Adjustment + extend Orb::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + Orb::NewPercentageDiscount, + Orb::NewUsageDiscount, + Orb::NewAmountDiscount, + Orb::NewMinimum, + Orb::NewMaximum + ) + end + + sig do + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplaceAdjustment::Adjustment::Variants + ] + ) + end + def self.variants + end + end + end + + class ReplacePrice < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice, + Orb::Internal::AnyHash + ) + end + + # The id of the price on the plan to replace in the subscription. + sig { returns(String) } + attr_accessor :replaces_price_id + + # The definition of a new allocation price to create and add to the subscription. + sig { returns(T.nilable(Orb::NewAllocationPrice)) } + attr_reader :allocation_price + + sig do + params( + allocation_price: T.nilable(Orb::NewAllocationPrice::OrHash) + ).void + end + attr_writer :allocation_price + + # [DEPRECATED] Use add_adjustments instead. The subscription's discounts for the + # replacement price. + sig { returns(T.nilable(T::Array[Orb::DiscountOverride])) } + attr_accessor :discounts + + # The external price id of the price to add to the subscription. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # The new quantity of the price, if the price is a fixed price. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # [DEPRECATED] Use add_adjustments instead. The subscription's maximum amount for + # the replacement price. + sig { returns(T.nilable(String)) } + attr_accessor :maximum_amount + + # [DEPRECATED] Use add_adjustments instead. The subscription's minimum amount for + # the replacement price. + sig { returns(T.nilable(String)) } + attr_accessor :minimum_amount + + # New subscription price request body params. + sig do + returns( + T.nilable( + T.any( + Orb::NewSubscriptionUnitPrice, + Orb::NewSubscriptionTieredPrice, + Orb::NewSubscriptionBulkPrice, + Orb::NewSubscriptionPackagePrice, + Orb::NewSubscriptionMatrixPrice, + Orb::NewSubscriptionThresholdTotalAmountPrice, + Orb::NewSubscriptionTieredPackagePrice, + Orb::NewSubscriptionTieredWithMinimumPrice, + Orb::NewSubscriptionGroupedTieredPrice, + Orb::NewSubscriptionTieredPackageWithMinimumPrice, + Orb::NewSubscriptionPackageWithAllocationPrice, + Orb::NewSubscriptionUnitWithPercentPrice, + Orb::NewSubscriptionMatrixWithAllocationPrice, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration, + Orb::NewSubscriptionUnitWithProrationPrice, + Orb::NewSubscriptionGroupedAllocationPrice, + Orb::NewSubscriptionBulkWithProrationPrice, + Orb::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::NewSubscriptionGroupedWithMeteredMinimumPrice, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, + Orb::NewSubscriptionMatrixWithDisplayNamePrice, + Orb::NewSubscriptionGroupedTieredPackagePrice, + Orb::NewSubscriptionMaxGroupTieredPackagePrice, + Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice, + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice, + Orb::NewSubscriptionCumulativeGroupedBulkPrice, + Orb::NewSubscriptionMinimumCompositePrice + ) + ) + ) + end + attr_accessor :price + + # The id of the price to add to the subscription. + sig { returns(T.nilable(String)) } + attr_accessor :price_id + + sig do + params( + replaces_price_id: String, + allocation_price: T.nilable(Orb::NewAllocationPrice::OrHash), + discounts: T.nilable(T::Array[Orb::DiscountOverride::OrHash]), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + maximum_amount: T.nilable(String), + minimum_amount: T.nilable(String), + price: + T.nilable( + T.any( + Orb::NewSubscriptionUnitPrice::OrHash, + Orb::NewSubscriptionTieredPrice::OrHash, + Orb::NewSubscriptionBulkPrice::OrHash, + Orb::NewSubscriptionPackagePrice::OrHash, + Orb::NewSubscriptionMatrixPrice::OrHash, + Orb::NewSubscriptionThresholdTotalAmountPrice::OrHash, + Orb::NewSubscriptionTieredPackagePrice::OrHash, + Orb::NewSubscriptionTieredWithMinimumPrice::OrHash, + Orb::NewSubscriptionGroupedTieredPrice::OrHash, + Orb::NewSubscriptionTieredPackageWithMinimumPrice::OrHash, + Orb::NewSubscriptionPackageWithAllocationPrice::OrHash, + Orb::NewSubscriptionUnitWithPercentPrice::OrHash, + Orb::NewSubscriptionMatrixWithAllocationPrice::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::OrHash, + Orb::NewSubscriptionUnitWithProrationPrice::OrHash, + Orb::NewSubscriptionGroupedAllocationPrice::OrHash, + Orb::NewSubscriptionBulkWithProrationPrice::OrHash, + Orb::NewSubscriptionGroupedWithProratedMinimumPrice::OrHash, + Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::OrHash, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::OrHash, + Orb::NewSubscriptionMatrixWithDisplayNamePrice::OrHash, + Orb::NewSubscriptionGroupedTieredPackagePrice::OrHash, + Orb::NewSubscriptionMaxGroupTieredPackagePrice::OrHash, + Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::OrHash, + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::OrHash, + Orb::NewSubscriptionCumulativeGroupedBulkPrice::OrHash, + Orb::NewSubscriptionMinimumCompositePrice::OrHash + ) + ), + price_id: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # The id of the price on the plan to replace in the subscription. + replaces_price_id:, + # The definition of a new allocation price to create and add to the subscription. + allocation_price: nil, + # [DEPRECATED] Use add_adjustments instead. The subscription's discounts for the + # replacement price. + discounts: nil, + # The external price id of the price to add to the subscription. + external_price_id: nil, + # The new quantity of the price, if the price is a fixed price. + fixed_price_quantity: nil, + # [DEPRECATED] Use add_adjustments instead. The subscription's maximum amount for + # the replacement price. + maximum_amount: nil, + # [DEPRECATED] Use add_adjustments instead. The subscription's minimum amount for + # the replacement price. + minimum_amount: nil, + # New subscription price request body params. + price: nil, + # The id of the price to add to the subscription. + price_id: nil + ) + end + + sig do + override.returns( + { + replaces_price_id: String, + allocation_price: T.nilable(Orb::NewAllocationPrice), + discounts: T.nilable(T::Array[Orb::DiscountOverride]), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + maximum_amount: T.nilable(String), + minimum_amount: T.nilable(String), + price: + T.nilable( + T.any( + Orb::NewSubscriptionUnitPrice, + Orb::NewSubscriptionTieredPrice, + Orb::NewSubscriptionBulkPrice, + Orb::NewSubscriptionPackagePrice, + Orb::NewSubscriptionMatrixPrice, + Orb::NewSubscriptionThresholdTotalAmountPrice, + Orb::NewSubscriptionTieredPackagePrice, + Orb::NewSubscriptionTieredWithMinimumPrice, + Orb::NewSubscriptionGroupedTieredPrice, + Orb::NewSubscriptionTieredPackageWithMinimumPrice, + Orb::NewSubscriptionPackageWithAllocationPrice, + Orb::NewSubscriptionUnitWithPercentPrice, + Orb::NewSubscriptionMatrixWithAllocationPrice, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration, + Orb::NewSubscriptionUnitWithProrationPrice, + Orb::NewSubscriptionGroupedAllocationPrice, + Orb::NewSubscriptionBulkWithProrationPrice, + Orb::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::NewSubscriptionGroupedWithMeteredMinimumPrice, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, + Orb::NewSubscriptionMatrixWithDisplayNamePrice, + Orb::NewSubscriptionGroupedTieredPackagePrice, + Orb::NewSubscriptionMaxGroupTieredPackagePrice, + Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice, + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice, + Orb::NewSubscriptionCumulativeGroupedBulkPrice, + Orb::NewSubscriptionMinimumCompositePrice + ) + ), + price_id: T.nilable(String) + } + ) + end + def to_hash + end + + # New subscription price request body params. + module Price + extend Orb::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + Orb::NewSubscriptionUnitPrice, + Orb::NewSubscriptionTieredPrice, + Orb::NewSubscriptionBulkPrice, + Orb::NewSubscriptionPackagePrice, + Orb::NewSubscriptionMatrixPrice, + Orb::NewSubscriptionThresholdTotalAmountPrice, + Orb::NewSubscriptionTieredPackagePrice, + Orb::NewSubscriptionTieredWithMinimumPrice, + Orb::NewSubscriptionGroupedTieredPrice, + Orb::NewSubscriptionTieredPackageWithMinimumPrice, + Orb::NewSubscriptionPackageWithAllocationPrice, + Orb::NewSubscriptionUnitWithPercentPrice, + Orb::NewSubscriptionMatrixWithAllocationPrice, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration, + Orb::NewSubscriptionUnitWithProrationPrice, + Orb::NewSubscriptionGroupedAllocationPrice, + Orb::NewSubscriptionBulkWithProrationPrice, + Orb::NewSubscriptionGroupedWithProratedMinimumPrice, + Orb::NewSubscriptionGroupedWithMeteredMinimumPrice, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, + Orb::NewSubscriptionMatrixWithDisplayNamePrice, + Orb::NewSubscriptionGroupedTieredPackagePrice, + Orb::NewSubscriptionMaxGroupTieredPackagePrice, + Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice, + Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice, + Orb::NewSubscriptionCumulativeGroupedBulkPrice, + Orb::NewSubscriptionMinimumCompositePrice + ) + end + + class TieredWithProration < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration, + Orb::Internal::AnyHash + ) + end + + # The cadence to bill for this price on. + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence::OrSymbol + ) + end + attr_accessor :cadence + + # The id of the item the price will be associated with. + sig { returns(String) } + attr_accessor :item_id + + # The pricing model type + sig { returns(Symbol) } + attr_accessor :model_type + + # The name of the price. + sig { returns(String) } + attr_accessor :name + + # Configuration for tiered_with_proration pricing + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig + ) + end + attr_reader :tiered_with_proration_config + + sig do + params( + tiered_with_proration_config: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::OrHash + ).void + end + attr_writer :tiered_with_proration_config + + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + sig { returns(T.nilable(String)) } + attr_accessor :billable_metric_id + + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :billed_in_advance + + # For custom cadence: specifies the duration of the billing period in days or + # months. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :billing_cycle_configuration + + sig do + params( + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :billing_cycle_configuration + + # The per unit conversion rate of the price currency to the invoicing currency. + sig { returns(T.nilable(Float)) } + attr_accessor :conversion_rate + + # The configuration for the rate of the price currency to the invoicing currency. + sig do + returns( + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ) + ) + end + attr_accessor :conversion_rate_config + + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + sig { returns(T.nilable(String)) } + attr_accessor :currency + + # For dimensional price: specifies a price group and dimension values + sig { returns(T.nilable(Orb::NewDimensionalPriceConfiguration)) } + attr_reader :dimensional_price_configuration + + sig do + params( + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash) + ).void + end + attr_writer :dimensional_price_configuration + + # An alias for the price. + sig { returns(T.nilable(String)) } + attr_accessor :external_price_id + + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + sig { returns(T.nilable(Float)) } + attr_accessor :fixed_price_quantity + + # The property used to group this price on an invoice + sig { returns(T.nilable(String)) } + attr_accessor :invoice_grouping_key + + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + sig { returns(T.nilable(Orb::NewBillingCycleConfiguration)) } + attr_reader :invoicing_cycle_configuration + + sig do + params( + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash) + ).void + end + attr_writer :invoicing_cycle_configuration + + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) } + attr_accessor :metadata + + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + sig { returns(T.nilable(String)) } + attr_accessor :reference_id + + sig do + params( + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence::OrSymbol, + item_id: String, + name: String, + tiered_with_proration_config: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::OrHash, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig::OrHash, + Orb::TieredConversionRateConfig::OrHash + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration::OrHash), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration::OrHash), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String), + model_type: Symbol + ).returns(T.attached_class) + end + def self.new( + # The cadence to bill for this price on. + cadence:, + # The id of the item the price will be associated with. + item_id:, + # The name of the price. + name:, + # Configuration for tiered_with_proration pricing + tiered_with_proration_config:, + # The id of the billable metric for the price. Only needed if the price is + # usage-based. + billable_metric_id: nil, + # If the Price represents a fixed cost, the price will be billed in-advance if + # this is true, and in-arrears if this is false. + billed_in_advance: nil, + # For custom cadence: specifies the duration of the billing period in days or + # months. + billing_cycle_configuration: nil, + # The per unit conversion rate of the price currency to the invoicing currency. + conversion_rate: nil, + # The configuration for the rate of the price currency to the invoicing currency. + conversion_rate_config: nil, + # An ISO 4217 currency string, or custom pricing unit identifier, in which this + # price is billed. + currency: nil, + # For dimensional price: specifies a price group and dimension values + dimensional_price_configuration: nil, + # An alias for the price. + external_price_id: nil, + # If the Price represents a fixed cost, this represents the quantity of units + # applied. + fixed_price_quantity: nil, + # The property used to group this price on an invoice + invoice_grouping_key: nil, + # Within each billing cycle, specifies the cadence at which invoices are produced. + # If unspecified, a single invoice is produced per billing cycle. + invoicing_cycle_configuration: nil, + # User-specified key/value pairs for the resource. Individual keys can be removed + # by setting the value to `null`, and the entire metadata mapping can be cleared + # by setting `metadata` to `null`. + metadata: nil, + # A transient ID that can be used to reference this price when adding adjustments + # in the same API call. + reference_id: nil, + # The pricing model type + model_type: :tiered_with_proration + ) + end + + sig do + override.returns( + { + cadence: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence::OrSymbol, + item_id: String, + model_type: Symbol, + name: String, + tiered_with_proration_config: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig, + billable_metric_id: T.nilable(String), + billed_in_advance: T.nilable(T::Boolean), + billing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + conversion_rate: T.nilable(Float), + conversion_rate_config: + T.nilable( + T.any( + Orb::UnitConversionRateConfig, + Orb::TieredConversionRateConfig + ) + ), + currency: T.nilable(String), + dimensional_price_configuration: + T.nilable(Orb::NewDimensionalPriceConfiguration), + external_price_id: T.nilable(String), + fixed_price_quantity: T.nilable(Float), + invoice_grouping_key: T.nilable(String), + invoicing_cycle_configuration: + T.nilable(Orb::NewBillingCycleConfiguration), + metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]), + reference_id: T.nilable(String) + } + ) + end + def to_hash + end + + # The cadence to bill for this price on. + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ANNUAL = + T.let( + :annual, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( + :semi_annual, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + ) + ONE_TIME = + T.let( + :one_time, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + ) + CUSTOM = + T.let( + :custom, + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::Cadence::TaggedSymbol + ] + ) + end + def self.values + end + end - # The external price id of the price to add to the subscription. - sig { returns(T.nilable(String)) } - attr_accessor :external_price_id + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig, + Orb::Internal::AnyHash + ) + end - # The new quantity of the price, if the price is a fixed price. - sig { returns(T.nilable(Float)) } - attr_accessor :fixed_price_quantity + # Tiers for rating based on total usage quantities into the specified tier with + # proration + sig do + returns( + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier + ] + ) + end + attr_accessor :tiers - # [DEPRECATED] Use add_adjustments instead. The subscription's maximum amount for - # the replacement price. - sig { returns(T.nilable(String)) } - attr_accessor :maximum_amount + # Configuration for tiered_with_proration pricing + sig do + params( + tiers: + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier::OrHash + ] + ).returns(T.attached_class) + end + def self.new( + # Tiers for rating based on total usage quantities into the specified tier with + # proration + tiers: + ) + end - # [DEPRECATED] Use add_adjustments instead. The subscription's minimum amount for - # the replacement price. - sig { returns(T.nilable(String)) } - attr_accessor :minimum_amount + sig do + override.returns( + { + tiers: + T::Array[ + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier + ] + } + ) + end + def to_hash + end - # The definition of a new price to create and add to the subscription. - sig do - returns( - T.nilable( - T.any( - Orb::NewSubscriptionUnitPrice, - Orb::NewSubscriptionPackagePrice, - Orb::NewSubscriptionMatrixPrice, - Orb::NewSubscriptionTieredPrice, - Orb::NewSubscriptionBulkPrice, - Orb::NewSubscriptionThresholdTotalAmountPrice, - Orb::NewSubscriptionTieredPackagePrice, - Orb::NewSubscriptionTieredWithMinimumPrice, - Orb::NewSubscriptionUnitWithPercentPrice, - Orb::NewSubscriptionPackageWithAllocationPrice, - Orb::NewSubscriptionTierWithProrationPrice, - Orb::NewSubscriptionUnitWithProrationPrice, - Orb::NewSubscriptionGroupedAllocationPrice, - Orb::NewSubscriptionGroupedWithProratedMinimumPrice, - Orb::NewSubscriptionBulkWithProrationPrice, - Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::NewSubscriptionMaxGroupTieredPackagePrice, - Orb::NewSubscriptionGroupedWithMeteredMinimumPrice, - Orb::NewSubscriptionMatrixWithDisplayNamePrice, - Orb::NewSubscriptionGroupedTieredPackagePrice, - Orb::NewSubscriptionMatrixWithAllocationPrice, - Orb::NewSubscriptionTieredPackageWithMinimumPrice, - Orb::NewSubscriptionGroupedTieredPrice, - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, - Orb::NewSubscriptionMinimumCompositePrice - ) - ) - ) - end - attr_accessor :price + class Tier < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier, + Orb::Internal::AnyHash + ) + end - # The id of the price to add to the subscription. - sig { returns(T.nilable(String)) } - attr_accessor :price_id + # Inclusive tier starting value + sig { returns(String) } + attr_accessor :tier_lower_bound - sig do - params( - replaces_price_id: String, - allocation_price: T.nilable(Orb::NewAllocationPrice::OrHash), - discounts: T.nilable(T::Array[Orb::DiscountOverride::OrHash]), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - maximum_amount: T.nilable(String), - minimum_amount: T.nilable(String), - price: - T.nilable( - T.any( - Orb::NewSubscriptionUnitPrice::OrHash, - Orb::NewSubscriptionPackagePrice::OrHash, - Orb::NewSubscriptionMatrixPrice::OrHash, - Orb::NewSubscriptionTieredPrice::OrHash, - Orb::NewSubscriptionBulkPrice::OrHash, - Orb::NewSubscriptionThresholdTotalAmountPrice::OrHash, - Orb::NewSubscriptionTieredPackagePrice::OrHash, - Orb::NewSubscriptionTieredWithMinimumPrice::OrHash, - Orb::NewSubscriptionUnitWithPercentPrice::OrHash, - Orb::NewSubscriptionPackageWithAllocationPrice::OrHash, - Orb::NewSubscriptionTierWithProrationPrice::OrHash, - Orb::NewSubscriptionUnitWithProrationPrice::OrHash, - Orb::NewSubscriptionGroupedAllocationPrice::OrHash, - Orb::NewSubscriptionGroupedWithProratedMinimumPrice::OrHash, - Orb::NewSubscriptionBulkWithProrationPrice::OrHash, - Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::OrHash, - Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::OrHash, - Orb::NewSubscriptionCumulativeGroupedBulkPrice::OrHash, - Orb::NewSubscriptionMaxGroupTieredPackagePrice::OrHash, - Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::OrHash, - Orb::NewSubscriptionMatrixWithDisplayNamePrice::OrHash, - Orb::NewSubscriptionGroupedTieredPackagePrice::OrHash, - Orb::NewSubscriptionMatrixWithAllocationPrice::OrHash, - Orb::NewSubscriptionTieredPackageWithMinimumPrice::OrHash, - Orb::NewSubscriptionGroupedTieredPrice::OrHash, - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::OrHash, - Orb::NewSubscriptionMinimumCompositePrice::OrHash - ) - ), - price_id: T.nilable(String) - ).returns(T.attached_class) - end - def self.new( - # The id of the price on the plan to replace in the subscription. - replaces_price_id:, - # The definition of a new allocation price to create and add to the subscription. - allocation_price: nil, - # [DEPRECATED] Use add_adjustments instead. The subscription's discounts for the - # replacement price. - discounts: nil, - # The external price id of the price to add to the subscription. - external_price_id: nil, - # The new quantity of the price, if the price is a fixed price. - fixed_price_quantity: nil, - # [DEPRECATED] Use add_adjustments instead. The subscription's maximum amount for - # the replacement price. - maximum_amount: nil, - # [DEPRECATED] Use add_adjustments instead. The subscription's minimum amount for - # the replacement price. - minimum_amount: nil, - # The definition of a new price to create and add to the subscription. - price: nil, - # The id of the price to add to the subscription. - price_id: nil - ) - end + # Amount per unit + sig { returns(String) } + attr_accessor :unit_amount - sig do - override.returns( - { - replaces_price_id: String, - allocation_price: T.nilable(Orb::NewAllocationPrice), - discounts: T.nilable(T::Array[Orb::DiscountOverride]), - external_price_id: T.nilable(String), - fixed_price_quantity: T.nilable(Float), - maximum_amount: T.nilable(String), - minimum_amount: T.nilable(String), - price: - T.nilable( - T.any( - Orb::NewSubscriptionUnitPrice, - Orb::NewSubscriptionPackagePrice, - Orb::NewSubscriptionMatrixPrice, - Orb::NewSubscriptionTieredPrice, - Orb::NewSubscriptionBulkPrice, - Orb::NewSubscriptionThresholdTotalAmountPrice, - Orb::NewSubscriptionTieredPackagePrice, - Orb::NewSubscriptionTieredWithMinimumPrice, - Orb::NewSubscriptionUnitWithPercentPrice, - Orb::NewSubscriptionPackageWithAllocationPrice, - Orb::NewSubscriptionTierWithProrationPrice, - Orb::NewSubscriptionUnitWithProrationPrice, - Orb::NewSubscriptionGroupedAllocationPrice, - Orb::NewSubscriptionGroupedWithProratedMinimumPrice, - Orb::NewSubscriptionBulkWithProrationPrice, - Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::NewSubscriptionMaxGroupTieredPackagePrice, - Orb::NewSubscriptionGroupedWithMeteredMinimumPrice, - Orb::NewSubscriptionMatrixWithDisplayNamePrice, - Orb::NewSubscriptionGroupedTieredPackagePrice, - Orb::NewSubscriptionMatrixWithAllocationPrice, - Orb::NewSubscriptionTieredPackageWithMinimumPrice, - Orb::NewSubscriptionGroupedTieredPrice, - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, - Orb::NewSubscriptionMinimumCompositePrice + # Configuration for a single tiered with proration tier + sig do + params(tier_lower_bound: String, unit_amount: String).returns( + T.attached_class ) - ), - price_id: T.nilable(String) - } - ) - end - def to_hash - end - - # The definition of a new price to create and add to the subscription. - module Price - extend Orb::Internal::Type::Union + end + def self.new( + # Inclusive tier starting value + tier_lower_bound:, + # Amount per unit + unit_amount: + ) + end - Variants = - T.type_alias do - T.any( - Orb::NewSubscriptionUnitPrice, - Orb::NewSubscriptionPackagePrice, - Orb::NewSubscriptionMatrixPrice, - Orb::NewSubscriptionTieredPrice, - Orb::NewSubscriptionBulkPrice, - Orb::NewSubscriptionThresholdTotalAmountPrice, - Orb::NewSubscriptionTieredPackagePrice, - Orb::NewSubscriptionTieredWithMinimumPrice, - Orb::NewSubscriptionUnitWithPercentPrice, - Orb::NewSubscriptionPackageWithAllocationPrice, - Orb::NewSubscriptionTierWithProrationPrice, - Orb::NewSubscriptionUnitWithProrationPrice, - Orb::NewSubscriptionGroupedAllocationPrice, - Orb::NewSubscriptionGroupedWithProratedMinimumPrice, - Orb::NewSubscriptionBulkWithProrationPrice, - Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice, - Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice, - Orb::NewSubscriptionCumulativeGroupedBulkPrice, - Orb::NewSubscriptionMaxGroupTieredPackagePrice, - Orb::NewSubscriptionGroupedWithMeteredMinimumPrice, - Orb::NewSubscriptionMatrixWithDisplayNamePrice, - Orb::NewSubscriptionGroupedTieredPackagePrice, - Orb::NewSubscriptionMatrixWithAllocationPrice, - Orb::NewSubscriptionTieredPackageWithMinimumPrice, - Orb::NewSubscriptionGroupedTieredPrice, - Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds, - Orb::NewSubscriptionMinimumCompositePrice - ) + sig do + override.returns( + { tier_lower_bound: String, unit_amount: String } + ) + end + def to_hash + end + end end + end class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel OrHash = @@ -1615,13 +2501,27 @@ module Orb end attr_accessor :cadence - sig { returns(T::Hash[Symbol, T.anything]) } - attr_accessor :grouped_with_min_max_thresholds_config + # Configuration for grouped_with_min_max_thresholds pricing + sig do + returns( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig + ) + end + attr_reader :grouped_with_min_max_thresholds_config + + sig do + params( + grouped_with_min_max_thresholds_config: + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig::OrHash + ).void + end + attr_writer :grouped_with_min_max_thresholds_config # The id of the item the price will be associated with. sig { returns(String) } attr_accessor :item_id + # The pricing model type sig { returns(Symbol) } attr_accessor :model_type @@ -1728,7 +2628,7 @@ module Orb cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, grouped_with_min_max_thresholds_config: - T::Hash[Symbol, T.anything], + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig::OrHash, item_id: String, name: String, billable_metric_id: T.nilable(String), @@ -1759,6 +2659,7 @@ module Orb def self.new( # The cadence to bill for this price on. cadence:, + # Configuration for grouped_with_min_max_thresholds pricing grouped_with_min_max_thresholds_config:, # The id of the item the price will be associated with. item_id:, @@ -1799,6 +2700,7 @@ module Orb # A transient ID that can be used to reference this price when adding adjustments # in the same API call. reference_id: nil, + # The pricing model type model_type: :grouped_with_min_max_thresholds ) end @@ -1809,7 +2711,7 @@ module Orb cadence: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, grouped_with_min_max_thresholds_config: - T::Hash[Symbol, T.anything], + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, model_type: Symbol, name: String, @@ -1895,6 +2797,66 @@ module Orb def self.values end end + + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, + Orb::Internal::AnyHash + ) + end + + # The event property used to group before applying thresholds + sig { returns(String) } + attr_accessor :grouping_key + + # The maximum amount to charge each group + sig { returns(String) } + attr_accessor :maximum_charge + + # The minimum amount to charge each group, regardless of usage + sig { returns(String) } + attr_accessor :minimum_charge + + # The base price charged per group + sig { returns(String) } + attr_accessor :per_unit_rate + + # Configuration for grouped_with_min_max_thresholds pricing + sig do + params( + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + ).returns(T.attached_class) + end + def self.new( + # The event property used to group before applying thresholds + grouping_key:, + # The maximum amount to charge each group + maximum_charge:, + # The minimum amount to charge each group, regardless of usage + minimum_charge:, + # The base price charged per group + per_unit_rate: + ) + end + + sig do + override.returns( + { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + ) + end + def to_hash + end + end end sig do diff --git a/rbi/orb/models/tier.rbi b/rbi/orb/models/tier.rbi index c1ec86ef..bb670e98 100644 --- a/rbi/orb/models/tier.rbi +++ b/rbi/orb/models/tier.rbi @@ -13,10 +13,12 @@ module Orb sig { returns(String) } attr_accessor :unit_amount - # Inclusive tier ending value. If null, this is treated as the last tier + # Inclusive tier ending value. This value is null if and only if this is the last + # tier. sig { returns(T.nilable(Float)) } attr_accessor :last_unit + # Configuration for a single tier sig do params( first_unit: Float, @@ -29,7 +31,8 @@ module Orb first_unit:, # Amount per unit unit_amount:, - # Inclusive tier ending value. If null, this is treated as the last tier + # Inclusive tier ending value. This value is null if and only if this is the last + # tier. last_unit: nil ) end diff --git a/rbi/orb/models/tier_config.rbi b/rbi/orb/models/tier_config.rbi deleted file mode 100644 index ce59fb3d..00000000 --- a/rbi/orb/models/tier_config.rbi +++ /dev/null @@ -1,40 +0,0 @@ -# typed: strong - -module Orb - module Models - class TierConfig < Orb::Internal::Type::BaseModel - OrHash = T.type_alias { T.any(Orb::TierConfig, Orb::Internal::AnyHash) } - - sig { returns(Float) } - attr_accessor :first_unit - - sig { returns(T.nilable(Float)) } - attr_accessor :last_unit - - sig { returns(String) } - attr_accessor :unit_amount - - sig do - params( - first_unit: Float, - last_unit: T.nilable(Float), - unit_amount: String - ).returns(T.attached_class) - end - def self.new(first_unit:, last_unit:, unit_amount:) - end - - sig do - override.returns( - { - first_unit: Float, - last_unit: T.nilable(Float), - unit_amount: String - } - ) - end - def to_hash - end - end - end -end diff --git a/rbi/orb/models/tier_sub_line_item.rbi b/rbi/orb/models/tier_sub_line_item.rbi index f94fccca..8da04a95 100644 --- a/rbi/orb/models/tier_sub_line_item.rbi +++ b/rbi/orb/models/tier_sub_line_item.rbi @@ -22,10 +22,10 @@ module Orb sig { returns(Float) } attr_accessor :quantity - sig { returns(Orb::TierConfig) } + sig { returns(Orb::TierSubLineItem::TierConfig) } attr_reader :tier_config - sig { params(tier_config: Orb::TierConfig::OrHash).void } + sig { params(tier_config: Orb::TierSubLineItem::TierConfig::OrHash).void } attr_writer :tier_config sig { returns(Orb::TierSubLineItem::Type::TaggedSymbol) } @@ -37,7 +37,7 @@ module Orb grouping: T.nilable(Orb::SubLineItemGrouping::OrHash), name: String, quantity: Float, - tier_config: Orb::TierConfig::OrHash, + tier_config: Orb::TierSubLineItem::TierConfig::OrHash, type: Orb::TierSubLineItem::Type::OrSymbol ).returns(T.attached_class) end @@ -59,7 +59,7 @@ module Orb grouping: T.nilable(Orb::SubLineItemGrouping), name: String, quantity: Float, - tier_config: Orb::TierConfig, + tier_config: Orb::TierSubLineItem::TierConfig, type: Orb::TierSubLineItem::Type::TaggedSymbol } ) @@ -67,6 +67,44 @@ module Orb def to_hash end + class TierConfig < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any(Orb::TierSubLineItem::TierConfig, Orb::Internal::AnyHash) + end + + sig { returns(Float) } + attr_accessor :first_unit + + sig { returns(T.nilable(Float)) } + attr_accessor :last_unit + + sig { returns(String) } + attr_accessor :unit_amount + + sig do + params( + first_unit: Float, + last_unit: T.nilable(Float), + unit_amount: String + ).returns(T.attached_class) + end + def self.new(first_unit:, last_unit:, unit_amount:) + end + + sig do + override.returns( + { + first_unit: Float, + last_unit: T.nilable(Float), + unit_amount: String + } + ) + end + def to_hash + end + end + module Type extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/tiered_config.rbi b/rbi/orb/models/tiered_config.rbi index c39068c1..af54d5f8 100644 --- a/rbi/orb/models/tiered_config.rbi +++ b/rbi/orb/models/tiered_config.rbi @@ -9,6 +9,7 @@ module Orb sig { returns(T::Array[Orb::Tier]) } attr_accessor :tiers + # Configuration for tiered pricing sig do params(tiers: T::Array[Orb::Tier::OrHash]).returns(T.attached_class) end diff --git a/rbi/orb/models/unit_config.rbi b/rbi/orb/models/unit_config.rbi index bf189098..01a32cdc 100644 --- a/rbi/orb/models/unit_config.rbi +++ b/rbi/orb/models/unit_config.rbi @@ -9,14 +9,29 @@ module Orb sig { returns(String) } attr_accessor :unit_amount - sig { params(unit_amount: String).returns(T.attached_class) } + # Multiplier to scale rated quantity by + sig { returns(T.nilable(Float)) } + attr_accessor :scaling_factor + + # Configuration for unit pricing + sig do + params(unit_amount: String, scaling_factor: T.nilable(Float)).returns( + T.attached_class + ) + end def self.new( # Rate per unit of usage - unit_amount: + unit_amount:, + # Multiplier to scale rated quantity by + scaling_factor: nil ) end - sig { override.returns({ unit_amount: String }) } + sig do + override.returns( + { unit_amount: String, scaling_factor: T.nilable(Float) } + ) + end def to_hash end end diff --git a/rbi/orb/resources/customers.rbi b/rbi/orb/resources/customers.rbi index 13981111..e7c2376a 100644 --- a/rbi/orb/resources/customers.rbi +++ b/rbi/orb/resources/customers.rbi @@ -50,7 +50,8 @@ module Orb T.any( Orb::NewAvalaraTaxConfiguration::OrHash, Orb::NewTaxJarConfiguration::OrHash, - Orb::NewSphereConfiguration::OrHash + Orb::NewSphereConfiguration::OrHash, + Orb::CustomerCreateParams::TaxConfiguration::Numeral::OrHash ) ), tax_id: T.nilable(Orb::CustomerTaxID::OrHash), @@ -67,7 +68,8 @@ module Orb name:, accounting_sync_configuration: nil, # Additional email addresses for this customer. If populated, these email - # addresses will be CC'd for customer communications. + # addresses will be CC'd for customer communications. The total number of email + # addresses (including the primary email) cannot exceed 50. additional_emails: nil, # Used to determine if invoices for this customer will automatically attempt to # charge a saved payment method, if available. This parameter defaults to `True` @@ -288,7 +290,8 @@ module Orb T.any( Orb::NewAvalaraTaxConfiguration::OrHash, Orb::NewTaxJarConfiguration::OrHash, - Orb::NewSphereConfiguration::OrHash + Orb::NewSphereConfiguration::OrHash, + Orb::CustomerUpdateParams::TaxConfiguration::Numeral::OrHash ) ), tax_id: T.nilable(Orb::CustomerTaxID::OrHash), @@ -299,7 +302,8 @@ module Orb customer_id, accounting_sync_configuration: nil, # Additional email addresses for this customer. If populated, these email - # addresses will be CC'd for customer communications. + # addresses will be CC'd for customer communications. The total number of email + # addresses (including the primary email) cannot exceed 50. additional_emails: nil, # Used to determine if invoices for this customer will automatically attempt to # charge a saved payment method, if available. This parameter defaults to `True` @@ -641,7 +645,8 @@ module Orb T.any( Orb::NewAvalaraTaxConfiguration::OrHash, Orb::NewTaxJarConfiguration::OrHash, - Orb::NewSphereConfiguration::OrHash + Orb::NewSphereConfiguration::OrHash, + Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Numeral::OrHash ) ), tax_id: T.nilable(Orb::CustomerTaxID::OrHash), @@ -652,7 +657,8 @@ module Orb id, accounting_sync_configuration: nil, # Additional email addresses for this customer. If populated, these email - # addresses will be CC'd for customer communications. + # addresses will be CC'd for customer communications. The total number of email + # addresses (including the primary email) cannot exceed 50. additional_emails: nil, # Used to determine if invoices for this customer will automatically attempt to # charge a saved payment method, if available. This parameter defaults to `True` diff --git a/rbi/orb/resources/prices.rbi b/rbi/orb/resources/prices.rbi index 9a0dded9..ddb46081 100644 --- a/rbi/orb/resources/prices.rbi +++ b/rbi/orb/resources/prices.rbi @@ -24,33 +24,52 @@ module Orb model_type: Orb::PriceCreateParams::ModelType::OrSymbol, name: String, unit_config: Orb::UnitConfig::OrHash, + tiered_config: Orb::TieredConfig::OrHash, + bulk_config: Orb::BulkConfig::OrHash, package_config: Orb::PackageConfig::OrHash, matrix_config: Orb::MatrixConfig::OrHash, + threshold_total_amount_config: + Orb::PriceCreateParams::ThresholdTotalAmountConfig::OrHash, + tiered_package_config: + Orb::PriceCreateParams::TieredPackageConfig::OrHash, + tiered_with_minimum_config: + Orb::PriceCreateParams::TieredWithMinimumConfig::OrHash, + grouped_tiered_config: + Orb::PriceCreateParams::GroupedTieredConfig::OrHash, + tiered_package_with_minimum_config: + Orb::PriceCreateParams::TieredPackageWithMinimumConfig::OrHash, + package_with_allocation_config: + Orb::PriceCreateParams::PackageWithAllocationConfig::OrHash, + unit_with_percent_config: + Orb::PriceCreateParams::UnitWithPercentConfig::OrHash, matrix_with_allocation_config: Orb::MatrixWithAllocationConfig::OrHash, - tiered_config: Orb::TieredConfig::OrHash, - bulk_config: Orb::BulkConfig::OrHash, - threshold_total_amount_config: T::Hash[Symbol, T.anything], - tiered_package_config: T::Hash[Symbol, T.anything], - grouped_tiered_config: T::Hash[Symbol, T.anything], - max_group_tiered_package_config: T::Hash[Symbol, T.anything], - tiered_with_minimum_config: T::Hash[Symbol, T.anything], - package_with_allocation_config: T::Hash[Symbol, T.anything], - tiered_package_with_minimum_config: T::Hash[Symbol, T.anything], - unit_with_percent_config: T::Hash[Symbol, T.anything], - tiered_with_proration_config: T::Hash[Symbol, T.anything], - unit_with_proration_config: T::Hash[Symbol, T.anything], - grouped_allocation_config: T::Hash[Symbol, T.anything], - grouped_with_prorated_minimum_config: T::Hash[Symbol, T.anything], - grouped_with_metered_minimum_config: T::Hash[Symbol, T.anything], - matrix_with_display_name_config: T::Hash[Symbol, T.anything], - bulk_with_proration_config: T::Hash[Symbol, T.anything], - grouped_tiered_package_config: T::Hash[Symbol, T.anything], - scalable_matrix_with_unit_pricing_config: T::Hash[Symbol, T.anything], + tiered_with_proration_config: + Orb::PriceCreateParams::TieredWithProrationConfig::OrHash, + unit_with_proration_config: + Orb::PriceCreateParams::UnitWithProrationConfig::OrHash, + grouped_allocation_config: + Orb::PriceCreateParams::GroupedAllocationConfig::OrHash, + bulk_with_proration_config: + Orb::PriceCreateParams::BulkWithProrationConfig::OrHash, + grouped_with_prorated_minimum_config: + Orb::PriceCreateParams::GroupedWithProratedMinimumConfig::OrHash, + grouped_with_metered_minimum_config: + Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig::OrHash, + grouped_with_min_max_thresholds_config: + Orb::PriceCreateParams::GroupedWithMinMaxThresholdsConfig::OrHash, + matrix_with_display_name_config: + Orb::PriceCreateParams::MatrixWithDisplayNameConfig::OrHash, + grouped_tiered_package_config: + Orb::PriceCreateParams::GroupedTieredPackageConfig::OrHash, + max_group_tiered_package_config: + Orb::PriceCreateParams::MaxGroupTieredPackageConfig::OrHash, + scalable_matrix_with_unit_pricing_config: + Orb::PriceCreateParams::ScalableMatrixWithUnitPricingConfig::OrHash, scalable_matrix_with_tiered_pricing_config: - T::Hash[Symbol, T.anything], - cumulative_grouped_bulk_config: T::Hash[Symbol, T.anything], - grouped_with_min_max_thresholds_config: T::Hash[Symbol, T.anything], + Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig::OrHash, + cumulative_grouped_bulk_config: + Orb::PriceCreateParams::CumulativeGroupedBulkConfig::OrHash, minimum_config: Orb::PriceCreateParams::MinimumConfig::OrHash, billable_metric_id: T.nilable(String), billed_in_advance: T.nilable(T::Boolean), @@ -82,35 +101,63 @@ module Orb currency:, # The id of the item the price will be associated with. item_id:, + # The pricing model type model_type:, # The name of the price. name:, + # Configuration for unit pricing unit_config:, - package_config:, - matrix_config:, - matrix_with_allocation_config:, + # Configuration for tiered pricing tiered_config:, + # Configuration for bulk pricing bulk_config:, + # Configuration for package pricing + package_config:, + # Configuration for matrix pricing + matrix_config:, + # Configuration for threshold_total_amount pricing threshold_total_amount_config:, + # Configuration for tiered_package pricing tiered_package_config:, - grouped_tiered_config:, - max_group_tiered_package_config:, + # Configuration for tiered_with_minimum pricing tiered_with_minimum_config:, - package_with_allocation_config:, + # Configuration for grouped_tiered pricing + grouped_tiered_config:, + # Configuration for tiered_package_with_minimum pricing tiered_package_with_minimum_config:, + # Configuration for package_with_allocation pricing + package_with_allocation_config:, + # Configuration for unit_with_percent pricing unit_with_percent_config:, + # Configuration for matrix_with_allocation pricing + matrix_with_allocation_config:, + # Configuration for tiered_with_proration pricing tiered_with_proration_config:, + # Configuration for unit_with_proration pricing unit_with_proration_config:, + # Configuration for grouped_allocation pricing grouped_allocation_config:, + # Configuration for bulk_with_proration pricing + bulk_with_proration_config:, + # Configuration for grouped_with_prorated_minimum pricing grouped_with_prorated_minimum_config:, + # Configuration for grouped_with_metered_minimum pricing grouped_with_metered_minimum_config:, + # Configuration for grouped_with_min_max_thresholds pricing + grouped_with_min_max_thresholds_config:, + # Configuration for matrix_with_display_name pricing matrix_with_display_name_config:, - bulk_with_proration_config:, + # Configuration for grouped_tiered_package pricing grouped_tiered_package_config:, + # Configuration for max_group_tiered_package pricing + max_group_tiered_package_config:, + # Configuration for scalable_matrix_with_unit_pricing pricing scalable_matrix_with_unit_pricing_config:, + # Configuration for scalable_matrix_with_tiered_pricing pricing scalable_matrix_with_tiered_pricing_config:, + # Configuration for cumulative_grouped_bulk pricing cumulative_grouped_bulk_config:, - grouped_with_min_max_thresholds_config:, + # Configuration for minimum pricing minimum_config:, # The id of the billable metric for the price. Only needed if the price is # usage-based. diff --git a/sig/orb/models.rbs b/sig/orb/models.rbs index 0df776bb..04600de1 100644 --- a/sig/orb/models.rbs +++ b/sig/orb/models.rbs @@ -343,8 +343,6 @@ module Orb class NewPlanTieredWithMinimumPrice = Orb::Models::NewPlanTieredWithMinimumPrice - class NewPlanTierWithProrationPrice = Orb::Models::NewPlanTierWithProrationPrice - class NewPlanUnitPrice = Orb::Models::NewPlanUnitPrice class NewPlanUnitWithPercentPrice = Orb::Models::NewPlanUnitWithPercentPrice @@ -399,8 +397,6 @@ module Orb class NewSubscriptionTieredWithMinimumPrice = Orb::Models::NewSubscriptionTieredWithMinimumPrice - class NewSubscriptionTierWithProrationPrice = Orb::Models::NewSubscriptionTierWithProrationPrice - class NewSubscriptionUnitPrice = Orb::Models::NewSubscriptionUnitPrice class NewSubscriptionUnitWithPercentPrice = Orb::Models::NewSubscriptionUnitWithPercentPrice @@ -531,8 +527,6 @@ module Orb class Tier = Orb::Models::Tier - class TierConfig = Orb::Models::TierConfig - class TieredConfig = Orb::Models::TieredConfig class TieredConversionRateConfig = Orb::Models::TieredConversionRateConfig diff --git a/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs b/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs index 0cfa5eef..2fbc44b2 100644 --- a/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs +++ b/sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs @@ -121,40 +121,198 @@ module Orb type price = Orb::NewPlanUnitPrice - | Orb::NewPlanPackagePrice - | Orb::NewPlanMatrixPrice | Orb::NewPlanTieredPrice | Orb::NewPlanBulkPrice + | Orb::NewPlanPackagePrice + | Orb::NewPlanMatrixPrice | Orb::NewPlanThresholdTotalAmountPrice | Orb::NewPlanTieredPackagePrice | Orb::NewPlanTieredWithMinimumPrice - | Orb::NewPlanUnitWithPercentPrice + | Orb::NewPlanGroupedTieredPrice + | Orb::NewPlanTieredPackageWithMinimumPrice | Orb::NewPlanPackageWithAllocationPrice - | Orb::NewPlanTierWithProrationPrice + | Orb::NewPlanUnitWithPercentPrice + | Orb::NewPlanMatrixWithAllocationPrice + | Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration | Orb::NewPlanUnitWithProrationPrice | Orb::NewPlanGroupedAllocationPrice + | Orb::NewPlanBulkWithProrationPrice | Orb::NewPlanGroupedWithProratedMinimumPrice | Orb::NewPlanGroupedWithMeteredMinimumPrice | Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds | Orb::NewPlanMatrixWithDisplayNamePrice - | Orb::NewPlanBulkWithProrationPrice | Orb::NewPlanGroupedTieredPackagePrice | Orb::NewPlanMaxGroupTieredPackagePrice | Orb::NewPlanScalableMatrixWithUnitPricingPrice | Orb::NewPlanScalableMatrixWithTieredPricingPrice | Orb::NewPlanCumulativeGroupedBulkPrice - | Orb::NewPlanTieredPackageWithMinimumPrice - | Orb::NewPlanMatrixWithAllocationPrice - | Orb::NewPlanGroupedTieredPrice | Orb::NewPlanMinimumCompositePrice module Price extend Orb::Internal::Type::Union + type tiered_with_proration = + { + cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::cadence, + item_id: String, + model_type: :tiered_with_proration, + name: String, + tiered_with_proration_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::conversion_rate_config?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + class TieredWithProration < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::cadence + + attr_accessor item_id: String + + attr_accessor model_type: :tiered_with_proration + + attr_accessor name: String + + attr_accessor tiered_with_proration_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::conversion_rate_config? + + attr_accessor currency: String? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + attr_accessor reference_id: String? + + def initialize: ( + cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::cadence, + item_id: String, + name: String, + tiered_with_proration_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::conversion_rate_config?, + ?currency: String?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_with_proration + ) -> void + + def to_hash: -> { + cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::cadence, + item_id: String, + model_type: :tiered_with_proration, + name: String, + tiered_with_proration_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::conversion_rate_config?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + type cadence = + :annual + | :semi_annual + | :monthly + | :quarterly + | :one_time + | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::cadence] + end + + type tiered_with_proration_config = + { + tiers: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] + } + + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + attr_accessor tiers: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] + + def initialize: ( + tiers: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] + ) -> void + + def to_hash: -> { + tiers: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] + } + + type tier = { tier_lower_bound: String, unit_amount: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { + tier_lower_bound: String, + unit_amount: String + } + end + end + end + type grouped_with_min_max_thresholds = { cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, model_type: :grouped_with_min_max_thresholds, name: String, @@ -176,7 +334,7 @@ module Orb class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel attr_accessor cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence - attr_accessor grouped_with_min_max_thresholds_config: ::Hash[Symbol, top] + attr_accessor grouped_with_min_max_thresholds_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig attr_accessor item_id: String @@ -212,7 +370,7 @@ module Orb def initialize: ( cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, name: String, ?billable_metric_id: String?, @@ -233,7 +391,7 @@ module Orb def to_hash: -> { cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, model_type: :grouped_with_min_max_thresholds, name: String, @@ -272,6 +430,38 @@ module Orb def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence] end + + type grouped_with_min_max_thresholds_config = + { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor maximum_charge: String + + attr_accessor minimum_charge: String + + attr_accessor per_unit_rate: String + + def initialize: ( + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + ) -> void + + def to_hash: -> { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + end end def self?.variants: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::price] @@ -382,40 +572,198 @@ module Orb type price = Orb::NewPlanUnitPrice - | Orb::NewPlanPackagePrice - | Orb::NewPlanMatrixPrice | Orb::NewPlanTieredPrice | Orb::NewPlanBulkPrice + | Orb::NewPlanPackagePrice + | Orb::NewPlanMatrixPrice | Orb::NewPlanThresholdTotalAmountPrice | Orb::NewPlanTieredPackagePrice | Orb::NewPlanTieredWithMinimumPrice - | Orb::NewPlanUnitWithPercentPrice + | Orb::NewPlanGroupedTieredPrice + | Orb::NewPlanTieredPackageWithMinimumPrice | Orb::NewPlanPackageWithAllocationPrice - | Orb::NewPlanTierWithProrationPrice + | Orb::NewPlanUnitWithPercentPrice + | Orb::NewPlanMatrixWithAllocationPrice + | Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration | Orb::NewPlanUnitWithProrationPrice | Orb::NewPlanGroupedAllocationPrice + | Orb::NewPlanBulkWithProrationPrice | Orb::NewPlanGroupedWithProratedMinimumPrice | Orb::NewPlanGroupedWithMeteredMinimumPrice | Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds | Orb::NewPlanMatrixWithDisplayNamePrice - | Orb::NewPlanBulkWithProrationPrice | Orb::NewPlanGroupedTieredPackagePrice | Orb::NewPlanMaxGroupTieredPackagePrice | Orb::NewPlanScalableMatrixWithUnitPricingPrice | Orb::NewPlanScalableMatrixWithTieredPricingPrice | Orb::NewPlanCumulativeGroupedBulkPrice - | Orb::NewPlanTieredPackageWithMinimumPrice - | Orb::NewPlanMatrixWithAllocationPrice - | Orb::NewPlanGroupedTieredPrice | Orb::NewPlanMinimumCompositePrice module Price extend Orb::Internal::Type::Union + type tiered_with_proration = + { + cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::cadence, + item_id: String, + model_type: :tiered_with_proration, + name: String, + tiered_with_proration_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::conversion_rate_config?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + class TieredWithProration < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::cadence + + attr_accessor item_id: String + + attr_accessor model_type: :tiered_with_proration + + attr_accessor name: String + + attr_accessor tiered_with_proration_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::conversion_rate_config? + + attr_accessor currency: String? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + attr_accessor reference_id: String? + + def initialize: ( + cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::cadence, + item_id: String, + name: String, + tiered_with_proration_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::conversion_rate_config?, + ?currency: String?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_with_proration + ) -> void + + def to_hash: -> { + cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::cadence, + item_id: String, + model_type: :tiered_with_proration, + name: String, + tiered_with_proration_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::conversion_rate_config?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + type cadence = + :annual + | :semi_annual + | :monthly + | :quarterly + | :one_time + | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::cadence] + end + + type tiered_with_proration_config = + { + tiers: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] + } + + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + attr_accessor tiers: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] + + def initialize: ( + tiers: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] + ) -> void + + def to_hash: -> { + tiers: ::Array[Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] + } + + type tier = { tier_lower_bound: String, unit_amount: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { + tier_lower_bound: String, + unit_amount: String + } + end + end + end + type grouped_with_min_max_thresholds = { cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, model_type: :grouped_with_min_max_thresholds, name: String, @@ -437,7 +785,7 @@ module Orb class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel attr_accessor cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence - attr_accessor grouped_with_min_max_thresholds_config: ::Hash[Symbol, top] + attr_accessor grouped_with_min_max_thresholds_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig attr_accessor item_id: String @@ -473,7 +821,7 @@ module Orb def initialize: ( cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, name: String, ?billable_metric_id: String?, @@ -494,7 +842,7 @@ module Orb def to_hash: -> { cadence: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, model_type: :grouped_with_min_max_thresholds, name: String, @@ -533,6 +881,38 @@ module Orb def self?.values: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence] end + + type grouped_with_min_max_thresholds_config = + { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor maximum_charge: String + + attr_accessor minimum_charge: String + + attr_accessor per_unit_rate: String + + def initialize: ( + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + ) -> void + + def to_hash: -> { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + end end def self?.variants: -> ::Array[Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::ReplacePrice::price] diff --git a/sig/orb/models/beta_create_plan_version_params.rbs b/sig/orb/models/beta_create_plan_version_params.rbs index 4b444f27..b5421416 100644 --- a/sig/orb/models/beta_create_plan_version_params.rbs +++ b/sig/orb/models/beta_create_plan_version_params.rbs @@ -120,40 +120,198 @@ module Orb type price = Orb::NewPlanUnitPrice - | Orb::NewPlanPackagePrice - | Orb::NewPlanMatrixPrice | Orb::NewPlanTieredPrice | Orb::NewPlanBulkPrice + | Orb::NewPlanPackagePrice + | Orb::NewPlanMatrixPrice | Orb::NewPlanThresholdTotalAmountPrice | Orb::NewPlanTieredPackagePrice | Orb::NewPlanTieredWithMinimumPrice - | Orb::NewPlanUnitWithPercentPrice + | Orb::NewPlanGroupedTieredPrice + | Orb::NewPlanTieredPackageWithMinimumPrice | Orb::NewPlanPackageWithAllocationPrice - | Orb::NewPlanTierWithProrationPrice + | Orb::NewPlanUnitWithPercentPrice + | Orb::NewPlanMatrixWithAllocationPrice + | Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration | Orb::NewPlanUnitWithProrationPrice | Orb::NewPlanGroupedAllocationPrice + | Orb::NewPlanBulkWithProrationPrice | Orb::NewPlanGroupedWithProratedMinimumPrice | Orb::NewPlanGroupedWithMeteredMinimumPrice | Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds | Orb::NewPlanMatrixWithDisplayNamePrice - | Orb::NewPlanBulkWithProrationPrice | Orb::NewPlanGroupedTieredPackagePrice | Orb::NewPlanMaxGroupTieredPackagePrice | Orb::NewPlanScalableMatrixWithUnitPricingPrice | Orb::NewPlanScalableMatrixWithTieredPricingPrice | Orb::NewPlanCumulativeGroupedBulkPrice - | Orb::NewPlanTieredPackageWithMinimumPrice - | Orb::NewPlanMatrixWithAllocationPrice - | Orb::NewPlanGroupedTieredPrice | Orb::NewPlanMinimumCompositePrice module Price extend Orb::Internal::Type::Union + type tiered_with_proration = + { + cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::cadence, + item_id: String, + model_type: :tiered_with_proration, + name: String, + tiered_with_proration_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::conversion_rate_config?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + class TieredWithProration < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::cadence + + attr_accessor item_id: String + + attr_accessor model_type: :tiered_with_proration + + attr_accessor name: String + + attr_accessor tiered_with_proration_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::conversion_rate_config? + + attr_accessor currency: String? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + attr_accessor reference_id: String? + + def initialize: ( + cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::cadence, + item_id: String, + name: String, + tiered_with_proration_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::conversion_rate_config?, + ?currency: String?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_with_proration + ) -> void + + def to_hash: -> { + cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::cadence, + item_id: String, + model_type: :tiered_with_proration, + name: String, + tiered_with_proration_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::conversion_rate_config?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + type cadence = + :annual + | :semi_annual + | :monthly + | :quarterly + | :one_time + | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::cadence] + end + + type tiered_with_proration_config = + { + tiers: ::Array[Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] + } + + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + attr_accessor tiers: ::Array[Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] + + def initialize: ( + tiers: ::Array[Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] + ) -> void + + def to_hash: -> { + tiers: ::Array[Orb::BetaCreatePlanVersionParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] + } + + type tier = { tier_lower_bound: String, unit_amount: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { + tier_lower_bound: String, + unit_amount: String + } + end + end + end + type grouped_with_min_max_thresholds = { cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, model_type: :grouped_with_min_max_thresholds, name: String, @@ -175,7 +333,7 @@ module Orb class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel attr_accessor cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence - attr_accessor grouped_with_min_max_thresholds_config: ::Hash[Symbol, top] + attr_accessor grouped_with_min_max_thresholds_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig attr_accessor item_id: String @@ -211,7 +369,7 @@ module Orb def initialize: ( cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, name: String, ?billable_metric_id: String?, @@ -232,7 +390,7 @@ module Orb def to_hash: -> { cadence: Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, model_type: :grouped_with_min_max_thresholds, name: String, @@ -271,6 +429,38 @@ module Orb def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence] end + + type grouped_with_min_max_thresholds_config = + { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor maximum_charge: String + + attr_accessor minimum_charge: String + + attr_accessor per_unit_rate: String + + def initialize: ( + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + ) -> void + + def to_hash: -> { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + end end def self?.variants: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::AddPrice::price] @@ -378,40 +568,198 @@ module Orb type price = Orb::NewPlanUnitPrice - | Orb::NewPlanPackagePrice - | Orb::NewPlanMatrixPrice | Orb::NewPlanTieredPrice | Orb::NewPlanBulkPrice + | Orb::NewPlanPackagePrice + | Orb::NewPlanMatrixPrice | Orb::NewPlanThresholdTotalAmountPrice | Orb::NewPlanTieredPackagePrice | Orb::NewPlanTieredWithMinimumPrice - | Orb::NewPlanUnitWithPercentPrice + | Orb::NewPlanGroupedTieredPrice + | Orb::NewPlanTieredPackageWithMinimumPrice | Orb::NewPlanPackageWithAllocationPrice - | Orb::NewPlanTierWithProrationPrice + | Orb::NewPlanUnitWithPercentPrice + | Orb::NewPlanMatrixWithAllocationPrice + | Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration | Orb::NewPlanUnitWithProrationPrice | Orb::NewPlanGroupedAllocationPrice + | Orb::NewPlanBulkWithProrationPrice | Orb::NewPlanGroupedWithProratedMinimumPrice | Orb::NewPlanGroupedWithMeteredMinimumPrice | Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds | Orb::NewPlanMatrixWithDisplayNamePrice - | Orb::NewPlanBulkWithProrationPrice | Orb::NewPlanGroupedTieredPackagePrice | Orb::NewPlanMaxGroupTieredPackagePrice | Orb::NewPlanScalableMatrixWithUnitPricingPrice | Orb::NewPlanScalableMatrixWithTieredPricingPrice | Orb::NewPlanCumulativeGroupedBulkPrice - | Orb::NewPlanTieredPackageWithMinimumPrice - | Orb::NewPlanMatrixWithAllocationPrice - | Orb::NewPlanGroupedTieredPrice | Orb::NewPlanMinimumCompositePrice module Price extend Orb::Internal::Type::Union + type tiered_with_proration = + { + cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::cadence, + item_id: String, + model_type: :tiered_with_proration, + name: String, + tiered_with_proration_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::conversion_rate_config?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + class TieredWithProration < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::cadence + + attr_accessor item_id: String + + attr_accessor model_type: :tiered_with_proration + + attr_accessor name: String + + attr_accessor tiered_with_proration_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::conversion_rate_config? + + attr_accessor currency: String? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + attr_accessor reference_id: String? + + def initialize: ( + cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::cadence, + item_id: String, + name: String, + tiered_with_proration_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::conversion_rate_config?, + ?currency: String?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_with_proration + ) -> void + + def to_hash: -> { + cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::cadence, + item_id: String, + model_type: :tiered_with_proration, + name: String, + tiered_with_proration_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::conversion_rate_config?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + type cadence = + :annual + | :semi_annual + | :monthly + | :quarterly + | :one_time + | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::cadence] + end + + type tiered_with_proration_config = + { + tiers: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] + } + + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + attr_accessor tiers: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] + + def initialize: ( + tiers: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] + ) -> void + + def to_hash: -> { + tiers: ::Array[Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] + } + + type tier = { tier_lower_bound: String, unit_amount: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { + tier_lower_bound: String, + unit_amount: String + } + end + end + end + type grouped_with_min_max_thresholds = { cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, model_type: :grouped_with_min_max_thresholds, name: String, @@ -433,7 +781,7 @@ module Orb class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel attr_accessor cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence - attr_accessor grouped_with_min_max_thresholds_config: ::Hash[Symbol, top] + attr_accessor grouped_with_min_max_thresholds_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig attr_accessor item_id: String @@ -469,7 +817,7 @@ module Orb def initialize: ( cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, name: String, ?billable_metric_id: String?, @@ -490,7 +838,7 @@ module Orb def to_hash: -> { cadence: Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, model_type: :grouped_with_min_max_thresholds, name: String, @@ -529,6 +877,38 @@ module Orb def self?.values: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence] end + + type grouped_with_min_max_thresholds_config = + { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor maximum_charge: String + + attr_accessor minimum_charge: String + + attr_accessor per_unit_rate: String + + def initialize: ( + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + ) -> void + + def to_hash: -> { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + end end def self?.variants: -> ::Array[Orb::Models::BetaCreatePlanVersionParams::ReplacePrice::price] diff --git a/sig/orb/models/customer_create_params.rbs b/sig/orb/models/customer_create_params.rbs index 6f463cb3..1d9d1856 100644 --- a/sig/orb/models/customer_create_params.rbs +++ b/sig/orb/models/customer_create_params.rbs @@ -131,10 +131,23 @@ module Orb Orb::NewAvalaraTaxConfiguration | Orb::NewTaxJarConfiguration | Orb::NewSphereConfiguration + | Orb::CustomerCreateParams::TaxConfiguration::Numeral module TaxConfiguration extend Orb::Internal::Type::Union + type numeral = { tax_exempt: bool, tax_provider: :numeral } + + class Numeral < Orb::Internal::Type::BaseModel + attr_accessor tax_exempt: bool + + attr_accessor tax_provider: :numeral + + def initialize: (tax_exempt: bool, ?tax_provider: :numeral) -> void + + def to_hash: -> { tax_exempt: bool, tax_provider: :numeral } + end + def self?.variants: -> ::Array[Orb::Models::CustomerCreateParams::tax_configuration] end end diff --git a/sig/orb/models/customer_update_by_external_id_params.rbs b/sig/orb/models/customer_update_by_external_id_params.rbs index 312761df..511e28c8 100644 --- a/sig/orb/models/customer_update_by_external_id_params.rbs +++ b/sig/orb/models/customer_update_by_external_id_params.rbs @@ -126,10 +126,23 @@ module Orb Orb::NewAvalaraTaxConfiguration | Orb::NewTaxJarConfiguration | Orb::NewSphereConfiguration + | Orb::CustomerUpdateByExternalIDParams::TaxConfiguration::Numeral module TaxConfiguration extend Orb::Internal::Type::Union + type numeral = { tax_exempt: bool, tax_provider: :numeral } + + class Numeral < Orb::Internal::Type::BaseModel + attr_accessor tax_exempt: bool + + attr_accessor tax_provider: :numeral + + def initialize: (tax_exempt: bool, ?tax_provider: :numeral) -> void + + def to_hash: -> { tax_exempt: bool, tax_provider: :numeral } + end + def self?.variants: -> ::Array[Orb::Models::CustomerUpdateByExternalIDParams::tax_configuration] end end diff --git a/sig/orb/models/customer_update_params.rbs b/sig/orb/models/customer_update_params.rbs index 3a7f394b..dcf364f6 100644 --- a/sig/orb/models/customer_update_params.rbs +++ b/sig/orb/models/customer_update_params.rbs @@ -126,10 +126,23 @@ module Orb Orb::NewAvalaraTaxConfiguration | Orb::NewTaxJarConfiguration | Orb::NewSphereConfiguration + | Orb::CustomerUpdateParams::TaxConfiguration::Numeral module TaxConfiguration extend Orb::Internal::Type::Union + type numeral = { tax_exempt: bool, tax_provider: :numeral } + + class Numeral < Orb::Internal::Type::BaseModel + attr_accessor tax_exempt: bool + + attr_accessor tax_provider: :numeral + + def initialize: (tax_exempt: bool, ?tax_provider: :numeral) -> void + + def to_hash: -> { tax_exempt: bool, tax_provider: :numeral } + end + def self?.variants: -> ::Array[Orb::Models::CustomerUpdateParams::tax_configuration] end end diff --git a/sig/orb/models/matrix_with_allocation_config.rbs b/sig/orb/models/matrix_with_allocation_config.rbs index b98e9014..23561e24 100644 --- a/sig/orb/models/matrix_with_allocation_config.rbs +++ b/sig/orb/models/matrix_with_allocation_config.rbs @@ -2,34 +2,53 @@ module Orb module Models type matrix_with_allocation_config = { - allocation: Float, + allocation: String, default_unit_amount: String, dimensions: ::Array[String?], - matrix_values: ::Array[Orb::MatrixValue] + matrix_values: ::Array[Orb::MatrixWithAllocationConfig::MatrixValue] } class MatrixWithAllocationConfig < Orb::Internal::Type::BaseModel - attr_accessor allocation: Float + attr_accessor allocation: String attr_accessor default_unit_amount: String attr_accessor dimensions: ::Array[String?] - attr_accessor matrix_values: ::Array[Orb::MatrixValue] + attr_accessor matrix_values: ::Array[Orb::MatrixWithAllocationConfig::MatrixValue] def initialize: ( - allocation: Float, + allocation: String, default_unit_amount: String, dimensions: ::Array[String?], - matrix_values: ::Array[Orb::MatrixValue] + matrix_values: ::Array[Orb::MatrixWithAllocationConfig::MatrixValue] ) -> void def to_hash: -> { - allocation: Float, + allocation: String, default_unit_amount: String, dimensions: ::Array[String?], - matrix_values: ::Array[Orb::MatrixValue] + matrix_values: ::Array[Orb::MatrixWithAllocationConfig::MatrixValue] } + + type matrix_value = + { dimension_values: ::Array[String?], unit_amount: String } + + class MatrixValue < Orb::Internal::Type::BaseModel + attr_accessor dimension_values: ::Array[String?] + + attr_accessor unit_amount: String + + def initialize: ( + dimension_values: ::Array[String?], + unit_amount: String + ) -> void + + def to_hash: -> { + dimension_values: ::Array[String?], + unit_amount: String + } + end end end end diff --git a/sig/orb/models/new_floating_bulk_with_proration_price.rbs b/sig/orb/models/new_floating_bulk_with_proration_price.rbs index e06750f4..b794a695 100644 --- a/sig/orb/models/new_floating_bulk_with_proration_price.rbs +++ b/sig/orb/models/new_floating_bulk_with_proration_price.rbs @@ -2,7 +2,7 @@ module Orb module Models type new_floating_bulk_with_proration_price = { - bulk_with_proration_config: ::Hash[Symbol, top], + bulk_with_proration_config: Orb::NewFloatingBulkWithProrationPrice::BulkWithProrationConfig, cadence: Orb::Models::NewFloatingBulkWithProrationPrice::cadence, currency: String, item_id: String, @@ -22,7 +22,7 @@ module Orb } class NewFloatingBulkWithProrationPrice < Orb::Internal::Type::BaseModel - attr_accessor bulk_with_proration_config: ::Hash[Symbol, top] + attr_accessor bulk_with_proration_config: Orb::NewFloatingBulkWithProrationPrice::BulkWithProrationConfig attr_accessor cadence: Orb::Models::NewFloatingBulkWithProrationPrice::cadence @@ -57,7 +57,7 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? def initialize: ( - bulk_with_proration_config: ::Hash[Symbol, top], + bulk_with_proration_config: Orb::NewFloatingBulkWithProrationPrice::BulkWithProrationConfig, cadence: Orb::Models::NewFloatingBulkWithProrationPrice::cadence, currency: String, item_id: String, @@ -77,7 +77,7 @@ module Orb ) -> void def to_hash: -> { - bulk_with_proration_config: ::Hash[Symbol, top], + bulk_with_proration_config: Orb::NewFloatingBulkWithProrationPrice::BulkWithProrationConfig, cadence: Orb::Models::NewFloatingBulkWithProrationPrice::cadence, currency: String, item_id: String, @@ -96,6 +96,38 @@ module Orb metadata: ::Hash[Symbol, String?]? } + type bulk_with_proration_config = + { + tiers: ::Array[Orb::NewFloatingBulkWithProrationPrice::BulkWithProrationConfig::Tier] + } + + class BulkWithProrationConfig < Orb::Internal::Type::BaseModel + attr_accessor tiers: ::Array[Orb::NewFloatingBulkWithProrationPrice::BulkWithProrationConfig::Tier] + + def initialize: ( + tiers: ::Array[Orb::NewFloatingBulkWithProrationPrice::BulkWithProrationConfig::Tier] + ) -> void + + def to_hash: -> { + tiers: ::Array[Orb::NewFloatingBulkWithProrationPrice::BulkWithProrationConfig::Tier] + } + + type tier = { unit_amount: String, tier_lower_bound: String? } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor unit_amount: String + + attr_accessor tier_lower_bound: String? + + def initialize: ( + unit_amount: String, + ?tier_lower_bound: String? + ) -> void + + def to_hash: -> { unit_amount: String, tier_lower_bound: String? } + end + end + type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom diff --git a/sig/orb/models/new_floating_cumulative_grouped_bulk_price.rbs b/sig/orb/models/new_floating_cumulative_grouped_bulk_price.rbs index 04f9ac0e..1b777c95 100644 --- a/sig/orb/models/new_floating_cumulative_grouped_bulk_price.rbs +++ b/sig/orb/models/new_floating_cumulative_grouped_bulk_price.rbs @@ -3,7 +3,7 @@ module Orb type new_floating_cumulative_grouped_bulk_price = { cadence: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::cadence, - cumulative_grouped_bulk_config: ::Hash[Symbol, top], + cumulative_grouped_bulk_config: Orb::NewFloatingCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig, currency: String, item_id: String, model_type: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::model_type, @@ -24,7 +24,7 @@ module Orb class NewFloatingCumulativeGroupedBulkPrice < Orb::Internal::Type::BaseModel attr_accessor cadence: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::cadence - attr_accessor cumulative_grouped_bulk_config: ::Hash[Symbol, top] + attr_accessor cumulative_grouped_bulk_config: Orb::NewFloatingCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig attr_accessor currency: String @@ -58,7 +58,7 @@ module Orb def initialize: ( cadence: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::cadence, - cumulative_grouped_bulk_config: ::Hash[Symbol, top], + cumulative_grouped_bulk_config: Orb::NewFloatingCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig, currency: String, item_id: String, model_type: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::model_type, @@ -78,7 +78,7 @@ module Orb def to_hash: -> { cadence: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::cadence, - cumulative_grouped_bulk_config: ::Hash[Symbol, top], + cumulative_grouped_bulk_config: Orb::NewFloatingCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig, currency: String, item_id: String, model_type: Orb::Models::NewFloatingCumulativeGroupedBulkPrice::model_type, @@ -112,6 +112,55 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingCumulativeGroupedBulkPrice::cadence] end + type cumulative_grouped_bulk_config = + { + dimension_values: ::Array[Orb::NewFloatingCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig::DimensionValue], + group: String + } + + class CumulativeGroupedBulkConfig < Orb::Internal::Type::BaseModel + attr_accessor dimension_values: ::Array[Orb::NewFloatingCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig::DimensionValue] + + attr_accessor group: String + + def initialize: ( + dimension_values: ::Array[Orb::NewFloatingCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig::DimensionValue], + group: String + ) -> void + + def to_hash: -> { + dimension_values: ::Array[Orb::NewFloatingCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig::DimensionValue], + group: String + } + + type dimension_value = + { + grouping_key: String, + tier_lower_bound: String, + unit_amount: String + } + + class DimensionValue < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + grouping_key: String, + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { + grouping_key: String, + tier_lower_bound: String, + unit_amount: String + } + end + end + type model_type = :cumulative_grouped_bulk module ModelType diff --git a/sig/orb/models/new_floating_grouped_allocation_price.rbs b/sig/orb/models/new_floating_grouped_allocation_price.rbs index d88ca90b..97db577b 100644 --- a/sig/orb/models/new_floating_grouped_allocation_price.rbs +++ b/sig/orb/models/new_floating_grouped_allocation_price.rbs @@ -4,7 +4,7 @@ module Orb { cadence: Orb::Models::NewFloatingGroupedAllocationPrice::cadence, currency: String, - grouped_allocation_config: ::Hash[Symbol, top], + grouped_allocation_config: Orb::NewFloatingGroupedAllocationPrice::GroupedAllocationConfig, item_id: String, model_type: Orb::Models::NewFloatingGroupedAllocationPrice::model_type, name: String, @@ -26,7 +26,7 @@ module Orb attr_accessor currency: String - attr_accessor grouped_allocation_config: ::Hash[Symbol, top] + attr_accessor grouped_allocation_config: Orb::NewFloatingGroupedAllocationPrice::GroupedAllocationConfig attr_accessor item_id: String @@ -59,7 +59,7 @@ module Orb def initialize: ( cadence: Orb::Models::NewFloatingGroupedAllocationPrice::cadence, currency: String, - grouped_allocation_config: ::Hash[Symbol, top], + grouped_allocation_config: Orb::NewFloatingGroupedAllocationPrice::GroupedAllocationConfig, item_id: String, model_type: Orb::Models::NewFloatingGroupedAllocationPrice::model_type, name: String, @@ -79,7 +79,7 @@ module Orb def to_hash: -> { cadence: Orb::Models::NewFloatingGroupedAllocationPrice::cadence, currency: String, - grouped_allocation_config: ::Hash[Symbol, top], + grouped_allocation_config: Orb::NewFloatingGroupedAllocationPrice::GroupedAllocationConfig, item_id: String, model_type: Orb::Models::NewFloatingGroupedAllocationPrice::model_type, name: String, @@ -112,6 +112,29 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingGroupedAllocationPrice::cadence] end + type grouped_allocation_config = + { allocation: String, grouping_key: String, overage_unit_rate: String } + + class GroupedAllocationConfig < Orb::Internal::Type::BaseModel + attr_accessor allocation: String + + attr_accessor grouping_key: String + + attr_accessor overage_unit_rate: String + + def initialize: ( + allocation: String, + grouping_key: String, + overage_unit_rate: String + ) -> void + + def to_hash: -> { + allocation: String, + grouping_key: String, + overage_unit_rate: String + } + end + type model_type = :grouped_allocation module ModelType diff --git a/sig/orb/models/new_floating_grouped_tiered_package_price.rbs b/sig/orb/models/new_floating_grouped_tiered_package_price.rbs index 6b9dc781..5b1333f8 100644 --- a/sig/orb/models/new_floating_grouped_tiered_package_price.rbs +++ b/sig/orb/models/new_floating_grouped_tiered_package_price.rbs @@ -4,7 +4,7 @@ module Orb { cadence: Orb::Models::NewFloatingGroupedTieredPackagePrice::cadence, currency: String, - grouped_tiered_package_config: ::Hash[Symbol, top], + grouped_tiered_package_config: Orb::NewFloatingGroupedTieredPackagePrice::GroupedTieredPackageConfig, item_id: String, model_type: Orb::Models::NewFloatingGroupedTieredPackagePrice::model_type, name: String, @@ -26,7 +26,7 @@ module Orb attr_accessor currency: String - attr_accessor grouped_tiered_package_config: ::Hash[Symbol, top] + attr_accessor grouped_tiered_package_config: Orb::NewFloatingGroupedTieredPackagePrice::GroupedTieredPackageConfig attr_accessor item_id: String @@ -59,7 +59,7 @@ module Orb def initialize: ( cadence: Orb::Models::NewFloatingGroupedTieredPackagePrice::cadence, currency: String, - grouped_tiered_package_config: ::Hash[Symbol, top], + grouped_tiered_package_config: Orb::NewFloatingGroupedTieredPackagePrice::GroupedTieredPackageConfig, item_id: String, model_type: Orb::Models::NewFloatingGroupedTieredPackagePrice::model_type, name: String, @@ -79,7 +79,7 @@ module Orb def to_hash: -> { cadence: Orb::Models::NewFloatingGroupedTieredPackagePrice::cadence, currency: String, - grouped_tiered_package_config: ::Hash[Symbol, top], + grouped_tiered_package_config: Orb::NewFloatingGroupedTieredPackagePrice::GroupedTieredPackageConfig, item_id: String, model_type: Orb::Models::NewFloatingGroupedTieredPackagePrice::model_type, name: String, @@ -112,6 +112,45 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingGroupedTieredPackagePrice::cadence] end + type grouped_tiered_package_config = + { + grouping_key: String, + package_size: String, + tiers: ::Array[Orb::NewFloatingGroupedTieredPackagePrice::GroupedTieredPackageConfig::Tier] + } + + class GroupedTieredPackageConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor package_size: String + + attr_accessor tiers: ::Array[Orb::NewFloatingGroupedTieredPackagePrice::GroupedTieredPackageConfig::Tier] + + def initialize: ( + grouping_key: String, + package_size: String, + tiers: ::Array[Orb::NewFloatingGroupedTieredPackagePrice::GroupedTieredPackageConfig::Tier] + ) -> void + + def to_hash: -> { + grouping_key: String, + package_size: String, + tiers: ::Array[Orb::NewFloatingGroupedTieredPackagePrice::GroupedTieredPackageConfig::Tier] + } + + type tier = { per_unit: String, tier_lower_bound: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor per_unit: String + + attr_accessor tier_lower_bound: String + + def initialize: (per_unit: String, tier_lower_bound: String) -> void + + def to_hash: -> { per_unit: String, tier_lower_bound: String } + end + end + type model_type = :grouped_tiered_package module ModelType diff --git a/sig/orb/models/new_floating_grouped_tiered_price.rbs b/sig/orb/models/new_floating_grouped_tiered_price.rbs index e61daba9..d383e172 100644 --- a/sig/orb/models/new_floating_grouped_tiered_price.rbs +++ b/sig/orb/models/new_floating_grouped_tiered_price.rbs @@ -4,7 +4,7 @@ module Orb { cadence: Orb::Models::NewFloatingGroupedTieredPrice::cadence, currency: String, - grouped_tiered_config: ::Hash[Symbol, top], + grouped_tiered_config: Orb::NewFloatingGroupedTieredPrice::GroupedTieredConfig, item_id: String, model_type: Orb::Models::NewFloatingGroupedTieredPrice::model_type, name: String, @@ -26,7 +26,7 @@ module Orb attr_accessor currency: String - attr_accessor grouped_tiered_config: ::Hash[Symbol, top] + attr_accessor grouped_tiered_config: Orb::NewFloatingGroupedTieredPrice::GroupedTieredConfig attr_accessor item_id: String @@ -59,7 +59,7 @@ module Orb def initialize: ( cadence: Orb::Models::NewFloatingGroupedTieredPrice::cadence, currency: String, - grouped_tiered_config: ::Hash[Symbol, top], + grouped_tiered_config: Orb::NewFloatingGroupedTieredPrice::GroupedTieredConfig, item_id: String, model_type: Orb::Models::NewFloatingGroupedTieredPrice::model_type, name: String, @@ -79,7 +79,7 @@ module Orb def to_hash: -> { cadence: Orb::Models::NewFloatingGroupedTieredPrice::cadence, currency: String, - grouped_tiered_config: ::Hash[Symbol, top], + grouped_tiered_config: Orb::NewFloatingGroupedTieredPrice::GroupedTieredConfig, item_id: String, model_type: Orb::Models::NewFloatingGroupedTieredPrice::model_type, name: String, @@ -112,6 +112,43 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingGroupedTieredPrice::cadence] end + type grouped_tiered_config = + { + grouping_key: String, + tiers: ::Array[Orb::NewFloatingGroupedTieredPrice::GroupedTieredConfig::Tier] + } + + class GroupedTieredConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor tiers: ::Array[Orb::NewFloatingGroupedTieredPrice::GroupedTieredConfig::Tier] + + def initialize: ( + grouping_key: String, + tiers: ::Array[Orb::NewFloatingGroupedTieredPrice::GroupedTieredConfig::Tier] + ) -> void + + def to_hash: -> { + grouping_key: String, + tiers: ::Array[Orb::NewFloatingGroupedTieredPrice::GroupedTieredConfig::Tier] + } + + type tier = { tier_lower_bound: String, unit_amount: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { tier_lower_bound: String, unit_amount: String } + end + end + type model_type = :grouped_tiered module ModelType diff --git a/sig/orb/models/new_floating_grouped_with_metered_minimum_price.rbs b/sig/orb/models/new_floating_grouped_with_metered_minimum_price.rbs index db75b51f..c73da75e 100644 --- a/sig/orb/models/new_floating_grouped_with_metered_minimum_price.rbs +++ b/sig/orb/models/new_floating_grouped_with_metered_minimum_price.rbs @@ -4,7 +4,7 @@ module Orb { cadence: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::cadence, currency: String, - grouped_with_metered_minimum_config: ::Hash[Symbol, top], + grouped_with_metered_minimum_config: Orb::NewFloatingGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig, item_id: String, model_type: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::model_type, name: String, @@ -26,7 +26,7 @@ module Orb attr_accessor currency: String - attr_accessor grouped_with_metered_minimum_config: ::Hash[Symbol, top] + attr_accessor grouped_with_metered_minimum_config: Orb::NewFloatingGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig attr_accessor item_id: String @@ -59,7 +59,7 @@ module Orb def initialize: ( cadence: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::cadence, currency: String, - grouped_with_metered_minimum_config: ::Hash[Symbol, top], + grouped_with_metered_minimum_config: Orb::NewFloatingGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig, item_id: String, model_type: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::model_type, name: String, @@ -79,7 +79,7 @@ module Orb def to_hash: -> { cadence: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::cadence, currency: String, - grouped_with_metered_minimum_config: ::Hash[Symbol, top], + grouped_with_metered_minimum_config: Orb::NewFloatingGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig, item_id: String, model_type: Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::model_type, name: String, @@ -112,6 +112,75 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice::cadence] end + type grouped_with_metered_minimum_config = + { + grouping_key: String, + minimum_unit_amount: String, + pricing_key: String, + scaling_factors: ::Array[Orb::NewFloatingGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::ScalingFactor], + scaling_key: String, + unit_amounts: ::Array[Orb::NewFloatingGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::UnitAmount] + } + + class GroupedWithMeteredMinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor minimum_unit_amount: String + + attr_accessor pricing_key: String + + attr_accessor scaling_factors: ::Array[Orb::NewFloatingGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::ScalingFactor] + + attr_accessor scaling_key: String + + attr_accessor unit_amounts: ::Array[Orb::NewFloatingGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::UnitAmount] + + def initialize: ( + grouping_key: String, + minimum_unit_amount: String, + pricing_key: String, + scaling_factors: ::Array[Orb::NewFloatingGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::ScalingFactor], + scaling_key: String, + unit_amounts: ::Array[Orb::NewFloatingGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::UnitAmount] + ) -> void + + def to_hash: -> { + grouping_key: String, + minimum_unit_amount: String, + pricing_key: String, + scaling_factors: ::Array[Orb::NewFloatingGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::ScalingFactor], + scaling_key: String, + unit_amounts: ::Array[Orb::NewFloatingGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::UnitAmount] + } + + type scaling_factor = { scaling_factor: String, scaling_value: String } + + class ScalingFactor < Orb::Internal::Type::BaseModel + attr_accessor scaling_factor: String + + attr_accessor scaling_value: String + + def initialize: ( + scaling_factor: String, + scaling_value: String + ) -> void + + def to_hash: -> { scaling_factor: String, scaling_value: String } + end + + type unit_amount = { pricing_value: String, unit_amount: String } + + class UnitAmount < Orb::Internal::Type::BaseModel + attr_accessor pricing_value: String + + attr_accessor unit_amount: String + + def initialize: (pricing_value: String, unit_amount: String) -> void + + def to_hash: -> { pricing_value: String, unit_amount: String } + end + end + type model_type = :grouped_with_metered_minimum module ModelType diff --git a/sig/orb/models/new_floating_grouped_with_prorated_minimum_price.rbs b/sig/orb/models/new_floating_grouped_with_prorated_minimum_price.rbs index af7ab490..d6a63b8c 100644 --- a/sig/orb/models/new_floating_grouped_with_prorated_minimum_price.rbs +++ b/sig/orb/models/new_floating_grouped_with_prorated_minimum_price.rbs @@ -4,7 +4,7 @@ module Orb { cadence: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::cadence, currency: String, - grouped_with_prorated_minimum_config: ::Hash[Symbol, top], + grouped_with_prorated_minimum_config: Orb::NewFloatingGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig, item_id: String, model_type: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::model_type, name: String, @@ -26,7 +26,7 @@ module Orb attr_accessor currency: String - attr_accessor grouped_with_prorated_minimum_config: ::Hash[Symbol, top] + attr_accessor grouped_with_prorated_minimum_config: Orb::NewFloatingGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig attr_accessor item_id: String @@ -59,7 +59,7 @@ module Orb def initialize: ( cadence: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::cadence, currency: String, - grouped_with_prorated_minimum_config: ::Hash[Symbol, top], + grouped_with_prorated_minimum_config: Orb::NewFloatingGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig, item_id: String, model_type: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::model_type, name: String, @@ -79,7 +79,7 @@ module Orb def to_hash: -> { cadence: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::cadence, currency: String, - grouped_with_prorated_minimum_config: ::Hash[Symbol, top], + grouped_with_prorated_minimum_config: Orb::NewFloatingGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig, item_id: String, model_type: Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::model_type, name: String, @@ -112,6 +112,29 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingGroupedWithProratedMinimumPrice::cadence] end + type grouped_with_prorated_minimum_config = + { grouping_key: String, minimum: String, unit_rate: String } + + class GroupedWithProratedMinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor minimum: String + + attr_accessor unit_rate: String + + def initialize: ( + grouping_key: String, + minimum: String, + unit_rate: String + ) -> void + + def to_hash: -> { + grouping_key: String, + minimum: String, + unit_rate: String + } + end + type model_type = :grouped_with_prorated_minimum module ModelType diff --git a/sig/orb/models/new_floating_matrix_with_display_name_price.rbs b/sig/orb/models/new_floating_matrix_with_display_name_price.rbs index e9b1f117..6e125ae4 100644 --- a/sig/orb/models/new_floating_matrix_with_display_name_price.rbs +++ b/sig/orb/models/new_floating_matrix_with_display_name_price.rbs @@ -5,7 +5,7 @@ module Orb cadence: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::cadence, currency: String, item_id: String, - matrix_with_display_name_config: ::Hash[Symbol, top], + matrix_with_display_name_config: Orb::NewFloatingMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig, model_type: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::model_type, name: String, billable_metric_id: String?, @@ -28,7 +28,7 @@ module Orb attr_accessor item_id: String - attr_accessor matrix_with_display_name_config: ::Hash[Symbol, top] + attr_accessor matrix_with_display_name_config: Orb::NewFloatingMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig attr_accessor model_type: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::model_type @@ -60,7 +60,7 @@ module Orb cadence: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::cadence, currency: String, item_id: String, - matrix_with_display_name_config: ::Hash[Symbol, top], + matrix_with_display_name_config: Orb::NewFloatingMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig, model_type: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::model_type, name: String, ?billable_metric_id: String?, @@ -80,7 +80,7 @@ module Orb cadence: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::cadence, currency: String, item_id: String, - matrix_with_display_name_config: ::Hash[Symbol, top], + matrix_with_display_name_config: Orb::NewFloatingMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig, model_type: Orb::Models::NewFloatingMatrixWithDisplayNamePrice::model_type, name: String, billable_metric_id: String?, @@ -112,6 +112,51 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingMatrixWithDisplayNamePrice::cadence] end + type matrix_with_display_name_config = + { + dimension: String, + unit_amounts: ::Array[Orb::NewFloatingMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::UnitAmount] + } + + class MatrixWithDisplayNameConfig < Orb::Internal::Type::BaseModel + attr_accessor dimension: String + + attr_accessor unit_amounts: ::Array[Orb::NewFloatingMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::UnitAmount] + + def initialize: ( + dimension: String, + unit_amounts: ::Array[Orb::NewFloatingMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::UnitAmount] + ) -> void + + def to_hash: -> { + dimension: String, + unit_amounts: ::Array[Orb::NewFloatingMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::UnitAmount] + } + + type unit_amount = + { dimension_value: String, display_name: String, unit_amount: String } + + class UnitAmount < Orb::Internal::Type::BaseModel + attr_accessor dimension_value: String + + attr_accessor display_name: String + + attr_accessor unit_amount: String + + def initialize: ( + dimension_value: String, + display_name: String, + unit_amount: String + ) -> void + + def to_hash: -> { + dimension_value: String, + display_name: String, + unit_amount: String + } + end + end + type model_type = :matrix_with_display_name module ModelType diff --git a/sig/orb/models/new_floating_max_group_tiered_package_price.rbs b/sig/orb/models/new_floating_max_group_tiered_package_price.rbs index 310bd155..df63d55a 100644 --- a/sig/orb/models/new_floating_max_group_tiered_package_price.rbs +++ b/sig/orb/models/new_floating_max_group_tiered_package_price.rbs @@ -5,7 +5,7 @@ module Orb cadence: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::cadence, currency: String, item_id: String, - max_group_tiered_package_config: ::Hash[Symbol, top], + max_group_tiered_package_config: Orb::NewFloatingMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig, model_type: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::model_type, name: String, billable_metric_id: String?, @@ -28,7 +28,7 @@ module Orb attr_accessor item_id: String - attr_accessor max_group_tiered_package_config: ::Hash[Symbol, top] + attr_accessor max_group_tiered_package_config: Orb::NewFloatingMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig attr_accessor model_type: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::model_type @@ -60,7 +60,7 @@ module Orb cadence: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::cadence, currency: String, item_id: String, - max_group_tiered_package_config: ::Hash[Symbol, top], + max_group_tiered_package_config: Orb::NewFloatingMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig, model_type: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::model_type, name: String, ?billable_metric_id: String?, @@ -80,7 +80,7 @@ module Orb cadence: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::cadence, currency: String, item_id: String, - max_group_tiered_package_config: ::Hash[Symbol, top], + max_group_tiered_package_config: Orb::NewFloatingMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig, model_type: Orb::Models::NewFloatingMaxGroupTieredPackagePrice::model_type, name: String, billable_metric_id: String?, @@ -112,6 +112,48 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingMaxGroupTieredPackagePrice::cadence] end + type max_group_tiered_package_config = + { + grouping_key: String, + package_size: String, + tiers: ::Array[Orb::NewFloatingMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig::Tier] + } + + class MaxGroupTieredPackageConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor package_size: String + + attr_accessor tiers: ::Array[Orb::NewFloatingMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig::Tier] + + def initialize: ( + grouping_key: String, + package_size: String, + tiers: ::Array[Orb::NewFloatingMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig::Tier] + ) -> void + + def to_hash: -> { + grouping_key: String, + package_size: String, + tiers: ::Array[Orb::NewFloatingMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig::Tier] + } + + type tier = { tier_lower_bound: String, unit_amount: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { tier_lower_bound: String, unit_amount: String } + end + end + type model_type = :max_group_tiered_package module ModelType diff --git a/sig/orb/models/new_floating_minimum_composite_price.rbs b/sig/orb/models/new_floating_minimum_composite_price.rbs index 55384bbc..d04467ad 100644 --- a/sig/orb/models/new_floating_minimum_composite_price.rbs +++ b/sig/orb/models/new_floating_minimum_composite_price.rbs @@ -112,16 +112,18 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingMinimumCompositePrice::cadence] end - type minimum_config = { minimum_amount: String, prorated: bool? } + type minimum_config = { minimum_amount: String, prorated: bool } class MinimumConfig < Orb::Internal::Type::BaseModel attr_accessor minimum_amount: String - attr_accessor prorated: bool? + attr_reader prorated: bool? - def initialize: (minimum_amount: String, ?prorated: bool?) -> void + def prorated=: (bool) -> bool - def to_hash: -> { minimum_amount: String, prorated: bool? } + def initialize: (minimum_amount: String, ?prorated: bool) -> void + + def to_hash: -> { minimum_amount: String, prorated: bool } end type model_type = :minimum diff --git a/sig/orb/models/new_floating_package_with_allocation_price.rbs b/sig/orb/models/new_floating_package_with_allocation_price.rbs index 765a53f2..38e9e79c 100644 --- a/sig/orb/models/new_floating_package_with_allocation_price.rbs +++ b/sig/orb/models/new_floating_package_with_allocation_price.rbs @@ -7,7 +7,7 @@ module Orb item_id: String, model_type: Orb::Models::NewFloatingPackageWithAllocationPrice::model_type, name: String, - package_with_allocation_config: ::Hash[Symbol, top], + package_with_allocation_config: Orb::NewFloatingPackageWithAllocationPrice::PackageWithAllocationConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -32,7 +32,7 @@ module Orb attr_accessor name: String - attr_accessor package_with_allocation_config: ::Hash[Symbol, top] + attr_accessor package_with_allocation_config: Orb::NewFloatingPackageWithAllocationPrice::PackageWithAllocationConfig attr_accessor billable_metric_id: String? @@ -62,7 +62,7 @@ module Orb item_id: String, model_type: Orb::Models::NewFloatingPackageWithAllocationPrice::model_type, name: String, - package_with_allocation_config: ::Hash[Symbol, top], + package_with_allocation_config: Orb::NewFloatingPackageWithAllocationPrice::PackageWithAllocationConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -82,7 +82,7 @@ module Orb item_id: String, model_type: Orb::Models::NewFloatingPackageWithAllocationPrice::model_type, name: String, - package_with_allocation_config: ::Hash[Symbol, top], + package_with_allocation_config: Orb::NewFloatingPackageWithAllocationPrice::PackageWithAllocationConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -121,6 +121,29 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingPackageWithAllocationPrice::model_type] end + + type package_with_allocation_config = + { allocation: String, package_amount: String, package_size: String } + + class PackageWithAllocationConfig < Orb::Internal::Type::BaseModel + attr_accessor allocation: String + + attr_accessor package_amount: String + + attr_accessor package_size: String + + def initialize: ( + allocation: String, + package_amount: String, + package_size: String + ) -> void + + def to_hash: -> { + allocation: String, + package_amount: String, + package_size: String + } + end end end end diff --git a/sig/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbs b/sig/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbs index a86e3eef..742e1185 100644 --- a/sig/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbs +++ b/sig/orb/models/new_floating_scalable_matrix_with_tiered_pricing_price.rbs @@ -7,7 +7,7 @@ module Orb item_id: String, model_type: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::model_type, name: String, - scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], + scalable_matrix_with_tiered_pricing_config: Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -32,7 +32,7 @@ module Orb attr_accessor name: String - attr_accessor scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top] + attr_accessor scalable_matrix_with_tiered_pricing_config: Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig attr_accessor billable_metric_id: String? @@ -62,7 +62,7 @@ module Orb item_id: String, model_type: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::model_type, name: String, - scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], + scalable_matrix_with_tiered_pricing_config: Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -82,7 +82,7 @@ module Orb item_id: String, model_type: Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::model_type, name: String, - scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], + scalable_matrix_with_tiered_pricing_config: Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -121,6 +121,80 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice::model_type] end + + type scalable_matrix_with_tiered_pricing_config = + { + first_dimension: String, + matrix_scaling_factors: ::Array[Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor], + tiers: ::Array[Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::Tier], + second_dimension: String? + } + + class ScalableMatrixWithTieredPricingConfig < Orb::Internal::Type::BaseModel + attr_accessor first_dimension: String + + attr_accessor matrix_scaling_factors: ::Array[Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor] + + attr_accessor tiers: ::Array[Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::Tier] + + attr_accessor second_dimension: String? + + def initialize: ( + first_dimension: String, + matrix_scaling_factors: ::Array[Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor], + tiers: ::Array[Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::Tier], + ?second_dimension: String? + ) -> void + + def to_hash: -> { + first_dimension: String, + matrix_scaling_factors: ::Array[Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor], + tiers: ::Array[Orb::NewFloatingScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::Tier], + second_dimension: String? + } + + type matrix_scaling_factor = + { + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: String? + } + + class MatrixScalingFactor < Orb::Internal::Type::BaseModel + attr_accessor first_dimension_value: String + + attr_accessor scaling_factor: String + + attr_accessor second_dimension_value: String? + + def initialize: ( + first_dimension_value: String, + scaling_factor: String, + ?second_dimension_value: String? + ) -> void + + def to_hash: -> { + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: String? + } + end + + type tier = { tier_lower_bound: String, unit_amount: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { tier_lower_bound: String, unit_amount: String } + end + end end end end diff --git a/sig/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbs b/sig/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbs index 551723f6..b5a7e0e7 100644 --- a/sig/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbs +++ b/sig/orb/models/new_floating_scalable_matrix_with_unit_pricing_price.rbs @@ -7,7 +7,7 @@ module Orb item_id: String, model_type: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::model_type, name: String, - scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], + scalable_matrix_with_unit_pricing_config: Orb::NewFloatingScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -32,7 +32,7 @@ module Orb attr_accessor name: String - attr_accessor scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top] + attr_accessor scalable_matrix_with_unit_pricing_config: Orb::NewFloatingScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig attr_accessor billable_metric_id: String? @@ -62,7 +62,7 @@ module Orb item_id: String, model_type: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::model_type, name: String, - scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], + scalable_matrix_with_unit_pricing_config: Orb::NewFloatingScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -82,7 +82,7 @@ module Orb item_id: String, model_type: Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::model_type, name: String, - scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], + scalable_matrix_with_unit_pricing_config: Orb::NewFloatingScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -121,6 +121,70 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice::model_type] end + + type scalable_matrix_with_unit_pricing_config = + { + first_dimension: String, + matrix_scaling_factors: ::Array[Orb::NewFloatingScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor], + unit_price: String, + prorate: bool?, + second_dimension: String? + } + + class ScalableMatrixWithUnitPricingConfig < Orb::Internal::Type::BaseModel + attr_accessor first_dimension: String + + attr_accessor matrix_scaling_factors: ::Array[Orb::NewFloatingScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor] + + attr_accessor unit_price: String + + attr_accessor prorate: bool? + + attr_accessor second_dimension: String? + + def initialize: ( + first_dimension: String, + matrix_scaling_factors: ::Array[Orb::NewFloatingScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor], + unit_price: String, + ?prorate: bool?, + ?second_dimension: String? + ) -> void + + def to_hash: -> { + first_dimension: String, + matrix_scaling_factors: ::Array[Orb::NewFloatingScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor], + unit_price: String, + prorate: bool?, + second_dimension: String? + } + + type matrix_scaling_factor = + { + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: String? + } + + class MatrixScalingFactor < Orb::Internal::Type::BaseModel + attr_accessor first_dimension_value: String + + attr_accessor scaling_factor: String + + attr_accessor second_dimension_value: String? + + def initialize: ( + first_dimension_value: String, + scaling_factor: String, + ?second_dimension_value: String? + ) -> void + + def to_hash: -> { + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: String? + } + end + end end end end diff --git a/sig/orb/models/new_floating_threshold_total_amount_price.rbs b/sig/orb/models/new_floating_threshold_total_amount_price.rbs index a2f3fabb..ba2994eb 100644 --- a/sig/orb/models/new_floating_threshold_total_amount_price.rbs +++ b/sig/orb/models/new_floating_threshold_total_amount_price.rbs @@ -7,7 +7,7 @@ module Orb item_id: String, model_type: Orb::Models::NewFloatingThresholdTotalAmountPrice::model_type, name: String, - threshold_total_amount_config: ::Hash[Symbol, top], + threshold_total_amount_config: Orb::NewFloatingThresholdTotalAmountPrice::ThresholdTotalAmountConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -32,7 +32,7 @@ module Orb attr_accessor name: String - attr_accessor threshold_total_amount_config: ::Hash[Symbol, top] + attr_accessor threshold_total_amount_config: Orb::NewFloatingThresholdTotalAmountPrice::ThresholdTotalAmountConfig attr_accessor billable_metric_id: String? @@ -62,7 +62,7 @@ module Orb item_id: String, model_type: Orb::Models::NewFloatingThresholdTotalAmountPrice::model_type, name: String, - threshold_total_amount_config: ::Hash[Symbol, top], + threshold_total_amount_config: Orb::NewFloatingThresholdTotalAmountPrice::ThresholdTotalAmountConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -82,7 +82,7 @@ module Orb item_id: String, model_type: Orb::Models::NewFloatingThresholdTotalAmountPrice::model_type, name: String, - threshold_total_amount_config: ::Hash[Symbol, top], + threshold_total_amount_config: Orb::NewFloatingThresholdTotalAmountPrice::ThresholdTotalAmountConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -121,6 +121,40 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingThresholdTotalAmountPrice::model_type] end + + type threshold_total_amount_config = + { + consumption_table: ::Array[Orb::NewFloatingThresholdTotalAmountPrice::ThresholdTotalAmountConfig::ConsumptionTable], + prorate: bool? + } + + class ThresholdTotalAmountConfig < Orb::Internal::Type::BaseModel + attr_accessor consumption_table: ::Array[Orb::NewFloatingThresholdTotalAmountPrice::ThresholdTotalAmountConfig::ConsumptionTable] + + attr_accessor prorate: bool? + + def initialize: ( + consumption_table: ::Array[Orb::NewFloatingThresholdTotalAmountPrice::ThresholdTotalAmountConfig::ConsumptionTable], + ?prorate: bool? + ) -> void + + def to_hash: -> { + consumption_table: ::Array[Orb::NewFloatingThresholdTotalAmountPrice::ThresholdTotalAmountConfig::ConsumptionTable], + prorate: bool? + } + + type consumption_table = { threshold: String, total_amount: String } + + class ConsumptionTable < Orb::Internal::Type::BaseModel + attr_accessor threshold: String + + attr_accessor total_amount: String + + def initialize: (threshold: String, total_amount: String) -> void + + def to_hash: -> { threshold: String, total_amount: String } + end + end end end end diff --git a/sig/orb/models/new_floating_tiered_package_price.rbs b/sig/orb/models/new_floating_tiered_package_price.rbs index 8888977b..be2fe79f 100644 --- a/sig/orb/models/new_floating_tiered_package_price.rbs +++ b/sig/orb/models/new_floating_tiered_package_price.rbs @@ -7,7 +7,7 @@ module Orb item_id: String, model_type: Orb::Models::NewFloatingTieredPackagePrice::model_type, name: String, - tiered_package_config: ::Hash[Symbol, top], + tiered_package_config: Orb::NewFloatingTieredPackagePrice::TieredPackageConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -32,7 +32,7 @@ module Orb attr_accessor name: String - attr_accessor tiered_package_config: ::Hash[Symbol, top] + attr_accessor tiered_package_config: Orb::NewFloatingTieredPackagePrice::TieredPackageConfig attr_accessor billable_metric_id: String? @@ -62,7 +62,7 @@ module Orb item_id: String, model_type: Orb::Models::NewFloatingTieredPackagePrice::model_type, name: String, - tiered_package_config: ::Hash[Symbol, top], + tiered_package_config: Orb::NewFloatingTieredPackagePrice::TieredPackageConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -82,7 +82,7 @@ module Orb item_id: String, model_type: Orb::Models::NewFloatingTieredPackagePrice::model_type, name: String, - tiered_package_config: ::Hash[Symbol, top], + tiered_package_config: Orb::NewFloatingTieredPackagePrice::TieredPackageConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -121,6 +121,40 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingTieredPackagePrice::model_type] end + + type tiered_package_config = + { + package_size: String, + tiers: ::Array[Orb::NewFloatingTieredPackagePrice::TieredPackageConfig::Tier] + } + + class TieredPackageConfig < Orb::Internal::Type::BaseModel + attr_accessor package_size: String + + attr_accessor tiers: ::Array[Orb::NewFloatingTieredPackagePrice::TieredPackageConfig::Tier] + + def initialize: ( + package_size: String, + tiers: ::Array[Orb::NewFloatingTieredPackagePrice::TieredPackageConfig::Tier] + ) -> void + + def to_hash: -> { + package_size: String, + tiers: ::Array[Orb::NewFloatingTieredPackagePrice::TieredPackageConfig::Tier] + } + + type tier = { per_unit: String, tier_lower_bound: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor per_unit: String + + attr_accessor tier_lower_bound: String + + def initialize: (per_unit: String, tier_lower_bound: String) -> void + + def to_hash: -> { per_unit: String, tier_lower_bound: String } + end + end end end end diff --git a/sig/orb/models/new_floating_tiered_package_with_minimum_price.rbs b/sig/orb/models/new_floating_tiered_package_with_minimum_price.rbs index ec73b712..bd2f1d9e 100644 --- a/sig/orb/models/new_floating_tiered_package_with_minimum_price.rbs +++ b/sig/orb/models/new_floating_tiered_package_with_minimum_price.rbs @@ -7,7 +7,7 @@ module Orb item_id: String, model_type: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::model_type, name: String, - tiered_package_with_minimum_config: ::Hash[Symbol, top], + tiered_package_with_minimum_config: Orb::NewFloatingTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -32,7 +32,7 @@ module Orb attr_accessor name: String - attr_accessor tiered_package_with_minimum_config: ::Hash[Symbol, top] + attr_accessor tiered_package_with_minimum_config: Orb::NewFloatingTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig attr_accessor billable_metric_id: String? @@ -62,7 +62,7 @@ module Orb item_id: String, model_type: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::model_type, name: String, - tiered_package_with_minimum_config: ::Hash[Symbol, top], + tiered_package_with_minimum_config: Orb::NewFloatingTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -82,7 +82,7 @@ module Orb item_id: String, model_type: Orb::Models::NewFloatingTieredPackageWithMinimumPrice::model_type, name: String, - tiered_package_with_minimum_config: ::Hash[Symbol, top], + tiered_package_with_minimum_config: Orb::NewFloatingTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -121,6 +121,51 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingTieredPackageWithMinimumPrice::model_type] end + + type tiered_package_with_minimum_config = + { + package_size: Float, + tiers: ::Array[Orb::NewFloatingTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::Tier] + } + + class TieredPackageWithMinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor package_size: Float + + attr_accessor tiers: ::Array[Orb::NewFloatingTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::Tier] + + def initialize: ( + package_size: Float, + tiers: ::Array[Orb::NewFloatingTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::Tier] + ) -> void + + def to_hash: -> { + package_size: Float, + tiers: ::Array[Orb::NewFloatingTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::Tier] + } + + type tier = + { minimum_amount: String, per_unit: String, tier_lower_bound: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor minimum_amount: String + + attr_accessor per_unit: String + + attr_accessor tier_lower_bound: String + + def initialize: ( + minimum_amount: String, + per_unit: String, + tier_lower_bound: String + ) -> void + + def to_hash: -> { + minimum_amount: String, + per_unit: String, + tier_lower_bound: String + } + end + end end end end diff --git a/sig/orb/models/new_floating_tiered_with_minimum_price.rbs b/sig/orb/models/new_floating_tiered_with_minimum_price.rbs index 6565f022..5762b023 100644 --- a/sig/orb/models/new_floating_tiered_with_minimum_price.rbs +++ b/sig/orb/models/new_floating_tiered_with_minimum_price.rbs @@ -7,7 +7,7 @@ module Orb item_id: String, model_type: Orb::Models::NewFloatingTieredWithMinimumPrice::model_type, name: String, - tiered_with_minimum_config: ::Hash[Symbol, top], + tiered_with_minimum_config: Orb::NewFloatingTieredWithMinimumPrice::TieredWithMinimumConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -32,7 +32,7 @@ module Orb attr_accessor name: String - attr_accessor tiered_with_minimum_config: ::Hash[Symbol, top] + attr_accessor tiered_with_minimum_config: Orb::NewFloatingTieredWithMinimumPrice::TieredWithMinimumConfig attr_accessor billable_metric_id: String? @@ -62,7 +62,7 @@ module Orb item_id: String, model_type: Orb::Models::NewFloatingTieredWithMinimumPrice::model_type, name: String, - tiered_with_minimum_config: ::Hash[Symbol, top], + tiered_with_minimum_config: Orb::NewFloatingTieredWithMinimumPrice::TieredWithMinimumConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -82,7 +82,7 @@ module Orb item_id: String, model_type: Orb::Models::NewFloatingTieredWithMinimumPrice::model_type, name: String, - tiered_with_minimum_config: ::Hash[Symbol, top], + tiered_with_minimum_config: Orb::NewFloatingTieredWithMinimumPrice::TieredWithMinimumConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -121,6 +121,64 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingTieredWithMinimumPrice::model_type] end + + type tiered_with_minimum_config = + { + tiers: ::Array[Orb::NewFloatingTieredWithMinimumPrice::TieredWithMinimumConfig::Tier], + hide_zero_amount_tiers: bool, + prorate: bool + } + + class TieredWithMinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor tiers: ::Array[Orb::NewFloatingTieredWithMinimumPrice::TieredWithMinimumConfig::Tier] + + attr_reader hide_zero_amount_tiers: bool? + + def hide_zero_amount_tiers=: (bool) -> bool + + attr_reader prorate: bool? + + def prorate=: (bool) -> bool + + def initialize: ( + tiers: ::Array[Orb::NewFloatingTieredWithMinimumPrice::TieredWithMinimumConfig::Tier], + ?hide_zero_amount_tiers: bool, + ?prorate: bool + ) -> void + + def to_hash: -> { + tiers: ::Array[Orb::NewFloatingTieredWithMinimumPrice::TieredWithMinimumConfig::Tier], + hide_zero_amount_tiers: bool, + prorate: bool + } + + type tier = + { + minimum_amount: String, + tier_lower_bound: String, + unit_amount: String + } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor minimum_amount: String + + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + minimum_amount: String, + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { + minimum_amount: String, + tier_lower_bound: String, + unit_amount: String + } + end + end end end end diff --git a/sig/orb/models/new_floating_tiered_with_proration_price.rbs b/sig/orb/models/new_floating_tiered_with_proration_price.rbs index 4ce23b02..358ae429 100644 --- a/sig/orb/models/new_floating_tiered_with_proration_price.rbs +++ b/sig/orb/models/new_floating_tiered_with_proration_price.rbs @@ -7,7 +7,7 @@ module Orb item_id: String, model_type: Orb::Models::NewFloatingTieredWithProrationPrice::model_type, name: String, - tiered_with_proration_config: ::Hash[Symbol, top], + tiered_with_proration_config: Orb::NewFloatingTieredWithProrationPrice::TieredWithProrationConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -32,7 +32,7 @@ module Orb attr_accessor name: String - attr_accessor tiered_with_proration_config: ::Hash[Symbol, top] + attr_accessor tiered_with_proration_config: Orb::NewFloatingTieredWithProrationPrice::TieredWithProrationConfig attr_accessor billable_metric_id: String? @@ -62,7 +62,7 @@ module Orb item_id: String, model_type: Orb::Models::NewFloatingTieredWithProrationPrice::model_type, name: String, - tiered_with_proration_config: ::Hash[Symbol, top], + tiered_with_proration_config: Orb::NewFloatingTieredWithProrationPrice::TieredWithProrationConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -82,7 +82,7 @@ module Orb item_id: String, model_type: Orb::Models::NewFloatingTieredWithProrationPrice::model_type, name: String, - tiered_with_proration_config: ::Hash[Symbol, top], + tiered_with_proration_config: Orb::NewFloatingTieredWithProrationPrice::TieredWithProrationConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -121,6 +121,38 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingTieredWithProrationPrice::model_type] end + + type tiered_with_proration_config = + { + tiers: ::Array[Orb::NewFloatingTieredWithProrationPrice::TieredWithProrationConfig::Tier] + } + + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + attr_accessor tiers: ::Array[Orb::NewFloatingTieredWithProrationPrice::TieredWithProrationConfig::Tier] + + def initialize: ( + tiers: ::Array[Orb::NewFloatingTieredWithProrationPrice::TieredWithProrationConfig::Tier] + ) -> void + + def to_hash: -> { + tiers: ::Array[Orb::NewFloatingTieredWithProrationPrice::TieredWithProrationConfig::Tier] + } + + type tier = { tier_lower_bound: String, unit_amount: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { tier_lower_bound: String, unit_amount: String } + end + end end end end diff --git a/sig/orb/models/new_floating_unit_with_percent_price.rbs b/sig/orb/models/new_floating_unit_with_percent_price.rbs index 29cb4e7a..3bec0ecf 100644 --- a/sig/orb/models/new_floating_unit_with_percent_price.rbs +++ b/sig/orb/models/new_floating_unit_with_percent_price.rbs @@ -7,7 +7,7 @@ module Orb item_id: String, model_type: Orb::Models::NewFloatingUnitWithPercentPrice::model_type, name: String, - unit_with_percent_config: ::Hash[Symbol, top], + unit_with_percent_config: Orb::NewFloatingUnitWithPercentPrice::UnitWithPercentConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -32,7 +32,7 @@ module Orb attr_accessor name: String - attr_accessor unit_with_percent_config: ::Hash[Symbol, top] + attr_accessor unit_with_percent_config: Orb::NewFloatingUnitWithPercentPrice::UnitWithPercentConfig attr_accessor billable_metric_id: String? @@ -62,7 +62,7 @@ module Orb item_id: String, model_type: Orb::Models::NewFloatingUnitWithPercentPrice::model_type, name: String, - unit_with_percent_config: ::Hash[Symbol, top], + unit_with_percent_config: Orb::NewFloatingUnitWithPercentPrice::UnitWithPercentConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -82,7 +82,7 @@ module Orb item_id: String, model_type: Orb::Models::NewFloatingUnitWithPercentPrice::model_type, name: String, - unit_with_percent_config: ::Hash[Symbol, top], + unit_with_percent_config: Orb::NewFloatingUnitWithPercentPrice::UnitWithPercentConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -121,6 +121,18 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingUnitWithPercentPrice::model_type] end + + type unit_with_percent_config = { percent: String, unit_amount: String } + + class UnitWithPercentConfig < Orb::Internal::Type::BaseModel + attr_accessor percent: String + + attr_accessor unit_amount: String + + def initialize: (percent: String, unit_amount: String) -> void + + def to_hash: -> { percent: String, unit_amount: String } + end end end end diff --git a/sig/orb/models/new_floating_unit_with_proration_price.rbs b/sig/orb/models/new_floating_unit_with_proration_price.rbs index c466268f..cca9ed37 100644 --- a/sig/orb/models/new_floating_unit_with_proration_price.rbs +++ b/sig/orb/models/new_floating_unit_with_proration_price.rbs @@ -7,7 +7,7 @@ module Orb item_id: String, model_type: Orb::Models::NewFloatingUnitWithProrationPrice::model_type, name: String, - unit_with_proration_config: ::Hash[Symbol, top], + unit_with_proration_config: Orb::NewFloatingUnitWithProrationPrice::UnitWithProrationConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -32,7 +32,7 @@ module Orb attr_accessor name: String - attr_accessor unit_with_proration_config: ::Hash[Symbol, top] + attr_accessor unit_with_proration_config: Orb::NewFloatingUnitWithProrationPrice::UnitWithProrationConfig attr_accessor billable_metric_id: String? @@ -62,7 +62,7 @@ module Orb item_id: String, model_type: Orb::Models::NewFloatingUnitWithProrationPrice::model_type, name: String, - unit_with_proration_config: ::Hash[Symbol, top], + unit_with_proration_config: Orb::NewFloatingUnitWithProrationPrice::UnitWithProrationConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -82,7 +82,7 @@ module Orb item_id: String, model_type: Orb::Models::NewFloatingUnitWithProrationPrice::model_type, name: String, - unit_with_proration_config: ::Hash[Symbol, top], + unit_with_proration_config: Orb::NewFloatingUnitWithProrationPrice::UnitWithProrationConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -121,6 +121,16 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewFloatingUnitWithProrationPrice::model_type] end + + type unit_with_proration_config = { unit_amount: String } + + class UnitWithProrationConfig < Orb::Internal::Type::BaseModel + attr_accessor unit_amount: String + + def initialize: (unit_amount: String) -> void + + def to_hash: -> { unit_amount: String } + end end end end diff --git a/sig/orb/models/new_plan_bulk_with_proration_price.rbs b/sig/orb/models/new_plan_bulk_with_proration_price.rbs index 6e807640..3526f1d6 100644 --- a/sig/orb/models/new_plan_bulk_with_proration_price.rbs +++ b/sig/orb/models/new_plan_bulk_with_proration_price.rbs @@ -2,7 +2,7 @@ module Orb module Models type new_plan_bulk_with_proration_price = { - bulk_with_proration_config: ::Hash[Symbol, top], + bulk_with_proration_config: Orb::NewPlanBulkWithProrationPrice::BulkWithProrationConfig, cadence: Orb::Models::NewPlanBulkWithProrationPrice::cadence, item_id: String, model_type: Orb::Models::NewPlanBulkWithProrationPrice::model_type, @@ -23,7 +23,7 @@ module Orb } class NewPlanBulkWithProrationPrice < Orb::Internal::Type::BaseModel - attr_accessor bulk_with_proration_config: ::Hash[Symbol, top] + attr_accessor bulk_with_proration_config: Orb::NewPlanBulkWithProrationPrice::BulkWithProrationConfig attr_accessor cadence: Orb::Models::NewPlanBulkWithProrationPrice::cadence @@ -60,7 +60,7 @@ module Orb attr_accessor reference_id: String? def initialize: ( - bulk_with_proration_config: ::Hash[Symbol, top], + bulk_with_proration_config: Orb::NewPlanBulkWithProrationPrice::BulkWithProrationConfig, cadence: Orb::Models::NewPlanBulkWithProrationPrice::cadence, item_id: String, model_type: Orb::Models::NewPlanBulkWithProrationPrice::model_type, @@ -81,7 +81,7 @@ module Orb ) -> void def to_hash: -> { - bulk_with_proration_config: ::Hash[Symbol, top], + bulk_with_proration_config: Orb::NewPlanBulkWithProrationPrice::BulkWithProrationConfig, cadence: Orb::Models::NewPlanBulkWithProrationPrice::cadence, item_id: String, model_type: Orb::Models::NewPlanBulkWithProrationPrice::model_type, @@ -101,6 +101,38 @@ module Orb reference_id: String? } + type bulk_with_proration_config = + { + tiers: ::Array[Orb::NewPlanBulkWithProrationPrice::BulkWithProrationConfig::Tier] + } + + class BulkWithProrationConfig < Orb::Internal::Type::BaseModel + attr_accessor tiers: ::Array[Orb::NewPlanBulkWithProrationPrice::BulkWithProrationConfig::Tier] + + def initialize: ( + tiers: ::Array[Orb::NewPlanBulkWithProrationPrice::BulkWithProrationConfig::Tier] + ) -> void + + def to_hash: -> { + tiers: ::Array[Orb::NewPlanBulkWithProrationPrice::BulkWithProrationConfig::Tier] + } + + type tier = { unit_amount: String, tier_lower_bound: String? } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor unit_amount: String + + attr_accessor tier_lower_bound: String? + + def initialize: ( + unit_amount: String, + ?tier_lower_bound: String? + ) -> void + + def to_hash: -> { unit_amount: String, tier_lower_bound: String? } + end + end + type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom diff --git a/sig/orb/models/new_plan_cumulative_grouped_bulk_price.rbs b/sig/orb/models/new_plan_cumulative_grouped_bulk_price.rbs index 425cd3f9..0d6d5295 100644 --- a/sig/orb/models/new_plan_cumulative_grouped_bulk_price.rbs +++ b/sig/orb/models/new_plan_cumulative_grouped_bulk_price.rbs @@ -3,7 +3,7 @@ module Orb type new_plan_cumulative_grouped_bulk_price = { cadence: Orb::Models::NewPlanCumulativeGroupedBulkPrice::cadence, - cumulative_grouped_bulk_config: ::Hash[Symbol, top], + cumulative_grouped_bulk_config: Orb::NewPlanCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig, item_id: String, model_type: Orb::Models::NewPlanCumulativeGroupedBulkPrice::model_type, name: String, @@ -25,7 +25,7 @@ module Orb class NewPlanCumulativeGroupedBulkPrice < Orb::Internal::Type::BaseModel attr_accessor cadence: Orb::Models::NewPlanCumulativeGroupedBulkPrice::cadence - attr_accessor cumulative_grouped_bulk_config: ::Hash[Symbol, top] + attr_accessor cumulative_grouped_bulk_config: Orb::NewPlanCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig attr_accessor item_id: String @@ -61,7 +61,7 @@ module Orb def initialize: ( cadence: Orb::Models::NewPlanCumulativeGroupedBulkPrice::cadence, - cumulative_grouped_bulk_config: ::Hash[Symbol, top], + cumulative_grouped_bulk_config: Orb::NewPlanCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig, item_id: String, model_type: Orb::Models::NewPlanCumulativeGroupedBulkPrice::model_type, name: String, @@ -82,7 +82,7 @@ module Orb def to_hash: -> { cadence: Orb::Models::NewPlanCumulativeGroupedBulkPrice::cadence, - cumulative_grouped_bulk_config: ::Hash[Symbol, top], + cumulative_grouped_bulk_config: Orb::NewPlanCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig, item_id: String, model_type: Orb::Models::NewPlanCumulativeGroupedBulkPrice::model_type, name: String, @@ -117,6 +117,55 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanCumulativeGroupedBulkPrice::cadence] end + type cumulative_grouped_bulk_config = + { + dimension_values: ::Array[Orb::NewPlanCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig::DimensionValue], + group: String + } + + class CumulativeGroupedBulkConfig < Orb::Internal::Type::BaseModel + attr_accessor dimension_values: ::Array[Orb::NewPlanCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig::DimensionValue] + + attr_accessor group: String + + def initialize: ( + dimension_values: ::Array[Orb::NewPlanCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig::DimensionValue], + group: String + ) -> void + + def to_hash: -> { + dimension_values: ::Array[Orb::NewPlanCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig::DimensionValue], + group: String + } + + type dimension_value = + { + grouping_key: String, + tier_lower_bound: String, + unit_amount: String + } + + class DimensionValue < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + grouping_key: String, + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { + grouping_key: String, + tier_lower_bound: String, + unit_amount: String + } + end + end + type model_type = :cumulative_grouped_bulk module ModelType diff --git a/sig/orb/models/new_plan_grouped_allocation_price.rbs b/sig/orb/models/new_plan_grouped_allocation_price.rbs index f31f24cf..3d79bdda 100644 --- a/sig/orb/models/new_plan_grouped_allocation_price.rbs +++ b/sig/orb/models/new_plan_grouped_allocation_price.rbs @@ -3,7 +3,7 @@ module Orb type new_plan_grouped_allocation_price = { cadence: Orb::Models::NewPlanGroupedAllocationPrice::cadence, - grouped_allocation_config: ::Hash[Symbol, top], + grouped_allocation_config: Orb::NewPlanGroupedAllocationPrice::GroupedAllocationConfig, item_id: String, model_type: Orb::Models::NewPlanGroupedAllocationPrice::model_type, name: String, @@ -25,7 +25,7 @@ module Orb class NewPlanGroupedAllocationPrice < Orb::Internal::Type::BaseModel attr_accessor cadence: Orb::Models::NewPlanGroupedAllocationPrice::cadence - attr_accessor grouped_allocation_config: ::Hash[Symbol, top] + attr_accessor grouped_allocation_config: Orb::NewPlanGroupedAllocationPrice::GroupedAllocationConfig attr_accessor item_id: String @@ -61,7 +61,7 @@ module Orb def initialize: ( cadence: Orb::Models::NewPlanGroupedAllocationPrice::cadence, - grouped_allocation_config: ::Hash[Symbol, top], + grouped_allocation_config: Orb::NewPlanGroupedAllocationPrice::GroupedAllocationConfig, item_id: String, model_type: Orb::Models::NewPlanGroupedAllocationPrice::model_type, name: String, @@ -82,7 +82,7 @@ module Orb def to_hash: -> { cadence: Orb::Models::NewPlanGroupedAllocationPrice::cadence, - grouped_allocation_config: ::Hash[Symbol, top], + grouped_allocation_config: Orb::NewPlanGroupedAllocationPrice::GroupedAllocationConfig, item_id: String, model_type: Orb::Models::NewPlanGroupedAllocationPrice::model_type, name: String, @@ -117,6 +117,29 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanGroupedAllocationPrice::cadence] end + type grouped_allocation_config = + { allocation: String, grouping_key: String, overage_unit_rate: String } + + class GroupedAllocationConfig < Orb::Internal::Type::BaseModel + attr_accessor allocation: String + + attr_accessor grouping_key: String + + attr_accessor overage_unit_rate: String + + def initialize: ( + allocation: String, + grouping_key: String, + overage_unit_rate: String + ) -> void + + def to_hash: -> { + allocation: String, + grouping_key: String, + overage_unit_rate: String + } + end + type model_type = :grouped_allocation module ModelType diff --git a/sig/orb/models/new_plan_grouped_tiered_package_price.rbs b/sig/orb/models/new_plan_grouped_tiered_package_price.rbs index c2d21614..3be1c57f 100644 --- a/sig/orb/models/new_plan_grouped_tiered_package_price.rbs +++ b/sig/orb/models/new_plan_grouped_tiered_package_price.rbs @@ -3,7 +3,7 @@ module Orb type new_plan_grouped_tiered_package_price = { cadence: Orb::Models::NewPlanGroupedTieredPackagePrice::cadence, - grouped_tiered_package_config: ::Hash[Symbol, top], + grouped_tiered_package_config: Orb::NewPlanGroupedTieredPackagePrice::GroupedTieredPackageConfig, item_id: String, model_type: Orb::Models::NewPlanGroupedTieredPackagePrice::model_type, name: String, @@ -25,7 +25,7 @@ module Orb class NewPlanGroupedTieredPackagePrice < Orb::Internal::Type::BaseModel attr_accessor cadence: Orb::Models::NewPlanGroupedTieredPackagePrice::cadence - attr_accessor grouped_tiered_package_config: ::Hash[Symbol, top] + attr_accessor grouped_tiered_package_config: Orb::NewPlanGroupedTieredPackagePrice::GroupedTieredPackageConfig attr_accessor item_id: String @@ -61,7 +61,7 @@ module Orb def initialize: ( cadence: Orb::Models::NewPlanGroupedTieredPackagePrice::cadence, - grouped_tiered_package_config: ::Hash[Symbol, top], + grouped_tiered_package_config: Orb::NewPlanGroupedTieredPackagePrice::GroupedTieredPackageConfig, item_id: String, model_type: Orb::Models::NewPlanGroupedTieredPackagePrice::model_type, name: String, @@ -82,7 +82,7 @@ module Orb def to_hash: -> { cadence: Orb::Models::NewPlanGroupedTieredPackagePrice::cadence, - grouped_tiered_package_config: ::Hash[Symbol, top], + grouped_tiered_package_config: Orb::NewPlanGroupedTieredPackagePrice::GroupedTieredPackageConfig, item_id: String, model_type: Orb::Models::NewPlanGroupedTieredPackagePrice::model_type, name: String, @@ -117,6 +117,45 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanGroupedTieredPackagePrice::cadence] end + type grouped_tiered_package_config = + { + grouping_key: String, + package_size: String, + tiers: ::Array[Orb::NewPlanGroupedTieredPackagePrice::GroupedTieredPackageConfig::Tier] + } + + class GroupedTieredPackageConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor package_size: String + + attr_accessor tiers: ::Array[Orb::NewPlanGroupedTieredPackagePrice::GroupedTieredPackageConfig::Tier] + + def initialize: ( + grouping_key: String, + package_size: String, + tiers: ::Array[Orb::NewPlanGroupedTieredPackagePrice::GroupedTieredPackageConfig::Tier] + ) -> void + + def to_hash: -> { + grouping_key: String, + package_size: String, + tiers: ::Array[Orb::NewPlanGroupedTieredPackagePrice::GroupedTieredPackageConfig::Tier] + } + + type tier = { per_unit: String, tier_lower_bound: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor per_unit: String + + attr_accessor tier_lower_bound: String + + def initialize: (per_unit: String, tier_lower_bound: String) -> void + + def to_hash: -> { per_unit: String, tier_lower_bound: String } + end + end + type model_type = :grouped_tiered_package module ModelType diff --git a/sig/orb/models/new_plan_grouped_tiered_price.rbs b/sig/orb/models/new_plan_grouped_tiered_price.rbs index 82648ffd..2dd7bc36 100644 --- a/sig/orb/models/new_plan_grouped_tiered_price.rbs +++ b/sig/orb/models/new_plan_grouped_tiered_price.rbs @@ -3,7 +3,7 @@ module Orb type new_plan_grouped_tiered_price = { cadence: Orb::Models::NewPlanGroupedTieredPrice::cadence, - grouped_tiered_config: ::Hash[Symbol, top], + grouped_tiered_config: Orb::NewPlanGroupedTieredPrice::GroupedTieredConfig, item_id: String, model_type: Orb::Models::NewPlanGroupedTieredPrice::model_type, name: String, @@ -25,7 +25,7 @@ module Orb class NewPlanGroupedTieredPrice < Orb::Internal::Type::BaseModel attr_accessor cadence: Orb::Models::NewPlanGroupedTieredPrice::cadence - attr_accessor grouped_tiered_config: ::Hash[Symbol, top] + attr_accessor grouped_tiered_config: Orb::NewPlanGroupedTieredPrice::GroupedTieredConfig attr_accessor item_id: String @@ -61,7 +61,7 @@ module Orb def initialize: ( cadence: Orb::Models::NewPlanGroupedTieredPrice::cadence, - grouped_tiered_config: ::Hash[Symbol, top], + grouped_tiered_config: Orb::NewPlanGroupedTieredPrice::GroupedTieredConfig, item_id: String, model_type: Orb::Models::NewPlanGroupedTieredPrice::model_type, name: String, @@ -82,7 +82,7 @@ module Orb def to_hash: -> { cadence: Orb::Models::NewPlanGroupedTieredPrice::cadence, - grouped_tiered_config: ::Hash[Symbol, top], + grouped_tiered_config: Orb::NewPlanGroupedTieredPrice::GroupedTieredConfig, item_id: String, model_type: Orb::Models::NewPlanGroupedTieredPrice::model_type, name: String, @@ -117,6 +117,43 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanGroupedTieredPrice::cadence] end + type grouped_tiered_config = + { + grouping_key: String, + tiers: ::Array[Orb::NewPlanGroupedTieredPrice::GroupedTieredConfig::Tier] + } + + class GroupedTieredConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor tiers: ::Array[Orb::NewPlanGroupedTieredPrice::GroupedTieredConfig::Tier] + + def initialize: ( + grouping_key: String, + tiers: ::Array[Orb::NewPlanGroupedTieredPrice::GroupedTieredConfig::Tier] + ) -> void + + def to_hash: -> { + grouping_key: String, + tiers: ::Array[Orb::NewPlanGroupedTieredPrice::GroupedTieredConfig::Tier] + } + + type tier = { tier_lower_bound: String, unit_amount: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { tier_lower_bound: String, unit_amount: String } + end + end + type model_type = :grouped_tiered module ModelType diff --git a/sig/orb/models/new_plan_grouped_with_metered_minimum_price.rbs b/sig/orb/models/new_plan_grouped_with_metered_minimum_price.rbs index 7c9e6142..3afe61fc 100644 --- a/sig/orb/models/new_plan_grouped_with_metered_minimum_price.rbs +++ b/sig/orb/models/new_plan_grouped_with_metered_minimum_price.rbs @@ -3,7 +3,7 @@ module Orb type new_plan_grouped_with_metered_minimum_price = { cadence: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::cadence, - grouped_with_metered_minimum_config: ::Hash[Symbol, top], + grouped_with_metered_minimum_config: Orb::NewPlanGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig, item_id: String, model_type: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::model_type, name: String, @@ -25,7 +25,7 @@ module Orb class NewPlanGroupedWithMeteredMinimumPrice < Orb::Internal::Type::BaseModel attr_accessor cadence: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::cadence - attr_accessor grouped_with_metered_minimum_config: ::Hash[Symbol, top] + attr_accessor grouped_with_metered_minimum_config: Orb::NewPlanGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig attr_accessor item_id: String @@ -61,7 +61,7 @@ module Orb def initialize: ( cadence: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::cadence, - grouped_with_metered_minimum_config: ::Hash[Symbol, top], + grouped_with_metered_minimum_config: Orb::NewPlanGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig, item_id: String, model_type: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::model_type, name: String, @@ -82,7 +82,7 @@ module Orb def to_hash: -> { cadence: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::cadence, - grouped_with_metered_minimum_config: ::Hash[Symbol, top], + grouped_with_metered_minimum_config: Orb::NewPlanGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig, item_id: String, model_type: Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::model_type, name: String, @@ -117,6 +117,75 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanGroupedWithMeteredMinimumPrice::cadence] end + type grouped_with_metered_minimum_config = + { + grouping_key: String, + minimum_unit_amount: String, + pricing_key: String, + scaling_factors: ::Array[Orb::NewPlanGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::ScalingFactor], + scaling_key: String, + unit_amounts: ::Array[Orb::NewPlanGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::UnitAmount] + } + + class GroupedWithMeteredMinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor minimum_unit_amount: String + + attr_accessor pricing_key: String + + attr_accessor scaling_factors: ::Array[Orb::NewPlanGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::ScalingFactor] + + attr_accessor scaling_key: String + + attr_accessor unit_amounts: ::Array[Orb::NewPlanGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::UnitAmount] + + def initialize: ( + grouping_key: String, + minimum_unit_amount: String, + pricing_key: String, + scaling_factors: ::Array[Orb::NewPlanGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::ScalingFactor], + scaling_key: String, + unit_amounts: ::Array[Orb::NewPlanGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::UnitAmount] + ) -> void + + def to_hash: -> { + grouping_key: String, + minimum_unit_amount: String, + pricing_key: String, + scaling_factors: ::Array[Orb::NewPlanGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::ScalingFactor], + scaling_key: String, + unit_amounts: ::Array[Orb::NewPlanGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::UnitAmount] + } + + type scaling_factor = { scaling_factor: String, scaling_value: String } + + class ScalingFactor < Orb::Internal::Type::BaseModel + attr_accessor scaling_factor: String + + attr_accessor scaling_value: String + + def initialize: ( + scaling_factor: String, + scaling_value: String + ) -> void + + def to_hash: -> { scaling_factor: String, scaling_value: String } + end + + type unit_amount = { pricing_value: String, unit_amount: String } + + class UnitAmount < Orb::Internal::Type::BaseModel + attr_accessor pricing_value: String + + attr_accessor unit_amount: String + + def initialize: (pricing_value: String, unit_amount: String) -> void + + def to_hash: -> { pricing_value: String, unit_amount: String } + end + end + type model_type = :grouped_with_metered_minimum module ModelType diff --git a/sig/orb/models/new_plan_grouped_with_prorated_minimum_price.rbs b/sig/orb/models/new_plan_grouped_with_prorated_minimum_price.rbs index 5cf3aace..1308da07 100644 --- a/sig/orb/models/new_plan_grouped_with_prorated_minimum_price.rbs +++ b/sig/orb/models/new_plan_grouped_with_prorated_minimum_price.rbs @@ -3,7 +3,7 @@ module Orb type new_plan_grouped_with_prorated_minimum_price = { cadence: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::cadence, - grouped_with_prorated_minimum_config: ::Hash[Symbol, top], + grouped_with_prorated_minimum_config: Orb::NewPlanGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig, item_id: String, model_type: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::model_type, name: String, @@ -25,7 +25,7 @@ module Orb class NewPlanGroupedWithProratedMinimumPrice < Orb::Internal::Type::BaseModel attr_accessor cadence: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::cadence - attr_accessor grouped_with_prorated_minimum_config: ::Hash[Symbol, top] + attr_accessor grouped_with_prorated_minimum_config: Orb::NewPlanGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig attr_accessor item_id: String @@ -61,7 +61,7 @@ module Orb def initialize: ( cadence: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::cadence, - grouped_with_prorated_minimum_config: ::Hash[Symbol, top], + grouped_with_prorated_minimum_config: Orb::NewPlanGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig, item_id: String, model_type: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::model_type, name: String, @@ -82,7 +82,7 @@ module Orb def to_hash: -> { cadence: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::cadence, - grouped_with_prorated_minimum_config: ::Hash[Symbol, top], + grouped_with_prorated_minimum_config: Orb::NewPlanGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig, item_id: String, model_type: Orb::Models::NewPlanGroupedWithProratedMinimumPrice::model_type, name: String, @@ -117,6 +117,29 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanGroupedWithProratedMinimumPrice::cadence] end + type grouped_with_prorated_minimum_config = + { grouping_key: String, minimum: String, unit_rate: String } + + class GroupedWithProratedMinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor minimum: String + + attr_accessor unit_rate: String + + def initialize: ( + grouping_key: String, + minimum: String, + unit_rate: String + ) -> void + + def to_hash: -> { + grouping_key: String, + minimum: String, + unit_rate: String + } + end + type model_type = :grouped_with_prorated_minimum module ModelType diff --git a/sig/orb/models/new_plan_matrix_with_display_name_price.rbs b/sig/orb/models/new_plan_matrix_with_display_name_price.rbs index bb4229a8..a498f6cc 100644 --- a/sig/orb/models/new_plan_matrix_with_display_name_price.rbs +++ b/sig/orb/models/new_plan_matrix_with_display_name_price.rbs @@ -4,7 +4,7 @@ module Orb { cadence: Orb::Models::NewPlanMatrixWithDisplayNamePrice::cadence, item_id: String, - matrix_with_display_name_config: ::Hash[Symbol, top], + matrix_with_display_name_config: Orb::NewPlanMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig, model_type: Orb::Models::NewPlanMatrixWithDisplayNamePrice::model_type, name: String, billable_metric_id: String?, @@ -27,7 +27,7 @@ module Orb attr_accessor item_id: String - attr_accessor matrix_with_display_name_config: ::Hash[Symbol, top] + attr_accessor matrix_with_display_name_config: Orb::NewPlanMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig attr_accessor model_type: Orb::Models::NewPlanMatrixWithDisplayNamePrice::model_type @@ -62,7 +62,7 @@ module Orb def initialize: ( cadence: Orb::Models::NewPlanMatrixWithDisplayNamePrice::cadence, item_id: String, - matrix_with_display_name_config: ::Hash[Symbol, top], + matrix_with_display_name_config: Orb::NewPlanMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig, model_type: Orb::Models::NewPlanMatrixWithDisplayNamePrice::model_type, name: String, ?billable_metric_id: String?, @@ -83,7 +83,7 @@ module Orb def to_hash: -> { cadence: Orb::Models::NewPlanMatrixWithDisplayNamePrice::cadence, item_id: String, - matrix_with_display_name_config: ::Hash[Symbol, top], + matrix_with_display_name_config: Orb::NewPlanMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig, model_type: Orb::Models::NewPlanMatrixWithDisplayNamePrice::model_type, name: String, billable_metric_id: String?, @@ -117,6 +117,51 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanMatrixWithDisplayNamePrice::cadence] end + type matrix_with_display_name_config = + { + dimension: String, + unit_amounts: ::Array[Orb::NewPlanMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::UnitAmount] + } + + class MatrixWithDisplayNameConfig < Orb::Internal::Type::BaseModel + attr_accessor dimension: String + + attr_accessor unit_amounts: ::Array[Orb::NewPlanMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::UnitAmount] + + def initialize: ( + dimension: String, + unit_amounts: ::Array[Orb::NewPlanMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::UnitAmount] + ) -> void + + def to_hash: -> { + dimension: String, + unit_amounts: ::Array[Orb::NewPlanMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::UnitAmount] + } + + type unit_amount = + { dimension_value: String, display_name: String, unit_amount: String } + + class UnitAmount < Orb::Internal::Type::BaseModel + attr_accessor dimension_value: String + + attr_accessor display_name: String + + attr_accessor unit_amount: String + + def initialize: ( + dimension_value: String, + display_name: String, + unit_amount: String + ) -> void + + def to_hash: -> { + dimension_value: String, + display_name: String, + unit_amount: String + } + end + end + type model_type = :matrix_with_display_name module ModelType diff --git a/sig/orb/models/new_plan_max_group_tiered_package_price.rbs b/sig/orb/models/new_plan_max_group_tiered_package_price.rbs index 743fa734..8ff7c96c 100644 --- a/sig/orb/models/new_plan_max_group_tiered_package_price.rbs +++ b/sig/orb/models/new_plan_max_group_tiered_package_price.rbs @@ -4,7 +4,7 @@ module Orb { cadence: Orb::Models::NewPlanMaxGroupTieredPackagePrice::cadence, item_id: String, - max_group_tiered_package_config: ::Hash[Symbol, top], + max_group_tiered_package_config: Orb::NewPlanMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig, model_type: Orb::Models::NewPlanMaxGroupTieredPackagePrice::model_type, name: String, billable_metric_id: String?, @@ -27,7 +27,7 @@ module Orb attr_accessor item_id: String - attr_accessor max_group_tiered_package_config: ::Hash[Symbol, top] + attr_accessor max_group_tiered_package_config: Orb::NewPlanMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig attr_accessor model_type: Orb::Models::NewPlanMaxGroupTieredPackagePrice::model_type @@ -62,7 +62,7 @@ module Orb def initialize: ( cadence: Orb::Models::NewPlanMaxGroupTieredPackagePrice::cadence, item_id: String, - max_group_tiered_package_config: ::Hash[Symbol, top], + max_group_tiered_package_config: Orb::NewPlanMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig, model_type: Orb::Models::NewPlanMaxGroupTieredPackagePrice::model_type, name: String, ?billable_metric_id: String?, @@ -83,7 +83,7 @@ module Orb def to_hash: -> { cadence: Orb::Models::NewPlanMaxGroupTieredPackagePrice::cadence, item_id: String, - max_group_tiered_package_config: ::Hash[Symbol, top], + max_group_tiered_package_config: Orb::NewPlanMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig, model_type: Orb::Models::NewPlanMaxGroupTieredPackagePrice::model_type, name: String, billable_metric_id: String?, @@ -117,6 +117,48 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanMaxGroupTieredPackagePrice::cadence] end + type max_group_tiered_package_config = + { + grouping_key: String, + package_size: String, + tiers: ::Array[Orb::NewPlanMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig::Tier] + } + + class MaxGroupTieredPackageConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor package_size: String + + attr_accessor tiers: ::Array[Orb::NewPlanMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig::Tier] + + def initialize: ( + grouping_key: String, + package_size: String, + tiers: ::Array[Orb::NewPlanMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig::Tier] + ) -> void + + def to_hash: -> { + grouping_key: String, + package_size: String, + tiers: ::Array[Orb::NewPlanMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig::Tier] + } + + type tier = { tier_lower_bound: String, unit_amount: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { tier_lower_bound: String, unit_amount: String } + end + end + type model_type = :max_group_tiered_package module ModelType diff --git a/sig/orb/models/new_plan_minimum_composite_price.rbs b/sig/orb/models/new_plan_minimum_composite_price.rbs index 834283ea..70ad0603 100644 --- a/sig/orb/models/new_plan_minimum_composite_price.rbs +++ b/sig/orb/models/new_plan_minimum_composite_price.rbs @@ -117,16 +117,18 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanMinimumCompositePrice::cadence] end - type minimum_config = { minimum_amount: String, prorated: bool? } + type minimum_config = { minimum_amount: String, prorated: bool } class MinimumConfig < Orb::Internal::Type::BaseModel attr_accessor minimum_amount: String - attr_accessor prorated: bool? + attr_reader prorated: bool? - def initialize: (minimum_amount: String, ?prorated: bool?) -> void + def prorated=: (bool) -> bool - def to_hash: -> { minimum_amount: String, prorated: bool? } + def initialize: (minimum_amount: String, ?prorated: bool) -> void + + def to_hash: -> { minimum_amount: String, prorated: bool } end type model_type = :minimum diff --git a/sig/orb/models/new_plan_package_with_allocation_price.rbs b/sig/orb/models/new_plan_package_with_allocation_price.rbs index cac51912..c4f816a1 100644 --- a/sig/orb/models/new_plan_package_with_allocation_price.rbs +++ b/sig/orb/models/new_plan_package_with_allocation_price.rbs @@ -6,7 +6,7 @@ module Orb item_id: String, model_type: Orb::Models::NewPlanPackageWithAllocationPrice::model_type, name: String, - package_with_allocation_config: ::Hash[Symbol, top], + package_with_allocation_config: Orb::NewPlanPackageWithAllocationPrice::PackageWithAllocationConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -31,7 +31,7 @@ module Orb attr_accessor name: String - attr_accessor package_with_allocation_config: ::Hash[Symbol, top] + attr_accessor package_with_allocation_config: Orb::NewPlanPackageWithAllocationPrice::PackageWithAllocationConfig attr_accessor billable_metric_id: String? @@ -64,7 +64,7 @@ module Orb item_id: String, model_type: Orb::Models::NewPlanPackageWithAllocationPrice::model_type, name: String, - package_with_allocation_config: ::Hash[Symbol, top], + package_with_allocation_config: Orb::NewPlanPackageWithAllocationPrice::PackageWithAllocationConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -85,7 +85,7 @@ module Orb item_id: String, model_type: Orb::Models::NewPlanPackageWithAllocationPrice::model_type, name: String, - package_with_allocation_config: ::Hash[Symbol, top], + package_with_allocation_config: Orb::NewPlanPackageWithAllocationPrice::PackageWithAllocationConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -126,6 +126,29 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanPackageWithAllocationPrice::model_type] end + + type package_with_allocation_config = + { allocation: String, package_amount: String, package_size: String } + + class PackageWithAllocationConfig < Orb::Internal::Type::BaseModel + attr_accessor allocation: String + + attr_accessor package_amount: String + + attr_accessor package_size: String + + def initialize: ( + allocation: String, + package_amount: String, + package_size: String + ) -> void + + def to_hash: -> { + allocation: String, + package_amount: String, + package_size: String + } + end end end end diff --git a/sig/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbs b/sig/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbs index b64cb766..08b5f738 100644 --- a/sig/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbs +++ b/sig/orb/models/new_plan_scalable_matrix_with_tiered_pricing_price.rbs @@ -6,7 +6,7 @@ module Orb item_id: String, model_type: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::model_type, name: String, - scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], + scalable_matrix_with_tiered_pricing_config: Orb::NewPlanScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -31,7 +31,7 @@ module Orb attr_accessor name: String - attr_accessor scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top] + attr_accessor scalable_matrix_with_tiered_pricing_config: Orb::NewPlanScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig attr_accessor billable_metric_id: String? @@ -64,7 +64,7 @@ module Orb item_id: String, model_type: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::model_type, name: String, - scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], + scalable_matrix_with_tiered_pricing_config: Orb::NewPlanScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -85,7 +85,7 @@ module Orb item_id: String, model_type: Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::model_type, name: String, - scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], + scalable_matrix_with_tiered_pricing_config: Orb::NewPlanScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -126,6 +126,80 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanScalableMatrixWithTieredPricingPrice::model_type] end + + type scalable_matrix_with_tiered_pricing_config = + { + first_dimension: String, + matrix_scaling_factors: ::Array[Orb::NewPlanScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor], + tiers: ::Array[Orb::NewPlanScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::Tier], + second_dimension: String? + } + + class ScalableMatrixWithTieredPricingConfig < Orb::Internal::Type::BaseModel + attr_accessor first_dimension: String + + attr_accessor matrix_scaling_factors: ::Array[Orb::NewPlanScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor] + + attr_accessor tiers: ::Array[Orb::NewPlanScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::Tier] + + attr_accessor second_dimension: String? + + def initialize: ( + first_dimension: String, + matrix_scaling_factors: ::Array[Orb::NewPlanScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor], + tiers: ::Array[Orb::NewPlanScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::Tier], + ?second_dimension: String? + ) -> void + + def to_hash: -> { + first_dimension: String, + matrix_scaling_factors: ::Array[Orb::NewPlanScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor], + tiers: ::Array[Orb::NewPlanScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::Tier], + second_dimension: String? + } + + type matrix_scaling_factor = + { + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: String? + } + + class MatrixScalingFactor < Orb::Internal::Type::BaseModel + attr_accessor first_dimension_value: String + + attr_accessor scaling_factor: String + + attr_accessor second_dimension_value: String? + + def initialize: ( + first_dimension_value: String, + scaling_factor: String, + ?second_dimension_value: String? + ) -> void + + def to_hash: -> { + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: String? + } + end + + type tier = { tier_lower_bound: String, unit_amount: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { tier_lower_bound: String, unit_amount: String } + end + end end end end diff --git a/sig/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbs b/sig/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbs index 43bf19d0..f48c4826 100644 --- a/sig/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbs +++ b/sig/orb/models/new_plan_scalable_matrix_with_unit_pricing_price.rbs @@ -6,7 +6,7 @@ module Orb item_id: String, model_type: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::model_type, name: String, - scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], + scalable_matrix_with_unit_pricing_config: Orb::NewPlanScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -31,7 +31,7 @@ module Orb attr_accessor name: String - attr_accessor scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top] + attr_accessor scalable_matrix_with_unit_pricing_config: Orb::NewPlanScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig attr_accessor billable_metric_id: String? @@ -64,7 +64,7 @@ module Orb item_id: String, model_type: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::model_type, name: String, - scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], + scalable_matrix_with_unit_pricing_config: Orb::NewPlanScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -85,7 +85,7 @@ module Orb item_id: String, model_type: Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::model_type, name: String, - scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], + scalable_matrix_with_unit_pricing_config: Orb::NewPlanScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -126,6 +126,70 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanScalableMatrixWithUnitPricingPrice::model_type] end + + type scalable_matrix_with_unit_pricing_config = + { + first_dimension: String, + matrix_scaling_factors: ::Array[Orb::NewPlanScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor], + unit_price: String, + prorate: bool?, + second_dimension: String? + } + + class ScalableMatrixWithUnitPricingConfig < Orb::Internal::Type::BaseModel + attr_accessor first_dimension: String + + attr_accessor matrix_scaling_factors: ::Array[Orb::NewPlanScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor] + + attr_accessor unit_price: String + + attr_accessor prorate: bool? + + attr_accessor second_dimension: String? + + def initialize: ( + first_dimension: String, + matrix_scaling_factors: ::Array[Orb::NewPlanScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor], + unit_price: String, + ?prorate: bool?, + ?second_dimension: String? + ) -> void + + def to_hash: -> { + first_dimension: String, + matrix_scaling_factors: ::Array[Orb::NewPlanScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor], + unit_price: String, + prorate: bool?, + second_dimension: String? + } + + type matrix_scaling_factor = + { + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: String? + } + + class MatrixScalingFactor < Orb::Internal::Type::BaseModel + attr_accessor first_dimension_value: String + + attr_accessor scaling_factor: String + + attr_accessor second_dimension_value: String? + + def initialize: ( + first_dimension_value: String, + scaling_factor: String, + ?second_dimension_value: String? + ) -> void + + def to_hash: -> { + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: String? + } + end + end end end end diff --git a/sig/orb/models/new_plan_threshold_total_amount_price.rbs b/sig/orb/models/new_plan_threshold_total_amount_price.rbs index cf8119c6..a04a39fa 100644 --- a/sig/orb/models/new_plan_threshold_total_amount_price.rbs +++ b/sig/orb/models/new_plan_threshold_total_amount_price.rbs @@ -6,7 +6,7 @@ module Orb item_id: String, model_type: Orb::Models::NewPlanThresholdTotalAmountPrice::model_type, name: String, - threshold_total_amount_config: ::Hash[Symbol, top], + threshold_total_amount_config: Orb::NewPlanThresholdTotalAmountPrice::ThresholdTotalAmountConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -31,7 +31,7 @@ module Orb attr_accessor name: String - attr_accessor threshold_total_amount_config: ::Hash[Symbol, top] + attr_accessor threshold_total_amount_config: Orb::NewPlanThresholdTotalAmountPrice::ThresholdTotalAmountConfig attr_accessor billable_metric_id: String? @@ -64,7 +64,7 @@ module Orb item_id: String, model_type: Orb::Models::NewPlanThresholdTotalAmountPrice::model_type, name: String, - threshold_total_amount_config: ::Hash[Symbol, top], + threshold_total_amount_config: Orb::NewPlanThresholdTotalAmountPrice::ThresholdTotalAmountConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -85,7 +85,7 @@ module Orb item_id: String, model_type: Orb::Models::NewPlanThresholdTotalAmountPrice::model_type, name: String, - threshold_total_amount_config: ::Hash[Symbol, top], + threshold_total_amount_config: Orb::NewPlanThresholdTotalAmountPrice::ThresholdTotalAmountConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -126,6 +126,40 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanThresholdTotalAmountPrice::model_type] end + + type threshold_total_amount_config = + { + consumption_table: ::Array[Orb::NewPlanThresholdTotalAmountPrice::ThresholdTotalAmountConfig::ConsumptionTable], + prorate: bool? + } + + class ThresholdTotalAmountConfig < Orb::Internal::Type::BaseModel + attr_accessor consumption_table: ::Array[Orb::NewPlanThresholdTotalAmountPrice::ThresholdTotalAmountConfig::ConsumptionTable] + + attr_accessor prorate: bool? + + def initialize: ( + consumption_table: ::Array[Orb::NewPlanThresholdTotalAmountPrice::ThresholdTotalAmountConfig::ConsumptionTable], + ?prorate: bool? + ) -> void + + def to_hash: -> { + consumption_table: ::Array[Orb::NewPlanThresholdTotalAmountPrice::ThresholdTotalAmountConfig::ConsumptionTable], + prorate: bool? + } + + type consumption_table = { threshold: String, total_amount: String } + + class ConsumptionTable < Orb::Internal::Type::BaseModel + attr_accessor threshold: String + + attr_accessor total_amount: String + + def initialize: (threshold: String, total_amount: String) -> void + + def to_hash: -> { threshold: String, total_amount: String } + end + end end end end diff --git a/sig/orb/models/new_plan_tier_with_proration_price.rbs b/sig/orb/models/new_plan_tier_with_proration_price.rbs deleted file mode 100644 index b5dd6e73..00000000 --- a/sig/orb/models/new_plan_tier_with_proration_price.rbs +++ /dev/null @@ -1,131 +0,0 @@ -module Orb - module Models - type new_plan_tier_with_proration_price = - { - cadence: Orb::Models::NewPlanTierWithProrationPrice::cadence, - item_id: String, - model_type: Orb::Models::NewPlanTierWithProrationPrice::model_type, - name: String, - tiered_with_proration_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::conversion_rate_config?, - currency: String?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String? - } - - class NewPlanTierWithProrationPrice < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::NewPlanTierWithProrationPrice::cadence - - attr_accessor item_id: String - - attr_accessor model_type: Orb::Models::NewPlanTierWithProrationPrice::model_type - - attr_accessor name: String - - attr_accessor tiered_with_proration_config: ::Hash[Symbol, top] - - attr_accessor billable_metric_id: String? - - attr_accessor billed_in_advance: bool? - - attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor conversion_rate: Float? - - attr_accessor conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::conversion_rate_config? - - attr_accessor currency: String? - - attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? - - attr_accessor external_price_id: String? - - attr_accessor fixed_price_quantity: Float? - - attr_accessor invoice_grouping_key: String? - - attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor metadata: ::Hash[Symbol, String?]? - - attr_accessor reference_id: String? - - def initialize: ( - cadence: Orb::Models::NewPlanTierWithProrationPrice::cadence, - item_id: String, - model_type: Orb::Models::NewPlanTierWithProrationPrice::model_type, - name: String, - tiered_with_proration_config: ::Hash[Symbol, top], - ?billable_metric_id: String?, - ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::conversion_rate_config?, - ?currency: String?, - ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - ?external_price_id: String?, - ?fixed_price_quantity: Float?, - ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?metadata: ::Hash[Symbol, String?]?, - ?reference_id: String? - ) -> void - - def to_hash: -> { - cadence: Orb::Models::NewPlanTierWithProrationPrice::cadence, - item_id: String, - model_type: Orb::Models::NewPlanTierWithProrationPrice::model_type, - name: String, - tiered_with_proration_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewPlanTierWithProrationPrice::conversion_rate_config?, - currency: String?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String? - } - - type cadence = - :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL: :annual - SEMI_ANNUAL: :semi_annual - MONTHLY: :monthly - QUARTERLY: :quarterly - ONE_TIME: :one_time - CUSTOM: :custom - - def self?.values: -> ::Array[Orb::Models::NewPlanTierWithProrationPrice::cadence] - end - - type model_type = :tiered_with_proration - - module ModelType - extend Orb::Internal::Type::Enum - - TIERED_WITH_PRORATION: :tiered_with_proration - - def self?.values: -> ::Array[Orb::Models::NewPlanTierWithProrationPrice::model_type] - end - end - end -end diff --git a/sig/orb/models/new_plan_tiered_package_price.rbs b/sig/orb/models/new_plan_tiered_package_price.rbs index 029c24e2..5bdd5140 100644 --- a/sig/orb/models/new_plan_tiered_package_price.rbs +++ b/sig/orb/models/new_plan_tiered_package_price.rbs @@ -6,7 +6,7 @@ module Orb item_id: String, model_type: Orb::Models::NewPlanTieredPackagePrice::model_type, name: String, - tiered_package_config: ::Hash[Symbol, top], + tiered_package_config: Orb::NewPlanTieredPackagePrice::TieredPackageConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -31,7 +31,7 @@ module Orb attr_accessor name: String - attr_accessor tiered_package_config: ::Hash[Symbol, top] + attr_accessor tiered_package_config: Orb::NewPlanTieredPackagePrice::TieredPackageConfig attr_accessor billable_metric_id: String? @@ -64,7 +64,7 @@ module Orb item_id: String, model_type: Orb::Models::NewPlanTieredPackagePrice::model_type, name: String, - tiered_package_config: ::Hash[Symbol, top], + tiered_package_config: Orb::NewPlanTieredPackagePrice::TieredPackageConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -85,7 +85,7 @@ module Orb item_id: String, model_type: Orb::Models::NewPlanTieredPackagePrice::model_type, name: String, - tiered_package_config: ::Hash[Symbol, top], + tiered_package_config: Orb::NewPlanTieredPackagePrice::TieredPackageConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -126,6 +126,40 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanTieredPackagePrice::model_type] end + + type tiered_package_config = + { + package_size: String, + tiers: ::Array[Orb::NewPlanTieredPackagePrice::TieredPackageConfig::Tier] + } + + class TieredPackageConfig < Orb::Internal::Type::BaseModel + attr_accessor package_size: String + + attr_accessor tiers: ::Array[Orb::NewPlanTieredPackagePrice::TieredPackageConfig::Tier] + + def initialize: ( + package_size: String, + tiers: ::Array[Orb::NewPlanTieredPackagePrice::TieredPackageConfig::Tier] + ) -> void + + def to_hash: -> { + package_size: String, + tiers: ::Array[Orb::NewPlanTieredPackagePrice::TieredPackageConfig::Tier] + } + + type tier = { per_unit: String, tier_lower_bound: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor per_unit: String + + attr_accessor tier_lower_bound: String + + def initialize: (per_unit: String, tier_lower_bound: String) -> void + + def to_hash: -> { per_unit: String, tier_lower_bound: String } + end + end end end end diff --git a/sig/orb/models/new_plan_tiered_package_with_minimum_price.rbs b/sig/orb/models/new_plan_tiered_package_with_minimum_price.rbs index 6d4ad117..ff418ccd 100644 --- a/sig/orb/models/new_plan_tiered_package_with_minimum_price.rbs +++ b/sig/orb/models/new_plan_tiered_package_with_minimum_price.rbs @@ -6,7 +6,7 @@ module Orb item_id: String, model_type: Orb::Models::NewPlanTieredPackageWithMinimumPrice::model_type, name: String, - tiered_package_with_minimum_config: ::Hash[Symbol, top], + tiered_package_with_minimum_config: Orb::NewPlanTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -31,7 +31,7 @@ module Orb attr_accessor name: String - attr_accessor tiered_package_with_minimum_config: ::Hash[Symbol, top] + attr_accessor tiered_package_with_minimum_config: Orb::NewPlanTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig attr_accessor billable_metric_id: String? @@ -64,7 +64,7 @@ module Orb item_id: String, model_type: Orb::Models::NewPlanTieredPackageWithMinimumPrice::model_type, name: String, - tiered_package_with_minimum_config: ::Hash[Symbol, top], + tiered_package_with_minimum_config: Orb::NewPlanTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -85,7 +85,7 @@ module Orb item_id: String, model_type: Orb::Models::NewPlanTieredPackageWithMinimumPrice::model_type, name: String, - tiered_package_with_minimum_config: ::Hash[Symbol, top], + tiered_package_with_minimum_config: Orb::NewPlanTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -126,6 +126,51 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanTieredPackageWithMinimumPrice::model_type] end + + type tiered_package_with_minimum_config = + { + package_size: Float, + tiers: ::Array[Orb::NewPlanTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::Tier] + } + + class TieredPackageWithMinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor package_size: Float + + attr_accessor tiers: ::Array[Orb::NewPlanTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::Tier] + + def initialize: ( + package_size: Float, + tiers: ::Array[Orb::NewPlanTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::Tier] + ) -> void + + def to_hash: -> { + package_size: Float, + tiers: ::Array[Orb::NewPlanTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::Tier] + } + + type tier = + { minimum_amount: String, per_unit: String, tier_lower_bound: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor minimum_amount: String + + attr_accessor per_unit: String + + attr_accessor tier_lower_bound: String + + def initialize: ( + minimum_amount: String, + per_unit: String, + tier_lower_bound: String + ) -> void + + def to_hash: -> { + minimum_amount: String, + per_unit: String, + tier_lower_bound: String + } + end + end end end end diff --git a/sig/orb/models/new_plan_tiered_with_minimum_price.rbs b/sig/orb/models/new_plan_tiered_with_minimum_price.rbs index 2dae5649..72d2cf49 100644 --- a/sig/orb/models/new_plan_tiered_with_minimum_price.rbs +++ b/sig/orb/models/new_plan_tiered_with_minimum_price.rbs @@ -6,7 +6,7 @@ module Orb item_id: String, model_type: Orb::Models::NewPlanTieredWithMinimumPrice::model_type, name: String, - tiered_with_minimum_config: ::Hash[Symbol, top], + tiered_with_minimum_config: Orb::NewPlanTieredWithMinimumPrice::TieredWithMinimumConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -31,7 +31,7 @@ module Orb attr_accessor name: String - attr_accessor tiered_with_minimum_config: ::Hash[Symbol, top] + attr_accessor tiered_with_minimum_config: Orb::NewPlanTieredWithMinimumPrice::TieredWithMinimumConfig attr_accessor billable_metric_id: String? @@ -64,7 +64,7 @@ module Orb item_id: String, model_type: Orb::Models::NewPlanTieredWithMinimumPrice::model_type, name: String, - tiered_with_minimum_config: ::Hash[Symbol, top], + tiered_with_minimum_config: Orb::NewPlanTieredWithMinimumPrice::TieredWithMinimumConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -85,7 +85,7 @@ module Orb item_id: String, model_type: Orb::Models::NewPlanTieredWithMinimumPrice::model_type, name: String, - tiered_with_minimum_config: ::Hash[Symbol, top], + tiered_with_minimum_config: Orb::NewPlanTieredWithMinimumPrice::TieredWithMinimumConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -126,6 +126,64 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanTieredWithMinimumPrice::model_type] end + + type tiered_with_minimum_config = + { + tiers: ::Array[Orb::NewPlanTieredWithMinimumPrice::TieredWithMinimumConfig::Tier], + hide_zero_amount_tiers: bool, + prorate: bool + } + + class TieredWithMinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor tiers: ::Array[Orb::NewPlanTieredWithMinimumPrice::TieredWithMinimumConfig::Tier] + + attr_reader hide_zero_amount_tiers: bool? + + def hide_zero_amount_tiers=: (bool) -> bool + + attr_reader prorate: bool? + + def prorate=: (bool) -> bool + + def initialize: ( + tiers: ::Array[Orb::NewPlanTieredWithMinimumPrice::TieredWithMinimumConfig::Tier], + ?hide_zero_amount_tiers: bool, + ?prorate: bool + ) -> void + + def to_hash: -> { + tiers: ::Array[Orb::NewPlanTieredWithMinimumPrice::TieredWithMinimumConfig::Tier], + hide_zero_amount_tiers: bool, + prorate: bool + } + + type tier = + { + minimum_amount: String, + tier_lower_bound: String, + unit_amount: String + } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor minimum_amount: String + + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + minimum_amount: String, + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { + minimum_amount: String, + tier_lower_bound: String, + unit_amount: String + } + end + end end end end diff --git a/sig/orb/models/new_plan_unit_with_percent_price.rbs b/sig/orb/models/new_plan_unit_with_percent_price.rbs index e6e33ea6..e461b467 100644 --- a/sig/orb/models/new_plan_unit_with_percent_price.rbs +++ b/sig/orb/models/new_plan_unit_with_percent_price.rbs @@ -6,7 +6,7 @@ module Orb item_id: String, model_type: Orb::Models::NewPlanUnitWithPercentPrice::model_type, name: String, - unit_with_percent_config: ::Hash[Symbol, top], + unit_with_percent_config: Orb::NewPlanUnitWithPercentPrice::UnitWithPercentConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -31,7 +31,7 @@ module Orb attr_accessor name: String - attr_accessor unit_with_percent_config: ::Hash[Symbol, top] + attr_accessor unit_with_percent_config: Orb::NewPlanUnitWithPercentPrice::UnitWithPercentConfig attr_accessor billable_metric_id: String? @@ -64,7 +64,7 @@ module Orb item_id: String, model_type: Orb::Models::NewPlanUnitWithPercentPrice::model_type, name: String, - unit_with_percent_config: ::Hash[Symbol, top], + unit_with_percent_config: Orb::NewPlanUnitWithPercentPrice::UnitWithPercentConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -85,7 +85,7 @@ module Orb item_id: String, model_type: Orb::Models::NewPlanUnitWithPercentPrice::model_type, name: String, - unit_with_percent_config: ::Hash[Symbol, top], + unit_with_percent_config: Orb::NewPlanUnitWithPercentPrice::UnitWithPercentConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -126,6 +126,18 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanUnitWithPercentPrice::model_type] end + + type unit_with_percent_config = { percent: String, unit_amount: String } + + class UnitWithPercentConfig < Orb::Internal::Type::BaseModel + attr_accessor percent: String + + attr_accessor unit_amount: String + + def initialize: (percent: String, unit_amount: String) -> void + + def to_hash: -> { percent: String, unit_amount: String } + end end end end diff --git a/sig/orb/models/new_plan_unit_with_proration_price.rbs b/sig/orb/models/new_plan_unit_with_proration_price.rbs index 5abefd98..234b05c2 100644 --- a/sig/orb/models/new_plan_unit_with_proration_price.rbs +++ b/sig/orb/models/new_plan_unit_with_proration_price.rbs @@ -6,7 +6,7 @@ module Orb item_id: String, model_type: Orb::Models::NewPlanUnitWithProrationPrice::model_type, name: String, - unit_with_proration_config: ::Hash[Symbol, top], + unit_with_proration_config: Orb::NewPlanUnitWithProrationPrice::UnitWithProrationConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -31,7 +31,7 @@ module Orb attr_accessor name: String - attr_accessor unit_with_proration_config: ::Hash[Symbol, top] + attr_accessor unit_with_proration_config: Orb::NewPlanUnitWithProrationPrice::UnitWithProrationConfig attr_accessor billable_metric_id: String? @@ -64,7 +64,7 @@ module Orb item_id: String, model_type: Orb::Models::NewPlanUnitWithProrationPrice::model_type, name: String, - unit_with_proration_config: ::Hash[Symbol, top], + unit_with_proration_config: Orb::NewPlanUnitWithProrationPrice::UnitWithProrationConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -85,7 +85,7 @@ module Orb item_id: String, model_type: Orb::Models::NewPlanUnitWithProrationPrice::model_type, name: String, - unit_with_proration_config: ::Hash[Symbol, top], + unit_with_proration_config: Orb::NewPlanUnitWithProrationPrice::UnitWithProrationConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -126,6 +126,16 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewPlanUnitWithProrationPrice::model_type] end + + type unit_with_proration_config = { unit_amount: String } + + class UnitWithProrationConfig < Orb::Internal::Type::BaseModel + attr_accessor unit_amount: String + + def initialize: (unit_amount: String) -> void + + def to_hash: -> { unit_amount: String } + end end end end diff --git a/sig/orb/models/new_subscription_bulk_with_proration_price.rbs b/sig/orb/models/new_subscription_bulk_with_proration_price.rbs index cb18cef8..0ccfa07b 100644 --- a/sig/orb/models/new_subscription_bulk_with_proration_price.rbs +++ b/sig/orb/models/new_subscription_bulk_with_proration_price.rbs @@ -2,7 +2,7 @@ module Orb module Models type new_subscription_bulk_with_proration_price = { - bulk_with_proration_config: ::Hash[Symbol, top], + bulk_with_proration_config: Orb::NewSubscriptionBulkWithProrationPrice::BulkWithProrationConfig, cadence: Orb::Models::NewSubscriptionBulkWithProrationPrice::cadence, item_id: String, model_type: Orb::Models::NewSubscriptionBulkWithProrationPrice::model_type, @@ -23,7 +23,7 @@ module Orb } class NewSubscriptionBulkWithProrationPrice < Orb::Internal::Type::BaseModel - attr_accessor bulk_with_proration_config: ::Hash[Symbol, top] + attr_accessor bulk_with_proration_config: Orb::NewSubscriptionBulkWithProrationPrice::BulkWithProrationConfig attr_accessor cadence: Orb::Models::NewSubscriptionBulkWithProrationPrice::cadence @@ -60,7 +60,7 @@ module Orb attr_accessor reference_id: String? def initialize: ( - bulk_with_proration_config: ::Hash[Symbol, top], + bulk_with_proration_config: Orb::NewSubscriptionBulkWithProrationPrice::BulkWithProrationConfig, cadence: Orb::Models::NewSubscriptionBulkWithProrationPrice::cadence, item_id: String, model_type: Orb::Models::NewSubscriptionBulkWithProrationPrice::model_type, @@ -81,7 +81,7 @@ module Orb ) -> void def to_hash: -> { - bulk_with_proration_config: ::Hash[Symbol, top], + bulk_with_proration_config: Orb::NewSubscriptionBulkWithProrationPrice::BulkWithProrationConfig, cadence: Orb::Models::NewSubscriptionBulkWithProrationPrice::cadence, item_id: String, model_type: Orb::Models::NewSubscriptionBulkWithProrationPrice::model_type, @@ -101,6 +101,38 @@ module Orb reference_id: String? } + type bulk_with_proration_config = + { + tiers: ::Array[Orb::NewSubscriptionBulkWithProrationPrice::BulkWithProrationConfig::Tier] + } + + class BulkWithProrationConfig < Orb::Internal::Type::BaseModel + attr_accessor tiers: ::Array[Orb::NewSubscriptionBulkWithProrationPrice::BulkWithProrationConfig::Tier] + + def initialize: ( + tiers: ::Array[Orb::NewSubscriptionBulkWithProrationPrice::BulkWithProrationConfig::Tier] + ) -> void + + def to_hash: -> { + tiers: ::Array[Orb::NewSubscriptionBulkWithProrationPrice::BulkWithProrationConfig::Tier] + } + + type tier = { unit_amount: String, tier_lower_bound: String? } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor unit_amount: String + + attr_accessor tier_lower_bound: String? + + def initialize: ( + unit_amount: String, + ?tier_lower_bound: String? + ) -> void + + def to_hash: -> { unit_amount: String, tier_lower_bound: String? } + end + end + type cadence = :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom diff --git a/sig/orb/models/new_subscription_cumulative_grouped_bulk_price.rbs b/sig/orb/models/new_subscription_cumulative_grouped_bulk_price.rbs index 8b363daa..86642817 100644 --- a/sig/orb/models/new_subscription_cumulative_grouped_bulk_price.rbs +++ b/sig/orb/models/new_subscription_cumulative_grouped_bulk_price.rbs @@ -3,7 +3,7 @@ module Orb type new_subscription_cumulative_grouped_bulk_price = { cadence: Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::cadence, - cumulative_grouped_bulk_config: ::Hash[Symbol, top], + cumulative_grouped_bulk_config: Orb::NewSubscriptionCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig, item_id: String, model_type: Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::model_type, name: String, @@ -25,7 +25,7 @@ module Orb class NewSubscriptionCumulativeGroupedBulkPrice < Orb::Internal::Type::BaseModel attr_accessor cadence: Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::cadence - attr_accessor cumulative_grouped_bulk_config: ::Hash[Symbol, top] + attr_accessor cumulative_grouped_bulk_config: Orb::NewSubscriptionCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig attr_accessor item_id: String @@ -61,7 +61,7 @@ module Orb def initialize: ( cadence: Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::cadence, - cumulative_grouped_bulk_config: ::Hash[Symbol, top], + cumulative_grouped_bulk_config: Orb::NewSubscriptionCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig, item_id: String, model_type: Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::model_type, name: String, @@ -82,7 +82,7 @@ module Orb def to_hash: -> { cadence: Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::cadence, - cumulative_grouped_bulk_config: ::Hash[Symbol, top], + cumulative_grouped_bulk_config: Orb::NewSubscriptionCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig, item_id: String, model_type: Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::model_type, name: String, @@ -117,6 +117,55 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionCumulativeGroupedBulkPrice::cadence] end + type cumulative_grouped_bulk_config = + { + dimension_values: ::Array[Orb::NewSubscriptionCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig::DimensionValue], + group: String + } + + class CumulativeGroupedBulkConfig < Orb::Internal::Type::BaseModel + attr_accessor dimension_values: ::Array[Orb::NewSubscriptionCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig::DimensionValue] + + attr_accessor group: String + + def initialize: ( + dimension_values: ::Array[Orb::NewSubscriptionCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig::DimensionValue], + group: String + ) -> void + + def to_hash: -> { + dimension_values: ::Array[Orb::NewSubscriptionCumulativeGroupedBulkPrice::CumulativeGroupedBulkConfig::DimensionValue], + group: String + } + + type dimension_value = + { + grouping_key: String, + tier_lower_bound: String, + unit_amount: String + } + + class DimensionValue < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + grouping_key: String, + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { + grouping_key: String, + tier_lower_bound: String, + unit_amount: String + } + end + end + type model_type = :cumulative_grouped_bulk module ModelType diff --git a/sig/orb/models/new_subscription_grouped_allocation_price.rbs b/sig/orb/models/new_subscription_grouped_allocation_price.rbs index 3e0c1aee..8a6e8055 100644 --- a/sig/orb/models/new_subscription_grouped_allocation_price.rbs +++ b/sig/orb/models/new_subscription_grouped_allocation_price.rbs @@ -3,7 +3,7 @@ module Orb type new_subscription_grouped_allocation_price = { cadence: Orb::Models::NewSubscriptionGroupedAllocationPrice::cadence, - grouped_allocation_config: ::Hash[Symbol, top], + grouped_allocation_config: Orb::NewSubscriptionGroupedAllocationPrice::GroupedAllocationConfig, item_id: String, model_type: Orb::Models::NewSubscriptionGroupedAllocationPrice::model_type, name: String, @@ -25,7 +25,7 @@ module Orb class NewSubscriptionGroupedAllocationPrice < Orb::Internal::Type::BaseModel attr_accessor cadence: Orb::Models::NewSubscriptionGroupedAllocationPrice::cadence - attr_accessor grouped_allocation_config: ::Hash[Symbol, top] + attr_accessor grouped_allocation_config: Orb::NewSubscriptionGroupedAllocationPrice::GroupedAllocationConfig attr_accessor item_id: String @@ -61,7 +61,7 @@ module Orb def initialize: ( cadence: Orb::Models::NewSubscriptionGroupedAllocationPrice::cadence, - grouped_allocation_config: ::Hash[Symbol, top], + grouped_allocation_config: Orb::NewSubscriptionGroupedAllocationPrice::GroupedAllocationConfig, item_id: String, model_type: Orb::Models::NewSubscriptionGroupedAllocationPrice::model_type, name: String, @@ -82,7 +82,7 @@ module Orb def to_hash: -> { cadence: Orb::Models::NewSubscriptionGroupedAllocationPrice::cadence, - grouped_allocation_config: ::Hash[Symbol, top], + grouped_allocation_config: Orb::NewSubscriptionGroupedAllocationPrice::GroupedAllocationConfig, item_id: String, model_type: Orb::Models::NewSubscriptionGroupedAllocationPrice::model_type, name: String, @@ -117,6 +117,29 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionGroupedAllocationPrice::cadence] end + type grouped_allocation_config = + { allocation: String, grouping_key: String, overage_unit_rate: String } + + class GroupedAllocationConfig < Orb::Internal::Type::BaseModel + attr_accessor allocation: String + + attr_accessor grouping_key: String + + attr_accessor overage_unit_rate: String + + def initialize: ( + allocation: String, + grouping_key: String, + overage_unit_rate: String + ) -> void + + def to_hash: -> { + allocation: String, + grouping_key: String, + overage_unit_rate: String + } + end + type model_type = :grouped_allocation module ModelType diff --git a/sig/orb/models/new_subscription_grouped_tiered_package_price.rbs b/sig/orb/models/new_subscription_grouped_tiered_package_price.rbs index 7b6ede4c..b70770d3 100644 --- a/sig/orb/models/new_subscription_grouped_tiered_package_price.rbs +++ b/sig/orb/models/new_subscription_grouped_tiered_package_price.rbs @@ -3,7 +3,7 @@ module Orb type new_subscription_grouped_tiered_package_price = { cadence: Orb::Models::NewSubscriptionGroupedTieredPackagePrice::cadence, - grouped_tiered_package_config: ::Hash[Symbol, top], + grouped_tiered_package_config: Orb::NewSubscriptionGroupedTieredPackagePrice::GroupedTieredPackageConfig, item_id: String, model_type: Orb::Models::NewSubscriptionGroupedTieredPackagePrice::model_type, name: String, @@ -25,7 +25,7 @@ module Orb class NewSubscriptionGroupedTieredPackagePrice < Orb::Internal::Type::BaseModel attr_accessor cadence: Orb::Models::NewSubscriptionGroupedTieredPackagePrice::cadence - attr_accessor grouped_tiered_package_config: ::Hash[Symbol, top] + attr_accessor grouped_tiered_package_config: Orb::NewSubscriptionGroupedTieredPackagePrice::GroupedTieredPackageConfig attr_accessor item_id: String @@ -61,7 +61,7 @@ module Orb def initialize: ( cadence: Orb::Models::NewSubscriptionGroupedTieredPackagePrice::cadence, - grouped_tiered_package_config: ::Hash[Symbol, top], + grouped_tiered_package_config: Orb::NewSubscriptionGroupedTieredPackagePrice::GroupedTieredPackageConfig, item_id: String, model_type: Orb::Models::NewSubscriptionGroupedTieredPackagePrice::model_type, name: String, @@ -82,7 +82,7 @@ module Orb def to_hash: -> { cadence: Orb::Models::NewSubscriptionGroupedTieredPackagePrice::cadence, - grouped_tiered_package_config: ::Hash[Symbol, top], + grouped_tiered_package_config: Orb::NewSubscriptionGroupedTieredPackagePrice::GroupedTieredPackageConfig, item_id: String, model_type: Orb::Models::NewSubscriptionGroupedTieredPackagePrice::model_type, name: String, @@ -117,6 +117,45 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionGroupedTieredPackagePrice::cadence] end + type grouped_tiered_package_config = + { + grouping_key: String, + package_size: String, + tiers: ::Array[Orb::NewSubscriptionGroupedTieredPackagePrice::GroupedTieredPackageConfig::Tier] + } + + class GroupedTieredPackageConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor package_size: String + + attr_accessor tiers: ::Array[Orb::NewSubscriptionGroupedTieredPackagePrice::GroupedTieredPackageConfig::Tier] + + def initialize: ( + grouping_key: String, + package_size: String, + tiers: ::Array[Orb::NewSubscriptionGroupedTieredPackagePrice::GroupedTieredPackageConfig::Tier] + ) -> void + + def to_hash: -> { + grouping_key: String, + package_size: String, + tiers: ::Array[Orb::NewSubscriptionGroupedTieredPackagePrice::GroupedTieredPackageConfig::Tier] + } + + type tier = { per_unit: String, tier_lower_bound: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor per_unit: String + + attr_accessor tier_lower_bound: String + + def initialize: (per_unit: String, tier_lower_bound: String) -> void + + def to_hash: -> { per_unit: String, tier_lower_bound: String } + end + end + type model_type = :grouped_tiered_package module ModelType diff --git a/sig/orb/models/new_subscription_grouped_tiered_price.rbs b/sig/orb/models/new_subscription_grouped_tiered_price.rbs index f2694f43..195adbbb 100644 --- a/sig/orb/models/new_subscription_grouped_tiered_price.rbs +++ b/sig/orb/models/new_subscription_grouped_tiered_price.rbs @@ -3,7 +3,7 @@ module Orb type new_subscription_grouped_tiered_price = { cadence: Orb::Models::NewSubscriptionGroupedTieredPrice::cadence, - grouped_tiered_config: ::Hash[Symbol, top], + grouped_tiered_config: Orb::NewSubscriptionGroupedTieredPrice::GroupedTieredConfig, item_id: String, model_type: Orb::Models::NewSubscriptionGroupedTieredPrice::model_type, name: String, @@ -25,7 +25,7 @@ module Orb class NewSubscriptionGroupedTieredPrice < Orb::Internal::Type::BaseModel attr_accessor cadence: Orb::Models::NewSubscriptionGroupedTieredPrice::cadence - attr_accessor grouped_tiered_config: ::Hash[Symbol, top] + attr_accessor grouped_tiered_config: Orb::NewSubscriptionGroupedTieredPrice::GroupedTieredConfig attr_accessor item_id: String @@ -61,7 +61,7 @@ module Orb def initialize: ( cadence: Orb::Models::NewSubscriptionGroupedTieredPrice::cadence, - grouped_tiered_config: ::Hash[Symbol, top], + grouped_tiered_config: Orb::NewSubscriptionGroupedTieredPrice::GroupedTieredConfig, item_id: String, model_type: Orb::Models::NewSubscriptionGroupedTieredPrice::model_type, name: String, @@ -82,7 +82,7 @@ module Orb def to_hash: -> { cadence: Orb::Models::NewSubscriptionGroupedTieredPrice::cadence, - grouped_tiered_config: ::Hash[Symbol, top], + grouped_tiered_config: Orb::NewSubscriptionGroupedTieredPrice::GroupedTieredConfig, item_id: String, model_type: Orb::Models::NewSubscriptionGroupedTieredPrice::model_type, name: String, @@ -117,6 +117,43 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionGroupedTieredPrice::cadence] end + type grouped_tiered_config = + { + grouping_key: String, + tiers: ::Array[Orb::NewSubscriptionGroupedTieredPrice::GroupedTieredConfig::Tier] + } + + class GroupedTieredConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor tiers: ::Array[Orb::NewSubscriptionGroupedTieredPrice::GroupedTieredConfig::Tier] + + def initialize: ( + grouping_key: String, + tiers: ::Array[Orb::NewSubscriptionGroupedTieredPrice::GroupedTieredConfig::Tier] + ) -> void + + def to_hash: -> { + grouping_key: String, + tiers: ::Array[Orb::NewSubscriptionGroupedTieredPrice::GroupedTieredConfig::Tier] + } + + type tier = { tier_lower_bound: String, unit_amount: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { tier_lower_bound: String, unit_amount: String } + end + end + type model_type = :grouped_tiered module ModelType diff --git a/sig/orb/models/new_subscription_grouped_with_metered_minimum_price.rbs b/sig/orb/models/new_subscription_grouped_with_metered_minimum_price.rbs index 5e225b25..5004f315 100644 --- a/sig/orb/models/new_subscription_grouped_with_metered_minimum_price.rbs +++ b/sig/orb/models/new_subscription_grouped_with_metered_minimum_price.rbs @@ -3,7 +3,7 @@ module Orb type new_subscription_grouped_with_metered_minimum_price = { cadence: Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::cadence, - grouped_with_metered_minimum_config: ::Hash[Symbol, top], + grouped_with_metered_minimum_config: Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig, item_id: String, model_type: Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::model_type, name: String, @@ -25,7 +25,7 @@ module Orb class NewSubscriptionGroupedWithMeteredMinimumPrice < Orb::Internal::Type::BaseModel attr_accessor cadence: Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::cadence - attr_accessor grouped_with_metered_minimum_config: ::Hash[Symbol, top] + attr_accessor grouped_with_metered_minimum_config: Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig attr_accessor item_id: String @@ -61,7 +61,7 @@ module Orb def initialize: ( cadence: Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::cadence, - grouped_with_metered_minimum_config: ::Hash[Symbol, top], + grouped_with_metered_minimum_config: Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig, item_id: String, model_type: Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::model_type, name: String, @@ -82,7 +82,7 @@ module Orb def to_hash: -> { cadence: Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::cadence, - grouped_with_metered_minimum_config: ::Hash[Symbol, top], + grouped_with_metered_minimum_config: Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig, item_id: String, model_type: Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::model_type, name: String, @@ -117,6 +117,75 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionGroupedWithMeteredMinimumPrice::cadence] end + type grouped_with_metered_minimum_config = + { + grouping_key: String, + minimum_unit_amount: String, + pricing_key: String, + scaling_factors: ::Array[Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::ScalingFactor], + scaling_key: String, + unit_amounts: ::Array[Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::UnitAmount] + } + + class GroupedWithMeteredMinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor minimum_unit_amount: String + + attr_accessor pricing_key: String + + attr_accessor scaling_factors: ::Array[Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::ScalingFactor] + + attr_accessor scaling_key: String + + attr_accessor unit_amounts: ::Array[Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::UnitAmount] + + def initialize: ( + grouping_key: String, + minimum_unit_amount: String, + pricing_key: String, + scaling_factors: ::Array[Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::ScalingFactor], + scaling_key: String, + unit_amounts: ::Array[Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::UnitAmount] + ) -> void + + def to_hash: -> { + grouping_key: String, + minimum_unit_amount: String, + pricing_key: String, + scaling_factors: ::Array[Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::ScalingFactor], + scaling_key: String, + unit_amounts: ::Array[Orb::NewSubscriptionGroupedWithMeteredMinimumPrice::GroupedWithMeteredMinimumConfig::UnitAmount] + } + + type scaling_factor = { scaling_factor: String, scaling_value: String } + + class ScalingFactor < Orb::Internal::Type::BaseModel + attr_accessor scaling_factor: String + + attr_accessor scaling_value: String + + def initialize: ( + scaling_factor: String, + scaling_value: String + ) -> void + + def to_hash: -> { scaling_factor: String, scaling_value: String } + end + + type unit_amount = { pricing_value: String, unit_amount: String } + + class UnitAmount < Orb::Internal::Type::BaseModel + attr_accessor pricing_value: String + + attr_accessor unit_amount: String + + def initialize: (pricing_value: String, unit_amount: String) -> void + + def to_hash: -> { pricing_value: String, unit_amount: String } + end + end + type model_type = :grouped_with_metered_minimum module ModelType diff --git a/sig/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbs b/sig/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbs index d4b7212c..f970dc9e 100644 --- a/sig/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbs +++ b/sig/orb/models/new_subscription_grouped_with_prorated_minimum_price.rbs @@ -3,7 +3,7 @@ module Orb type new_subscription_grouped_with_prorated_minimum_price = { cadence: Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::cadence, - grouped_with_prorated_minimum_config: ::Hash[Symbol, top], + grouped_with_prorated_minimum_config: Orb::NewSubscriptionGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig, item_id: String, model_type: Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::model_type, name: String, @@ -25,7 +25,7 @@ module Orb class NewSubscriptionGroupedWithProratedMinimumPrice < Orb::Internal::Type::BaseModel attr_accessor cadence: Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::cadence - attr_accessor grouped_with_prorated_minimum_config: ::Hash[Symbol, top] + attr_accessor grouped_with_prorated_minimum_config: Orb::NewSubscriptionGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig attr_accessor item_id: String @@ -61,7 +61,7 @@ module Orb def initialize: ( cadence: Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::cadence, - grouped_with_prorated_minimum_config: ::Hash[Symbol, top], + grouped_with_prorated_minimum_config: Orb::NewSubscriptionGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig, item_id: String, model_type: Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::model_type, name: String, @@ -82,7 +82,7 @@ module Orb def to_hash: -> { cadence: Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::cadence, - grouped_with_prorated_minimum_config: ::Hash[Symbol, top], + grouped_with_prorated_minimum_config: Orb::NewSubscriptionGroupedWithProratedMinimumPrice::GroupedWithProratedMinimumConfig, item_id: String, model_type: Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::model_type, name: String, @@ -117,6 +117,29 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionGroupedWithProratedMinimumPrice::cadence] end + type grouped_with_prorated_minimum_config = + { grouping_key: String, minimum: String, unit_rate: String } + + class GroupedWithProratedMinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor minimum: String + + attr_accessor unit_rate: String + + def initialize: ( + grouping_key: String, + minimum: String, + unit_rate: String + ) -> void + + def to_hash: -> { + grouping_key: String, + minimum: String, + unit_rate: String + } + end + type model_type = :grouped_with_prorated_minimum module ModelType diff --git a/sig/orb/models/new_subscription_matrix_with_display_name_price.rbs b/sig/orb/models/new_subscription_matrix_with_display_name_price.rbs index d671492e..b45726e2 100644 --- a/sig/orb/models/new_subscription_matrix_with_display_name_price.rbs +++ b/sig/orb/models/new_subscription_matrix_with_display_name_price.rbs @@ -4,7 +4,7 @@ module Orb { cadence: Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::cadence, item_id: String, - matrix_with_display_name_config: ::Hash[Symbol, top], + matrix_with_display_name_config: Orb::NewSubscriptionMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig, model_type: Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::model_type, name: String, billable_metric_id: String?, @@ -27,7 +27,7 @@ module Orb attr_accessor item_id: String - attr_accessor matrix_with_display_name_config: ::Hash[Symbol, top] + attr_accessor matrix_with_display_name_config: Orb::NewSubscriptionMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig attr_accessor model_type: Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::model_type @@ -62,7 +62,7 @@ module Orb def initialize: ( cadence: Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::cadence, item_id: String, - matrix_with_display_name_config: ::Hash[Symbol, top], + matrix_with_display_name_config: Orb::NewSubscriptionMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig, model_type: Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::model_type, name: String, ?billable_metric_id: String?, @@ -83,7 +83,7 @@ module Orb def to_hash: -> { cadence: Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::cadence, item_id: String, - matrix_with_display_name_config: ::Hash[Symbol, top], + matrix_with_display_name_config: Orb::NewSubscriptionMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig, model_type: Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::model_type, name: String, billable_metric_id: String?, @@ -117,6 +117,51 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::cadence] end + type matrix_with_display_name_config = + { + dimension: String, + unit_amounts: ::Array[Orb::NewSubscriptionMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::UnitAmount] + } + + class MatrixWithDisplayNameConfig < Orb::Internal::Type::BaseModel + attr_accessor dimension: String + + attr_accessor unit_amounts: ::Array[Orb::NewSubscriptionMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::UnitAmount] + + def initialize: ( + dimension: String, + unit_amounts: ::Array[Orb::NewSubscriptionMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::UnitAmount] + ) -> void + + def to_hash: -> { + dimension: String, + unit_amounts: ::Array[Orb::NewSubscriptionMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::UnitAmount] + } + + type unit_amount = + { dimension_value: String, display_name: String, unit_amount: String } + + class UnitAmount < Orb::Internal::Type::BaseModel + attr_accessor dimension_value: String + + attr_accessor display_name: String + + attr_accessor unit_amount: String + + def initialize: ( + dimension_value: String, + display_name: String, + unit_amount: String + ) -> void + + def to_hash: -> { + dimension_value: String, + display_name: String, + unit_amount: String + } + end + end + type model_type = :matrix_with_display_name module ModelType diff --git a/sig/orb/models/new_subscription_max_group_tiered_package_price.rbs b/sig/orb/models/new_subscription_max_group_tiered_package_price.rbs index 4b8241fe..3ae0a5d3 100644 --- a/sig/orb/models/new_subscription_max_group_tiered_package_price.rbs +++ b/sig/orb/models/new_subscription_max_group_tiered_package_price.rbs @@ -4,7 +4,7 @@ module Orb { cadence: Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::cadence, item_id: String, - max_group_tiered_package_config: ::Hash[Symbol, top], + max_group_tiered_package_config: Orb::NewSubscriptionMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig, model_type: Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::model_type, name: String, billable_metric_id: String?, @@ -27,7 +27,7 @@ module Orb attr_accessor item_id: String - attr_accessor max_group_tiered_package_config: ::Hash[Symbol, top] + attr_accessor max_group_tiered_package_config: Orb::NewSubscriptionMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig attr_accessor model_type: Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::model_type @@ -62,7 +62,7 @@ module Orb def initialize: ( cadence: Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::cadence, item_id: String, - max_group_tiered_package_config: ::Hash[Symbol, top], + max_group_tiered_package_config: Orb::NewSubscriptionMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig, model_type: Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::model_type, name: String, ?billable_metric_id: String?, @@ -83,7 +83,7 @@ module Orb def to_hash: -> { cadence: Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::cadence, item_id: String, - max_group_tiered_package_config: ::Hash[Symbol, top], + max_group_tiered_package_config: Orb::NewSubscriptionMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig, model_type: Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::model_type, name: String, billable_metric_id: String?, @@ -117,6 +117,48 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionMaxGroupTieredPackagePrice::cadence] end + type max_group_tiered_package_config = + { + grouping_key: String, + package_size: String, + tiers: ::Array[Orb::NewSubscriptionMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig::Tier] + } + + class MaxGroupTieredPackageConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor package_size: String + + attr_accessor tiers: ::Array[Orb::NewSubscriptionMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig::Tier] + + def initialize: ( + grouping_key: String, + package_size: String, + tiers: ::Array[Orb::NewSubscriptionMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig::Tier] + ) -> void + + def to_hash: -> { + grouping_key: String, + package_size: String, + tiers: ::Array[Orb::NewSubscriptionMaxGroupTieredPackagePrice::MaxGroupTieredPackageConfig::Tier] + } + + type tier = { tier_lower_bound: String, unit_amount: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { tier_lower_bound: String, unit_amount: String } + end + end + type model_type = :max_group_tiered_package module ModelType diff --git a/sig/orb/models/new_subscription_minimum_composite_price.rbs b/sig/orb/models/new_subscription_minimum_composite_price.rbs index 32843836..358466ed 100644 --- a/sig/orb/models/new_subscription_minimum_composite_price.rbs +++ b/sig/orb/models/new_subscription_minimum_composite_price.rbs @@ -117,16 +117,18 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionMinimumCompositePrice::cadence] end - type minimum_config = { minimum_amount: String, prorated: bool? } + type minimum_config = { minimum_amount: String, prorated: bool } class MinimumConfig < Orb::Internal::Type::BaseModel attr_accessor minimum_amount: String - attr_accessor prorated: bool? + attr_reader prorated: bool? - def initialize: (minimum_amount: String, ?prorated: bool?) -> void + def prorated=: (bool) -> bool - def to_hash: -> { minimum_amount: String, prorated: bool? } + def initialize: (minimum_amount: String, ?prorated: bool) -> void + + def to_hash: -> { minimum_amount: String, prorated: bool } end type model_type = :minimum diff --git a/sig/orb/models/new_subscription_package_with_allocation_price.rbs b/sig/orb/models/new_subscription_package_with_allocation_price.rbs index 8cc3d94d..d92baccb 100644 --- a/sig/orb/models/new_subscription_package_with_allocation_price.rbs +++ b/sig/orb/models/new_subscription_package_with_allocation_price.rbs @@ -6,7 +6,7 @@ module Orb item_id: String, model_type: Orb::Models::NewSubscriptionPackageWithAllocationPrice::model_type, name: String, - package_with_allocation_config: ::Hash[Symbol, top], + package_with_allocation_config: Orb::NewSubscriptionPackageWithAllocationPrice::PackageWithAllocationConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -31,7 +31,7 @@ module Orb attr_accessor name: String - attr_accessor package_with_allocation_config: ::Hash[Symbol, top] + attr_accessor package_with_allocation_config: Orb::NewSubscriptionPackageWithAllocationPrice::PackageWithAllocationConfig attr_accessor billable_metric_id: String? @@ -64,7 +64,7 @@ module Orb item_id: String, model_type: Orb::Models::NewSubscriptionPackageWithAllocationPrice::model_type, name: String, - package_with_allocation_config: ::Hash[Symbol, top], + package_with_allocation_config: Orb::NewSubscriptionPackageWithAllocationPrice::PackageWithAllocationConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -85,7 +85,7 @@ module Orb item_id: String, model_type: Orb::Models::NewSubscriptionPackageWithAllocationPrice::model_type, name: String, - package_with_allocation_config: ::Hash[Symbol, top], + package_with_allocation_config: Orb::NewSubscriptionPackageWithAllocationPrice::PackageWithAllocationConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -126,6 +126,29 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionPackageWithAllocationPrice::model_type] end + + type package_with_allocation_config = + { allocation: String, package_amount: String, package_size: String } + + class PackageWithAllocationConfig < Orb::Internal::Type::BaseModel + attr_accessor allocation: String + + attr_accessor package_amount: String + + attr_accessor package_size: String + + def initialize: ( + allocation: String, + package_amount: String, + package_size: String + ) -> void + + def to_hash: -> { + allocation: String, + package_amount: String, + package_size: String + } + end end end end diff --git a/sig/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbs b/sig/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbs index fef57aee..13aa74ef 100644 --- a/sig/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbs +++ b/sig/orb/models/new_subscription_scalable_matrix_with_tiered_pricing_price.rbs @@ -6,7 +6,7 @@ module Orb item_id: String, model_type: Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::model_type, name: String, - scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], + scalable_matrix_with_tiered_pricing_config: Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -31,7 +31,7 @@ module Orb attr_accessor name: String - attr_accessor scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top] + attr_accessor scalable_matrix_with_tiered_pricing_config: Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig attr_accessor billable_metric_id: String? @@ -64,7 +64,7 @@ module Orb item_id: String, model_type: Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::model_type, name: String, - scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], + scalable_matrix_with_tiered_pricing_config: Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -85,7 +85,7 @@ module Orb item_id: String, model_type: Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::model_type, name: String, - scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], + scalable_matrix_with_tiered_pricing_config: Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -126,6 +126,80 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionScalableMatrixWithTieredPricingPrice::model_type] end + + type scalable_matrix_with_tiered_pricing_config = + { + first_dimension: String, + matrix_scaling_factors: ::Array[Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor], + tiers: ::Array[Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::Tier], + second_dimension: String? + } + + class ScalableMatrixWithTieredPricingConfig < Orb::Internal::Type::BaseModel + attr_accessor first_dimension: String + + attr_accessor matrix_scaling_factors: ::Array[Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor] + + attr_accessor tiers: ::Array[Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::Tier] + + attr_accessor second_dimension: String? + + def initialize: ( + first_dimension: String, + matrix_scaling_factors: ::Array[Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor], + tiers: ::Array[Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::Tier], + ?second_dimension: String? + ) -> void + + def to_hash: -> { + first_dimension: String, + matrix_scaling_factors: ::Array[Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor], + tiers: ::Array[Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice::ScalableMatrixWithTieredPricingConfig::Tier], + second_dimension: String? + } + + type matrix_scaling_factor = + { + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: String? + } + + class MatrixScalingFactor < Orb::Internal::Type::BaseModel + attr_accessor first_dimension_value: String + + attr_accessor scaling_factor: String + + attr_accessor second_dimension_value: String? + + def initialize: ( + first_dimension_value: String, + scaling_factor: String, + ?second_dimension_value: String? + ) -> void + + def to_hash: -> { + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: String? + } + end + + type tier = { tier_lower_bound: String, unit_amount: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { tier_lower_bound: String, unit_amount: String } + end + end end end end diff --git a/sig/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbs b/sig/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbs index 734595a7..57af58b7 100644 --- a/sig/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbs +++ b/sig/orb/models/new_subscription_scalable_matrix_with_unit_pricing_price.rbs @@ -6,7 +6,7 @@ module Orb item_id: String, model_type: Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::model_type, name: String, - scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], + scalable_matrix_with_unit_pricing_config: Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -31,7 +31,7 @@ module Orb attr_accessor name: String - attr_accessor scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top] + attr_accessor scalable_matrix_with_unit_pricing_config: Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig attr_accessor billable_metric_id: String? @@ -64,7 +64,7 @@ module Orb item_id: String, model_type: Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::model_type, name: String, - scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], + scalable_matrix_with_unit_pricing_config: Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -85,7 +85,7 @@ module Orb item_id: String, model_type: Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::model_type, name: String, - scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], + scalable_matrix_with_unit_pricing_config: Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -126,6 +126,70 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionScalableMatrixWithUnitPricingPrice::model_type] end + + type scalable_matrix_with_unit_pricing_config = + { + first_dimension: String, + matrix_scaling_factors: ::Array[Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor], + unit_price: String, + prorate: bool?, + second_dimension: String? + } + + class ScalableMatrixWithUnitPricingConfig < Orb::Internal::Type::BaseModel + attr_accessor first_dimension: String + + attr_accessor matrix_scaling_factors: ::Array[Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor] + + attr_accessor unit_price: String + + attr_accessor prorate: bool? + + attr_accessor second_dimension: String? + + def initialize: ( + first_dimension: String, + matrix_scaling_factors: ::Array[Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor], + unit_price: String, + ?prorate: bool?, + ?second_dimension: String? + ) -> void + + def to_hash: -> { + first_dimension: String, + matrix_scaling_factors: ::Array[Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor], + unit_price: String, + prorate: bool?, + second_dimension: String? + } + + type matrix_scaling_factor = + { + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: String? + } + + class MatrixScalingFactor < Orb::Internal::Type::BaseModel + attr_accessor first_dimension_value: String + + attr_accessor scaling_factor: String + + attr_accessor second_dimension_value: String? + + def initialize: ( + first_dimension_value: String, + scaling_factor: String, + ?second_dimension_value: String? + ) -> void + + def to_hash: -> { + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: String? + } + end + end end end end diff --git a/sig/orb/models/new_subscription_threshold_total_amount_price.rbs b/sig/orb/models/new_subscription_threshold_total_amount_price.rbs index 910ce363..a5dc9847 100644 --- a/sig/orb/models/new_subscription_threshold_total_amount_price.rbs +++ b/sig/orb/models/new_subscription_threshold_total_amount_price.rbs @@ -6,7 +6,7 @@ module Orb item_id: String, model_type: Orb::Models::NewSubscriptionThresholdTotalAmountPrice::model_type, name: String, - threshold_total_amount_config: ::Hash[Symbol, top], + threshold_total_amount_config: Orb::NewSubscriptionThresholdTotalAmountPrice::ThresholdTotalAmountConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -31,7 +31,7 @@ module Orb attr_accessor name: String - attr_accessor threshold_total_amount_config: ::Hash[Symbol, top] + attr_accessor threshold_total_amount_config: Orb::NewSubscriptionThresholdTotalAmountPrice::ThresholdTotalAmountConfig attr_accessor billable_metric_id: String? @@ -64,7 +64,7 @@ module Orb item_id: String, model_type: Orb::Models::NewSubscriptionThresholdTotalAmountPrice::model_type, name: String, - threshold_total_amount_config: ::Hash[Symbol, top], + threshold_total_amount_config: Orb::NewSubscriptionThresholdTotalAmountPrice::ThresholdTotalAmountConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -85,7 +85,7 @@ module Orb item_id: String, model_type: Orb::Models::NewSubscriptionThresholdTotalAmountPrice::model_type, name: String, - threshold_total_amount_config: ::Hash[Symbol, top], + threshold_total_amount_config: Orb::NewSubscriptionThresholdTotalAmountPrice::ThresholdTotalAmountConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -126,6 +126,40 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionThresholdTotalAmountPrice::model_type] end + + type threshold_total_amount_config = + { + consumption_table: ::Array[Orb::NewSubscriptionThresholdTotalAmountPrice::ThresholdTotalAmountConfig::ConsumptionTable], + prorate: bool? + } + + class ThresholdTotalAmountConfig < Orb::Internal::Type::BaseModel + attr_accessor consumption_table: ::Array[Orb::NewSubscriptionThresholdTotalAmountPrice::ThresholdTotalAmountConfig::ConsumptionTable] + + attr_accessor prorate: bool? + + def initialize: ( + consumption_table: ::Array[Orb::NewSubscriptionThresholdTotalAmountPrice::ThresholdTotalAmountConfig::ConsumptionTable], + ?prorate: bool? + ) -> void + + def to_hash: -> { + consumption_table: ::Array[Orb::NewSubscriptionThresholdTotalAmountPrice::ThresholdTotalAmountConfig::ConsumptionTable], + prorate: bool? + } + + type consumption_table = { threshold: String, total_amount: String } + + class ConsumptionTable < Orb::Internal::Type::BaseModel + attr_accessor threshold: String + + attr_accessor total_amount: String + + def initialize: (threshold: String, total_amount: String) -> void + + def to_hash: -> { threshold: String, total_amount: String } + end + end end end end diff --git a/sig/orb/models/new_subscription_tier_with_proration_price.rbs b/sig/orb/models/new_subscription_tier_with_proration_price.rbs deleted file mode 100644 index a7e3d368..00000000 --- a/sig/orb/models/new_subscription_tier_with_proration_price.rbs +++ /dev/null @@ -1,131 +0,0 @@ -module Orb - module Models - type new_subscription_tier_with_proration_price = - { - cadence: Orb::Models::NewSubscriptionTierWithProrationPrice::cadence, - item_id: String, - model_type: Orb::Models::NewSubscriptionTierWithProrationPrice::model_type, - name: String, - tiered_with_proration_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::conversion_rate_config?, - currency: String?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String? - } - - class NewSubscriptionTierWithProrationPrice < Orb::Internal::Type::BaseModel - attr_accessor cadence: Orb::Models::NewSubscriptionTierWithProrationPrice::cadence - - attr_accessor item_id: String - - attr_accessor model_type: Orb::Models::NewSubscriptionTierWithProrationPrice::model_type - - attr_accessor name: String - - attr_accessor tiered_with_proration_config: ::Hash[Symbol, top] - - attr_accessor billable_metric_id: String? - - attr_accessor billed_in_advance: bool? - - attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor conversion_rate: Float? - - attr_accessor conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::conversion_rate_config? - - attr_accessor currency: String? - - attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? - - attr_accessor external_price_id: String? - - attr_accessor fixed_price_quantity: Float? - - attr_accessor invoice_grouping_key: String? - - attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? - - attr_accessor metadata: ::Hash[Symbol, String?]? - - attr_accessor reference_id: String? - - def initialize: ( - cadence: Orb::Models::NewSubscriptionTierWithProrationPrice::cadence, - item_id: String, - model_type: Orb::Models::NewSubscriptionTierWithProrationPrice::model_type, - name: String, - tiered_with_proration_config: ::Hash[Symbol, top], - ?billable_metric_id: String?, - ?billed_in_advance: bool?, - ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?conversion_rate: Float?, - ?conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::conversion_rate_config?, - ?currency: String?, - ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - ?external_price_id: String?, - ?fixed_price_quantity: Float?, - ?invoice_grouping_key: String?, - ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - ?metadata: ::Hash[Symbol, String?]?, - ?reference_id: String? - ) -> void - - def to_hash: -> { - cadence: Orb::Models::NewSubscriptionTierWithProrationPrice::cadence, - item_id: String, - model_type: Orb::Models::NewSubscriptionTierWithProrationPrice::model_type, - name: String, - tiered_with_proration_config: ::Hash[Symbol, top], - billable_metric_id: String?, - billed_in_advance: bool?, - billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - conversion_rate: Float?, - conversion_rate_config: Orb::Models::NewSubscriptionTierWithProrationPrice::conversion_rate_config?, - currency: String?, - dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, - external_price_id: String?, - fixed_price_quantity: Float?, - invoice_grouping_key: String?, - invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, - metadata: ::Hash[Symbol, String?]?, - reference_id: String? - } - - type cadence = - :annual | :semi_annual | :monthly | :quarterly | :one_time | :custom - - module Cadence - extend Orb::Internal::Type::Enum - - ANNUAL: :annual - SEMI_ANNUAL: :semi_annual - MONTHLY: :monthly - QUARTERLY: :quarterly - ONE_TIME: :one_time - CUSTOM: :custom - - def self?.values: -> ::Array[Orb::Models::NewSubscriptionTierWithProrationPrice::cadence] - end - - type model_type = :tiered_with_proration - - module ModelType - extend Orb::Internal::Type::Enum - - TIERED_WITH_PRORATION: :tiered_with_proration - - def self?.values: -> ::Array[Orb::Models::NewSubscriptionTierWithProrationPrice::model_type] - end - end - end -end diff --git a/sig/orb/models/new_subscription_tiered_package_price.rbs b/sig/orb/models/new_subscription_tiered_package_price.rbs index 9865ed5f..6344ca18 100644 --- a/sig/orb/models/new_subscription_tiered_package_price.rbs +++ b/sig/orb/models/new_subscription_tiered_package_price.rbs @@ -6,7 +6,7 @@ module Orb item_id: String, model_type: Orb::Models::NewSubscriptionTieredPackagePrice::model_type, name: String, - tiered_package_config: ::Hash[Symbol, top], + tiered_package_config: Orb::NewSubscriptionTieredPackagePrice::TieredPackageConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -31,7 +31,7 @@ module Orb attr_accessor name: String - attr_accessor tiered_package_config: ::Hash[Symbol, top] + attr_accessor tiered_package_config: Orb::NewSubscriptionTieredPackagePrice::TieredPackageConfig attr_accessor billable_metric_id: String? @@ -64,7 +64,7 @@ module Orb item_id: String, model_type: Orb::Models::NewSubscriptionTieredPackagePrice::model_type, name: String, - tiered_package_config: ::Hash[Symbol, top], + tiered_package_config: Orb::NewSubscriptionTieredPackagePrice::TieredPackageConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -85,7 +85,7 @@ module Orb item_id: String, model_type: Orb::Models::NewSubscriptionTieredPackagePrice::model_type, name: String, - tiered_package_config: ::Hash[Symbol, top], + tiered_package_config: Orb::NewSubscriptionTieredPackagePrice::TieredPackageConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -126,6 +126,40 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionTieredPackagePrice::model_type] end + + type tiered_package_config = + { + package_size: String, + tiers: ::Array[Orb::NewSubscriptionTieredPackagePrice::TieredPackageConfig::Tier] + } + + class TieredPackageConfig < Orb::Internal::Type::BaseModel + attr_accessor package_size: String + + attr_accessor tiers: ::Array[Orb::NewSubscriptionTieredPackagePrice::TieredPackageConfig::Tier] + + def initialize: ( + package_size: String, + tiers: ::Array[Orb::NewSubscriptionTieredPackagePrice::TieredPackageConfig::Tier] + ) -> void + + def to_hash: -> { + package_size: String, + tiers: ::Array[Orb::NewSubscriptionTieredPackagePrice::TieredPackageConfig::Tier] + } + + type tier = { per_unit: String, tier_lower_bound: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor per_unit: String + + attr_accessor tier_lower_bound: String + + def initialize: (per_unit: String, tier_lower_bound: String) -> void + + def to_hash: -> { per_unit: String, tier_lower_bound: String } + end + end end end end diff --git a/sig/orb/models/new_subscription_tiered_package_with_minimum_price.rbs b/sig/orb/models/new_subscription_tiered_package_with_minimum_price.rbs index f36bd7c3..1bbf61ea 100644 --- a/sig/orb/models/new_subscription_tiered_package_with_minimum_price.rbs +++ b/sig/orb/models/new_subscription_tiered_package_with_minimum_price.rbs @@ -6,7 +6,7 @@ module Orb item_id: String, model_type: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::model_type, name: String, - tiered_package_with_minimum_config: ::Hash[Symbol, top], + tiered_package_with_minimum_config: Orb::NewSubscriptionTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -31,7 +31,7 @@ module Orb attr_accessor name: String - attr_accessor tiered_package_with_minimum_config: ::Hash[Symbol, top] + attr_accessor tiered_package_with_minimum_config: Orb::NewSubscriptionTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig attr_accessor billable_metric_id: String? @@ -64,7 +64,7 @@ module Orb item_id: String, model_type: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::model_type, name: String, - tiered_package_with_minimum_config: ::Hash[Symbol, top], + tiered_package_with_minimum_config: Orb::NewSubscriptionTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -85,7 +85,7 @@ module Orb item_id: String, model_type: Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::model_type, name: String, - tiered_package_with_minimum_config: ::Hash[Symbol, top], + tiered_package_with_minimum_config: Orb::NewSubscriptionTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -126,6 +126,51 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionTieredPackageWithMinimumPrice::model_type] end + + type tiered_package_with_minimum_config = + { + package_size: Float, + tiers: ::Array[Orb::NewSubscriptionTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::Tier] + } + + class TieredPackageWithMinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor package_size: Float + + attr_accessor tiers: ::Array[Orb::NewSubscriptionTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::Tier] + + def initialize: ( + package_size: Float, + tiers: ::Array[Orb::NewSubscriptionTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::Tier] + ) -> void + + def to_hash: -> { + package_size: Float, + tiers: ::Array[Orb::NewSubscriptionTieredPackageWithMinimumPrice::TieredPackageWithMinimumConfig::Tier] + } + + type tier = + { minimum_amount: String, per_unit: String, tier_lower_bound: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor minimum_amount: String + + attr_accessor per_unit: String + + attr_accessor tier_lower_bound: String + + def initialize: ( + minimum_amount: String, + per_unit: String, + tier_lower_bound: String + ) -> void + + def to_hash: -> { + minimum_amount: String, + per_unit: String, + tier_lower_bound: String + } + end + end end end end diff --git a/sig/orb/models/new_subscription_tiered_with_minimum_price.rbs b/sig/orb/models/new_subscription_tiered_with_minimum_price.rbs index ff58ba43..0e0d91f8 100644 --- a/sig/orb/models/new_subscription_tiered_with_minimum_price.rbs +++ b/sig/orb/models/new_subscription_tiered_with_minimum_price.rbs @@ -6,7 +6,7 @@ module Orb item_id: String, model_type: Orb::Models::NewSubscriptionTieredWithMinimumPrice::model_type, name: String, - tiered_with_minimum_config: ::Hash[Symbol, top], + tiered_with_minimum_config: Orb::NewSubscriptionTieredWithMinimumPrice::TieredWithMinimumConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -31,7 +31,7 @@ module Orb attr_accessor name: String - attr_accessor tiered_with_minimum_config: ::Hash[Symbol, top] + attr_accessor tiered_with_minimum_config: Orb::NewSubscriptionTieredWithMinimumPrice::TieredWithMinimumConfig attr_accessor billable_metric_id: String? @@ -64,7 +64,7 @@ module Orb item_id: String, model_type: Orb::Models::NewSubscriptionTieredWithMinimumPrice::model_type, name: String, - tiered_with_minimum_config: ::Hash[Symbol, top], + tiered_with_minimum_config: Orb::NewSubscriptionTieredWithMinimumPrice::TieredWithMinimumConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -85,7 +85,7 @@ module Orb item_id: String, model_type: Orb::Models::NewSubscriptionTieredWithMinimumPrice::model_type, name: String, - tiered_with_minimum_config: ::Hash[Symbol, top], + tiered_with_minimum_config: Orb::NewSubscriptionTieredWithMinimumPrice::TieredWithMinimumConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -126,6 +126,64 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionTieredWithMinimumPrice::model_type] end + + type tiered_with_minimum_config = + { + tiers: ::Array[Orb::NewSubscriptionTieredWithMinimumPrice::TieredWithMinimumConfig::Tier], + hide_zero_amount_tiers: bool, + prorate: bool + } + + class TieredWithMinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor tiers: ::Array[Orb::NewSubscriptionTieredWithMinimumPrice::TieredWithMinimumConfig::Tier] + + attr_reader hide_zero_amount_tiers: bool? + + def hide_zero_amount_tiers=: (bool) -> bool + + attr_reader prorate: bool? + + def prorate=: (bool) -> bool + + def initialize: ( + tiers: ::Array[Orb::NewSubscriptionTieredWithMinimumPrice::TieredWithMinimumConfig::Tier], + ?hide_zero_amount_tiers: bool, + ?prorate: bool + ) -> void + + def to_hash: -> { + tiers: ::Array[Orb::NewSubscriptionTieredWithMinimumPrice::TieredWithMinimumConfig::Tier], + hide_zero_amount_tiers: bool, + prorate: bool + } + + type tier = + { + minimum_amount: String, + tier_lower_bound: String, + unit_amount: String + } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor minimum_amount: String + + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + minimum_amount: String, + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { + minimum_amount: String, + tier_lower_bound: String, + unit_amount: String + } + end + end end end end diff --git a/sig/orb/models/new_subscription_unit_with_percent_price.rbs b/sig/orb/models/new_subscription_unit_with_percent_price.rbs index 3e7c6ab9..ddb8aa7e 100644 --- a/sig/orb/models/new_subscription_unit_with_percent_price.rbs +++ b/sig/orb/models/new_subscription_unit_with_percent_price.rbs @@ -6,7 +6,7 @@ module Orb item_id: String, model_type: Orb::Models::NewSubscriptionUnitWithPercentPrice::model_type, name: String, - unit_with_percent_config: ::Hash[Symbol, top], + unit_with_percent_config: Orb::NewSubscriptionUnitWithPercentPrice::UnitWithPercentConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -31,7 +31,7 @@ module Orb attr_accessor name: String - attr_accessor unit_with_percent_config: ::Hash[Symbol, top] + attr_accessor unit_with_percent_config: Orb::NewSubscriptionUnitWithPercentPrice::UnitWithPercentConfig attr_accessor billable_metric_id: String? @@ -64,7 +64,7 @@ module Orb item_id: String, model_type: Orb::Models::NewSubscriptionUnitWithPercentPrice::model_type, name: String, - unit_with_percent_config: ::Hash[Symbol, top], + unit_with_percent_config: Orb::NewSubscriptionUnitWithPercentPrice::UnitWithPercentConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -85,7 +85,7 @@ module Orb item_id: String, model_type: Orb::Models::NewSubscriptionUnitWithPercentPrice::model_type, name: String, - unit_with_percent_config: ::Hash[Symbol, top], + unit_with_percent_config: Orb::NewSubscriptionUnitWithPercentPrice::UnitWithPercentConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -126,6 +126,18 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionUnitWithPercentPrice::model_type] end + + type unit_with_percent_config = { percent: String, unit_amount: String } + + class UnitWithPercentConfig < Orb::Internal::Type::BaseModel + attr_accessor percent: String + + attr_accessor unit_amount: String + + def initialize: (percent: String, unit_amount: String) -> void + + def to_hash: -> { percent: String, unit_amount: String } + end end end end diff --git a/sig/orb/models/new_subscription_unit_with_proration_price.rbs b/sig/orb/models/new_subscription_unit_with_proration_price.rbs index 2e88eb3c..316f64f9 100644 --- a/sig/orb/models/new_subscription_unit_with_proration_price.rbs +++ b/sig/orb/models/new_subscription_unit_with_proration_price.rbs @@ -6,7 +6,7 @@ module Orb item_id: String, model_type: Orb::Models::NewSubscriptionUnitWithProrationPrice::model_type, name: String, - unit_with_proration_config: ::Hash[Symbol, top], + unit_with_proration_config: Orb::NewSubscriptionUnitWithProrationPrice::UnitWithProrationConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -31,7 +31,7 @@ module Orb attr_accessor name: String - attr_accessor unit_with_proration_config: ::Hash[Symbol, top] + attr_accessor unit_with_proration_config: Orb::NewSubscriptionUnitWithProrationPrice::UnitWithProrationConfig attr_accessor billable_metric_id: String? @@ -64,7 +64,7 @@ module Orb item_id: String, model_type: Orb::Models::NewSubscriptionUnitWithProrationPrice::model_type, name: String, - unit_with_proration_config: ::Hash[Symbol, top], + unit_with_proration_config: Orb::NewSubscriptionUnitWithProrationPrice::UnitWithProrationConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -85,7 +85,7 @@ module Orb item_id: String, model_type: Orb::Models::NewSubscriptionUnitWithProrationPrice::model_type, name: String, - unit_with_proration_config: ::Hash[Symbol, top], + unit_with_proration_config: Orb::NewSubscriptionUnitWithProrationPrice::UnitWithProrationConfig, billable_metric_id: String?, billed_in_advance: bool?, billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, @@ -126,6 +126,16 @@ module Orb def self?.values: -> ::Array[Orb::Models::NewSubscriptionUnitWithProrationPrice::model_type] end + + type unit_with_proration_config = { unit_amount: String } + + class UnitWithProrationConfig < Orb::Internal::Type::BaseModel + attr_accessor unit_amount: String + + def initialize: (unit_amount: String) -> void + + def to_hash: -> { unit_amount: String } + end end end end diff --git a/sig/orb/models/plan_create_params.rbs b/sig/orb/models/plan_create_params.rbs index ed576fdd..3c88206f 100644 --- a/sig/orb/models/plan_create_params.rbs +++ b/sig/orb/models/plan_create_params.rbs @@ -99,40 +99,198 @@ module Orb type price = Orb::NewPlanUnitPrice - | Orb::NewPlanPackagePrice - | Orb::NewPlanMatrixPrice | Orb::NewPlanTieredPrice | Orb::NewPlanBulkPrice + | Orb::NewPlanPackagePrice + | Orb::NewPlanMatrixPrice | Orb::NewPlanThresholdTotalAmountPrice | Orb::NewPlanTieredPackagePrice | Orb::NewPlanTieredWithMinimumPrice - | Orb::NewPlanUnitWithPercentPrice + | Orb::NewPlanGroupedTieredPrice + | Orb::NewPlanTieredPackageWithMinimumPrice | Orb::NewPlanPackageWithAllocationPrice - | Orb::NewPlanTierWithProrationPrice + | Orb::NewPlanUnitWithPercentPrice + | Orb::NewPlanMatrixWithAllocationPrice + | Orb::PlanCreateParams::Price::Price::TieredWithProration | Orb::NewPlanUnitWithProrationPrice | Orb::NewPlanGroupedAllocationPrice + | Orb::NewPlanBulkWithProrationPrice | Orb::NewPlanGroupedWithProratedMinimumPrice | Orb::NewPlanGroupedWithMeteredMinimumPrice | Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds | Orb::NewPlanMatrixWithDisplayNamePrice - | Orb::NewPlanBulkWithProrationPrice | Orb::NewPlanGroupedTieredPackagePrice | Orb::NewPlanMaxGroupTieredPackagePrice | Orb::NewPlanScalableMatrixWithUnitPricingPrice | Orb::NewPlanScalableMatrixWithTieredPricingPrice | Orb::NewPlanCumulativeGroupedBulkPrice - | Orb::NewPlanTieredPackageWithMinimumPrice - | Orb::NewPlanMatrixWithAllocationPrice - | Orb::NewPlanGroupedTieredPrice | Orb::NewPlanMinimumCompositePrice module Price extend Orb::Internal::Type::Union + type tiered_with_proration = + { + cadence: Orb::Models::PlanCreateParams::Price::Price::TieredWithProration::cadence, + item_id: String, + model_type: :tiered_with_proration, + name: String, + tiered_with_proration_config: Orb::PlanCreateParams::Price::Price::TieredWithProration::TieredWithProrationConfig, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::PlanCreateParams::Price::Price::TieredWithProration::conversion_rate_config?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + class TieredWithProration < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::PlanCreateParams::Price::Price::TieredWithProration::cadence + + attr_accessor item_id: String + + attr_accessor model_type: :tiered_with_proration + + attr_accessor name: String + + attr_accessor tiered_with_proration_config: Orb::PlanCreateParams::Price::Price::TieredWithProration::TieredWithProrationConfig + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::PlanCreateParams::Price::Price::TieredWithProration::conversion_rate_config? + + attr_accessor currency: String? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + attr_accessor reference_id: String? + + def initialize: ( + cadence: Orb::Models::PlanCreateParams::Price::Price::TieredWithProration::cadence, + item_id: String, + name: String, + tiered_with_proration_config: Orb::PlanCreateParams::Price::Price::TieredWithProration::TieredWithProrationConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::PlanCreateParams::Price::Price::TieredWithProration::conversion_rate_config?, + ?currency: String?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_with_proration + ) -> void + + def to_hash: -> { + cadence: Orb::Models::PlanCreateParams::Price::Price::TieredWithProration::cadence, + item_id: String, + model_type: :tiered_with_proration, + name: String, + tiered_with_proration_config: Orb::PlanCreateParams::Price::Price::TieredWithProration::TieredWithProrationConfig, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::PlanCreateParams::Price::Price::TieredWithProration::conversion_rate_config?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + type cadence = + :annual + | :semi_annual + | :monthly + | :quarterly + | :one_time + | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Price::TieredWithProration::cadence] + end + + type tiered_with_proration_config = + { + tiers: ::Array[Orb::PlanCreateParams::Price::Price::TieredWithProration::TieredWithProrationConfig::Tier] + } + + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + attr_accessor tiers: ::Array[Orb::PlanCreateParams::Price::Price::TieredWithProration::TieredWithProrationConfig::Tier] + + def initialize: ( + tiers: ::Array[Orb::PlanCreateParams::Price::Price::TieredWithProration::TieredWithProrationConfig::Tier] + ) -> void + + def to_hash: -> { + tiers: ::Array[Orb::PlanCreateParams::Price::Price::TieredWithProration::TieredWithProrationConfig::Tier] + } + + type tier = { tier_lower_bound: String, unit_amount: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { + tier_lower_bound: String, + unit_amount: String + } + end + end + end + type grouped_with_min_max_thresholds = { cadence: Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::cadence, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, model_type: :grouped_with_min_max_thresholds, name: String, @@ -154,7 +312,7 @@ module Orb class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel attr_accessor cadence: Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::cadence - attr_accessor grouped_with_min_max_thresholds_config: ::Hash[Symbol, top] + attr_accessor grouped_with_min_max_thresholds_config: Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig attr_accessor item_id: String @@ -190,7 +348,7 @@ module Orb def initialize: ( cadence: Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::cadence, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, name: String, ?billable_metric_id: String?, @@ -211,7 +369,7 @@ module Orb def to_hash: -> { cadence: Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::cadence, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, model_type: :grouped_with_min_max_thresholds, name: String, @@ -250,6 +408,38 @@ module Orb def self?.values: -> ::Array[Orb::Models::PlanCreateParams::Price::Price::GroupedWithMinMaxThresholds::cadence] end + + type grouped_with_min_max_thresholds_config = + { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor maximum_charge: String + + attr_accessor minimum_charge: String + + attr_accessor per_unit_rate: String + + def initialize: ( + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + ) -> void + + def to_hash: -> { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + end end def self?.variants: -> ::Array[Orb::Models::PlanCreateParams::Price::price] diff --git a/sig/orb/models/price.rbs b/sig/orb/models/price.rbs index 2bbde231..91d12246 100644 --- a/sig/orb/models/price.rbs +++ b/sig/orb/models/price.rbs @@ -2,14 +2,14 @@ module Orb module Models type price = Orb::Price::Unit - | Orb::Price::Package - | Orb::Price::Matrix | Orb::Price::Tiered | Orb::Price::Bulk + | Orb::Price::Package + | Orb::Price::Matrix | Orb::Price::ThresholdTotalAmount | Orb::Price::TieredPackage - | Orb::Price::GroupedTiered | Orb::Price::TieredWithMinimum + | Orb::Price::GroupedTiered | Orb::Price::TieredPackageWithMinimum | Orb::Price::PackageWithAllocation | Orb::Price::UnitWithPercent @@ -17,16 +17,16 @@ module Orb | Orb::Price::TieredWithProration | Orb::Price::UnitWithProration | Orb::Price::GroupedAllocation + | Orb::Price::BulkWithProration | Orb::Price::GroupedWithProratedMinimum | Orb::Price::GroupedWithMeteredMinimum + | Orb::Price::GroupedWithMinMaxThresholds | Orb::Price::MatrixWithDisplayName - | Orb::Price::BulkWithProration | Orb::Price::GroupedTieredPackage | Orb::Price::MaxGroupTieredPackage | Orb::Price::ScalableMatrixWithUnitPricing | Orb::Price::ScalableMatrixWithTieredPricing | Orb::Price::CumulativeGroupedBulk - | Orb::Price::GroupedWithMinMaxThresholds | Orb::Price::Minimum module Price @@ -206,15 +206,15 @@ module Orb end end - type package = + type tiered = { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::Package::cadence, + cadence: Orb::Models::Price::Tiered::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Package::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::Tiered::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -228,29 +228,29 @@ module Orb metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :package, + model_type: :tiered, name: String, - package_config: Orb::PackageConfig, plan_phase_order: Integer?, - price_type: Orb::Models::Price::Package::price_type, + price_type: Orb::Models::Price::Tiered::price_type, replaces_price_id: String?, + tiered_config: Orb::TieredConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } - class Package < Orb::Internal::Type::BaseModel + class Tiered < Orb::Internal::Type::BaseModel attr_accessor id: String attr_accessor billable_metric: Orb::BillableMetricTiny? attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::Package::cadence + attr_accessor cadence: Orb::Models::Price::Tiered::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::Package::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::Tiered::conversion_rate_config? attr_accessor created_at: Time @@ -278,28 +278,28 @@ module Orb attr_accessor minimum_amount: String? - attr_accessor model_type: :package + attr_accessor model_type: :tiered attr_accessor name: String - attr_accessor package_config: Orb::PackageConfig - attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::Package::price_type + attr_accessor price_type: Orb::Models::Price::Tiered::price_type attr_accessor replaces_price_id: String? + attr_accessor tiered_config: Orb::TieredConfig + attr_accessor dimensional_price_configuration: Orb::DimensionalPriceConfiguration? def initialize: ( id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::Package::cadence, + cadence: Orb::Models::Price::Tiered::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Package::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::Tiered::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -314,22 +314,22 @@ module Orb minimum: Orb::Minimum?, minimum_amount: String?, name: String, - package_config: Orb::PackageConfig, plan_phase_order: Integer?, - price_type: Orb::Models::Price::Package::price_type, + price_type: Orb::Models::Price::Tiered::price_type, replaces_price_id: String?, + tiered_config: Orb::TieredConfig, ?dimensional_price_configuration: Orb::DimensionalPriceConfiguration?, - ?model_type: :package + ?model_type: :tiered ) -> void def to_hash: -> { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::Package::cadence, + cadence: Orb::Models::Price::Tiered::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Package::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::Tiered::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -343,12 +343,12 @@ module Orb metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :package, + model_type: :tiered, name: String, - package_config: Orb::PackageConfig, plan_phase_order: Integer?, - price_type: Orb::Models::Price::Package::price_type, + price_type: Orb::Models::Price::Tiered::price_type, replaces_price_id: String?, + tiered_config: Orb::TieredConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } @@ -365,7 +365,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::Package::cadence] + def self?.values: -> ::Array[Orb::Models::Price::Tiered::cadence] end type price_type = :usage_price | :fixed_price @@ -376,19 +376,20 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::Package::price_type] + def self?.values: -> ::Array[Orb::Models::Price::Tiered::price_type] end end - type matrix = + type bulk = { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::Matrix::cadence, + bulk_config: Orb::BulkConfig, + cadence: Orb::Models::Price::Bulk::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Matrix::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::Bulk::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -397,34 +398,35 @@ module Orb fixed_price_quantity: Float?, invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, - matrix_config: Orb::MatrixConfig, maximum: Orb::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :matrix, + model_type: :bulk, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::Matrix::price_type, + price_type: Orb::Models::Price::Bulk::price_type, replaces_price_id: String?, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } - class Matrix < Orb::Internal::Type::BaseModel + class Bulk < Orb::Internal::Type::BaseModel attr_accessor id: String attr_accessor billable_metric: Orb::BillableMetricTiny? attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::Matrix::cadence + attr_accessor bulk_config: Orb::BulkConfig + + attr_accessor cadence: Orb::Models::Price::Bulk::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::Matrix::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::Bulk::conversion_rate_config? attr_accessor created_at: Time @@ -442,8 +444,6 @@ module Orb attr_accessor item: Orb::ItemSlim - attr_accessor matrix_config: Orb::MatrixConfig - attr_accessor maximum: Orb::Maximum? attr_accessor maximum_amount: String? @@ -454,13 +454,13 @@ module Orb attr_accessor minimum_amount: String? - attr_accessor model_type: :matrix + attr_accessor model_type: :bulk attr_accessor name: String attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::Matrix::price_type + attr_accessor price_type: Orb::Models::Price::Bulk::price_type attr_accessor replaces_price_id: String? @@ -470,10 +470,11 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::Matrix::cadence, + bulk_config: Orb::BulkConfig, + cadence: Orb::Models::Price::Bulk::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Matrix::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::Bulk::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -482,7 +483,6 @@ module Orb fixed_price_quantity: Float?, invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, - matrix_config: Orb::MatrixConfig, maximum: Orb::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], @@ -490,20 +490,21 @@ module Orb minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::Matrix::price_type, + price_type: Orb::Models::Price::Bulk::price_type, replaces_price_id: String?, ?dimensional_price_configuration: Orb::DimensionalPriceConfiguration?, - ?model_type: :matrix + ?model_type: :bulk ) -> void def to_hash: -> { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::Matrix::cadence, + bulk_config: Orb::BulkConfig, + cadence: Orb::Models::Price::Bulk::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Matrix::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::Bulk::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -512,16 +513,15 @@ module Orb fixed_price_quantity: Float?, invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, - matrix_config: Orb::MatrixConfig, maximum: Orb::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :matrix, + model_type: :bulk, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::Matrix::price_type, + price_type: Orb::Models::Price::Bulk::price_type, replaces_price_id: String?, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } @@ -539,7 +539,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::Matrix::cadence] + def self?.values: -> ::Array[Orb::Models::Price::Bulk::cadence] end type price_type = :usage_price | :fixed_price @@ -550,19 +550,19 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::Matrix::price_type] + def self?.values: -> ::Array[Orb::Models::Price::Bulk::price_type] end end - type tiered = + type package = { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::Tiered::cadence, + cadence: Orb::Models::Price::Package::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Tiered::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::Package::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -576,29 +576,29 @@ module Orb metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :tiered, + model_type: :package, name: String, + package_config: Orb::PackageConfig, plan_phase_order: Integer?, - price_type: Orb::Models::Price::Tiered::price_type, + price_type: Orb::Models::Price::Package::price_type, replaces_price_id: String?, - tiered_config: Orb::TieredConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } - class Tiered < Orb::Internal::Type::BaseModel + class Package < Orb::Internal::Type::BaseModel attr_accessor id: String attr_accessor billable_metric: Orb::BillableMetricTiny? attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::Tiered::cadence + attr_accessor cadence: Orb::Models::Price::Package::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::Tiered::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::Package::conversion_rate_config? attr_accessor created_at: Time @@ -626,28 +626,28 @@ module Orb attr_accessor minimum_amount: String? - attr_accessor model_type: :tiered + attr_accessor model_type: :package attr_accessor name: String + attr_accessor package_config: Orb::PackageConfig + attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::Tiered::price_type + attr_accessor price_type: Orb::Models::Price::Package::price_type attr_accessor replaces_price_id: String? - attr_accessor tiered_config: Orb::TieredConfig - attr_accessor dimensional_price_configuration: Orb::DimensionalPriceConfiguration? def initialize: ( id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::Tiered::cadence, + cadence: Orb::Models::Price::Package::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Tiered::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::Package::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -662,22 +662,22 @@ module Orb minimum: Orb::Minimum?, minimum_amount: String?, name: String, + package_config: Orb::PackageConfig, plan_phase_order: Integer?, - price_type: Orb::Models::Price::Tiered::price_type, + price_type: Orb::Models::Price::Package::price_type, replaces_price_id: String?, - tiered_config: Orb::TieredConfig, ?dimensional_price_configuration: Orb::DimensionalPriceConfiguration?, - ?model_type: :tiered + ?model_type: :package ) -> void def to_hash: -> { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::Tiered::cadence, + cadence: Orb::Models::Price::Package::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Tiered::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::Package::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -691,12 +691,12 @@ module Orb metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :tiered, + model_type: :package, name: String, + package_config: Orb::PackageConfig, plan_phase_order: Integer?, - price_type: Orb::Models::Price::Tiered::price_type, + price_type: Orb::Models::Price::Package::price_type, replaces_price_id: String?, - tiered_config: Orb::TieredConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } @@ -713,7 +713,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::Tiered::cadence] + def self?.values: -> ::Array[Orb::Models::Price::Package::cadence] end type price_type = :usage_price | :fixed_price @@ -724,20 +724,19 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::Tiered::price_type] + def self?.values: -> ::Array[Orb::Models::Price::Package::price_type] end end - type bulk = + type matrix = { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - bulk_config: Orb::BulkConfig, - cadence: Orb::Models::Price::Bulk::cadence, + cadence: Orb::Models::Price::Matrix::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Bulk::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::Matrix::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -746,35 +745,34 @@ module Orb fixed_price_quantity: Float?, invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, + matrix_config: Orb::MatrixConfig, maximum: Orb::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :bulk, + model_type: :matrix, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::Bulk::price_type, + price_type: Orb::Models::Price::Matrix::price_type, replaces_price_id: String?, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } - class Bulk < Orb::Internal::Type::BaseModel + class Matrix < Orb::Internal::Type::BaseModel attr_accessor id: String attr_accessor billable_metric: Orb::BillableMetricTiny? attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration - attr_accessor bulk_config: Orb::BulkConfig - - attr_accessor cadence: Orb::Models::Price::Bulk::cadence + attr_accessor cadence: Orb::Models::Price::Matrix::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::Bulk::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::Matrix::conversion_rate_config? attr_accessor created_at: Time @@ -792,6 +790,8 @@ module Orb attr_accessor item: Orb::ItemSlim + attr_accessor matrix_config: Orb::MatrixConfig + attr_accessor maximum: Orb::Maximum? attr_accessor maximum_amount: String? @@ -802,13 +802,13 @@ module Orb attr_accessor minimum_amount: String? - attr_accessor model_type: :bulk + attr_accessor model_type: :matrix attr_accessor name: String attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::Bulk::price_type + attr_accessor price_type: Orb::Models::Price::Matrix::price_type attr_accessor replaces_price_id: String? @@ -818,11 +818,10 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - bulk_config: Orb::BulkConfig, - cadence: Orb::Models::Price::Bulk::cadence, + cadence: Orb::Models::Price::Matrix::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Bulk::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::Matrix::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -831,6 +830,7 @@ module Orb fixed_price_quantity: Float?, invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, + matrix_config: Orb::MatrixConfig, maximum: Orb::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], @@ -838,21 +838,20 @@ module Orb minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::Bulk::price_type, + price_type: Orb::Models::Price::Matrix::price_type, replaces_price_id: String?, ?dimensional_price_configuration: Orb::DimensionalPriceConfiguration?, - ?model_type: :bulk + ?model_type: :matrix ) -> void def to_hash: -> { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - bulk_config: Orb::BulkConfig, - cadence: Orb::Models::Price::Bulk::cadence, + cadence: Orb::Models::Price::Matrix::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::Bulk::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::Matrix::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -861,15 +860,16 @@ module Orb fixed_price_quantity: Float?, invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, + matrix_config: Orb::MatrixConfig, maximum: Orb::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :bulk, + model_type: :matrix, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::Bulk::price_type, + price_type: Orb::Models::Price::Matrix::price_type, replaces_price_id: String?, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } @@ -887,7 +887,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::Bulk::cadence] + def self?.values: -> ::Array[Orb::Models::Price::Matrix::cadence] end type price_type = :usage_price | :fixed_price @@ -898,7 +898,7 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::Bulk::price_type] + def self?.values: -> ::Array[Orb::Models::Price::Matrix::price_type] end end @@ -929,7 +929,7 @@ module Orb plan_phase_order: Integer?, price_type: Orb::Models::Price::ThresholdTotalAmount::price_type, replaces_price_id: String?, - threshold_total_amount_config: ::Hash[Symbol, top], + threshold_total_amount_config: Orb::Price::ThresholdTotalAmount::ThresholdTotalAmountConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } @@ -984,7 +984,7 @@ module Orb attr_accessor replaces_price_id: String? - attr_accessor threshold_total_amount_config: ::Hash[Symbol, top] + attr_accessor threshold_total_amount_config: Orb::Price::ThresholdTotalAmount::ThresholdTotalAmountConfig attr_accessor dimensional_price_configuration: Orb::DimensionalPriceConfiguration? @@ -1013,7 +1013,7 @@ module Orb plan_phase_order: Integer?, price_type: Orb::Models::Price::ThresholdTotalAmount::price_type, replaces_price_id: String?, - threshold_total_amount_config: ::Hash[Symbol, top], + threshold_total_amount_config: Orb::Price::ThresholdTotalAmount::ThresholdTotalAmountConfig, ?dimensional_price_configuration: Orb::DimensionalPriceConfiguration?, ?model_type: :threshold_total_amount ) -> void @@ -1044,7 +1044,7 @@ module Orb plan_phase_order: Integer?, price_type: Orb::Models::Price::ThresholdTotalAmount::price_type, replaces_price_id: String?, - threshold_total_amount_config: ::Hash[Symbol, top], + threshold_total_amount_config: Orb::Price::ThresholdTotalAmount::ThresholdTotalAmountConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } @@ -1074,6 +1074,40 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::ThresholdTotalAmount::price_type] end + + type threshold_total_amount_config = + { + consumption_table: ::Array[Orb::Price::ThresholdTotalAmount::ThresholdTotalAmountConfig::ConsumptionTable], + prorate: bool? + } + + class ThresholdTotalAmountConfig < Orb::Internal::Type::BaseModel + attr_accessor consumption_table: ::Array[Orb::Price::ThresholdTotalAmount::ThresholdTotalAmountConfig::ConsumptionTable] + + attr_accessor prorate: bool? + + def initialize: ( + consumption_table: ::Array[Orb::Price::ThresholdTotalAmount::ThresholdTotalAmountConfig::ConsumptionTable], + ?prorate: bool? + ) -> void + + def to_hash: -> { + consumption_table: ::Array[Orb::Price::ThresholdTotalAmount::ThresholdTotalAmountConfig::ConsumptionTable], + prorate: bool? + } + + type consumption_table = { threshold: String, total_amount: String } + + class ConsumptionTable < Orb::Internal::Type::BaseModel + attr_accessor threshold: String + + attr_accessor total_amount: String + + def initialize: (threshold: String, total_amount: String) -> void + + def to_hash: -> { threshold: String, total_amount: String } + end + end end type tiered_package = @@ -1103,7 +1137,7 @@ module Orb plan_phase_order: Integer?, price_type: Orb::Models::Price::TieredPackage::price_type, replaces_price_id: String?, - tiered_package_config: ::Hash[Symbol, top], + tiered_package_config: Orb::Price::TieredPackage::TieredPackageConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } @@ -1158,7 +1192,7 @@ module Orb attr_accessor replaces_price_id: String? - attr_accessor tiered_package_config: ::Hash[Symbol, top] + attr_accessor tiered_package_config: Orb::Price::TieredPackage::TieredPackageConfig attr_accessor dimensional_price_configuration: Orb::DimensionalPriceConfiguration? @@ -1187,7 +1221,7 @@ module Orb plan_phase_order: Integer?, price_type: Orb::Models::Price::TieredPackage::price_type, replaces_price_id: String?, - tiered_package_config: ::Hash[Symbol, top], + tiered_package_config: Orb::Price::TieredPackage::TieredPackageConfig, ?dimensional_price_configuration: Orb::DimensionalPriceConfiguration?, ?model_type: :tiered_package ) -> void @@ -1218,7 +1252,7 @@ module Orb plan_phase_order: Integer?, price_type: Orb::Models::Price::TieredPackage::price_type, replaces_price_id: String?, - tiered_package_config: ::Hash[Symbol, top], + tiered_package_config: Orb::Price::TieredPackage::TieredPackageConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } @@ -1248,24 +1282,57 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::TieredPackage::price_type] end + + type tiered_package_config = + { + package_size: String, + tiers: ::Array[Orb::Price::TieredPackage::TieredPackageConfig::Tier] + } + + class TieredPackageConfig < Orb::Internal::Type::BaseModel + attr_accessor package_size: String + + attr_accessor tiers: ::Array[Orb::Price::TieredPackage::TieredPackageConfig::Tier] + + def initialize: ( + package_size: String, + tiers: ::Array[Orb::Price::TieredPackage::TieredPackageConfig::Tier] + ) -> void + + def to_hash: -> { + package_size: String, + tiers: ::Array[Orb::Price::TieredPackage::TieredPackageConfig::Tier] + } + + type tier = { per_unit: String, tier_lower_bound: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor per_unit: String + + attr_accessor tier_lower_bound: String + + def initialize: (per_unit: String, tier_lower_bound: String) -> void + + def to_hash: -> { per_unit: String, tier_lower_bound: String } + end + end end - type grouped_tiered = + type tiered_with_minimum = { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedTiered::cadence, + cadence: Orb::Models::Price::TieredWithMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedTiered::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::TieredWithMinimum::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - grouped_tiered_config: ::Hash[Symbol, top], invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, maximum: Orb::Maximum?, @@ -1273,28 +1340,29 @@ module Orb metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :grouped_tiered, + model_type: :tiered_with_minimum, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedTiered::price_type, + price_type: Orb::Models::Price::TieredWithMinimum::price_type, replaces_price_id: String?, + tiered_with_minimum_config: Orb::Price::TieredWithMinimum::TieredWithMinimumConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } - class GroupedTiered < Orb::Internal::Type::BaseModel + class TieredWithMinimum < Orb::Internal::Type::BaseModel attr_accessor id: String attr_accessor billable_metric: Orb::BillableMetricTiny? attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::GroupedTiered::cadence + attr_accessor cadence: Orb::Models::Price::TieredWithMinimum::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::GroupedTiered::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::TieredWithMinimum::conversion_rate_config? attr_accessor created_at: Time @@ -1308,8 +1376,6 @@ module Orb attr_accessor fixed_price_quantity: Float? - attr_accessor grouped_tiered_config: ::Hash[Symbol, top] - attr_accessor invoicing_cycle_configuration: Orb::BillingCycleConfiguration? attr_accessor item: Orb::ItemSlim @@ -1324,33 +1390,34 @@ module Orb attr_accessor minimum_amount: String? - attr_accessor model_type: :grouped_tiered + attr_accessor model_type: :tiered_with_minimum attr_accessor name: String attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::GroupedTiered::price_type + attr_accessor price_type: Orb::Models::Price::TieredWithMinimum::price_type attr_accessor replaces_price_id: String? + attr_accessor tiered_with_minimum_config: Orb::Price::TieredWithMinimum::TieredWithMinimumConfig + attr_accessor dimensional_price_configuration: Orb::DimensionalPriceConfiguration? def initialize: ( id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedTiered::cadence, + cadence: Orb::Models::Price::TieredWithMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedTiered::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::TieredWithMinimum::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - grouped_tiered_config: ::Hash[Symbol, top], invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, maximum: Orb::Maximum?, @@ -1360,27 +1427,27 @@ module Orb minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedTiered::price_type, + price_type: Orb::Models::Price::TieredWithMinimum::price_type, replaces_price_id: String?, + tiered_with_minimum_config: Orb::Price::TieredWithMinimum::TieredWithMinimumConfig, ?dimensional_price_configuration: Orb::DimensionalPriceConfiguration?, - ?model_type: :grouped_tiered + ?model_type: :tiered_with_minimum ) -> void def to_hash: -> { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedTiered::cadence, + cadence: Orb::Models::Price::TieredWithMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedTiered::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::TieredWithMinimum::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - grouped_tiered_config: ::Hash[Symbol, top], invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, maximum: Orb::Maximum?, @@ -1388,11 +1455,12 @@ module Orb metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :grouped_tiered, + model_type: :tiered_with_minimum, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedTiered::price_type, + price_type: Orb::Models::Price::TieredWithMinimum::price_type, replaces_price_id: String?, + tiered_with_minimum_config: Orb::Price::TieredWithMinimum::TieredWithMinimumConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } @@ -1409,7 +1477,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::GroupedTiered::cadence] + def self?.values: -> ::Array[Orb::Models::Price::TieredWithMinimum::cadence] end type price_type = :usage_price | :fixed_price @@ -1420,25 +1488,84 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::GroupedTiered::price_type] + def self?.values: -> ::Array[Orb::Models::Price::TieredWithMinimum::price_type] + end + + type tiered_with_minimum_config = + { + tiers: ::Array[Orb::Price::TieredWithMinimum::TieredWithMinimumConfig::Tier], + hide_zero_amount_tiers: bool, + prorate: bool + } + + class TieredWithMinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor tiers: ::Array[Orb::Price::TieredWithMinimum::TieredWithMinimumConfig::Tier] + + attr_reader hide_zero_amount_tiers: bool? + + def hide_zero_amount_tiers=: (bool) -> bool + + attr_reader prorate: bool? + + def prorate=: (bool) -> bool + + def initialize: ( + tiers: ::Array[Orb::Price::TieredWithMinimum::TieredWithMinimumConfig::Tier], + ?hide_zero_amount_tiers: bool, + ?prorate: bool + ) -> void + + def to_hash: -> { + tiers: ::Array[Orb::Price::TieredWithMinimum::TieredWithMinimumConfig::Tier], + hide_zero_amount_tiers: bool, + prorate: bool + } + + type tier = + { + minimum_amount: String, + tier_lower_bound: String, + unit_amount: String + } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor minimum_amount: String + + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + minimum_amount: String, + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { + minimum_amount: String, + tier_lower_bound: String, + unit_amount: String + } + end end end - type tiered_with_minimum = + type grouped_tiered = { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredWithMinimum::cadence, + cadence: Orb::Models::Price::GroupedTiered::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredWithMinimum::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::GroupedTiered::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, + grouped_tiered_config: Orb::Price::GroupedTiered::GroupedTieredConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, maximum: Orb::Maximum?, @@ -1446,29 +1573,28 @@ module Orb metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :tiered_with_minimum, + model_type: :grouped_tiered, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::TieredWithMinimum::price_type, + price_type: Orb::Models::Price::GroupedTiered::price_type, replaces_price_id: String?, - tiered_with_minimum_config: ::Hash[Symbol, top], dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } - class TieredWithMinimum < Orb::Internal::Type::BaseModel + class GroupedTiered < Orb::Internal::Type::BaseModel attr_accessor id: String attr_accessor billable_metric: Orb::BillableMetricTiny? attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::TieredWithMinimum::cadence + attr_accessor cadence: Orb::Models::Price::GroupedTiered::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::TieredWithMinimum::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::GroupedTiered::conversion_rate_config? attr_accessor created_at: Time @@ -1482,6 +1608,8 @@ module Orb attr_accessor fixed_price_quantity: Float? + attr_accessor grouped_tiered_config: Orb::Price::GroupedTiered::GroupedTieredConfig + attr_accessor invoicing_cycle_configuration: Orb::BillingCycleConfiguration? attr_accessor item: Orb::ItemSlim @@ -1496,34 +1624,33 @@ module Orb attr_accessor minimum_amount: String? - attr_accessor model_type: :tiered_with_minimum + attr_accessor model_type: :grouped_tiered attr_accessor name: String attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::TieredWithMinimum::price_type + attr_accessor price_type: Orb::Models::Price::GroupedTiered::price_type attr_accessor replaces_price_id: String? - attr_accessor tiered_with_minimum_config: ::Hash[Symbol, top] - attr_accessor dimensional_price_configuration: Orb::DimensionalPriceConfiguration? def initialize: ( id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredWithMinimum::cadence, + cadence: Orb::Models::Price::GroupedTiered::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredWithMinimum::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::GroupedTiered::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, + grouped_tiered_config: Orb::Price::GroupedTiered::GroupedTieredConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, maximum: Orb::Maximum?, @@ -1533,27 +1660,27 @@ module Orb minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::TieredWithMinimum::price_type, + price_type: Orb::Models::Price::GroupedTiered::price_type, replaces_price_id: String?, - tiered_with_minimum_config: ::Hash[Symbol, top], ?dimensional_price_configuration: Orb::DimensionalPriceConfiguration?, - ?model_type: :tiered_with_minimum + ?model_type: :grouped_tiered ) -> void def to_hash: -> { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::TieredWithMinimum::cadence, + cadence: Orb::Models::Price::GroupedTiered::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::TieredWithMinimum::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::GroupedTiered::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, + grouped_tiered_config: Orb::Price::GroupedTiered::GroupedTieredConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, maximum: Orb::Maximum?, @@ -1561,12 +1688,11 @@ module Orb metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :tiered_with_minimum, + model_type: :grouped_tiered, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::TieredWithMinimum::price_type, + price_type: Orb::Models::Price::GroupedTiered::price_type, replaces_price_id: String?, - tiered_with_minimum_config: ::Hash[Symbol, top], dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } @@ -1583,7 +1709,44 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::TieredWithMinimum::cadence] + def self?.values: -> ::Array[Orb::Models::Price::GroupedTiered::cadence] + end + + type grouped_tiered_config = + { + grouping_key: String, + tiers: ::Array[Orb::Price::GroupedTiered::GroupedTieredConfig::Tier] + } + + class GroupedTieredConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor tiers: ::Array[Orb::Price::GroupedTiered::GroupedTieredConfig::Tier] + + def initialize: ( + grouping_key: String, + tiers: ::Array[Orb::Price::GroupedTiered::GroupedTieredConfig::Tier] + ) -> void + + def to_hash: -> { + grouping_key: String, + tiers: ::Array[Orb::Price::GroupedTiered::GroupedTieredConfig::Tier] + } + + type tier = { tier_lower_bound: String, unit_amount: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { tier_lower_bound: String, unit_amount: String } + end end type price_type = :usage_price | :fixed_price @@ -1594,7 +1757,7 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::TieredWithMinimum::price_type] + def self?.values: -> ::Array[Orb::Models::Price::GroupedTiered::price_type] end end @@ -1625,7 +1788,7 @@ module Orb plan_phase_order: Integer?, price_type: Orb::Models::Price::TieredPackageWithMinimum::price_type, replaces_price_id: String?, - tiered_package_with_minimum_config: ::Hash[Symbol, top], + tiered_package_with_minimum_config: Orb::Price::TieredPackageWithMinimum::TieredPackageWithMinimumConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } @@ -1680,7 +1843,7 @@ module Orb attr_accessor replaces_price_id: String? - attr_accessor tiered_package_with_minimum_config: ::Hash[Symbol, top] + attr_accessor tiered_package_with_minimum_config: Orb::Price::TieredPackageWithMinimum::TieredPackageWithMinimumConfig attr_accessor dimensional_price_configuration: Orb::DimensionalPriceConfiguration? @@ -1709,7 +1872,7 @@ module Orb plan_phase_order: Integer?, price_type: Orb::Models::Price::TieredPackageWithMinimum::price_type, replaces_price_id: String?, - tiered_package_with_minimum_config: ::Hash[Symbol, top], + tiered_package_with_minimum_config: Orb::Price::TieredPackageWithMinimum::TieredPackageWithMinimumConfig, ?dimensional_price_configuration: Orb::DimensionalPriceConfiguration?, ?model_type: :tiered_package_with_minimum ) -> void @@ -1740,7 +1903,7 @@ module Orb plan_phase_order: Integer?, price_type: Orb::Models::Price::TieredPackageWithMinimum::price_type, replaces_price_id: String?, - tiered_package_with_minimum_config: ::Hash[Symbol, top], + tiered_package_with_minimum_config: Orb::Price::TieredPackageWithMinimum::TieredPackageWithMinimumConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } @@ -1770,6 +1933,55 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::TieredPackageWithMinimum::price_type] end + + type tiered_package_with_minimum_config = + { + package_size: Float, + tiers: ::Array[Orb::Price::TieredPackageWithMinimum::TieredPackageWithMinimumConfig::Tier] + } + + class TieredPackageWithMinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor package_size: Float + + attr_accessor tiers: ::Array[Orb::Price::TieredPackageWithMinimum::TieredPackageWithMinimumConfig::Tier] + + def initialize: ( + package_size: Float, + tiers: ::Array[Orb::Price::TieredPackageWithMinimum::TieredPackageWithMinimumConfig::Tier] + ) -> void + + def to_hash: -> { + package_size: Float, + tiers: ::Array[Orb::Price::TieredPackageWithMinimum::TieredPackageWithMinimumConfig::Tier] + } + + type tier = + { + minimum_amount: String, + per_unit: String, + tier_lower_bound: String + } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor minimum_amount: String + + attr_accessor per_unit: String + + attr_accessor tier_lower_bound: String + + def initialize: ( + minimum_amount: String, + per_unit: String, + tier_lower_bound: String + ) -> void + + def to_hash: -> { + minimum_amount: String, + per_unit: String, + tier_lower_bound: String + } + end + end end type package_with_allocation = @@ -1796,7 +2008,7 @@ module Orb minimum_amount: String?, model_type: :package_with_allocation, name: String, - package_with_allocation_config: ::Hash[Symbol, top], + package_with_allocation_config: Orb::Price::PackageWithAllocation::PackageWithAllocationConfig, plan_phase_order: Integer?, price_type: Orb::Models::Price::PackageWithAllocation::price_type, replaces_price_id: String?, @@ -1848,7 +2060,7 @@ module Orb attr_accessor name: String - attr_accessor package_with_allocation_config: ::Hash[Symbol, top] + attr_accessor package_with_allocation_config: Orb::Price::PackageWithAllocation::PackageWithAllocationConfig attr_accessor plan_phase_order: Integer? @@ -1880,7 +2092,7 @@ module Orb minimum: Orb::Minimum?, minimum_amount: String?, name: String, - package_with_allocation_config: ::Hash[Symbol, top], + package_with_allocation_config: Orb::Price::PackageWithAllocation::PackageWithAllocationConfig, plan_phase_order: Integer?, price_type: Orb::Models::Price::PackageWithAllocation::price_type, replaces_price_id: String?, @@ -1911,7 +2123,7 @@ module Orb minimum_amount: String?, model_type: :package_with_allocation, name: String, - package_with_allocation_config: ::Hash[Symbol, top], + package_with_allocation_config: Orb::Price::PackageWithAllocation::PackageWithAllocationConfig, plan_phase_order: Integer?, price_type: Orb::Models::Price::PackageWithAllocation::price_type, replaces_price_id: String?, @@ -1934,6 +2146,29 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::PackageWithAllocation::cadence] end + type package_with_allocation_config = + { allocation: String, package_amount: String, package_size: String } + + class PackageWithAllocationConfig < Orb::Internal::Type::BaseModel + attr_accessor allocation: String + + attr_accessor package_amount: String + + attr_accessor package_size: String + + def initialize: ( + allocation: String, + package_amount: String, + package_size: String + ) -> void + + def to_hash: -> { + allocation: String, + package_amount: String, + package_size: String + } + end + type price_type = :usage_price | :fixed_price module PriceType @@ -1973,7 +2208,7 @@ module Orb plan_phase_order: Integer?, price_type: Orb::Models::Price::UnitWithPercent::price_type, replaces_price_id: String?, - unit_with_percent_config: ::Hash[Symbol, top], + unit_with_percent_config: Orb::Price::UnitWithPercent::UnitWithPercentConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } @@ -2028,7 +2263,7 @@ module Orb attr_accessor replaces_price_id: String? - attr_accessor unit_with_percent_config: ::Hash[Symbol, top] + attr_accessor unit_with_percent_config: Orb::Price::UnitWithPercent::UnitWithPercentConfig attr_accessor dimensional_price_configuration: Orb::DimensionalPriceConfiguration? @@ -2057,7 +2292,7 @@ module Orb plan_phase_order: Integer?, price_type: Orb::Models::Price::UnitWithPercent::price_type, replaces_price_id: String?, - unit_with_percent_config: ::Hash[Symbol, top], + unit_with_percent_config: Orb::Price::UnitWithPercent::UnitWithPercentConfig, ?dimensional_price_configuration: Orb::DimensionalPriceConfiguration?, ?model_type: :unit_with_percent ) -> void @@ -2088,7 +2323,7 @@ module Orb plan_phase_order: Integer?, price_type: Orb::Models::Price::UnitWithPercent::price_type, replaces_price_id: String?, - unit_with_percent_config: ::Hash[Symbol, top], + unit_with_percent_config: Orb::Price::UnitWithPercent::UnitWithPercentConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } @@ -2118,6 +2353,18 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::UnitWithPercent::price_type] end + + type unit_with_percent_config = { percent: String, unit_amount: String } + + class UnitWithPercentConfig < Orb::Internal::Type::BaseModel + attr_accessor percent: String + + attr_accessor unit_amount: String + + def initialize: (percent: String, unit_amount: String) -> void + + def to_hash: -> { percent: String, unit_amount: String } + end end type matrix_with_allocation = @@ -2321,7 +2568,7 @@ module Orb plan_phase_order: Integer?, price_type: Orb::Models::Price::TieredWithProration::price_type, replaces_price_id: String?, - tiered_with_proration_config: ::Hash[Symbol, top], + tiered_with_proration_config: Orb::Price::TieredWithProration::TieredWithProrationConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } @@ -2376,7 +2623,7 @@ module Orb attr_accessor replaces_price_id: String? - attr_accessor tiered_with_proration_config: ::Hash[Symbol, top] + attr_accessor tiered_with_proration_config: Orb::Price::TieredWithProration::TieredWithProrationConfig attr_accessor dimensional_price_configuration: Orb::DimensionalPriceConfiguration? @@ -2405,7 +2652,7 @@ module Orb plan_phase_order: Integer?, price_type: Orb::Models::Price::TieredWithProration::price_type, replaces_price_id: String?, - tiered_with_proration_config: ::Hash[Symbol, top], + tiered_with_proration_config: Orb::Price::TieredWithProration::TieredWithProrationConfig, ?dimensional_price_configuration: Orb::DimensionalPriceConfiguration?, ?model_type: :tiered_with_proration ) -> void @@ -2436,7 +2683,7 @@ module Orb plan_phase_order: Integer?, price_type: Orb::Models::Price::TieredWithProration::price_type, replaces_price_id: String?, - tiered_with_proration_config: ::Hash[Symbol, top], + tiered_with_proration_config: Orb::Price::TieredWithProration::TieredWithProrationConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } @@ -2466,6 +2713,38 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::TieredWithProration::price_type] end + + type tiered_with_proration_config = + { + tiers: ::Array[Orb::Price::TieredWithProration::TieredWithProrationConfig::Tier] + } + + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + attr_accessor tiers: ::Array[Orb::Price::TieredWithProration::TieredWithProrationConfig::Tier] + + def initialize: ( + tiers: ::Array[Orb::Price::TieredWithProration::TieredWithProrationConfig::Tier] + ) -> void + + def to_hash: -> { + tiers: ::Array[Orb::Price::TieredWithProration::TieredWithProrationConfig::Tier] + } + + type tier = { tier_lower_bound: String, unit_amount: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { tier_lower_bound: String, unit_amount: String } + end + end end type unit_with_proration = @@ -2495,7 +2774,7 @@ module Orb plan_phase_order: Integer?, price_type: Orb::Models::Price::UnitWithProration::price_type, replaces_price_id: String?, - unit_with_proration_config: ::Hash[Symbol, top], + unit_with_proration_config: Orb::Price::UnitWithProration::UnitWithProrationConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } @@ -2550,7 +2829,7 @@ module Orb attr_accessor replaces_price_id: String? - attr_accessor unit_with_proration_config: ::Hash[Symbol, top] + attr_accessor unit_with_proration_config: Orb::Price::UnitWithProration::UnitWithProrationConfig attr_accessor dimensional_price_configuration: Orb::DimensionalPriceConfiguration? @@ -2579,7 +2858,7 @@ module Orb plan_phase_order: Integer?, price_type: Orb::Models::Price::UnitWithProration::price_type, replaces_price_id: String?, - unit_with_proration_config: ::Hash[Symbol, top], + unit_with_proration_config: Orb::Price::UnitWithProration::UnitWithProrationConfig, ?dimensional_price_configuration: Orb::DimensionalPriceConfiguration?, ?model_type: :unit_with_proration ) -> void @@ -2610,7 +2889,7 @@ module Orb plan_phase_order: Integer?, price_type: Orb::Models::Price::UnitWithProration::price_type, replaces_price_id: String?, - unit_with_proration_config: ::Hash[Symbol, top], + unit_with_proration_config: Orb::Price::UnitWithProration::UnitWithProrationConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } @@ -2640,6 +2919,16 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::UnitWithProration::price_type] end + + type unit_with_proration_config = { unit_amount: String } + + class UnitWithProrationConfig < Orb::Internal::Type::BaseModel + attr_accessor unit_amount: String + + def initialize: (unit_amount: String) -> void + + def to_hash: -> { unit_amount: String } + end end type grouped_allocation = @@ -2657,7 +2946,7 @@ module Orb discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - grouped_allocation_config: ::Hash[Symbol, top], + grouped_allocation_config: Orb::Price::GroupedAllocation::GroupedAllocationConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, maximum: Orb::Maximum?, @@ -2700,7 +2989,7 @@ module Orb attr_accessor fixed_price_quantity: Float? - attr_accessor grouped_allocation_config: ::Hash[Symbol, top] + attr_accessor grouped_allocation_config: Orb::Price::GroupedAllocation::GroupedAllocationConfig attr_accessor invoicing_cycle_configuration: Orb::BillingCycleConfiguration? @@ -2742,7 +3031,7 @@ module Orb discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - grouped_allocation_config: ::Hash[Symbol, top], + grouped_allocation_config: Orb::Price::GroupedAllocation::GroupedAllocationConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, maximum: Orb::Maximum?, @@ -2772,7 +3061,7 @@ module Orb discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - grouped_allocation_config: ::Hash[Symbol, top], + grouped_allocation_config: Orb::Price::GroupedAllocation::GroupedAllocationConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, maximum: Orb::Maximum?, @@ -2804,6 +3093,33 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::GroupedAllocation::cadence] end + type grouped_allocation_config = + { + allocation: String, + grouping_key: String, + overage_unit_rate: String + } + + class GroupedAllocationConfig < Orb::Internal::Type::BaseModel + attr_accessor allocation: String + + attr_accessor grouping_key: String + + attr_accessor overage_unit_rate: String + + def initialize: ( + allocation: String, + grouping_key: String, + overage_unit_rate: String + ) -> void + + def to_hash: -> { + allocation: String, + grouping_key: String, + overage_unit_rate: String + } + end + type price_type = :usage_price | :fixed_price module PriceType @@ -2816,22 +3132,22 @@ module Orb end end - type grouped_with_prorated_minimum = + type bulk_with_proration = { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedWithProratedMinimum::cadence, + bulk_with_proration_config: Orb::Price::BulkWithProration::BulkWithProrationConfig, + cadence: Orb::Models::Price::BulkWithProration::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::BulkWithProration::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - grouped_with_prorated_minimum_config: ::Hash[Symbol, top], invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, maximum: Orb::Maximum?, @@ -2839,28 +3155,30 @@ module Orb metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :grouped_with_prorated_minimum, + model_type: :bulk_with_proration, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedWithProratedMinimum::price_type, + price_type: Orb::Models::Price::BulkWithProration::price_type, replaces_price_id: String?, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } - class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel + class BulkWithProration < Orb::Internal::Type::BaseModel attr_accessor id: String attr_accessor billable_metric: Orb::BillableMetricTiny? attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::GroupedWithProratedMinimum::cadence + attr_accessor bulk_with_proration_config: Orb::Price::BulkWithProration::BulkWithProrationConfig + + attr_accessor cadence: Orb::Models::Price::BulkWithProration::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::BulkWithProration::conversion_rate_config? attr_accessor created_at: Time @@ -2874,8 +3192,6 @@ module Orb attr_accessor fixed_price_quantity: Float? - attr_accessor grouped_with_prorated_minimum_config: ::Hash[Symbol, top] - attr_accessor invoicing_cycle_configuration: Orb::BillingCycleConfiguration? attr_accessor item: Orb::ItemSlim @@ -2890,13 +3206,13 @@ module Orb attr_accessor minimum_amount: String? - attr_accessor model_type: :grouped_with_prorated_minimum + attr_accessor model_type: :bulk_with_proration attr_accessor name: String attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::GroupedWithProratedMinimum::price_type + attr_accessor price_type: Orb::Models::Price::BulkWithProration::price_type attr_accessor replaces_price_id: String? @@ -2906,17 +3222,17 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedWithProratedMinimum::cadence, + bulk_with_proration_config: Orb::Price::BulkWithProration::BulkWithProrationConfig, + cadence: Orb::Models::Price::BulkWithProration::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::BulkWithProration::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - grouped_with_prorated_minimum_config: ::Hash[Symbol, top], invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, maximum: Orb::Maximum?, @@ -2926,27 +3242,27 @@ module Orb minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedWithProratedMinimum::price_type, + price_type: Orb::Models::Price::BulkWithProration::price_type, replaces_price_id: String?, ?dimensional_price_configuration: Orb::DimensionalPriceConfiguration?, - ?model_type: :grouped_with_prorated_minimum + ?model_type: :bulk_with_proration ) -> void def to_hash: -> { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedWithProratedMinimum::cadence, + bulk_with_proration_config: Orb::Price::BulkWithProration::BulkWithProrationConfig, + cadence: Orb::Models::Price::BulkWithProration::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::BulkWithProration::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - grouped_with_prorated_minimum_config: ::Hash[Symbol, top], invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, maximum: Orb::Maximum?, @@ -2954,14 +3270,46 @@ module Orb metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :grouped_with_prorated_minimum, + model_type: :bulk_with_proration, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedWithProratedMinimum::price_type, + price_type: Orb::Models::Price::BulkWithProration::price_type, replaces_price_id: String?, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } + type bulk_with_proration_config = + { + tiers: ::Array[Orb::Price::BulkWithProration::BulkWithProrationConfig::Tier] + } + + class BulkWithProrationConfig < Orb::Internal::Type::BaseModel + attr_accessor tiers: ::Array[Orb::Price::BulkWithProration::BulkWithProrationConfig::Tier] + + def initialize: ( + tiers: ::Array[Orb::Price::BulkWithProration::BulkWithProrationConfig::Tier] + ) -> void + + def to_hash: -> { + tiers: ::Array[Orb::Price::BulkWithProration::BulkWithProrationConfig::Tier] + } + + type tier = { unit_amount: String, tier_lower_bound: String? } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor unit_amount: String + + attr_accessor tier_lower_bound: String? + + def initialize: ( + unit_amount: String, + ?tier_lower_bound: String? + ) -> void + + def to_hash: -> { unit_amount: String, tier_lower_bound: String? } + end + end + type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom @@ -2975,7 +3323,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::GroupedWithProratedMinimum::cadence] + def self?.values: -> ::Array[Orb::Models::Price::BulkWithProration::cadence] end type price_type = :usage_price | :fixed_price @@ -2986,26 +3334,26 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::GroupedWithProratedMinimum::price_type] + def self?.values: -> ::Array[Orb::Models::Price::BulkWithProration::price_type] end end - type grouped_with_metered_minimum = + type grouped_with_prorated_minimum = { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedWithMeteredMinimum::cadence, + cadence: Orb::Models::Price::GroupedWithProratedMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - grouped_with_metered_minimum_config: ::Hash[Symbol, top], + grouped_with_prorated_minimum_config: Orb::Price::GroupedWithProratedMinimum::GroupedWithProratedMinimumConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, maximum: Orb::Maximum?, @@ -3013,28 +3361,28 @@ module Orb metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :grouped_with_metered_minimum, + model_type: :grouped_with_prorated_minimum, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedWithMeteredMinimum::price_type, + price_type: Orb::Models::Price::GroupedWithProratedMinimum::price_type, replaces_price_id: String?, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } - class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel + class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel attr_accessor id: String attr_accessor billable_metric: Orb::BillableMetricTiny? attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::GroupedWithMeteredMinimum::cadence + attr_accessor cadence: Orb::Models::Price::GroupedWithProratedMinimum::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::conversion_rate_config? attr_accessor created_at: Time @@ -3048,7 +3396,7 @@ module Orb attr_accessor fixed_price_quantity: Float? - attr_accessor grouped_with_metered_minimum_config: ::Hash[Symbol, top] + attr_accessor grouped_with_prorated_minimum_config: Orb::Price::GroupedWithProratedMinimum::GroupedWithProratedMinimumConfig attr_accessor invoicing_cycle_configuration: Orb::BillingCycleConfiguration? @@ -3064,13 +3412,13 @@ module Orb attr_accessor minimum_amount: String? - attr_accessor model_type: :grouped_with_metered_minimum + attr_accessor model_type: :grouped_with_prorated_minimum attr_accessor name: String attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::GroupedWithMeteredMinimum::price_type + attr_accessor price_type: Orb::Models::Price::GroupedWithProratedMinimum::price_type attr_accessor replaces_price_id: String? @@ -3080,17 +3428,17 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedWithMeteredMinimum::cadence, + cadence: Orb::Models::Price::GroupedWithProratedMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - grouped_with_metered_minimum_config: ::Hash[Symbol, top], + grouped_with_prorated_minimum_config: Orb::Price::GroupedWithProratedMinimum::GroupedWithProratedMinimumConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, maximum: Orb::Maximum?, @@ -3100,27 +3448,27 @@ module Orb minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedWithMeteredMinimum::price_type, + price_type: Orb::Models::Price::GroupedWithProratedMinimum::price_type, replaces_price_id: String?, ?dimensional_price_configuration: Orb::DimensionalPriceConfiguration?, - ?model_type: :grouped_with_metered_minimum + ?model_type: :grouped_with_prorated_minimum ) -> void def to_hash: -> { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedWithMeteredMinimum::cadence, + cadence: Orb::Models::Price::GroupedWithProratedMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::GroupedWithProratedMinimum::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - grouped_with_metered_minimum_config: ::Hash[Symbol, top], + grouped_with_prorated_minimum_config: Orb::Price::GroupedWithProratedMinimum::GroupedWithProratedMinimumConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, maximum: Orb::Maximum?, @@ -3128,10 +3476,10 @@ module Orb metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :grouped_with_metered_minimum, + model_type: :grouped_with_prorated_minimum, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedWithMeteredMinimum::price_type, + price_type: Orb::Models::Price::GroupedWithProratedMinimum::price_type, replaces_price_id: String?, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } @@ -3149,7 +3497,30 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::GroupedWithMeteredMinimum::cadence] + def self?.values: -> ::Array[Orb::Models::Price::GroupedWithProratedMinimum::cadence] + end + + type grouped_with_prorated_minimum_config = + { grouping_key: String, minimum: String, unit_rate: String } + + class GroupedWithProratedMinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor minimum: String + + attr_accessor unit_rate: String + + def initialize: ( + grouping_key: String, + minimum: String, + unit_rate: String + ) -> void + + def to_hash: -> { + grouping_key: String, + minimum: String, + unit_rate: String + } end type price_type = :usage_price | :fixed_price @@ -3160,55 +3531,55 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::GroupedWithMeteredMinimum::price_type] + def self?.values: -> ::Array[Orb::Models::Price::GroupedWithProratedMinimum::price_type] end end - type matrix_with_display_name = + type grouped_with_metered_minimum = { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::MatrixWithDisplayName::cadence, + cadence: Orb::Models::Price::GroupedWithMeteredMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, + grouped_with_metered_minimum_config: Orb::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, - matrix_with_display_name_config: ::Hash[Symbol, top], maximum: Orb::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :matrix_with_display_name, + model_type: :grouped_with_metered_minimum, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::MatrixWithDisplayName::price_type, + price_type: Orb::Models::Price::GroupedWithMeteredMinimum::price_type, replaces_price_id: String?, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } - class MatrixWithDisplayName < Orb::Internal::Type::BaseModel + class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel attr_accessor id: String attr_accessor billable_metric: Orb::BillableMetricTiny? attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::MatrixWithDisplayName::cadence + attr_accessor cadence: Orb::Models::Price::GroupedWithMeteredMinimum::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::conversion_rate_config? attr_accessor created_at: Time @@ -3222,12 +3593,12 @@ module Orb attr_accessor fixed_price_quantity: Float? + attr_accessor grouped_with_metered_minimum_config: Orb::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig + attr_accessor invoicing_cycle_configuration: Orb::BillingCycleConfiguration? attr_accessor item: Orb::ItemSlim - attr_accessor matrix_with_display_name_config: ::Hash[Symbol, top] - attr_accessor maximum: Orb::Maximum? attr_accessor maximum_amount: String? @@ -3238,13 +3609,13 @@ module Orb attr_accessor minimum_amount: String? - attr_accessor model_type: :matrix_with_display_name + attr_accessor model_type: :grouped_with_metered_minimum attr_accessor name: String attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::MatrixWithDisplayName::price_type + attr_accessor price_type: Orb::Models::Price::GroupedWithMeteredMinimum::price_type attr_accessor replaces_price_id: String? @@ -3254,19 +3625,19 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::MatrixWithDisplayName::cadence, + cadence: Orb::Models::Price::GroupedWithMeteredMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, + grouped_with_metered_minimum_config: Orb::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, - matrix_with_display_name_config: ::Hash[Symbol, top], maximum: Orb::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], @@ -3274,38 +3645,38 @@ module Orb minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::MatrixWithDisplayName::price_type, + price_type: Orb::Models::Price::GroupedWithMeteredMinimum::price_type, replaces_price_id: String?, ?dimensional_price_configuration: Orb::DimensionalPriceConfiguration?, - ?model_type: :matrix_with_display_name + ?model_type: :grouped_with_metered_minimum ) -> void def to_hash: -> { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::MatrixWithDisplayName::cadence, + cadence: Orb::Models::Price::GroupedWithMeteredMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::GroupedWithMeteredMinimum::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, + grouped_with_metered_minimum_config: Orb::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, - matrix_with_display_name_config: ::Hash[Symbol, top], maximum: Orb::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :matrix_with_display_name, + model_type: :grouped_with_metered_minimum, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::MatrixWithDisplayName::price_type, + price_type: Orb::Models::Price::GroupedWithMeteredMinimum::price_type, replaces_price_id: String?, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } @@ -3323,7 +3694,77 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::MatrixWithDisplayName::cadence] + def self?.values: -> ::Array[Orb::Models::Price::GroupedWithMeteredMinimum::cadence] + end + + type grouped_with_metered_minimum_config = + { + grouping_key: String, + minimum_unit_amount: String, + pricing_key: String, + scaling_factors: ::Array[Orb::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig::ScalingFactor], + scaling_key: String, + unit_amounts: ::Array[Orb::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig::UnitAmount] + } + + class GroupedWithMeteredMinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor minimum_unit_amount: String + + attr_accessor pricing_key: String + + attr_accessor scaling_factors: ::Array[Orb::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig::ScalingFactor] + + attr_accessor scaling_key: String + + attr_accessor unit_amounts: ::Array[Orb::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig::UnitAmount] + + def initialize: ( + grouping_key: String, + minimum_unit_amount: String, + pricing_key: String, + scaling_factors: ::Array[Orb::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig::ScalingFactor], + scaling_key: String, + unit_amounts: ::Array[Orb::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig::UnitAmount] + ) -> void + + def to_hash: -> { + grouping_key: String, + minimum_unit_amount: String, + pricing_key: String, + scaling_factors: ::Array[Orb::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig::ScalingFactor], + scaling_key: String, + unit_amounts: ::Array[Orb::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig::UnitAmount] + } + + type scaling_factor = + { scaling_factor: String, scaling_value: String } + + class ScalingFactor < Orb::Internal::Type::BaseModel + attr_accessor scaling_factor: String + + attr_accessor scaling_value: String + + def initialize: ( + scaling_factor: String, + scaling_value: String + ) -> void + + def to_hash: -> { scaling_factor: String, scaling_value: String } + end + + type unit_amount = { pricing_value: String, unit_amount: String } + + class UnitAmount < Orb::Internal::Type::BaseModel + attr_accessor pricing_value: String + + attr_accessor unit_amount: String + + def initialize: (pricing_value: String, unit_amount: String) -> void + + def to_hash: -> { pricing_value: String, unit_amount: String } + end end type price_type = :usage_price | :fixed_price @@ -3334,26 +3775,26 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::MatrixWithDisplayName::price_type] + def self?.values: -> ::Array[Orb::Models::Price::GroupedWithMeteredMinimum::price_type] end end - type bulk_with_proration = + type grouped_with_min_max_thresholds = { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - bulk_with_proration_config: ::Hash[Symbol, top], - cadence: Orb::Models::Price::BulkWithProration::cadence, + cadence: Orb::Models::Price::GroupedWithMinMaxThresholds::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::BulkWithProration::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, + grouped_with_min_max_thresholds_config: Orb::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, maximum: Orb::Maximum?, @@ -3361,30 +3802,28 @@ module Orb metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :bulk_with_proration, + model_type: :grouped_with_min_max_thresholds, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::BulkWithProration::price_type, + price_type: Orb::Models::Price::GroupedWithMinMaxThresholds::price_type, replaces_price_id: String?, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } - class BulkWithProration < Orb::Internal::Type::BaseModel + class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel attr_accessor id: String attr_accessor billable_metric: Orb::BillableMetricTiny? attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration - attr_accessor bulk_with_proration_config: ::Hash[Symbol, top] - - attr_accessor cadence: Orb::Models::Price::BulkWithProration::cadence + attr_accessor cadence: Orb::Models::Price::GroupedWithMinMaxThresholds::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::BulkWithProration::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::conversion_rate_config? attr_accessor created_at: Time @@ -3398,6 +3837,8 @@ module Orb attr_accessor fixed_price_quantity: Float? + attr_accessor grouped_with_min_max_thresholds_config: Orb::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig + attr_accessor invoicing_cycle_configuration: Orb::BillingCycleConfiguration? attr_accessor item: Orb::ItemSlim @@ -3412,13 +3853,13 @@ module Orb attr_accessor minimum_amount: String? - attr_accessor model_type: :bulk_with_proration + attr_accessor model_type: :grouped_with_min_max_thresholds attr_accessor name: String attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::BulkWithProration::price_type + attr_accessor price_type: Orb::Models::Price::GroupedWithMinMaxThresholds::price_type attr_accessor replaces_price_id: String? @@ -3428,17 +3869,17 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - bulk_with_proration_config: ::Hash[Symbol, top], - cadence: Orb::Models::Price::BulkWithProration::cadence, + cadence: Orb::Models::Price::GroupedWithMinMaxThresholds::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::BulkWithProration::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, + grouped_with_min_max_thresholds_config: Orb::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, maximum: Orb::Maximum?, @@ -3448,27 +3889,27 @@ module Orb minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::BulkWithProration::price_type, + price_type: Orb::Models::Price::GroupedWithMinMaxThresholds::price_type, replaces_price_id: String?, ?dimensional_price_configuration: Orb::DimensionalPriceConfiguration?, - ?model_type: :bulk_with_proration + ?model_type: :grouped_with_min_max_thresholds ) -> void def to_hash: -> { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - bulk_with_proration_config: ::Hash[Symbol, top], - cadence: Orb::Models::Price::BulkWithProration::cadence, + cadence: Orb::Models::Price::GroupedWithMinMaxThresholds::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::BulkWithProration::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, + grouped_with_min_max_thresholds_config: Orb::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, maximum: Orb::Maximum?, @@ -3476,10 +3917,10 @@ module Orb metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :bulk_with_proration, + model_type: :grouped_with_min_max_thresholds, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::BulkWithProration::price_type, + price_type: Orb::Models::Price::GroupedWithMinMaxThresholds::price_type, replaces_price_id: String?, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } @@ -3497,7 +3938,39 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::BulkWithProration::cadence] + def self?.values: -> ::Array[Orb::Models::Price::GroupedWithMinMaxThresholds::cadence] + end + + type grouped_with_min_max_thresholds_config = + { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor maximum_charge: String + + attr_accessor minimum_charge: String + + attr_accessor per_unit_rate: String + + def initialize: ( + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + ) -> void + + def to_hash: -> { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } end type price_type = :usage_price | :fixed_price @@ -3508,55 +3981,55 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::BulkWithProration::price_type] + def self?.values: -> ::Array[Orb::Models::Price::GroupedWithMinMaxThresholds::price_type] end end - type grouped_tiered_package = + type matrix_with_display_name = { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedTieredPackage::cadence, + cadence: Orb::Models::Price::MatrixWithDisplayName::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - grouped_tiered_package_config: ::Hash[Symbol, top], invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, + matrix_with_display_name_config: Orb::Price::MatrixWithDisplayName::MatrixWithDisplayNameConfig, maximum: Orb::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :grouped_tiered_package, + model_type: :matrix_with_display_name, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedTieredPackage::price_type, + price_type: Orb::Models::Price::MatrixWithDisplayName::price_type, replaces_price_id: String?, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } - class GroupedTieredPackage < Orb::Internal::Type::BaseModel + class MatrixWithDisplayName < Orb::Internal::Type::BaseModel attr_accessor id: String attr_accessor billable_metric: Orb::BillableMetricTiny? attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::GroupedTieredPackage::cadence + attr_accessor cadence: Orb::Models::Price::MatrixWithDisplayName::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::conversion_rate_config? attr_accessor created_at: Time @@ -3570,12 +4043,12 @@ module Orb attr_accessor fixed_price_quantity: Float? - attr_accessor grouped_tiered_package_config: ::Hash[Symbol, top] - attr_accessor invoicing_cycle_configuration: Orb::BillingCycleConfiguration? attr_accessor item: Orb::ItemSlim + attr_accessor matrix_with_display_name_config: Orb::Price::MatrixWithDisplayName::MatrixWithDisplayNameConfig + attr_accessor maximum: Orb::Maximum? attr_accessor maximum_amount: String? @@ -3586,13 +4059,13 @@ module Orb attr_accessor minimum_amount: String? - attr_accessor model_type: :grouped_tiered_package + attr_accessor model_type: :matrix_with_display_name attr_accessor name: String attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::GroupedTieredPackage::price_type + attr_accessor price_type: Orb::Models::Price::MatrixWithDisplayName::price_type attr_accessor replaces_price_id: String? @@ -3602,19 +4075,19 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedTieredPackage::cadence, + cadence: Orb::Models::Price::MatrixWithDisplayName::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - grouped_tiered_package_config: ::Hash[Symbol, top], invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, + matrix_with_display_name_config: Orb::Price::MatrixWithDisplayName::MatrixWithDisplayNameConfig, maximum: Orb::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], @@ -3622,38 +4095,38 @@ module Orb minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedTieredPackage::price_type, + price_type: Orb::Models::Price::MatrixWithDisplayName::price_type, replaces_price_id: String?, ?dimensional_price_configuration: Orb::DimensionalPriceConfiguration?, - ?model_type: :grouped_tiered_package + ?model_type: :matrix_with_display_name ) -> void def to_hash: -> { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedTieredPackage::cadence, + cadence: Orb::Models::Price::MatrixWithDisplayName::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::MatrixWithDisplayName::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - grouped_tiered_package_config: ::Hash[Symbol, top], invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, + matrix_with_display_name_config: Orb::Price::MatrixWithDisplayName::MatrixWithDisplayNameConfig, maximum: Orb::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :grouped_tiered_package, + model_type: :matrix_with_display_name, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedTieredPackage::price_type, + price_type: Orb::Models::Price::MatrixWithDisplayName::price_type, replaces_price_id: String?, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } @@ -3671,7 +4144,56 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::GroupedTieredPackage::cadence] + def self?.values: -> ::Array[Orb::Models::Price::MatrixWithDisplayName::cadence] + end + + type matrix_with_display_name_config = + { + dimension: String, + unit_amounts: ::Array[Orb::Price::MatrixWithDisplayName::MatrixWithDisplayNameConfig::UnitAmount] + } + + class MatrixWithDisplayNameConfig < Orb::Internal::Type::BaseModel + attr_accessor dimension: String + + attr_accessor unit_amounts: ::Array[Orb::Price::MatrixWithDisplayName::MatrixWithDisplayNameConfig::UnitAmount] + + def initialize: ( + dimension: String, + unit_amounts: ::Array[Orb::Price::MatrixWithDisplayName::MatrixWithDisplayNameConfig::UnitAmount] + ) -> void + + def to_hash: -> { + dimension: String, + unit_amounts: ::Array[Orb::Price::MatrixWithDisplayName::MatrixWithDisplayNameConfig::UnitAmount] + } + + type unit_amount = + { + dimension_value: String, + display_name: String, + unit_amount: String + } + + class UnitAmount < Orb::Internal::Type::BaseModel + attr_accessor dimension_value: String + + attr_accessor display_name: String + + attr_accessor unit_amount: String + + def initialize: ( + dimension_value: String, + display_name: String, + unit_amount: String + ) -> void + + def to_hash: -> { + dimension_value: String, + display_name: String, + unit_amount: String + } + end end type price_type = :usage_price | :fixed_price @@ -3682,55 +4204,55 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::GroupedTieredPackage::price_type] + def self?.values: -> ::Array[Orb::Models::Price::MatrixWithDisplayName::price_type] end end - type max_group_tiered_package = + type grouped_tiered_package = { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::MaxGroupTieredPackage::cadence, + cadence: Orb::Models::Price::GroupedTieredPackage::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, + grouped_tiered_package_config: Orb::Price::GroupedTieredPackage::GroupedTieredPackageConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, - max_group_tiered_package_config: ::Hash[Symbol, top], maximum: Orb::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :max_group_tiered_package, + model_type: :grouped_tiered_package, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::MaxGroupTieredPackage::price_type, + price_type: Orb::Models::Price::GroupedTieredPackage::price_type, replaces_price_id: String?, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } - class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel + class GroupedTieredPackage < Orb::Internal::Type::BaseModel attr_accessor id: String attr_accessor billable_metric: Orb::BillableMetricTiny? attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::MaxGroupTieredPackage::cadence + attr_accessor cadence: Orb::Models::Price::GroupedTieredPackage::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::conversion_rate_config? attr_accessor created_at: Time @@ -3744,12 +4266,12 @@ module Orb attr_accessor fixed_price_quantity: Float? + attr_accessor grouped_tiered_package_config: Orb::Price::GroupedTieredPackage::GroupedTieredPackageConfig + attr_accessor invoicing_cycle_configuration: Orb::BillingCycleConfiguration? attr_accessor item: Orb::ItemSlim - attr_accessor max_group_tiered_package_config: ::Hash[Symbol, top] - attr_accessor maximum: Orb::Maximum? attr_accessor maximum_amount: String? @@ -3760,13 +4282,13 @@ module Orb attr_accessor minimum_amount: String? - attr_accessor model_type: :max_group_tiered_package + attr_accessor model_type: :grouped_tiered_package attr_accessor name: String attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::MaxGroupTieredPackage::price_type + attr_accessor price_type: Orb::Models::Price::GroupedTieredPackage::price_type attr_accessor replaces_price_id: String? @@ -3776,19 +4298,19 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::MaxGroupTieredPackage::cadence, + cadence: Orb::Models::Price::GroupedTieredPackage::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, + grouped_tiered_package_config: Orb::Price::GroupedTieredPackage::GroupedTieredPackageConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, - max_group_tiered_package_config: ::Hash[Symbol, top], maximum: Orb::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], @@ -3796,38 +4318,38 @@ module Orb minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::MaxGroupTieredPackage::price_type, + price_type: Orb::Models::Price::GroupedTieredPackage::price_type, replaces_price_id: String?, ?dimensional_price_configuration: Orb::DimensionalPriceConfiguration?, - ?model_type: :max_group_tiered_package + ?model_type: :grouped_tiered_package ) -> void def to_hash: -> { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::MaxGroupTieredPackage::cadence, + cadence: Orb::Models::Price::GroupedTieredPackage::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::GroupedTieredPackage::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, + grouped_tiered_package_config: Orb::Price::GroupedTieredPackage::GroupedTieredPackageConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, - max_group_tiered_package_config: ::Hash[Symbol, top], maximum: Orb::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :max_group_tiered_package, + model_type: :grouped_tiered_package, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::MaxGroupTieredPackage::price_type, + price_type: Orb::Models::Price::GroupedTieredPackage::price_type, replaces_price_id: String?, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } @@ -3845,7 +4367,46 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::MaxGroupTieredPackage::cadence] + def self?.values: -> ::Array[Orb::Models::Price::GroupedTieredPackage::cadence] + end + + type grouped_tiered_package_config = + { + grouping_key: String, + package_size: String, + tiers: ::Array[Orb::Price::GroupedTieredPackage::GroupedTieredPackageConfig::Tier] + } + + class GroupedTieredPackageConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor package_size: String + + attr_accessor tiers: ::Array[Orb::Price::GroupedTieredPackage::GroupedTieredPackageConfig::Tier] + + def initialize: ( + grouping_key: String, + package_size: String, + tiers: ::Array[Orb::Price::GroupedTieredPackage::GroupedTieredPackageConfig::Tier] + ) -> void + + def to_hash: -> { + grouping_key: String, + package_size: String, + tiers: ::Array[Orb::Price::GroupedTieredPackage::GroupedTieredPackageConfig::Tier] + } + + type tier = { per_unit: String, tier_lower_bound: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor per_unit: String + + attr_accessor tier_lower_bound: String + + def initialize: (per_unit: String, tier_lower_bound: String) -> void + + def to_hash: -> { per_unit: String, tier_lower_bound: String } + end end type price_type = :usage_price | :fixed_price @@ -3856,19 +4417,19 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::MaxGroupTieredPackage::price_type] + def self?.values: -> ::Array[Orb::Models::Price::GroupedTieredPackage::price_type] end end - type scalable_matrix_with_unit_pricing = + type max_group_tiered_package = { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::cadence, + cadence: Orb::Models::Price::MaxGroupTieredPackage::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3877,34 +4438,34 @@ module Orb fixed_price_quantity: Float?, invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, + max_group_tiered_package_config: Orb::Price::MaxGroupTieredPackage::MaxGroupTieredPackageConfig, maximum: Orb::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :scalable_matrix_with_unit_pricing, + model_type: :max_group_tiered_package, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::ScalableMatrixWithUnitPricing::price_type, + price_type: Orb::Models::Price::MaxGroupTieredPackage::price_type, replaces_price_id: String?, - scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } - class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel + class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel attr_accessor id: String attr_accessor billable_metric: Orb::BillableMetricTiny? attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::cadence + attr_accessor cadence: Orb::Models::Price::MaxGroupTieredPackage::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::conversion_rate_config? attr_accessor created_at: Time @@ -3922,6 +4483,8 @@ module Orb attr_accessor item: Orb::ItemSlim + attr_accessor max_group_tiered_package_config: Orb::Price::MaxGroupTieredPackage::MaxGroupTieredPackageConfig + attr_accessor maximum: Orb::Maximum? attr_accessor maximum_amount: String? @@ -3932,28 +4495,26 @@ module Orb attr_accessor minimum_amount: String? - attr_accessor model_type: :scalable_matrix_with_unit_pricing + attr_accessor model_type: :max_group_tiered_package attr_accessor name: String attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::ScalableMatrixWithUnitPricing::price_type + attr_accessor price_type: Orb::Models::Price::MaxGroupTieredPackage::price_type attr_accessor replaces_price_id: String? - attr_accessor scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top] - attr_accessor dimensional_price_configuration: Orb::DimensionalPriceConfiguration? def initialize: ( id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::cadence, + cadence: Orb::Models::Price::MaxGroupTieredPackage::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3962,6 +4523,7 @@ module Orb fixed_price_quantity: Float?, invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, + max_group_tiered_package_config: Orb::Price::MaxGroupTieredPackage::MaxGroupTieredPackageConfig, maximum: Orb::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], @@ -3969,21 +4531,20 @@ module Orb minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::ScalableMatrixWithUnitPricing::price_type, + price_type: Orb::Models::Price::MaxGroupTieredPackage::price_type, replaces_price_id: String?, - scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], ?dimensional_price_configuration: Orb::DimensionalPriceConfiguration?, - ?model_type: :scalable_matrix_with_unit_pricing + ?model_type: :max_group_tiered_package ) -> void def to_hash: -> { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::cadence, + cadence: Orb::Models::Price::MaxGroupTieredPackage::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::MaxGroupTieredPackage::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -3992,17 +4553,17 @@ module Orb fixed_price_quantity: Float?, invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, + max_group_tiered_package_config: Orb::Price::MaxGroupTieredPackage::MaxGroupTieredPackageConfig, maximum: Orb::Maximum?, maximum_amount: String?, metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :scalable_matrix_with_unit_pricing, + model_type: :max_group_tiered_package, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::ScalableMatrixWithUnitPricing::price_type, + price_type: Orb::Models::Price::MaxGroupTieredPackage::price_type, replaces_price_id: String?, - scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } @@ -4019,7 +4580,49 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithUnitPricing::cadence] + def self?.values: -> ::Array[Orb::Models::Price::MaxGroupTieredPackage::cadence] + end + + type max_group_tiered_package_config = + { + grouping_key: String, + package_size: String, + tiers: ::Array[Orb::Price::MaxGroupTieredPackage::MaxGroupTieredPackageConfig::Tier] + } + + class MaxGroupTieredPackageConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor package_size: String + + attr_accessor tiers: ::Array[Orb::Price::MaxGroupTieredPackage::MaxGroupTieredPackageConfig::Tier] + + def initialize: ( + grouping_key: String, + package_size: String, + tiers: ::Array[Orb::Price::MaxGroupTieredPackage::MaxGroupTieredPackageConfig::Tier] + ) -> void + + def to_hash: -> { + grouping_key: String, + package_size: String, + tiers: ::Array[Orb::Price::MaxGroupTieredPackage::MaxGroupTieredPackageConfig::Tier] + } + + type tier = { tier_lower_bound: String, unit_amount: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { tier_lower_bound: String, unit_amount: String } + end end type price_type = :usage_price | :fixed_price @@ -4030,19 +4633,19 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithUnitPricing::price_type] + def self?.values: -> ::Array[Orb::Models::Price::MaxGroupTieredPackage::price_type] end end - type scalable_matrix_with_tiered_pricing = + type scalable_matrix_with_unit_pricing = { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::cadence, + cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4056,29 +4659,29 @@ module Orb metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :scalable_matrix_with_tiered_pricing, + model_type: :scalable_matrix_with_unit_pricing, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::ScalableMatrixWithTieredPricing::price_type, + price_type: Orb::Models::Price::ScalableMatrixWithUnitPricing::price_type, replaces_price_id: String?, - scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], + scalable_matrix_with_unit_pricing_config: Orb::Price::ScalableMatrixWithUnitPricing::ScalableMatrixWithUnitPricingConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } - class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel + class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel attr_accessor id: String attr_accessor billable_metric: Orb::BillableMetricTiny? attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::cadence + attr_accessor cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::conversion_rate_config? attr_accessor created_at: Time @@ -4106,17 +4709,17 @@ module Orb attr_accessor minimum_amount: String? - attr_accessor model_type: :scalable_matrix_with_tiered_pricing + attr_accessor model_type: :scalable_matrix_with_unit_pricing attr_accessor name: String attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::ScalableMatrixWithTieredPricing::price_type + attr_accessor price_type: Orb::Models::Price::ScalableMatrixWithUnitPricing::price_type attr_accessor replaces_price_id: String? - attr_accessor scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top] + attr_accessor scalable_matrix_with_unit_pricing_config: Orb::Price::ScalableMatrixWithUnitPricing::ScalableMatrixWithUnitPricingConfig attr_accessor dimensional_price_configuration: Orb::DimensionalPriceConfiguration? @@ -4124,10 +4727,10 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::cadence, + cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4143,21 +4746,21 @@ module Orb minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::ScalableMatrixWithTieredPricing::price_type, + price_type: Orb::Models::Price::ScalableMatrixWithUnitPricing::price_type, replaces_price_id: String?, - scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], + scalable_matrix_with_unit_pricing_config: Orb::Price::ScalableMatrixWithUnitPricing::ScalableMatrixWithUnitPricingConfig, ?dimensional_price_configuration: Orb::DimensionalPriceConfiguration?, - ?model_type: :scalable_matrix_with_tiered_pricing + ?model_type: :scalable_matrix_with_unit_pricing ) -> void def to_hash: -> { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::cadence, + cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::ScalableMatrixWithUnitPricing::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, currency: String, @@ -4171,12 +4774,12 @@ module Orb metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :scalable_matrix_with_tiered_pricing, + model_type: :scalable_matrix_with_unit_pricing, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::ScalableMatrixWithTieredPricing::price_type, + price_type: Orb::Models::Price::ScalableMatrixWithUnitPricing::price_type, replaces_price_id: String?, - scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], + scalable_matrix_with_unit_pricing_config: Orb::Price::ScalableMatrixWithUnitPricing::ScalableMatrixWithUnitPricingConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } @@ -4193,7 +4796,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithTieredPricing::cadence] + def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithUnitPricing::cadence] end type price_type = :usage_price | :fixed_price @@ -4204,22 +4807,85 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithTieredPricing::price_type] + def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithUnitPricing::price_type] + end + + type scalable_matrix_with_unit_pricing_config = + { + first_dimension: String, + matrix_scaling_factors: ::Array[Orb::Price::ScalableMatrixWithUnitPricing::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor], + unit_price: String, + prorate: bool?, + second_dimension: String? + } + + class ScalableMatrixWithUnitPricingConfig < Orb::Internal::Type::BaseModel + attr_accessor first_dimension: String + + attr_accessor matrix_scaling_factors: ::Array[Orb::Price::ScalableMatrixWithUnitPricing::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor] + + attr_accessor unit_price: String + + attr_accessor prorate: bool? + + attr_accessor second_dimension: String? + + def initialize: ( + first_dimension: String, + matrix_scaling_factors: ::Array[Orb::Price::ScalableMatrixWithUnitPricing::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor], + unit_price: String, + ?prorate: bool?, + ?second_dimension: String? + ) -> void + + def to_hash: -> { + first_dimension: String, + matrix_scaling_factors: ::Array[Orb::Price::ScalableMatrixWithUnitPricing::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor], + unit_price: String, + prorate: bool?, + second_dimension: String? + } + + type matrix_scaling_factor = + { + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: String? + } + + class MatrixScalingFactor < Orb::Internal::Type::BaseModel + attr_accessor first_dimension_value: String + + attr_accessor scaling_factor: String + + attr_accessor second_dimension_value: String? + + def initialize: ( + first_dimension_value: String, + scaling_factor: String, + ?second_dimension_value: String? + ) -> void + + def to_hash: -> { + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: String? + } + end end end - type cumulative_grouped_bulk = + type scalable_matrix_with_tiered_pricing = { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::CumulativeGroupedBulk::cadence, + cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, - cumulative_grouped_bulk_config: ::Hash[Symbol, top], currency: String, discount: Orb::Models::discount?, external_price_id: String?, @@ -4231,35 +4897,34 @@ module Orb metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :cumulative_grouped_bulk, + model_type: :scalable_matrix_with_tiered_pricing, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::CumulativeGroupedBulk::price_type, + price_type: Orb::Models::Price::ScalableMatrixWithTieredPricing::price_type, replaces_price_id: String?, + scalable_matrix_with_tiered_pricing_config: Orb::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } - class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel + class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel attr_accessor id: String attr_accessor billable_metric: Orb::BillableMetricTiny? attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::CumulativeGroupedBulk::cadence + attr_accessor cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::conversion_rate_config? attr_accessor created_at: Time attr_accessor credit_allocation: Orb::Allocation? - attr_accessor cumulative_grouped_bulk_config: ::Hash[Symbol, top] - attr_accessor currency: String attr_accessor discount: Orb::Models::discount? @@ -4282,29 +4947,30 @@ module Orb attr_accessor minimum_amount: String? - attr_accessor model_type: :cumulative_grouped_bulk + attr_accessor model_type: :scalable_matrix_with_tiered_pricing attr_accessor name: String attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::CumulativeGroupedBulk::price_type + attr_accessor price_type: Orb::Models::Price::ScalableMatrixWithTieredPricing::price_type attr_accessor replaces_price_id: String? + attr_accessor scalable_matrix_with_tiered_pricing_config: Orb::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig + attr_accessor dimensional_price_configuration: Orb::DimensionalPriceConfiguration? def initialize: ( id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::CumulativeGroupedBulk::cadence, + cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, - cumulative_grouped_bulk_config: ::Hash[Symbol, top], currency: String, discount: Orb::Models::discount?, external_price_id: String?, @@ -4318,23 +4984,23 @@ module Orb minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::CumulativeGroupedBulk::price_type, + price_type: Orb::Models::Price::ScalableMatrixWithTieredPricing::price_type, replaces_price_id: String?, + scalable_matrix_with_tiered_pricing_config: Orb::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig, ?dimensional_price_configuration: Orb::DimensionalPriceConfiguration?, - ?model_type: :cumulative_grouped_bulk + ?model_type: :scalable_matrix_with_tiered_pricing ) -> void def to_hash: -> { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::CumulativeGroupedBulk::cadence, + cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::ScalableMatrixWithTieredPricing::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, - cumulative_grouped_bulk_config: ::Hash[Symbol, top], currency: String, discount: Orb::Models::discount?, external_price_id: String?, @@ -4346,11 +5012,12 @@ module Orb metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :cumulative_grouped_bulk, + model_type: :scalable_matrix_with_tiered_pricing, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::CumulativeGroupedBulk::price_type, + price_type: Orb::Models::Price::ScalableMatrixWithTieredPricing::price_type, replaces_price_id: String?, + scalable_matrix_with_tiered_pricing_config: Orb::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } @@ -4367,7 +5034,7 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::CumulativeGroupedBulk::cadence] + def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithTieredPricing::cadence] end type price_type = :usage_price | :fixed_price @@ -4378,26 +5045,100 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::CumulativeGroupedBulk::price_type] + def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithTieredPricing::price_type] + end + + type scalable_matrix_with_tiered_pricing_config = + { + first_dimension: String, + matrix_scaling_factors: ::Array[Orb::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor], + tiers: ::Array[Orb::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig::Tier], + second_dimension: String? + } + + class ScalableMatrixWithTieredPricingConfig < Orb::Internal::Type::BaseModel + attr_accessor first_dimension: String + + attr_accessor matrix_scaling_factors: ::Array[Orb::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor] + + attr_accessor tiers: ::Array[Orb::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig::Tier] + + attr_accessor second_dimension: String? + + def initialize: ( + first_dimension: String, + matrix_scaling_factors: ::Array[Orb::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor], + tiers: ::Array[Orb::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig::Tier], + ?second_dimension: String? + ) -> void + + def to_hash: -> { + first_dimension: String, + matrix_scaling_factors: ::Array[Orb::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor], + tiers: ::Array[Orb::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig::Tier], + second_dimension: String? + } + + type matrix_scaling_factor = + { + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: String? + } + + class MatrixScalingFactor < Orb::Internal::Type::BaseModel + attr_accessor first_dimension_value: String + + attr_accessor scaling_factor: String + + attr_accessor second_dimension_value: String? + + def initialize: ( + first_dimension_value: String, + scaling_factor: String, + ?second_dimension_value: String? + ) -> void + + def to_hash: -> { + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: String? + } + end + + type tier = { tier_lower_bound: String, unit_amount: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { tier_lower_bound: String, unit_amount: String } + end end end - type grouped_with_min_max_thresholds = + type cumulative_grouped_bulk = { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedWithMinMaxThresholds::cadence, + cadence: Orb::Models::Price::CumulativeGroupedBulk::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, + cumulative_grouped_bulk_config: Orb::Price::CumulativeGroupedBulk::CumulativeGroupedBulkConfig, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, maximum: Orb::Maximum?, @@ -4405,33 +5146,35 @@ module Orb metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :grouped_with_min_max_thresholds, + model_type: :cumulative_grouped_bulk, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedWithMinMaxThresholds::price_type, + price_type: Orb::Models::Price::CumulativeGroupedBulk::price_type, replaces_price_id: String?, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } - class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel + class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel attr_accessor id: String attr_accessor billable_metric: Orb::BillableMetricTiny? attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration - attr_accessor cadence: Orb::Models::Price::GroupedWithMinMaxThresholds::cadence + attr_accessor cadence: Orb::Models::Price::CumulativeGroupedBulk::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? attr_accessor conversion_rate: Float? - attr_accessor conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::conversion_rate_config? + attr_accessor conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::conversion_rate_config? attr_accessor created_at: Time attr_accessor credit_allocation: Orb::Allocation? + attr_accessor cumulative_grouped_bulk_config: Orb::Price::CumulativeGroupedBulk::CumulativeGroupedBulkConfig + attr_accessor currency: String attr_accessor discount: Orb::Models::discount? @@ -4440,8 +5183,6 @@ module Orb attr_accessor fixed_price_quantity: Float? - attr_accessor grouped_with_min_max_thresholds_config: ::Hash[Symbol, top] - attr_accessor invoicing_cycle_configuration: Orb::BillingCycleConfiguration? attr_accessor item: Orb::ItemSlim @@ -4456,13 +5197,13 @@ module Orb attr_accessor minimum_amount: String? - attr_accessor model_type: :grouped_with_min_max_thresholds + attr_accessor model_type: :cumulative_grouped_bulk attr_accessor name: String attr_accessor plan_phase_order: Integer? - attr_accessor price_type: Orb::Models::Price::GroupedWithMinMaxThresholds::price_type + attr_accessor price_type: Orb::Models::Price::CumulativeGroupedBulk::price_type attr_accessor replaces_price_id: String? @@ -4472,17 +5213,17 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedWithMinMaxThresholds::cadence, + cadence: Orb::Models::Price::CumulativeGroupedBulk::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, + cumulative_grouped_bulk_config: Orb::Price::CumulativeGroupedBulk::CumulativeGroupedBulkConfig, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, maximum: Orb::Maximum?, @@ -4492,27 +5233,27 @@ module Orb minimum_amount: String?, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedWithMinMaxThresholds::price_type, + price_type: Orb::Models::Price::CumulativeGroupedBulk::price_type, replaces_price_id: String?, ?dimensional_price_configuration: Orb::DimensionalPriceConfiguration?, - ?model_type: :grouped_with_min_max_thresholds + ?model_type: :cumulative_grouped_bulk ) -> void def to_hash: -> { id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Models::Price::GroupedWithMinMaxThresholds::cadence, + cadence: Orb::Models::Price::CumulativeGroupedBulk::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, - conversion_rate_config: Orb::Models::Price::GroupedWithMinMaxThresholds::conversion_rate_config?, + conversion_rate_config: Orb::Models::Price::CumulativeGroupedBulk::conversion_rate_config?, created_at: Time, credit_allocation: Orb::Allocation?, + cumulative_grouped_bulk_config: Orb::Price::CumulativeGroupedBulk::CumulativeGroupedBulkConfig, currency: String, discount: Orb::Models::discount?, external_price_id: String?, fixed_price_quantity: Float?, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], invoicing_cycle_configuration: Orb::BillingCycleConfiguration?, item: Orb::ItemSlim, maximum: Orb::Maximum?, @@ -4520,10 +5261,10 @@ module Orb metadata: ::Hash[Symbol, String], minimum: Orb::Minimum?, minimum_amount: String?, - model_type: :grouped_with_min_max_thresholds, + model_type: :cumulative_grouped_bulk, name: String, plan_phase_order: Integer?, - price_type: Orb::Models::Price::GroupedWithMinMaxThresholds::price_type, + price_type: Orb::Models::Price::CumulativeGroupedBulk::price_type, replaces_price_id: String?, dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } @@ -4541,7 +5282,56 @@ module Orb ANNUAL: :annual CUSTOM: :custom - def self?.values: -> ::Array[Orb::Models::Price::GroupedWithMinMaxThresholds::cadence] + def self?.values: -> ::Array[Orb::Models::Price::CumulativeGroupedBulk::cadence] + end + + type cumulative_grouped_bulk_config = + { + dimension_values: ::Array[Orb::Price::CumulativeGroupedBulk::CumulativeGroupedBulkConfig::DimensionValue], + group: String + } + + class CumulativeGroupedBulkConfig < Orb::Internal::Type::BaseModel + attr_accessor dimension_values: ::Array[Orb::Price::CumulativeGroupedBulk::CumulativeGroupedBulkConfig::DimensionValue] + + attr_accessor group: String + + def initialize: ( + dimension_values: ::Array[Orb::Price::CumulativeGroupedBulk::CumulativeGroupedBulkConfig::DimensionValue], + group: String + ) -> void + + def to_hash: -> { + dimension_values: ::Array[Orb::Price::CumulativeGroupedBulk::CumulativeGroupedBulkConfig::DimensionValue], + group: String + } + + type dimension_value = + { + grouping_key: String, + tier_lower_bound: String, + unit_amount: String + } + + class DimensionValue < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + grouping_key: String, + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { + grouping_key: String, + tier_lower_bound: String, + unit_amount: String + } + end end type price_type = :usage_price | :fixed_price @@ -4552,7 +5342,7 @@ module Orb USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price - def self?.values: -> ::Array[Orb::Models::Price::GroupedWithMinMaxThresholds::price_type] + def self?.values: -> ::Array[Orb::Models::Price::CumulativeGroupedBulk::price_type] end end @@ -4718,16 +5508,18 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::Minimum::cadence] end - type minimum_config = { minimum_amount: String, prorated: bool? } + type minimum_config = { minimum_amount: String, prorated: bool } class MinimumConfig < Orb::Internal::Type::BaseModel attr_accessor minimum_amount: String - attr_accessor prorated: bool? + attr_reader prorated: bool? + + def prorated=: (bool) -> bool - def initialize: (minimum_amount: String, ?prorated: bool?) -> void + def initialize: (minimum_amount: String, ?prorated: bool) -> void - def to_hash: -> { minimum_amount: String, prorated: bool? } + def to_hash: -> { minimum_amount: String, prorated: bool } end type price_type = :usage_price | :fixed_price diff --git a/sig/orb/models/price_create_params.rbs b/sig/orb/models/price_create_params.rbs index c1db7f0a..dd184525 100644 --- a/sig/orb/models/price_create_params.rbs +++ b/sig/orb/models/price_create_params.rbs @@ -19,31 +19,31 @@ module Orb invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, + tiered_config: Orb::TieredConfig, + bulk_config: Orb::BulkConfig, package_config: Orb::PackageConfig, matrix_config: Orb::MatrixConfig, + threshold_total_amount_config: Orb::PriceCreateParams::ThresholdTotalAmountConfig, + tiered_package_config: Orb::PriceCreateParams::TieredPackageConfig, + tiered_with_minimum_config: Orb::PriceCreateParams::TieredWithMinimumConfig, + grouped_tiered_config: Orb::PriceCreateParams::GroupedTieredConfig, + tiered_package_with_minimum_config: Orb::PriceCreateParams::TieredPackageWithMinimumConfig, + package_with_allocation_config: Orb::PriceCreateParams::PackageWithAllocationConfig, + unit_with_percent_config: Orb::PriceCreateParams::UnitWithPercentConfig, matrix_with_allocation_config: Orb::MatrixWithAllocationConfig, - tiered_config: Orb::TieredConfig, - bulk_config: Orb::BulkConfig, - threshold_total_amount_config: ::Hash[Symbol, top], - tiered_package_config: ::Hash[Symbol, top], - grouped_tiered_config: ::Hash[Symbol, top], - max_group_tiered_package_config: ::Hash[Symbol, top], - tiered_with_minimum_config: ::Hash[Symbol, top], - package_with_allocation_config: ::Hash[Symbol, top], - tiered_package_with_minimum_config: ::Hash[Symbol, top], - unit_with_percent_config: ::Hash[Symbol, top], - tiered_with_proration_config: ::Hash[Symbol, top], - unit_with_proration_config: ::Hash[Symbol, top], - grouped_allocation_config: ::Hash[Symbol, top], - grouped_with_prorated_minimum_config: ::Hash[Symbol, top], - grouped_with_metered_minimum_config: ::Hash[Symbol, top], - matrix_with_display_name_config: ::Hash[Symbol, top], - bulk_with_proration_config: ::Hash[Symbol, top], - grouped_tiered_package_config: ::Hash[Symbol, top], - scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], - scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], - cumulative_grouped_bulk_config: ::Hash[Symbol, top], - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + tiered_with_proration_config: Orb::PriceCreateParams::TieredWithProrationConfig, + unit_with_proration_config: Orb::PriceCreateParams::UnitWithProrationConfig, + grouped_allocation_config: Orb::PriceCreateParams::GroupedAllocationConfig, + bulk_with_proration_config: Orb::PriceCreateParams::BulkWithProrationConfig, + grouped_with_prorated_minimum_config: Orb::PriceCreateParams::GroupedWithProratedMinimumConfig, + grouped_with_metered_minimum_config: Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig, + grouped_with_min_max_thresholds_config: Orb::PriceCreateParams::GroupedWithMinMaxThresholdsConfig, + matrix_with_display_name_config: Orb::PriceCreateParams::MatrixWithDisplayNameConfig, + grouped_tiered_package_config: Orb::PriceCreateParams::GroupedTieredPackageConfig, + max_group_tiered_package_config: Orb::PriceCreateParams::MaxGroupTieredPackageConfig, + scalable_matrix_with_unit_pricing_config: Orb::PriceCreateParams::ScalableMatrixWithUnitPricingConfig, + scalable_matrix_with_tiered_pricing_config: Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig, + cumulative_grouped_bulk_config: Orb::PriceCreateParams::CumulativeGroupedBulkConfig, minimum_config: Orb::PriceCreateParams::MinimumConfig } & Orb::Internal::Type::request_parameters @@ -86,55 +86,55 @@ module Orb attr_accessor metadata: ::Hash[Symbol, String?]? - attr_accessor package_config: Orb::PackageConfig + attr_accessor tiered_config: Orb::TieredConfig - attr_accessor matrix_config: Orb::MatrixConfig + attr_accessor bulk_config: Orb::BulkConfig - attr_accessor matrix_with_allocation_config: Orb::MatrixWithAllocationConfig + attr_accessor package_config: Orb::PackageConfig - attr_accessor tiered_config: Orb::TieredConfig + attr_accessor matrix_config: Orb::MatrixConfig - attr_accessor bulk_config: Orb::BulkConfig + attr_accessor threshold_total_amount_config: Orb::PriceCreateParams::ThresholdTotalAmountConfig - attr_accessor threshold_total_amount_config: ::Hash[Symbol, top] + attr_accessor tiered_package_config: Orb::PriceCreateParams::TieredPackageConfig - attr_accessor tiered_package_config: ::Hash[Symbol, top] + attr_accessor tiered_with_minimum_config: Orb::PriceCreateParams::TieredWithMinimumConfig - attr_accessor grouped_tiered_config: ::Hash[Symbol, top] + attr_accessor grouped_tiered_config: Orb::PriceCreateParams::GroupedTieredConfig - attr_accessor max_group_tiered_package_config: ::Hash[Symbol, top] + attr_accessor tiered_package_with_minimum_config: Orb::PriceCreateParams::TieredPackageWithMinimumConfig - attr_accessor tiered_with_minimum_config: ::Hash[Symbol, top] + attr_accessor package_with_allocation_config: Orb::PriceCreateParams::PackageWithAllocationConfig - attr_accessor package_with_allocation_config: ::Hash[Symbol, top] + attr_accessor unit_with_percent_config: Orb::PriceCreateParams::UnitWithPercentConfig - attr_accessor tiered_package_with_minimum_config: ::Hash[Symbol, top] + attr_accessor matrix_with_allocation_config: Orb::MatrixWithAllocationConfig - attr_accessor unit_with_percent_config: ::Hash[Symbol, top] + attr_accessor tiered_with_proration_config: Orb::PriceCreateParams::TieredWithProrationConfig - attr_accessor tiered_with_proration_config: ::Hash[Symbol, top] + attr_accessor unit_with_proration_config: Orb::PriceCreateParams::UnitWithProrationConfig - attr_accessor unit_with_proration_config: ::Hash[Symbol, top] + attr_accessor grouped_allocation_config: Orb::PriceCreateParams::GroupedAllocationConfig - attr_accessor grouped_allocation_config: ::Hash[Symbol, top] + attr_accessor bulk_with_proration_config: Orb::PriceCreateParams::BulkWithProrationConfig - attr_accessor grouped_with_prorated_minimum_config: ::Hash[Symbol, top] + attr_accessor grouped_with_prorated_minimum_config: Orb::PriceCreateParams::GroupedWithProratedMinimumConfig - attr_accessor grouped_with_metered_minimum_config: ::Hash[Symbol, top] + attr_accessor grouped_with_metered_minimum_config: Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig - attr_accessor matrix_with_display_name_config: ::Hash[Symbol, top] + attr_accessor grouped_with_min_max_thresholds_config: Orb::PriceCreateParams::GroupedWithMinMaxThresholdsConfig - attr_accessor bulk_with_proration_config: ::Hash[Symbol, top] + attr_accessor matrix_with_display_name_config: Orb::PriceCreateParams::MatrixWithDisplayNameConfig - attr_accessor grouped_tiered_package_config: ::Hash[Symbol, top] + attr_accessor grouped_tiered_package_config: Orb::PriceCreateParams::GroupedTieredPackageConfig - attr_accessor scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top] + attr_accessor max_group_tiered_package_config: Orb::PriceCreateParams::MaxGroupTieredPackageConfig - attr_accessor scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top] + attr_accessor scalable_matrix_with_unit_pricing_config: Orb::PriceCreateParams::ScalableMatrixWithUnitPricingConfig - attr_accessor cumulative_grouped_bulk_config: ::Hash[Symbol, top] + attr_accessor scalable_matrix_with_tiered_pricing_config: Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig - attr_accessor grouped_with_min_max_thresholds_config: ::Hash[Symbol, top] + attr_accessor cumulative_grouped_bulk_config: Orb::PriceCreateParams::CumulativeGroupedBulkConfig attr_accessor minimum_config: Orb::PriceCreateParams::MinimumConfig @@ -145,31 +145,31 @@ module Orb model_type: Orb::Models::PriceCreateParams::model_type, name: String, unit_config: Orb::UnitConfig, + tiered_config: Orb::TieredConfig, + bulk_config: Orb::BulkConfig, package_config: Orb::PackageConfig, matrix_config: Orb::MatrixConfig, + threshold_total_amount_config: Orb::PriceCreateParams::ThresholdTotalAmountConfig, + tiered_package_config: Orb::PriceCreateParams::TieredPackageConfig, + tiered_with_minimum_config: Orb::PriceCreateParams::TieredWithMinimumConfig, + grouped_tiered_config: Orb::PriceCreateParams::GroupedTieredConfig, + tiered_package_with_minimum_config: Orb::PriceCreateParams::TieredPackageWithMinimumConfig, + package_with_allocation_config: Orb::PriceCreateParams::PackageWithAllocationConfig, + unit_with_percent_config: Orb::PriceCreateParams::UnitWithPercentConfig, matrix_with_allocation_config: Orb::MatrixWithAllocationConfig, - tiered_config: Orb::TieredConfig, - bulk_config: Orb::BulkConfig, - threshold_total_amount_config: ::Hash[Symbol, top], - tiered_package_config: ::Hash[Symbol, top], - grouped_tiered_config: ::Hash[Symbol, top], - max_group_tiered_package_config: ::Hash[Symbol, top], - tiered_with_minimum_config: ::Hash[Symbol, top], - package_with_allocation_config: ::Hash[Symbol, top], - tiered_package_with_minimum_config: ::Hash[Symbol, top], - unit_with_percent_config: ::Hash[Symbol, top], - tiered_with_proration_config: ::Hash[Symbol, top], - unit_with_proration_config: ::Hash[Symbol, top], - grouped_allocation_config: ::Hash[Symbol, top], - grouped_with_prorated_minimum_config: ::Hash[Symbol, top], - grouped_with_metered_minimum_config: ::Hash[Symbol, top], - matrix_with_display_name_config: ::Hash[Symbol, top], - bulk_with_proration_config: ::Hash[Symbol, top], - grouped_tiered_package_config: ::Hash[Symbol, top], - scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], - scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], - cumulative_grouped_bulk_config: ::Hash[Symbol, top], - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + tiered_with_proration_config: Orb::PriceCreateParams::TieredWithProrationConfig, + unit_with_proration_config: Orb::PriceCreateParams::UnitWithProrationConfig, + grouped_allocation_config: Orb::PriceCreateParams::GroupedAllocationConfig, + bulk_with_proration_config: Orb::PriceCreateParams::BulkWithProrationConfig, + grouped_with_prorated_minimum_config: Orb::PriceCreateParams::GroupedWithProratedMinimumConfig, + grouped_with_metered_minimum_config: Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig, + grouped_with_min_max_thresholds_config: Orb::PriceCreateParams::GroupedWithMinMaxThresholdsConfig, + matrix_with_display_name_config: Orb::PriceCreateParams::MatrixWithDisplayNameConfig, + grouped_tiered_package_config: Orb::PriceCreateParams::GroupedTieredPackageConfig, + max_group_tiered_package_config: Orb::PriceCreateParams::MaxGroupTieredPackageConfig, + scalable_matrix_with_unit_pricing_config: Orb::PriceCreateParams::ScalableMatrixWithUnitPricingConfig, + scalable_matrix_with_tiered_pricing_config: Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig, + cumulative_grouped_bulk_config: Orb::PriceCreateParams::CumulativeGroupedBulkConfig, minimum_config: Orb::PriceCreateParams::MinimumConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, @@ -203,31 +203,31 @@ module Orb invoice_grouping_key: String?, invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, metadata: ::Hash[Symbol, String?]?, + tiered_config: Orb::TieredConfig, + bulk_config: Orb::BulkConfig, package_config: Orb::PackageConfig, matrix_config: Orb::MatrixConfig, + threshold_total_amount_config: Orb::PriceCreateParams::ThresholdTotalAmountConfig, + tiered_package_config: Orb::PriceCreateParams::TieredPackageConfig, + tiered_with_minimum_config: Orb::PriceCreateParams::TieredWithMinimumConfig, + grouped_tiered_config: Orb::PriceCreateParams::GroupedTieredConfig, + tiered_package_with_minimum_config: Orb::PriceCreateParams::TieredPackageWithMinimumConfig, + package_with_allocation_config: Orb::PriceCreateParams::PackageWithAllocationConfig, + unit_with_percent_config: Orb::PriceCreateParams::UnitWithPercentConfig, matrix_with_allocation_config: Orb::MatrixWithAllocationConfig, - tiered_config: Orb::TieredConfig, - bulk_config: Orb::BulkConfig, - threshold_total_amount_config: ::Hash[Symbol, top], - tiered_package_config: ::Hash[Symbol, top], - grouped_tiered_config: ::Hash[Symbol, top], - max_group_tiered_package_config: ::Hash[Symbol, top], - tiered_with_minimum_config: ::Hash[Symbol, top], - package_with_allocation_config: ::Hash[Symbol, top], - tiered_package_with_minimum_config: ::Hash[Symbol, top], - unit_with_percent_config: ::Hash[Symbol, top], - tiered_with_proration_config: ::Hash[Symbol, top], - unit_with_proration_config: ::Hash[Symbol, top], - grouped_allocation_config: ::Hash[Symbol, top], - grouped_with_prorated_minimum_config: ::Hash[Symbol, top], - grouped_with_metered_minimum_config: ::Hash[Symbol, top], - matrix_with_display_name_config: ::Hash[Symbol, top], - bulk_with_proration_config: ::Hash[Symbol, top], - grouped_tiered_package_config: ::Hash[Symbol, top], - scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], - scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], - cumulative_grouped_bulk_config: ::Hash[Symbol, top], - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + tiered_with_proration_config: Orb::PriceCreateParams::TieredWithProrationConfig, + unit_with_proration_config: Orb::PriceCreateParams::UnitWithProrationConfig, + grouped_allocation_config: Orb::PriceCreateParams::GroupedAllocationConfig, + bulk_with_proration_config: Orb::PriceCreateParams::BulkWithProrationConfig, + grouped_with_prorated_minimum_config: Orb::PriceCreateParams::GroupedWithProratedMinimumConfig, + grouped_with_metered_minimum_config: Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig, + grouped_with_min_max_thresholds_config: Orb::PriceCreateParams::GroupedWithMinMaxThresholdsConfig, + matrix_with_display_name_config: Orb::PriceCreateParams::MatrixWithDisplayNameConfig, + grouped_tiered_package_config: Orb::PriceCreateParams::GroupedTieredPackageConfig, + max_group_tiered_package_config: Orb::PriceCreateParams::MaxGroupTieredPackageConfig, + scalable_matrix_with_unit_pricing_config: Orb::PriceCreateParams::ScalableMatrixWithUnitPricingConfig, + scalable_matrix_with_tiered_pricing_config: Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig, + cumulative_grouped_bulk_config: Orb::PriceCreateParams::CumulativeGroupedBulkConfig, minimum_config: Orb::PriceCreateParams::MinimumConfig, request_options: Orb::RequestOptions } @@ -258,16 +258,795 @@ module Orb def self?.values: -> ::Array[Orb::Models::PriceCreateParams::model_type] end - type minimum_config = { minimum_amount: String, prorated: bool? } + type threshold_total_amount_config = + { + consumption_table: ::Array[Orb::PriceCreateParams::ThresholdTotalAmountConfig::ConsumptionTable], + prorate: bool? + } + + class ThresholdTotalAmountConfig < Orb::Internal::Type::BaseModel + attr_accessor consumption_table: ::Array[Orb::PriceCreateParams::ThresholdTotalAmountConfig::ConsumptionTable] + + attr_accessor prorate: bool? + + def initialize: ( + consumption_table: ::Array[Orb::PriceCreateParams::ThresholdTotalAmountConfig::ConsumptionTable], + ?prorate: bool? + ) -> void + + def to_hash: -> { + consumption_table: ::Array[Orb::PriceCreateParams::ThresholdTotalAmountConfig::ConsumptionTable], + prorate: bool? + } + + type consumption_table = { threshold: String, total_amount: String } + + class ConsumptionTable < Orb::Internal::Type::BaseModel + attr_accessor threshold: String + + attr_accessor total_amount: String + + def initialize: (threshold: String, total_amount: String) -> void + + def to_hash: -> { threshold: String, total_amount: String } + end + end + + type tiered_package_config = + { + package_size: String, + tiers: ::Array[Orb::PriceCreateParams::TieredPackageConfig::Tier] + } + + class TieredPackageConfig < Orb::Internal::Type::BaseModel + attr_accessor package_size: String + + attr_accessor tiers: ::Array[Orb::PriceCreateParams::TieredPackageConfig::Tier] + + def initialize: ( + package_size: String, + tiers: ::Array[Orb::PriceCreateParams::TieredPackageConfig::Tier] + ) -> void + + def to_hash: -> { + package_size: String, + tiers: ::Array[Orb::PriceCreateParams::TieredPackageConfig::Tier] + } + + type tier = { per_unit: String, tier_lower_bound: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor per_unit: String + + attr_accessor tier_lower_bound: String + + def initialize: (per_unit: String, tier_lower_bound: String) -> void + + def to_hash: -> { per_unit: String, tier_lower_bound: String } + end + end + + type tiered_with_minimum_config = + { + tiers: ::Array[Orb::PriceCreateParams::TieredWithMinimumConfig::Tier], + hide_zero_amount_tiers: bool, + prorate: bool + } + + class TieredWithMinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor tiers: ::Array[Orb::PriceCreateParams::TieredWithMinimumConfig::Tier] + + attr_reader hide_zero_amount_tiers: bool? + + def hide_zero_amount_tiers=: (bool) -> bool + + attr_reader prorate: bool? + + def prorate=: (bool) -> bool + + def initialize: ( + tiers: ::Array[Orb::PriceCreateParams::TieredWithMinimumConfig::Tier], + ?hide_zero_amount_tiers: bool, + ?prorate: bool + ) -> void + + def to_hash: -> { + tiers: ::Array[Orb::PriceCreateParams::TieredWithMinimumConfig::Tier], + hide_zero_amount_tiers: bool, + prorate: bool + } + + type tier = + { + minimum_amount: String, + tier_lower_bound: String, + unit_amount: String + } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor minimum_amount: String + + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + minimum_amount: String, + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { + minimum_amount: String, + tier_lower_bound: String, + unit_amount: String + } + end + end + + type grouped_tiered_config = + { + grouping_key: String, + tiers: ::Array[Orb::PriceCreateParams::GroupedTieredConfig::Tier] + } + + class GroupedTieredConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor tiers: ::Array[Orb::PriceCreateParams::GroupedTieredConfig::Tier] + + def initialize: ( + grouping_key: String, + tiers: ::Array[Orb::PriceCreateParams::GroupedTieredConfig::Tier] + ) -> void + + def to_hash: -> { + grouping_key: String, + tiers: ::Array[Orb::PriceCreateParams::GroupedTieredConfig::Tier] + } + + type tier = { tier_lower_bound: String, unit_amount: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { tier_lower_bound: String, unit_amount: String } + end + end + + type tiered_package_with_minimum_config = + { + package_size: Float, + tiers: ::Array[Orb::PriceCreateParams::TieredPackageWithMinimumConfig::Tier] + } + + class TieredPackageWithMinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor package_size: Float + + attr_accessor tiers: ::Array[Orb::PriceCreateParams::TieredPackageWithMinimumConfig::Tier] + + def initialize: ( + package_size: Float, + tiers: ::Array[Orb::PriceCreateParams::TieredPackageWithMinimumConfig::Tier] + ) -> void + + def to_hash: -> { + package_size: Float, + tiers: ::Array[Orb::PriceCreateParams::TieredPackageWithMinimumConfig::Tier] + } + + type tier = + { minimum_amount: String, per_unit: String, tier_lower_bound: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor minimum_amount: String + + attr_accessor per_unit: String + + attr_accessor tier_lower_bound: String + + def initialize: ( + minimum_amount: String, + per_unit: String, + tier_lower_bound: String + ) -> void + + def to_hash: -> { + minimum_amount: String, + per_unit: String, + tier_lower_bound: String + } + end + end + + type package_with_allocation_config = + { allocation: String, package_amount: String, package_size: String } + + class PackageWithAllocationConfig < Orb::Internal::Type::BaseModel + attr_accessor allocation: String + + attr_accessor package_amount: String + + attr_accessor package_size: String + + def initialize: ( + allocation: String, + package_amount: String, + package_size: String + ) -> void + + def to_hash: -> { + allocation: String, + package_amount: String, + package_size: String + } + end + + type unit_with_percent_config = { percent: String, unit_amount: String } + + class UnitWithPercentConfig < Orb::Internal::Type::BaseModel + attr_accessor percent: String + + attr_accessor unit_amount: String + + def initialize: (percent: String, unit_amount: String) -> void + + def to_hash: -> { percent: String, unit_amount: String } + end + + type tiered_with_proration_config = + { + tiers: ::Array[Orb::PriceCreateParams::TieredWithProrationConfig::Tier] + } + + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + attr_accessor tiers: ::Array[Orb::PriceCreateParams::TieredWithProrationConfig::Tier] + + def initialize: ( + tiers: ::Array[Orb::PriceCreateParams::TieredWithProrationConfig::Tier] + ) -> void + + def to_hash: -> { + tiers: ::Array[Orb::PriceCreateParams::TieredWithProrationConfig::Tier] + } + + type tier = { tier_lower_bound: String, unit_amount: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { tier_lower_bound: String, unit_amount: String } + end + end + + type unit_with_proration_config = { unit_amount: String } + + class UnitWithProrationConfig < Orb::Internal::Type::BaseModel + attr_accessor unit_amount: String + + def initialize: (unit_amount: String) -> void + + def to_hash: -> { unit_amount: String } + end + + type grouped_allocation_config = + { allocation: String, grouping_key: String, overage_unit_rate: String } + + class GroupedAllocationConfig < Orb::Internal::Type::BaseModel + attr_accessor allocation: String + + attr_accessor grouping_key: String + + attr_accessor overage_unit_rate: String + + def initialize: ( + allocation: String, + grouping_key: String, + overage_unit_rate: String + ) -> void + + def to_hash: -> { + allocation: String, + grouping_key: String, + overage_unit_rate: String + } + end + + type bulk_with_proration_config = + { + tiers: ::Array[Orb::PriceCreateParams::BulkWithProrationConfig::Tier] + } + + class BulkWithProrationConfig < Orb::Internal::Type::BaseModel + attr_accessor tiers: ::Array[Orb::PriceCreateParams::BulkWithProrationConfig::Tier] + + def initialize: ( + tiers: ::Array[Orb::PriceCreateParams::BulkWithProrationConfig::Tier] + ) -> void + + def to_hash: -> { + tiers: ::Array[Orb::PriceCreateParams::BulkWithProrationConfig::Tier] + } + + type tier = { unit_amount: String, tier_lower_bound: String? } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor unit_amount: String + + attr_accessor tier_lower_bound: String? + + def initialize: ( + unit_amount: String, + ?tier_lower_bound: String? + ) -> void + + def to_hash: -> { unit_amount: String, tier_lower_bound: String? } + end + end + + type grouped_with_prorated_minimum_config = + { grouping_key: String, minimum: String, unit_rate: String } + + class GroupedWithProratedMinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor minimum: String + + attr_accessor unit_rate: String + + def initialize: ( + grouping_key: String, + minimum: String, + unit_rate: String + ) -> void + + def to_hash: -> { + grouping_key: String, + minimum: String, + unit_rate: String + } + end + + type grouped_with_metered_minimum_config = + { + grouping_key: String, + minimum_unit_amount: String, + pricing_key: String, + scaling_factors: ::Array[Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig::ScalingFactor], + scaling_key: String, + unit_amounts: ::Array[Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig::UnitAmount] + } + + class GroupedWithMeteredMinimumConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor minimum_unit_amount: String + + attr_accessor pricing_key: String + + attr_accessor scaling_factors: ::Array[Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig::ScalingFactor] + + attr_accessor scaling_key: String + + attr_accessor unit_amounts: ::Array[Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig::UnitAmount] + + def initialize: ( + grouping_key: String, + minimum_unit_amount: String, + pricing_key: String, + scaling_factors: ::Array[Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig::ScalingFactor], + scaling_key: String, + unit_amounts: ::Array[Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig::UnitAmount] + ) -> void + + def to_hash: -> { + grouping_key: String, + minimum_unit_amount: String, + pricing_key: String, + scaling_factors: ::Array[Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig::ScalingFactor], + scaling_key: String, + unit_amounts: ::Array[Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig::UnitAmount] + } + + type scaling_factor = { scaling_factor: String, scaling_value: String } + + class ScalingFactor < Orb::Internal::Type::BaseModel + attr_accessor scaling_factor: String + + attr_accessor scaling_value: String + + def initialize: ( + scaling_factor: String, + scaling_value: String + ) -> void + + def to_hash: -> { scaling_factor: String, scaling_value: String } + end + + type unit_amount = { pricing_value: String, unit_amount: String } + + class UnitAmount < Orb::Internal::Type::BaseModel + attr_accessor pricing_value: String + + attr_accessor unit_amount: String + + def initialize: (pricing_value: String, unit_amount: String) -> void + + def to_hash: -> { pricing_value: String, unit_amount: String } + end + end + + type grouped_with_min_max_thresholds_config = + { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor maximum_charge: String + + attr_accessor minimum_charge: String + + attr_accessor per_unit_rate: String + + def initialize: ( + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + ) -> void + + def to_hash: -> { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + end + + type matrix_with_display_name_config = + { + dimension: String, + unit_amounts: ::Array[Orb::PriceCreateParams::MatrixWithDisplayNameConfig::UnitAmount] + } + + class MatrixWithDisplayNameConfig < Orb::Internal::Type::BaseModel + attr_accessor dimension: String + + attr_accessor unit_amounts: ::Array[Orb::PriceCreateParams::MatrixWithDisplayNameConfig::UnitAmount] + + def initialize: ( + dimension: String, + unit_amounts: ::Array[Orb::PriceCreateParams::MatrixWithDisplayNameConfig::UnitAmount] + ) -> void + + def to_hash: -> { + dimension: String, + unit_amounts: ::Array[Orb::PriceCreateParams::MatrixWithDisplayNameConfig::UnitAmount] + } + + type unit_amount = + { dimension_value: String, display_name: String, unit_amount: String } + + class UnitAmount < Orb::Internal::Type::BaseModel + attr_accessor dimension_value: String + + attr_accessor display_name: String + + attr_accessor unit_amount: String + + def initialize: ( + dimension_value: String, + display_name: String, + unit_amount: String + ) -> void + + def to_hash: -> { + dimension_value: String, + display_name: String, + unit_amount: String + } + end + end + + type grouped_tiered_package_config = + { + grouping_key: String, + package_size: String, + tiers: ::Array[Orb::PriceCreateParams::GroupedTieredPackageConfig::Tier] + } + + class GroupedTieredPackageConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor package_size: String + + attr_accessor tiers: ::Array[Orb::PriceCreateParams::GroupedTieredPackageConfig::Tier] + + def initialize: ( + grouping_key: String, + package_size: String, + tiers: ::Array[Orb::PriceCreateParams::GroupedTieredPackageConfig::Tier] + ) -> void + + def to_hash: -> { + grouping_key: String, + package_size: String, + tiers: ::Array[Orb::PriceCreateParams::GroupedTieredPackageConfig::Tier] + } + + type tier = { per_unit: String, tier_lower_bound: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor per_unit: String + + attr_accessor tier_lower_bound: String + + def initialize: (per_unit: String, tier_lower_bound: String) -> void + + def to_hash: -> { per_unit: String, tier_lower_bound: String } + end + end + + type max_group_tiered_package_config = + { + grouping_key: String, + package_size: String, + tiers: ::Array[Orb::PriceCreateParams::MaxGroupTieredPackageConfig::Tier] + } + + class MaxGroupTieredPackageConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor package_size: String + + attr_accessor tiers: ::Array[Orb::PriceCreateParams::MaxGroupTieredPackageConfig::Tier] + + def initialize: ( + grouping_key: String, + package_size: String, + tiers: ::Array[Orb::PriceCreateParams::MaxGroupTieredPackageConfig::Tier] + ) -> void + + def to_hash: -> { + grouping_key: String, + package_size: String, + tiers: ::Array[Orb::PriceCreateParams::MaxGroupTieredPackageConfig::Tier] + } + + type tier = { tier_lower_bound: String, unit_amount: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { tier_lower_bound: String, unit_amount: String } + end + end + + type scalable_matrix_with_unit_pricing_config = + { + first_dimension: String, + matrix_scaling_factors: ::Array[Orb::PriceCreateParams::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor], + unit_price: String, + prorate: bool?, + second_dimension: String? + } + + class ScalableMatrixWithUnitPricingConfig < Orb::Internal::Type::BaseModel + attr_accessor first_dimension: String + + attr_accessor matrix_scaling_factors: ::Array[Orb::PriceCreateParams::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor] + + attr_accessor unit_price: String + + attr_accessor prorate: bool? + + attr_accessor second_dimension: String? + + def initialize: ( + first_dimension: String, + matrix_scaling_factors: ::Array[Orb::PriceCreateParams::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor], + unit_price: String, + ?prorate: bool?, + ?second_dimension: String? + ) -> void + + def to_hash: -> { + first_dimension: String, + matrix_scaling_factors: ::Array[Orb::PriceCreateParams::ScalableMatrixWithUnitPricingConfig::MatrixScalingFactor], + unit_price: String, + prorate: bool?, + second_dimension: String? + } + + type matrix_scaling_factor = + { + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: String? + } + + class MatrixScalingFactor < Orb::Internal::Type::BaseModel + attr_accessor first_dimension_value: String + + attr_accessor scaling_factor: String + + attr_accessor second_dimension_value: String? + + def initialize: ( + first_dimension_value: String, + scaling_factor: String, + ?second_dimension_value: String? + ) -> void + + def to_hash: -> { + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: String? + } + end + end + + type scalable_matrix_with_tiered_pricing_config = + { + first_dimension: String, + matrix_scaling_factors: ::Array[Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor], + tiers: ::Array[Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig::Tier], + second_dimension: String? + } + + class ScalableMatrixWithTieredPricingConfig < Orb::Internal::Type::BaseModel + attr_accessor first_dimension: String + + attr_accessor matrix_scaling_factors: ::Array[Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor] + + attr_accessor tiers: ::Array[Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig::Tier] + + attr_accessor second_dimension: String? + + def initialize: ( + first_dimension: String, + matrix_scaling_factors: ::Array[Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor], + tiers: ::Array[Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig::Tier], + ?second_dimension: String? + ) -> void + + def to_hash: -> { + first_dimension: String, + matrix_scaling_factors: ::Array[Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig::MatrixScalingFactor], + tiers: ::Array[Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig::Tier], + second_dimension: String? + } + + type matrix_scaling_factor = + { + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: String? + } + + class MatrixScalingFactor < Orb::Internal::Type::BaseModel + attr_accessor first_dimension_value: String + + attr_accessor scaling_factor: String + + attr_accessor second_dimension_value: String? + + def initialize: ( + first_dimension_value: String, + scaling_factor: String, + ?second_dimension_value: String? + ) -> void + + def to_hash: -> { + first_dimension_value: String, + scaling_factor: String, + second_dimension_value: String? + } + end + + type tier = { tier_lower_bound: String, unit_amount: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { tier_lower_bound: String, unit_amount: String } + end + end + + type cumulative_grouped_bulk_config = + { + dimension_values: ::Array[Orb::PriceCreateParams::CumulativeGroupedBulkConfig::DimensionValue], + group: String + } + + class CumulativeGroupedBulkConfig < Orb::Internal::Type::BaseModel + attr_accessor dimension_values: ::Array[Orb::PriceCreateParams::CumulativeGroupedBulkConfig::DimensionValue] + + attr_accessor group: String + + def initialize: ( + dimension_values: ::Array[Orb::PriceCreateParams::CumulativeGroupedBulkConfig::DimensionValue], + group: String + ) -> void + + def to_hash: -> { + dimension_values: ::Array[Orb::PriceCreateParams::CumulativeGroupedBulkConfig::DimensionValue], + group: String + } + + type dimension_value = + { + grouping_key: String, + tier_lower_bound: String, + unit_amount: String + } + + class DimensionValue < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + grouping_key: String, + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { + grouping_key: String, + tier_lower_bound: String, + unit_amount: String + } + end + end + + type minimum_config = { minimum_amount: String, prorated: bool } class MinimumConfig < Orb::Internal::Type::BaseModel attr_accessor minimum_amount: String - attr_accessor prorated: bool? + attr_reader prorated: bool? + + def prorated=: (bool) -> bool - def initialize: (minimum_amount: String, ?prorated: bool?) -> void + def initialize: (minimum_amount: String, ?prorated: bool) -> void - def to_hash: -> { minimum_amount: String, prorated: bool? } + def to_hash: -> { minimum_amount: String, prorated: bool } end end end diff --git a/sig/orb/models/price_evaluate_multiple_params.rbs b/sig/orb/models/price_evaluate_multiple_params.rbs index 6e328fb0..63ccf377 100644 --- a/sig/orb/models/price_evaluate_multiple_params.rbs +++ b/sig/orb/models/price_evaluate_multiple_params.rbs @@ -86,31 +86,31 @@ module Orb type price = Orb::NewFloatingUnitPrice - | Orb::NewFloatingPackagePrice - | Orb::NewFloatingMatrixPrice - | Orb::NewFloatingMatrixWithAllocationPrice | Orb::NewFloatingTieredPrice | Orb::NewFloatingBulkPrice + | Orb::NewFloatingPackagePrice + | Orb::NewFloatingMatrixPrice | Orb::NewFloatingThresholdTotalAmountPrice | Orb::NewFloatingTieredPackagePrice - | Orb::NewFloatingGroupedTieredPrice - | Orb::NewFloatingMaxGroupTieredPackagePrice | Orb::NewFloatingTieredWithMinimumPrice - | Orb::NewFloatingPackageWithAllocationPrice + | Orb::NewFloatingGroupedTieredPrice | Orb::NewFloatingTieredPackageWithMinimumPrice + | Orb::NewFloatingPackageWithAllocationPrice | Orb::NewFloatingUnitWithPercentPrice + | Orb::NewFloatingMatrixWithAllocationPrice | Orb::NewFloatingTieredWithProrationPrice | Orb::NewFloatingUnitWithProrationPrice | Orb::NewFloatingGroupedAllocationPrice + | Orb::NewFloatingBulkWithProrationPrice | Orb::NewFloatingGroupedWithProratedMinimumPrice | Orb::NewFloatingGroupedWithMeteredMinimumPrice + | Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds | Orb::NewFloatingMatrixWithDisplayNamePrice - | Orb::NewFloatingBulkWithProrationPrice | Orb::NewFloatingGroupedTieredPackagePrice + | Orb::NewFloatingMaxGroupTieredPackagePrice | Orb::NewFloatingScalableMatrixWithUnitPricingPrice | Orb::NewFloatingScalableMatrixWithTieredPricingPrice | Orb::NewFloatingCumulativeGroupedBulkPrice - | Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds | Orb::NewFloatingMinimumCompositePrice module Price @@ -120,7 +120,7 @@ module Orb { cadence: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::cadence, currency: String, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, model_type: :grouped_with_min_max_thresholds, name: String, @@ -142,7 +142,7 @@ module Orb attr_accessor currency: String - attr_accessor grouped_with_min_max_thresholds_config: ::Hash[Symbol, top] + attr_accessor grouped_with_min_max_thresholds_config: Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig attr_accessor item_id: String @@ -175,7 +175,7 @@ module Orb def initialize: ( cadence: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::cadence, currency: String, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, name: String, ?billable_metric_id: String?, @@ -195,7 +195,7 @@ module Orb def to_hash: -> { cadence: Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::cadence, currency: String, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, model_type: :grouped_with_min_max_thresholds, name: String, @@ -232,6 +232,38 @@ module Orb def self?.values: -> ::Array[Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::cadence] end + + type grouped_with_min_max_thresholds_config = + { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor maximum_charge: String + + attr_accessor minimum_charge: String + + attr_accessor per_unit_rate: String + + def initialize: ( + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + ) -> void + + def to_hash: -> { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + end end def self?.variants: -> ::Array[Orb::Models::PriceEvaluateMultipleParams::PriceEvaluation::price] diff --git a/sig/orb/models/price_evaluate_preview_events_params.rbs b/sig/orb/models/price_evaluate_preview_events_params.rbs index 44bbfdbd..2b076380 100644 --- a/sig/orb/models/price_evaluate_preview_events_params.rbs +++ b/sig/orb/models/price_evaluate_preview_events_params.rbs @@ -132,31 +132,31 @@ module Orb type price = Orb::NewFloatingUnitPrice - | Orb::NewFloatingPackagePrice - | Orb::NewFloatingMatrixPrice - | Orb::NewFloatingMatrixWithAllocationPrice | Orb::NewFloatingTieredPrice | Orb::NewFloatingBulkPrice + | Orb::NewFloatingPackagePrice + | Orb::NewFloatingMatrixPrice | Orb::NewFloatingThresholdTotalAmountPrice | Orb::NewFloatingTieredPackagePrice - | Orb::NewFloatingGroupedTieredPrice - | Orb::NewFloatingMaxGroupTieredPackagePrice | Orb::NewFloatingTieredWithMinimumPrice - | Orb::NewFloatingPackageWithAllocationPrice + | Orb::NewFloatingGroupedTieredPrice | Orb::NewFloatingTieredPackageWithMinimumPrice + | Orb::NewFloatingPackageWithAllocationPrice | Orb::NewFloatingUnitWithPercentPrice + | Orb::NewFloatingMatrixWithAllocationPrice | Orb::NewFloatingTieredWithProrationPrice | Orb::NewFloatingUnitWithProrationPrice | Orb::NewFloatingGroupedAllocationPrice + | Orb::NewFloatingBulkWithProrationPrice | Orb::NewFloatingGroupedWithProratedMinimumPrice | Orb::NewFloatingGroupedWithMeteredMinimumPrice + | Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds | Orb::NewFloatingMatrixWithDisplayNamePrice - | Orb::NewFloatingBulkWithProrationPrice | Orb::NewFloatingGroupedTieredPackagePrice + | Orb::NewFloatingMaxGroupTieredPackagePrice | Orb::NewFloatingScalableMatrixWithUnitPricingPrice | Orb::NewFloatingScalableMatrixWithTieredPricingPrice | Orb::NewFloatingCumulativeGroupedBulkPrice - | Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds | Orb::NewFloatingMinimumCompositePrice module Price @@ -166,7 +166,7 @@ module Orb { cadence: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::cadence, currency: String, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, model_type: :grouped_with_min_max_thresholds, name: String, @@ -188,7 +188,7 @@ module Orb attr_accessor currency: String - attr_accessor grouped_with_min_max_thresholds_config: ::Hash[Symbol, top] + attr_accessor grouped_with_min_max_thresholds_config: Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig attr_accessor item_id: String @@ -221,7 +221,7 @@ module Orb def initialize: ( cadence: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::cadence, currency: String, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, name: String, ?billable_metric_id: String?, @@ -241,7 +241,7 @@ module Orb def to_hash: -> { cadence: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::cadence, currency: String, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, model_type: :grouped_with_min_max_thresholds, name: String, @@ -278,6 +278,38 @@ module Orb def self?.values: -> ::Array[Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::GroupedWithMinMaxThresholds::cadence] end + + type grouped_with_min_max_thresholds_config = + { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor maximum_charge: String + + attr_accessor minimum_charge: String + + attr_accessor per_unit_rate: String + + def initialize: ( + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + ) -> void + + def to_hash: -> { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + end end def self?.variants: -> ::Array[Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::price] diff --git a/sig/orb/models/subscription_create_params.rbs b/sig/orb/models/subscription_create_params.rbs index 4f9eb549..5923aa12 100644 --- a/sig/orb/models/subscription_create_params.rbs +++ b/sig/orb/models/subscription_create_params.rbs @@ -292,40 +292,198 @@ module Orb type price = Orb::NewSubscriptionUnitPrice - | Orb::NewSubscriptionPackagePrice - | Orb::NewSubscriptionMatrixPrice | Orb::NewSubscriptionTieredPrice | Orb::NewSubscriptionBulkPrice + | Orb::NewSubscriptionPackagePrice + | Orb::NewSubscriptionMatrixPrice | Orb::NewSubscriptionThresholdTotalAmountPrice | Orb::NewSubscriptionTieredPackagePrice | Orb::NewSubscriptionTieredWithMinimumPrice - | Orb::NewSubscriptionUnitWithPercentPrice + | Orb::NewSubscriptionGroupedTieredPrice + | Orb::NewSubscriptionTieredPackageWithMinimumPrice | Orb::NewSubscriptionPackageWithAllocationPrice - | Orb::NewSubscriptionTierWithProrationPrice + | Orb::NewSubscriptionUnitWithPercentPrice + | Orb::NewSubscriptionMatrixWithAllocationPrice + | Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration | Orb::NewSubscriptionUnitWithProrationPrice | Orb::NewSubscriptionGroupedAllocationPrice - | Orb::NewSubscriptionGroupedWithProratedMinimumPrice | Orb::NewSubscriptionBulkWithProrationPrice - | Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice - | Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice - | Orb::NewSubscriptionCumulativeGroupedBulkPrice - | Orb::NewSubscriptionMaxGroupTieredPackagePrice + | Orb::NewSubscriptionGroupedWithProratedMinimumPrice | Orb::NewSubscriptionGroupedWithMeteredMinimumPrice + | Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds | Orb::NewSubscriptionMatrixWithDisplayNamePrice | Orb::NewSubscriptionGroupedTieredPackagePrice - | Orb::NewSubscriptionMatrixWithAllocationPrice - | Orb::NewSubscriptionTieredPackageWithMinimumPrice - | Orb::NewSubscriptionGroupedTieredPrice - | Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds + | Orb::NewSubscriptionMaxGroupTieredPackagePrice + | Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice + | Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice + | Orb::NewSubscriptionCumulativeGroupedBulkPrice | Orb::NewSubscriptionMinimumCompositePrice module Price extend Orb::Internal::Type::Union + type tiered_with_proration = + { + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::cadence, + item_id: String, + model_type: :tiered_with_proration, + name: String, + tiered_with_proration_config: Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::conversion_rate_config?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + class TieredWithProration < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::cadence + + attr_accessor item_id: String + + attr_accessor model_type: :tiered_with_proration + + attr_accessor name: String + + attr_accessor tiered_with_proration_config: Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::conversion_rate_config? + + attr_accessor currency: String? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + attr_accessor reference_id: String? + + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::cadence, + item_id: String, + name: String, + tiered_with_proration_config: Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::conversion_rate_config?, + ?currency: String?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_with_proration + ) -> void + + def to_hash: -> { + cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::cadence, + item_id: String, + model_type: :tiered_with_proration, + name: String, + tiered_with_proration_config: Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::conversion_rate_config?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + type cadence = + :annual + | :semi_annual + | :monthly + | :quarterly + | :one_time + | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::cadence] + end + + type tiered_with_proration_config = + { + tiers: ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] + } + + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + attr_accessor tiers: ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] + + def initialize: ( + tiers: ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] + ) -> void + + def to_hash: -> { + tiers: ::Array[Orb::SubscriptionCreateParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] + } + + type tier = { tier_lower_bound: String, unit_amount: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { + tier_lower_bound: String, + unit_amount: String + } + end + end + end + type grouped_with_min_max_thresholds = { cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, model_type: :grouped_with_min_max_thresholds, name: String, @@ -347,7 +505,7 @@ module Orb class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel attr_accessor cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence - attr_accessor grouped_with_min_max_thresholds_config: ::Hash[Symbol, top] + attr_accessor grouped_with_min_max_thresholds_config: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig attr_accessor item_id: String @@ -383,7 +541,7 @@ module Orb def initialize: ( cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, name: String, ?billable_metric_id: String?, @@ -404,7 +562,7 @@ module Orb def to_hash: -> { cadence: Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, model_type: :grouped_with_min_max_thresholds, name: String, @@ -443,6 +601,38 @@ module Orb def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence] end + + type grouped_with_min_max_thresholds_config = + { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor maximum_charge: String + + attr_accessor minimum_charge: String + + attr_accessor per_unit_rate: String + + def initialize: ( + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + ) -> void + + def to_hash: -> { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + end end def self?.variants: -> ::Array[Orb::Models::SubscriptionCreateParams::AddPrice::price] @@ -579,40 +769,198 @@ module Orb type price = Orb::NewSubscriptionUnitPrice - | Orb::NewSubscriptionPackagePrice - | Orb::NewSubscriptionMatrixPrice | Orb::NewSubscriptionTieredPrice | Orb::NewSubscriptionBulkPrice + | Orb::NewSubscriptionPackagePrice + | Orb::NewSubscriptionMatrixPrice | Orb::NewSubscriptionThresholdTotalAmountPrice | Orb::NewSubscriptionTieredPackagePrice | Orb::NewSubscriptionTieredWithMinimumPrice - | Orb::NewSubscriptionUnitWithPercentPrice + | Orb::NewSubscriptionGroupedTieredPrice + | Orb::NewSubscriptionTieredPackageWithMinimumPrice | Orb::NewSubscriptionPackageWithAllocationPrice - | Orb::NewSubscriptionTierWithProrationPrice + | Orb::NewSubscriptionUnitWithPercentPrice + | Orb::NewSubscriptionMatrixWithAllocationPrice + | Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration | Orb::NewSubscriptionUnitWithProrationPrice | Orb::NewSubscriptionGroupedAllocationPrice - | Orb::NewSubscriptionGroupedWithProratedMinimumPrice | Orb::NewSubscriptionBulkWithProrationPrice - | Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice - | Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice - | Orb::NewSubscriptionCumulativeGroupedBulkPrice - | Orb::NewSubscriptionMaxGroupTieredPackagePrice + | Orb::NewSubscriptionGroupedWithProratedMinimumPrice | Orb::NewSubscriptionGroupedWithMeteredMinimumPrice + | Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds | Orb::NewSubscriptionMatrixWithDisplayNamePrice | Orb::NewSubscriptionGroupedTieredPackagePrice - | Orb::NewSubscriptionMatrixWithAllocationPrice - | Orb::NewSubscriptionTieredPackageWithMinimumPrice - | Orb::NewSubscriptionGroupedTieredPrice - | Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds + | Orb::NewSubscriptionMaxGroupTieredPackagePrice + | Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice + | Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice + | Orb::NewSubscriptionCumulativeGroupedBulkPrice | Orb::NewSubscriptionMinimumCompositePrice module Price extend Orb::Internal::Type::Union + type tiered_with_proration = + { + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::cadence, + item_id: String, + model_type: :tiered_with_proration, + name: String, + tiered_with_proration_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::conversion_rate_config?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + class TieredWithProration < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::cadence + + attr_accessor item_id: String + + attr_accessor model_type: :tiered_with_proration + + attr_accessor name: String + + attr_accessor tiered_with_proration_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::conversion_rate_config? + + attr_accessor currency: String? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + attr_accessor reference_id: String? + + def initialize: ( + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::cadence, + item_id: String, + name: String, + tiered_with_proration_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::conversion_rate_config?, + ?currency: String?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_with_proration + ) -> void + + def to_hash: -> { + cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::cadence, + item_id: String, + model_type: :tiered_with_proration, + name: String, + tiered_with_proration_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::conversion_rate_config?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + type cadence = + :annual + | :semi_annual + | :monthly + | :quarterly + | :one_time + | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::cadence] + end + + type tiered_with_proration_config = + { + tiers: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] + } + + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + attr_accessor tiers: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] + + def initialize: ( + tiers: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] + ) -> void + + def to_hash: -> { + tiers: ::Array[Orb::SubscriptionCreateParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] + } + + type tier = { tier_lower_bound: String, unit_amount: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { + tier_lower_bound: String, + unit_amount: String + } + end + end + end + type grouped_with_min_max_thresholds = { cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, model_type: :grouped_with_min_max_thresholds, name: String, @@ -634,7 +982,7 @@ module Orb class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel attr_accessor cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence - attr_accessor grouped_with_min_max_thresholds_config: ::Hash[Symbol, top] + attr_accessor grouped_with_min_max_thresholds_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig attr_accessor item_id: String @@ -670,7 +1018,7 @@ module Orb def initialize: ( cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, name: String, ?billable_metric_id: String?, @@ -691,7 +1039,7 @@ module Orb def to_hash: -> { cadence: Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, model_type: :grouped_with_min_max_thresholds, name: String, @@ -730,6 +1078,38 @@ module Orb def self?.values: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence] end + + type grouped_with_min_max_thresholds_config = + { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor maximum_charge: String + + attr_accessor minimum_charge: String + + attr_accessor per_unit_rate: String + + def initialize: ( + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + ) -> void + + def to_hash: -> { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + end end def self?.variants: -> ::Array[Orb::Models::SubscriptionCreateParams::ReplacePrice::price] diff --git a/sig/orb/models/subscription_price_intervals_params.rbs b/sig/orb/models/subscription_price_intervals_params.rbs index 00f6c3f1..597a330d 100644 --- a/sig/orb/models/subscription_price_intervals_params.rbs +++ b/sig/orb/models/subscription_price_intervals_params.rbs @@ -220,31 +220,31 @@ module Orb type price = Orb::NewFloatingUnitPrice - | Orb::NewFloatingPackagePrice - | Orb::NewFloatingMatrixPrice - | Orb::NewFloatingMatrixWithAllocationPrice | Orb::NewFloatingTieredPrice | Orb::NewFloatingBulkPrice + | Orb::NewFloatingPackagePrice + | Orb::NewFloatingMatrixPrice | Orb::NewFloatingThresholdTotalAmountPrice | Orb::NewFloatingTieredPackagePrice - | Orb::NewFloatingGroupedTieredPrice - | Orb::NewFloatingMaxGroupTieredPackagePrice | Orb::NewFloatingTieredWithMinimumPrice - | Orb::NewFloatingPackageWithAllocationPrice + | Orb::NewFloatingGroupedTieredPrice | Orb::NewFloatingTieredPackageWithMinimumPrice + | Orb::NewFloatingPackageWithAllocationPrice | Orb::NewFloatingUnitWithPercentPrice + | Orb::NewFloatingMatrixWithAllocationPrice | Orb::NewFloatingTieredWithProrationPrice | Orb::NewFloatingUnitWithProrationPrice | Orb::NewFloatingGroupedAllocationPrice + | Orb::NewFloatingBulkWithProrationPrice | Orb::NewFloatingGroupedWithProratedMinimumPrice | Orb::NewFloatingGroupedWithMeteredMinimumPrice + | Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds | Orb::NewFloatingMatrixWithDisplayNamePrice - | Orb::NewFloatingBulkWithProrationPrice | Orb::NewFloatingGroupedTieredPackagePrice + | Orb::NewFloatingMaxGroupTieredPackagePrice | Orb::NewFloatingScalableMatrixWithUnitPricingPrice | Orb::NewFloatingScalableMatrixWithTieredPricingPrice | Orb::NewFloatingCumulativeGroupedBulkPrice - | Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds | Orb::NewFloatingMinimumCompositePrice module Price @@ -254,7 +254,7 @@ module Orb { cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::cadence, currency: String, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, model_type: :grouped_with_min_max_thresholds, name: String, @@ -276,7 +276,7 @@ module Orb attr_accessor currency: String - attr_accessor grouped_with_min_max_thresholds_config: ::Hash[Symbol, top] + attr_accessor grouped_with_min_max_thresholds_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig attr_accessor item_id: String @@ -309,7 +309,7 @@ module Orb def initialize: ( cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::cadence, currency: String, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, name: String, ?billable_metric_id: String?, @@ -329,7 +329,7 @@ module Orb def to_hash: -> { cadence: Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::cadence, currency: String, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, model_type: :grouped_with_min_max_thresholds, name: String, @@ -366,6 +366,38 @@ module Orb def self?.values: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::Price::GroupedWithMinMaxThresholds::cadence] end + + type grouped_with_min_max_thresholds_config = + { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor maximum_charge: String + + attr_accessor minimum_charge: String + + attr_accessor per_unit_rate: String + + def initialize: ( + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + ) -> void + + def to_hash: -> { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + end end def self?.variants: -> ::Array[Orb::Models::SubscriptionPriceIntervalsParams::Add::price] diff --git a/sig/orb/models/subscription_schedule_plan_change_params.rbs b/sig/orb/models/subscription_schedule_plan_change_params.rbs index 8ec6f85e..f4f1ed7c 100644 --- a/sig/orb/models/subscription_schedule_plan_change_params.rbs +++ b/sig/orb/models/subscription_schedule_plan_change_params.rbs @@ -268,40 +268,198 @@ module Orb type price = Orb::NewSubscriptionUnitPrice - | Orb::NewSubscriptionPackagePrice - | Orb::NewSubscriptionMatrixPrice | Orb::NewSubscriptionTieredPrice | Orb::NewSubscriptionBulkPrice + | Orb::NewSubscriptionPackagePrice + | Orb::NewSubscriptionMatrixPrice | Orb::NewSubscriptionThresholdTotalAmountPrice | Orb::NewSubscriptionTieredPackagePrice | Orb::NewSubscriptionTieredWithMinimumPrice - | Orb::NewSubscriptionUnitWithPercentPrice + | Orb::NewSubscriptionGroupedTieredPrice + | Orb::NewSubscriptionTieredPackageWithMinimumPrice | Orb::NewSubscriptionPackageWithAllocationPrice - | Orb::NewSubscriptionTierWithProrationPrice + | Orb::NewSubscriptionUnitWithPercentPrice + | Orb::NewSubscriptionMatrixWithAllocationPrice + | Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration | Orb::NewSubscriptionUnitWithProrationPrice | Orb::NewSubscriptionGroupedAllocationPrice - | Orb::NewSubscriptionGroupedWithProratedMinimumPrice | Orb::NewSubscriptionBulkWithProrationPrice - | Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice - | Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice - | Orb::NewSubscriptionCumulativeGroupedBulkPrice - | Orb::NewSubscriptionMaxGroupTieredPackagePrice + | Orb::NewSubscriptionGroupedWithProratedMinimumPrice | Orb::NewSubscriptionGroupedWithMeteredMinimumPrice + | Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds | Orb::NewSubscriptionMatrixWithDisplayNamePrice | Orb::NewSubscriptionGroupedTieredPackagePrice - | Orb::NewSubscriptionMatrixWithAllocationPrice - | Orb::NewSubscriptionTieredPackageWithMinimumPrice - | Orb::NewSubscriptionGroupedTieredPrice - | Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds + | Orb::NewSubscriptionMaxGroupTieredPackagePrice + | Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice + | Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice + | Orb::NewSubscriptionCumulativeGroupedBulkPrice | Orb::NewSubscriptionMinimumCompositePrice module Price extend Orb::Internal::Type::Union + type tiered_with_proration = + { + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::cadence, + item_id: String, + model_type: :tiered_with_proration, + name: String, + tiered_with_proration_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::conversion_rate_config?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + class TieredWithProration < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::cadence + + attr_accessor item_id: String + + attr_accessor model_type: :tiered_with_proration + + attr_accessor name: String + + attr_accessor tiered_with_proration_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::conversion_rate_config? + + attr_accessor currency: String? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + attr_accessor reference_id: String? + + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::cadence, + item_id: String, + name: String, + tiered_with_proration_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::conversion_rate_config?, + ?currency: String?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_with_proration + ) -> void + + def to_hash: -> { + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::cadence, + item_id: String, + model_type: :tiered_with_proration, + name: String, + tiered_with_proration_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::conversion_rate_config?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + type cadence = + :annual + | :semi_annual + | :monthly + | :quarterly + | :one_time + | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::cadence] + end + + type tiered_with_proration_config = + { + tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] + } + + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + attr_accessor tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] + + def initialize: ( + tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] + ) -> void + + def to_hash: -> { + tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] + } + + type tier = { tier_lower_bound: String, unit_amount: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { + tier_lower_bound: String, + unit_amount: String + } + end + end + end + type grouped_with_min_max_thresholds = { cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, model_type: :grouped_with_min_max_thresholds, name: String, @@ -323,7 +481,7 @@ module Orb class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence - attr_accessor grouped_with_min_max_thresholds_config: ::Hash[Symbol, top] + attr_accessor grouped_with_min_max_thresholds_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig attr_accessor item_id: String @@ -359,7 +517,7 @@ module Orb def initialize: ( cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, name: String, ?billable_metric_id: String?, @@ -380,7 +538,7 @@ module Orb def to_hash: -> { cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, model_type: :grouped_with_min_max_thresholds, name: String, @@ -419,6 +577,38 @@ module Orb def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::Price::GroupedWithMinMaxThresholds::cadence] end + + type grouped_with_min_max_thresholds_config = + { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor maximum_charge: String + + attr_accessor minimum_charge: String + + attr_accessor per_unit_rate: String + + def initialize: ( + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + ) -> void + + def to_hash: -> { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + end end def self?.variants: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::AddPrice::price] @@ -556,40 +746,198 @@ module Orb type price = Orb::NewSubscriptionUnitPrice - | Orb::NewSubscriptionPackagePrice - | Orb::NewSubscriptionMatrixPrice | Orb::NewSubscriptionTieredPrice | Orb::NewSubscriptionBulkPrice + | Orb::NewSubscriptionPackagePrice + | Orb::NewSubscriptionMatrixPrice | Orb::NewSubscriptionThresholdTotalAmountPrice | Orb::NewSubscriptionTieredPackagePrice | Orb::NewSubscriptionTieredWithMinimumPrice - | Orb::NewSubscriptionUnitWithPercentPrice + | Orb::NewSubscriptionGroupedTieredPrice + | Orb::NewSubscriptionTieredPackageWithMinimumPrice | Orb::NewSubscriptionPackageWithAllocationPrice - | Orb::NewSubscriptionTierWithProrationPrice + | Orb::NewSubscriptionUnitWithPercentPrice + | Orb::NewSubscriptionMatrixWithAllocationPrice + | Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration | Orb::NewSubscriptionUnitWithProrationPrice | Orb::NewSubscriptionGroupedAllocationPrice - | Orb::NewSubscriptionGroupedWithProratedMinimumPrice | Orb::NewSubscriptionBulkWithProrationPrice - | Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice - | Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice - | Orb::NewSubscriptionCumulativeGroupedBulkPrice - | Orb::NewSubscriptionMaxGroupTieredPackagePrice + | Orb::NewSubscriptionGroupedWithProratedMinimumPrice | Orb::NewSubscriptionGroupedWithMeteredMinimumPrice + | Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds | Orb::NewSubscriptionMatrixWithDisplayNamePrice | Orb::NewSubscriptionGroupedTieredPackagePrice - | Orb::NewSubscriptionMatrixWithAllocationPrice - | Orb::NewSubscriptionTieredPackageWithMinimumPrice - | Orb::NewSubscriptionGroupedTieredPrice - | Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds + | Orb::NewSubscriptionMaxGroupTieredPackagePrice + | Orb::NewSubscriptionScalableMatrixWithUnitPricingPrice + | Orb::NewSubscriptionScalableMatrixWithTieredPricingPrice + | Orb::NewSubscriptionCumulativeGroupedBulkPrice | Orb::NewSubscriptionMinimumCompositePrice module Price extend Orb::Internal::Type::Union + type tiered_with_proration = + { + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::cadence, + item_id: String, + model_type: :tiered_with_proration, + name: String, + tiered_with_proration_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::conversion_rate_config?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + class TieredWithProration < Orb::Internal::Type::BaseModel + attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::cadence + + attr_accessor item_id: String + + attr_accessor model_type: :tiered_with_proration + + attr_accessor name: String + + attr_accessor tiered_with_proration_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig + + attr_accessor billable_metric_id: String? + + attr_accessor billed_in_advance: bool? + + attr_accessor billing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor conversion_rate: Float? + + attr_accessor conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::conversion_rate_config? + + attr_accessor currency: String? + + attr_accessor dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration? + + attr_accessor external_price_id: String? + + attr_accessor fixed_price_quantity: Float? + + attr_accessor invoice_grouping_key: String? + + attr_accessor invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration? + + attr_accessor metadata: ::Hash[Symbol, String?]? + + attr_accessor reference_id: String? + + def initialize: ( + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::cadence, + item_id: String, + name: String, + tiered_with_proration_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig, + ?billable_metric_id: String?, + ?billed_in_advance: bool?, + ?billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?conversion_rate: Float?, + ?conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::conversion_rate_config?, + ?currency: String?, + ?dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + ?external_price_id: String?, + ?fixed_price_quantity: Float?, + ?invoice_grouping_key: String?, + ?invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + ?metadata: ::Hash[Symbol, String?]?, + ?reference_id: String?, + ?model_type: :tiered_with_proration + ) -> void + + def to_hash: -> { + cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::cadence, + item_id: String, + model_type: :tiered_with_proration, + name: String, + tiered_with_proration_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig, + billable_metric_id: String?, + billed_in_advance: bool?, + billing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + conversion_rate: Float?, + conversion_rate_config: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::conversion_rate_config?, + currency: String?, + dimensional_price_configuration: Orb::NewDimensionalPriceConfiguration?, + external_price_id: String?, + fixed_price_quantity: Float?, + invoice_grouping_key: String?, + invoicing_cycle_configuration: Orb::NewBillingCycleConfiguration?, + metadata: ::Hash[Symbol, String?]?, + reference_id: String? + } + + type cadence = + :annual + | :semi_annual + | :monthly + | :quarterly + | :one_time + | :custom + + module Cadence + extend Orb::Internal::Type::Enum + + ANNUAL: :annual + SEMI_ANNUAL: :semi_annual + MONTHLY: :monthly + QUARTERLY: :quarterly + ONE_TIME: :one_time + CUSTOM: :custom + + def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::cadence] + end + + type tiered_with_proration_config = + { + tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] + } + + class TieredWithProrationConfig < Orb::Internal::Type::BaseModel + attr_accessor tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] + + def initialize: ( + tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] + ) -> void + + def to_hash: -> { + tiers: ::Array[Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::TieredWithProration::TieredWithProrationConfig::Tier] + } + + type tier = { tier_lower_bound: String, unit_amount: String } + + class Tier < Orb::Internal::Type::BaseModel + attr_accessor tier_lower_bound: String + + attr_accessor unit_amount: String + + def initialize: ( + tier_lower_bound: String, + unit_amount: String + ) -> void + + def to_hash: -> { + tier_lower_bound: String, + unit_amount: String + } + end + end + end + type grouped_with_min_max_thresholds = { cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, model_type: :grouped_with_min_max_thresholds, name: String, @@ -611,7 +959,7 @@ module Orb class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel attr_accessor cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence - attr_accessor grouped_with_min_max_thresholds_config: ::Hash[Symbol, top] + attr_accessor grouped_with_min_max_thresholds_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig attr_accessor item_id: String @@ -647,7 +995,7 @@ module Orb def initialize: ( cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, name: String, ?billable_metric_id: String?, @@ -668,7 +1016,7 @@ module Orb def to_hash: -> { cadence: Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence, - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + grouped_with_min_max_thresholds_config: Orb::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, item_id: String, model_type: :grouped_with_min_max_thresholds, name: String, @@ -707,6 +1055,38 @@ module Orb def self?.values: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::Price::GroupedWithMinMaxThresholds::cadence] end + + type grouped_with_min_max_thresholds_config = + { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + + class GroupedWithMinMaxThresholdsConfig < Orb::Internal::Type::BaseModel + attr_accessor grouping_key: String + + attr_accessor maximum_charge: String + + attr_accessor minimum_charge: String + + attr_accessor per_unit_rate: String + + def initialize: ( + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + ) -> void + + def to_hash: -> { + grouping_key: String, + maximum_charge: String, + minimum_charge: String, + per_unit_rate: String + } + end end def self?.variants: -> ::Array[Orb::Models::SubscriptionSchedulePlanChangeParams::ReplacePrice::price] diff --git a/sig/orb/models/tier_config.rbs b/sig/orb/models/tier_config.rbs deleted file mode 100644 index 3e66a83b..00000000 --- a/sig/orb/models/tier_config.rbs +++ /dev/null @@ -1,26 +0,0 @@ -module Orb - module Models - type tier_config = - { first_unit: Float, last_unit: Float?, unit_amount: String } - - class TierConfig < Orb::Internal::Type::BaseModel - attr_accessor first_unit: Float - - attr_accessor last_unit: Float? - - attr_accessor unit_amount: String - - def initialize: ( - first_unit: Float, - last_unit: Float?, - unit_amount: String - ) -> void - - def to_hash: -> { - first_unit: Float, - last_unit: Float?, - unit_amount: String - } - end - end -end diff --git a/sig/orb/models/tier_sub_line_item.rbs b/sig/orb/models/tier_sub_line_item.rbs index ae520a6a..05efcf57 100644 --- a/sig/orb/models/tier_sub_line_item.rbs +++ b/sig/orb/models/tier_sub_line_item.rbs @@ -6,7 +6,7 @@ module Orb grouping: Orb::SubLineItemGrouping?, name: String, quantity: Float, - tier_config: Orb::TierConfig, + tier_config: Orb::TierSubLineItem::TierConfig, type: Orb::Models::TierSubLineItem::type_ } @@ -19,7 +19,7 @@ module Orb attr_accessor quantity: Float - attr_accessor tier_config: Orb::TierConfig + attr_accessor tier_config: Orb::TierSubLineItem::TierConfig attr_accessor type: Orb::Models::TierSubLineItem::type_ @@ -28,7 +28,7 @@ module Orb grouping: Orb::SubLineItemGrouping?, name: String, quantity: Float, - tier_config: Orb::TierConfig, + tier_config: Orb::TierSubLineItem::TierConfig, type: Orb::Models::TierSubLineItem::type_ ) -> void @@ -37,10 +37,33 @@ module Orb grouping: Orb::SubLineItemGrouping?, name: String, quantity: Float, - tier_config: Orb::TierConfig, + tier_config: Orb::TierSubLineItem::TierConfig, type: Orb::Models::TierSubLineItem::type_ } + type tier_config = + { first_unit: Float, last_unit: Float?, unit_amount: String } + + class TierConfig < Orb::Internal::Type::BaseModel + attr_accessor first_unit: Float + + attr_accessor last_unit: Float? + + attr_accessor unit_amount: String + + def initialize: ( + first_unit: Float, + last_unit: Float?, + unit_amount: String + ) -> void + + def to_hash: -> { + first_unit: Float, + last_unit: Float?, + unit_amount: String + } + end + type type_ = :tier module Type diff --git a/sig/orb/models/unit_config.rbs b/sig/orb/models/unit_config.rbs index 52367a99..e2a6e9b7 100644 --- a/sig/orb/models/unit_config.rbs +++ b/sig/orb/models/unit_config.rbs @@ -1,13 +1,15 @@ module Orb module Models - type unit_config = { unit_amount: String } + type unit_config = { unit_amount: String, scaling_factor: Float? } class UnitConfig < Orb::Internal::Type::BaseModel attr_accessor unit_amount: String - def initialize: (unit_amount: String) -> void + attr_accessor scaling_factor: Float? - def to_hash: -> { unit_amount: String } + def initialize: (unit_amount: String, ?scaling_factor: Float?) -> void + + def to_hash: -> { unit_amount: String, scaling_factor: Float? } end end end diff --git a/sig/orb/resources/prices.rbs b/sig/orb/resources/prices.rbs index 34d242a8..9db5ce33 100644 --- a/sig/orb/resources/prices.rbs +++ b/sig/orb/resources/prices.rbs @@ -10,31 +10,31 @@ module Orb model_type: Orb::Models::PriceCreateParams::model_type, name: String, unit_config: Orb::UnitConfig, + tiered_config: Orb::TieredConfig, + bulk_config: Orb::BulkConfig, package_config: Orb::PackageConfig, matrix_config: Orb::MatrixConfig, + threshold_total_amount_config: Orb::PriceCreateParams::ThresholdTotalAmountConfig, + tiered_package_config: Orb::PriceCreateParams::TieredPackageConfig, + tiered_with_minimum_config: Orb::PriceCreateParams::TieredWithMinimumConfig, + grouped_tiered_config: Orb::PriceCreateParams::GroupedTieredConfig, + tiered_package_with_minimum_config: Orb::PriceCreateParams::TieredPackageWithMinimumConfig, + package_with_allocation_config: Orb::PriceCreateParams::PackageWithAllocationConfig, + unit_with_percent_config: Orb::PriceCreateParams::UnitWithPercentConfig, matrix_with_allocation_config: Orb::MatrixWithAllocationConfig, - tiered_config: Orb::TieredConfig, - bulk_config: Orb::BulkConfig, - threshold_total_amount_config: ::Hash[Symbol, top], - tiered_package_config: ::Hash[Symbol, top], - grouped_tiered_config: ::Hash[Symbol, top], - max_group_tiered_package_config: ::Hash[Symbol, top], - tiered_with_minimum_config: ::Hash[Symbol, top], - package_with_allocation_config: ::Hash[Symbol, top], - tiered_package_with_minimum_config: ::Hash[Symbol, top], - unit_with_percent_config: ::Hash[Symbol, top], - tiered_with_proration_config: ::Hash[Symbol, top], - unit_with_proration_config: ::Hash[Symbol, top], - grouped_allocation_config: ::Hash[Symbol, top], - grouped_with_prorated_minimum_config: ::Hash[Symbol, top], - grouped_with_metered_minimum_config: ::Hash[Symbol, top], - matrix_with_display_name_config: ::Hash[Symbol, top], - bulk_with_proration_config: ::Hash[Symbol, top], - grouped_tiered_package_config: ::Hash[Symbol, top], - scalable_matrix_with_unit_pricing_config: ::Hash[Symbol, top], - scalable_matrix_with_tiered_pricing_config: ::Hash[Symbol, top], - cumulative_grouped_bulk_config: ::Hash[Symbol, top], - grouped_with_min_max_thresholds_config: ::Hash[Symbol, top], + tiered_with_proration_config: Orb::PriceCreateParams::TieredWithProrationConfig, + unit_with_proration_config: Orb::PriceCreateParams::UnitWithProrationConfig, + grouped_allocation_config: Orb::PriceCreateParams::GroupedAllocationConfig, + bulk_with_proration_config: Orb::PriceCreateParams::BulkWithProrationConfig, + grouped_with_prorated_minimum_config: Orb::PriceCreateParams::GroupedWithProratedMinimumConfig, + grouped_with_metered_minimum_config: Orb::PriceCreateParams::GroupedWithMeteredMinimumConfig, + grouped_with_min_max_thresholds_config: Orb::PriceCreateParams::GroupedWithMinMaxThresholdsConfig, + matrix_with_display_name_config: Orb::PriceCreateParams::MatrixWithDisplayNameConfig, + grouped_tiered_package_config: Orb::PriceCreateParams::GroupedTieredPackageConfig, + max_group_tiered_package_config: Orb::PriceCreateParams::MaxGroupTieredPackageConfig, + scalable_matrix_with_unit_pricing_config: Orb::PriceCreateParams::ScalableMatrixWithUnitPricingConfig, + scalable_matrix_with_tiered_pricing_config: Orb::PriceCreateParams::ScalableMatrixWithTieredPricingConfig, + cumulative_grouped_bulk_config: Orb::PriceCreateParams::CumulativeGroupedBulkConfig, minimum_config: Orb::PriceCreateParams::MinimumConfig, ?billable_metric_id: String?, ?billed_in_advance: bool?, diff --git a/test/orb/resources/prices/external_price_id_test.rb b/test/orb/resources/prices/external_price_id_test.rb index b020f92e..af25cf80 100644 --- a/test/orb/resources/prices/external_price_id_test.rb +++ b/test/orb/resources/prices/external_price_id_test.rb @@ -13,14 +13,14 @@ def test_update assert_pattern do case response in Orb::Price::Unit - in Orb::Price::Package - in Orb::Price::Matrix in Orb::Price::Tiered in Orb::Price::Bulk + in Orb::Price::Package + in Orb::Price::Matrix in Orb::Price::ThresholdTotalAmount in Orb::Price::TieredPackage - in Orb::Price::GroupedTiered in Orb::Price::TieredWithMinimum + in Orb::Price::GroupedTiered in Orb::Price::TieredPackageWithMinimum in Orb::Price::PackageWithAllocation in Orb::Price::UnitWithPercent @@ -28,16 +28,16 @@ def test_update in Orb::Price::TieredWithProration in Orb::Price::UnitWithProration in Orb::Price::GroupedAllocation + in Orb::Price::BulkWithProration in Orb::Price::GroupedWithProratedMinimum in Orb::Price::GroupedWithMeteredMinimum + in Orb::Price::GroupedWithMinMaxThresholds in Orb::Price::MatrixWithDisplayName - in Orb::Price::BulkWithProration in Orb::Price::GroupedTieredPackage in Orb::Price::MaxGroupTieredPackage in Orb::Price::ScalableMatrixWithUnitPricing in Orb::Price::ScalableMatrixWithTieredPricing in Orb::Price::CumulativeGroupedBulk - in Orb::Price::GroupedWithMinMaxThresholds in Orb::Price::Minimum end end @@ -74,14 +74,14 @@ def test_update dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :package, + model_type: :tiered, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::Package::Cadence, + cadence: Orb::Price::Tiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Package::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Tiered::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -96,21 +96,22 @@ def test_update minimum: Orb::Minimum | nil, minimum_amount: String | nil, name: String, - package_config: Orb::PackageConfig, plan_phase_order: Integer | nil, - price_type: Orb::Price::Package::PriceType, + price_type: Orb::Price::Tiered::PriceType, replaces_price_id: String | nil, + tiered_config: Orb::TieredConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :matrix, + model_type: :bulk, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::Matrix::Cadence, + bulk_config: Orb::BulkConfig, + cadence: Orb::Price::Bulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Matrix::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Bulk::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -119,7 +120,6 @@ def test_update fixed_price_quantity: Float | nil, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, - matrix_config: Orb::MatrixConfig, maximum: Orb::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -127,19 +127,19 @@ def test_update minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::Matrix::PriceType, + price_type: Orb::Price::Bulk::PriceType, replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :tiered, + model_type: :package, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::Tiered::Cadence, + cadence: Orb::Price::Package::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Tiered::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Package::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -154,22 +154,21 @@ def test_update minimum: Orb::Minimum | nil, minimum_amount: String | nil, name: String, + package_config: Orb::PackageConfig, plan_phase_order: Integer | nil, - price_type: Orb::Price::Tiered::PriceType, + price_type: Orb::Price::Package::PriceType, replaces_price_id: String | nil, - tiered_config: Orb::TieredConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :bulk, + model_type: :matrix, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - bulk_config: Orb::BulkConfig, - cadence: Orb::Price::Bulk::Cadence, + cadence: Orb::Price::Matrix::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Bulk::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Matrix::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -178,6 +177,7 @@ def test_update fixed_price_quantity: Float | nil, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, + matrix_config: Orb::MatrixConfig, maximum: Orb::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -185,7 +185,7 @@ def test_update minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::Bulk::PriceType, + price_type: Orb::Price::Matrix::PriceType, replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } @@ -215,7 +215,7 @@ def test_update plan_phase_order: Integer | nil, price_type: Orb::Price::ThresholdTotalAmount::PriceType, replaces_price_id: String | nil, - threshold_total_amount_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + threshold_total_amount_config: Orb::Price::ThresholdTotalAmount::ThresholdTotalAmountConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -244,25 +244,24 @@ def test_update plan_phase_order: Integer | nil, price_type: Orb::Price::TieredPackage::PriceType, replaces_price_id: String | nil, - tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + tiered_package_config: Orb::Price::TieredPackage::TieredPackageConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :grouped_tiered, + model_type: :tiered_with_minimum, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::GroupedTiered::Cadence, + cadence: Orb::Price::TieredWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTiered::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredWithMinimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - grouped_tiered_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -272,25 +271,27 @@ def test_update minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::GroupedTiered::PriceType, + price_type: Orb::Price::TieredWithMinimum::PriceType, replaces_price_id: String | nil, + tiered_with_minimum_config: Orb::Price::TieredWithMinimum::TieredWithMinimumConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :tiered_with_minimum, + model_type: :grouped_tiered, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::TieredWithMinimum::Cadence, + cadence: Orb::Price::GroupedTiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithMinimum::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedTiered::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, + grouped_tiered_config: Orb::Price::GroupedTiered::GroupedTieredConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -300,9 +301,8 @@ def test_update minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::TieredWithMinimum::PriceType, + price_type: Orb::Price::GroupedTiered::PriceType, replaces_price_id: String | nil, - tiered_with_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -331,7 +331,7 @@ def test_update plan_phase_order: Integer | nil, price_type: Orb::Price::TieredPackageWithMinimum::PriceType, replaces_price_id: String | nil, - tiered_package_with_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + tiered_package_with_minimum_config: Orb::Price::TieredPackageWithMinimum::TieredPackageWithMinimumConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -357,7 +357,7 @@ def test_update minimum: Orb::Minimum | nil, minimum_amount: String | nil, name: String, - package_with_allocation_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + package_with_allocation_config: Orb::Price::PackageWithAllocation::PackageWithAllocationConfig, plan_phase_order: Integer | nil, price_type: Orb::Price::PackageWithAllocation::PriceType, replaces_price_id: String | nil, @@ -389,7 +389,7 @@ def test_update plan_phase_order: Integer | nil, price_type: Orb::Price::UnitWithPercent::PriceType, replaces_price_id: String | nil, - unit_with_percent_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + unit_with_percent_config: Orb::Price::UnitWithPercent::UnitWithPercentConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -447,7 +447,7 @@ def test_update plan_phase_order: Integer | nil, price_type: Orb::Price::TieredWithProration::PriceType, replaces_price_id: String | nil, - tiered_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + tiered_with_proration_config: Orb::Price::TieredWithProration::TieredWithProrationConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -476,7 +476,7 @@ def test_update plan_phase_order: Integer | nil, price_type: Orb::Price::UnitWithProration::PriceType, replaces_price_id: String | nil, - unit_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + unit_with_proration_config: Orb::Price::UnitWithProration::UnitWithProrationConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -494,7 +494,7 @@ def test_update discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - grouped_allocation_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + grouped_allocation_config: Orb::Price::GroupedAllocation::GroupedAllocationConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -508,6 +508,35 @@ def test_update replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } + in { + model_type: :bulk_with_proration, + id: String, + billable_metric: Orb::BillableMetricTiny | nil, + billing_cycle_configuration: Orb::BillingCycleConfiguration, + bulk_with_proration_config: Orb::Price::BulkWithProration::BulkWithProrationConfig, + cadence: Orb::Price::BulkWithProration::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, + conversion_rate: Float | nil, + conversion_rate_config: Orb::Price::BulkWithProration::ConversionRateConfig | nil, + created_at: Time, + credit_allocation: Orb::Allocation | nil, + currency: String, + discount: Orb::Discount | nil, + external_price_id: String | nil, + fixed_price_quantity: Float | nil, + invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, + item: Orb::ItemSlim, + maximum: Orb::Maximum | nil, + maximum_amount: String | nil, + metadata: ^(Orb::Internal::Type::HashOf[String]), + minimum: Orb::Minimum | nil, + minimum_amount: String | nil, + name: String, + plan_phase_order: Integer | nil, + price_type: Orb::Price::BulkWithProration::PriceType, + replaces_price_id: String | nil, + dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil + } in { model_type: :grouped_with_prorated_minimum, id: String, @@ -523,7 +552,7 @@ def test_update discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - grouped_with_prorated_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + grouped_with_prorated_minimum_config: Orb::Price::GroupedWithProratedMinimum::GroupedWithProratedMinimumConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -552,7 +581,7 @@ def test_update discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - grouped_with_metered_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + grouped_with_metered_minimum_config: Orb::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -567,23 +596,23 @@ def test_update dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :matrix_with_display_name, + model_type: :grouped_with_min_max_thresholds, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::MatrixWithDisplayName::Cadence, + cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithDisplayName::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, + grouped_with_min_max_thresholds_config: Orb::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, - matrix_with_display_name_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), maximum: Orb::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -591,20 +620,19 @@ def test_update minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::MatrixWithDisplayName::PriceType, + price_type: Orb::Price::GroupedWithMinMaxThresholds::PriceType, replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :bulk_with_proration, + model_type: :matrix_with_display_name, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - bulk_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - cadence: Orb::Price::BulkWithProration::Cadence, + cadence: Orb::Price::MatrixWithDisplayName::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkWithProration::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::MatrixWithDisplayName::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -613,6 +641,7 @@ def test_update fixed_price_quantity: Float | nil, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, + matrix_with_display_name_config: Orb::Price::MatrixWithDisplayName::MatrixWithDisplayNameConfig, maximum: Orb::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -620,7 +649,7 @@ def test_update minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::BulkWithProration::PriceType, + price_type: Orb::Price::MatrixWithDisplayName::PriceType, replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } @@ -639,7 +668,7 @@ def test_update discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - grouped_tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + grouped_tiered_package_config: Orb::Price::GroupedTieredPackage::GroupedTieredPackageConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -670,7 +699,7 @@ def test_update fixed_price_quantity: Float | nil, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, - max_group_tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + max_group_tiered_package_config: Orb::Price::MaxGroupTieredPackage::MaxGroupTieredPackageConfig, maximum: Orb::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -708,7 +737,7 @@ def test_update plan_phase_order: Integer | nil, price_type: Orb::Price::ScalableMatrixWithUnitPricing::PriceType, replaces_price_id: String | nil, - scalable_matrix_with_unit_pricing_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + scalable_matrix_with_unit_pricing_config: Orb::Price::ScalableMatrixWithUnitPricing::ScalableMatrixWithUnitPricingConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -737,7 +766,7 @@ def test_update plan_phase_order: Integer | nil, price_type: Orb::Price::ScalableMatrixWithTieredPricing::PriceType, replaces_price_id: String | nil, - scalable_matrix_with_tiered_pricing_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + scalable_matrix_with_tiered_pricing_config: Orb::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -751,7 +780,7 @@ def test_update conversion_rate_config: Orb::Price::CumulativeGroupedBulk::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, - cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + cumulative_grouped_bulk_config: Orb::Price::CumulativeGroupedBulk::CumulativeGroupedBulkConfig, currency: String, discount: Orb::Discount | nil, external_price_id: String | nil, @@ -769,35 +798,6 @@ def test_update replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } - in { - model_type: :grouped_with_min_max_thresholds, - id: String, - billable_metric: Orb::BillableMetricTiny | nil, - billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, - composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, - conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig | nil, - created_at: Time, - credit_allocation: Orb::Allocation | nil, - currency: String, - discount: Orb::Discount | nil, - external_price_id: String | nil, - fixed_price_quantity: Float | nil, - grouped_with_min_max_thresholds_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, - item: Orb::ItemSlim, - maximum: Orb::Maximum | nil, - maximum_amount: String | nil, - metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Minimum | nil, - minimum_amount: String | nil, - name: String, - plan_phase_order: Integer | nil, - price_type: Orb::Price::GroupedWithMinMaxThresholds::PriceType, - replaces_price_id: String | nil, - dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil - } in { model_type: :minimum, id: String, @@ -841,14 +841,14 @@ def test_fetch assert_pattern do case response in Orb::Price::Unit - in Orb::Price::Package - in Orb::Price::Matrix in Orb::Price::Tiered in Orb::Price::Bulk + in Orb::Price::Package + in Orb::Price::Matrix in Orb::Price::ThresholdTotalAmount in Orb::Price::TieredPackage - in Orb::Price::GroupedTiered in Orb::Price::TieredWithMinimum + in Orb::Price::GroupedTiered in Orb::Price::TieredPackageWithMinimum in Orb::Price::PackageWithAllocation in Orb::Price::UnitWithPercent @@ -856,16 +856,16 @@ def test_fetch in Orb::Price::TieredWithProration in Orb::Price::UnitWithProration in Orb::Price::GroupedAllocation + in Orb::Price::BulkWithProration in Orb::Price::GroupedWithProratedMinimum in Orb::Price::GroupedWithMeteredMinimum + in Orb::Price::GroupedWithMinMaxThresholds in Orb::Price::MatrixWithDisplayName - in Orb::Price::BulkWithProration in Orb::Price::GroupedTieredPackage in Orb::Price::MaxGroupTieredPackage in Orb::Price::ScalableMatrixWithUnitPricing in Orb::Price::ScalableMatrixWithTieredPricing in Orb::Price::CumulativeGroupedBulk - in Orb::Price::GroupedWithMinMaxThresholds in Orb::Price::Minimum end end @@ -902,14 +902,14 @@ def test_fetch dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :package, + model_type: :tiered, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::Package::Cadence, + cadence: Orb::Price::Tiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Package::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Tiered::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -924,21 +924,22 @@ def test_fetch minimum: Orb::Minimum | nil, minimum_amount: String | nil, name: String, - package_config: Orb::PackageConfig, plan_phase_order: Integer | nil, - price_type: Orb::Price::Package::PriceType, + price_type: Orb::Price::Tiered::PriceType, replaces_price_id: String | nil, + tiered_config: Orb::TieredConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :matrix, + model_type: :bulk, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::Matrix::Cadence, + bulk_config: Orb::BulkConfig, + cadence: Orb::Price::Bulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Matrix::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Bulk::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -947,7 +948,6 @@ def test_fetch fixed_price_quantity: Float | nil, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, - matrix_config: Orb::MatrixConfig, maximum: Orb::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -955,19 +955,19 @@ def test_fetch minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::Matrix::PriceType, + price_type: Orb::Price::Bulk::PriceType, replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :tiered, + model_type: :package, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::Tiered::Cadence, + cadence: Orb::Price::Package::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Tiered::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Package::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -982,22 +982,21 @@ def test_fetch minimum: Orb::Minimum | nil, minimum_amount: String | nil, name: String, + package_config: Orb::PackageConfig, plan_phase_order: Integer | nil, - price_type: Orb::Price::Tiered::PriceType, + price_type: Orb::Price::Package::PriceType, replaces_price_id: String | nil, - tiered_config: Orb::TieredConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :bulk, + model_type: :matrix, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - bulk_config: Orb::BulkConfig, - cadence: Orb::Price::Bulk::Cadence, + cadence: Orb::Price::Matrix::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Bulk::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Matrix::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1006,6 +1005,7 @@ def test_fetch fixed_price_quantity: Float | nil, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, + matrix_config: Orb::MatrixConfig, maximum: Orb::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -1013,7 +1013,7 @@ def test_fetch minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::Bulk::PriceType, + price_type: Orb::Price::Matrix::PriceType, replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } @@ -1043,7 +1043,7 @@ def test_fetch plan_phase_order: Integer | nil, price_type: Orb::Price::ThresholdTotalAmount::PriceType, replaces_price_id: String | nil, - threshold_total_amount_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + threshold_total_amount_config: Orb::Price::ThresholdTotalAmount::ThresholdTotalAmountConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -1072,25 +1072,24 @@ def test_fetch plan_phase_order: Integer | nil, price_type: Orb::Price::TieredPackage::PriceType, replaces_price_id: String | nil, - tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + tiered_package_config: Orb::Price::TieredPackage::TieredPackageConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :grouped_tiered, + model_type: :tiered_with_minimum, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::GroupedTiered::Cadence, + cadence: Orb::Price::TieredWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTiered::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredWithMinimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - grouped_tiered_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -1100,25 +1099,27 @@ def test_fetch minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::GroupedTiered::PriceType, + price_type: Orb::Price::TieredWithMinimum::PriceType, replaces_price_id: String | nil, + tiered_with_minimum_config: Orb::Price::TieredWithMinimum::TieredWithMinimumConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :tiered_with_minimum, + model_type: :grouped_tiered, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::TieredWithMinimum::Cadence, + cadence: Orb::Price::GroupedTiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithMinimum::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedTiered::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, + grouped_tiered_config: Orb::Price::GroupedTiered::GroupedTieredConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -1128,9 +1129,8 @@ def test_fetch minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::TieredWithMinimum::PriceType, + price_type: Orb::Price::GroupedTiered::PriceType, replaces_price_id: String | nil, - tiered_with_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -1159,7 +1159,7 @@ def test_fetch plan_phase_order: Integer | nil, price_type: Orb::Price::TieredPackageWithMinimum::PriceType, replaces_price_id: String | nil, - tiered_package_with_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + tiered_package_with_minimum_config: Orb::Price::TieredPackageWithMinimum::TieredPackageWithMinimumConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -1185,7 +1185,7 @@ def test_fetch minimum: Orb::Minimum | nil, minimum_amount: String | nil, name: String, - package_with_allocation_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + package_with_allocation_config: Orb::Price::PackageWithAllocation::PackageWithAllocationConfig, plan_phase_order: Integer | nil, price_type: Orb::Price::PackageWithAllocation::PriceType, replaces_price_id: String | nil, @@ -1217,7 +1217,7 @@ def test_fetch plan_phase_order: Integer | nil, price_type: Orb::Price::UnitWithPercent::PriceType, replaces_price_id: String | nil, - unit_with_percent_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + unit_with_percent_config: Orb::Price::UnitWithPercent::UnitWithPercentConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -1275,7 +1275,7 @@ def test_fetch plan_phase_order: Integer | nil, price_type: Orb::Price::TieredWithProration::PriceType, replaces_price_id: String | nil, - tiered_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + tiered_with_proration_config: Orb::Price::TieredWithProration::TieredWithProrationConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -1304,7 +1304,7 @@ def test_fetch plan_phase_order: Integer | nil, price_type: Orb::Price::UnitWithProration::PriceType, replaces_price_id: String | nil, - unit_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + unit_with_proration_config: Orb::Price::UnitWithProration::UnitWithProrationConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -1322,7 +1322,7 @@ def test_fetch discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - grouped_allocation_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + grouped_allocation_config: Orb::Price::GroupedAllocation::GroupedAllocationConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -1336,6 +1336,35 @@ def test_fetch replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } + in { + model_type: :bulk_with_proration, + id: String, + billable_metric: Orb::BillableMetricTiny | nil, + billing_cycle_configuration: Orb::BillingCycleConfiguration, + bulk_with_proration_config: Orb::Price::BulkWithProration::BulkWithProrationConfig, + cadence: Orb::Price::BulkWithProration::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, + conversion_rate: Float | nil, + conversion_rate_config: Orb::Price::BulkWithProration::ConversionRateConfig | nil, + created_at: Time, + credit_allocation: Orb::Allocation | nil, + currency: String, + discount: Orb::Discount | nil, + external_price_id: String | nil, + fixed_price_quantity: Float | nil, + invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, + item: Orb::ItemSlim, + maximum: Orb::Maximum | nil, + maximum_amount: String | nil, + metadata: ^(Orb::Internal::Type::HashOf[String]), + minimum: Orb::Minimum | nil, + minimum_amount: String | nil, + name: String, + plan_phase_order: Integer | nil, + price_type: Orb::Price::BulkWithProration::PriceType, + replaces_price_id: String | nil, + dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil + } in { model_type: :grouped_with_prorated_minimum, id: String, @@ -1351,7 +1380,7 @@ def test_fetch discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - grouped_with_prorated_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + grouped_with_prorated_minimum_config: Orb::Price::GroupedWithProratedMinimum::GroupedWithProratedMinimumConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -1380,7 +1409,7 @@ def test_fetch discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - grouped_with_metered_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + grouped_with_metered_minimum_config: Orb::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -1395,23 +1424,23 @@ def test_fetch dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :matrix_with_display_name, + model_type: :grouped_with_min_max_thresholds, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::MatrixWithDisplayName::Cadence, + cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithDisplayName::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, + grouped_with_min_max_thresholds_config: Orb::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, - matrix_with_display_name_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), maximum: Orb::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -1419,20 +1448,19 @@ def test_fetch minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::MatrixWithDisplayName::PriceType, + price_type: Orb::Price::GroupedWithMinMaxThresholds::PriceType, replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :bulk_with_proration, + model_type: :matrix_with_display_name, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - bulk_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - cadence: Orb::Price::BulkWithProration::Cadence, + cadence: Orb::Price::MatrixWithDisplayName::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkWithProration::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::MatrixWithDisplayName::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1441,6 +1469,7 @@ def test_fetch fixed_price_quantity: Float | nil, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, + matrix_with_display_name_config: Orb::Price::MatrixWithDisplayName::MatrixWithDisplayNameConfig, maximum: Orb::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -1448,7 +1477,7 @@ def test_fetch minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::BulkWithProration::PriceType, + price_type: Orb::Price::MatrixWithDisplayName::PriceType, replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } @@ -1467,7 +1496,7 @@ def test_fetch discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - grouped_tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + grouped_tiered_package_config: Orb::Price::GroupedTieredPackage::GroupedTieredPackageConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -1498,7 +1527,7 @@ def test_fetch fixed_price_quantity: Float | nil, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, - max_group_tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + max_group_tiered_package_config: Orb::Price::MaxGroupTieredPackage::MaxGroupTieredPackageConfig, maximum: Orb::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -1536,7 +1565,7 @@ def test_fetch plan_phase_order: Integer | nil, price_type: Orb::Price::ScalableMatrixWithUnitPricing::PriceType, replaces_price_id: String | nil, - scalable_matrix_with_unit_pricing_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + scalable_matrix_with_unit_pricing_config: Orb::Price::ScalableMatrixWithUnitPricing::ScalableMatrixWithUnitPricingConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -1565,7 +1594,7 @@ def test_fetch plan_phase_order: Integer | nil, price_type: Orb::Price::ScalableMatrixWithTieredPricing::PriceType, replaces_price_id: String | nil, - scalable_matrix_with_tiered_pricing_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + scalable_matrix_with_tiered_pricing_config: Orb::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -1579,7 +1608,7 @@ def test_fetch conversion_rate_config: Orb::Price::CumulativeGroupedBulk::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, - cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + cumulative_grouped_bulk_config: Orb::Price::CumulativeGroupedBulk::CumulativeGroupedBulkConfig, currency: String, discount: Orb::Discount | nil, external_price_id: String | nil, @@ -1597,35 +1626,6 @@ def test_fetch replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } - in { - model_type: :grouped_with_min_max_thresholds, - id: String, - billable_metric: Orb::BillableMetricTiny | nil, - billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, - composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, - conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig | nil, - created_at: Time, - credit_allocation: Orb::Allocation | nil, - currency: String, - discount: Orb::Discount | nil, - external_price_id: String | nil, - fixed_price_quantity: Float | nil, - grouped_with_min_max_thresholds_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, - item: Orb::ItemSlim, - maximum: Orb::Maximum | nil, - maximum_amount: String | nil, - metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Minimum | nil, - minimum_amount: String | nil, - name: String, - plan_phase_order: Integer | nil, - price_type: Orb::Price::GroupedWithMinMaxThresholds::PriceType, - replaces_price_id: String | nil, - dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil - } in { model_type: :minimum, id: String, diff --git a/test/orb/resources/prices_test.rb b/test/orb/resources/prices_test.rb index bbcd0069..707ef8a7 100644 --- a/test/orb/resources/prices_test.rb +++ b/test/orb/resources/prices_test.rb @@ -21,14 +21,14 @@ def test_create_required_params assert_pattern do case response in Orb::Price::Unit - in Orb::Price::Package - in Orb::Price::Matrix in Orb::Price::Tiered in Orb::Price::Bulk + in Orb::Price::Package + in Orb::Price::Matrix in Orb::Price::ThresholdTotalAmount in Orb::Price::TieredPackage - in Orb::Price::GroupedTiered in Orb::Price::TieredWithMinimum + in Orb::Price::GroupedTiered in Orb::Price::TieredPackageWithMinimum in Orb::Price::PackageWithAllocation in Orb::Price::UnitWithPercent @@ -36,16 +36,16 @@ def test_create_required_params in Orb::Price::TieredWithProration in Orb::Price::UnitWithProration in Orb::Price::GroupedAllocation + in Orb::Price::BulkWithProration in Orb::Price::GroupedWithProratedMinimum in Orb::Price::GroupedWithMeteredMinimum + in Orb::Price::GroupedWithMinMaxThresholds in Orb::Price::MatrixWithDisplayName - in Orb::Price::BulkWithProration in Orb::Price::GroupedTieredPackage in Orb::Price::MaxGroupTieredPackage in Orb::Price::ScalableMatrixWithUnitPricing in Orb::Price::ScalableMatrixWithTieredPricing in Orb::Price::CumulativeGroupedBulk - in Orb::Price::GroupedWithMinMaxThresholds in Orb::Price::Minimum end end @@ -82,14 +82,14 @@ def test_create_required_params dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :package, + model_type: :tiered, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::Package::Cadence, + cadence: Orb::Price::Tiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Package::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Tiered::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -104,21 +104,22 @@ def test_create_required_params minimum: Orb::Minimum | nil, minimum_amount: String | nil, name: String, - package_config: Orb::PackageConfig, plan_phase_order: Integer | nil, - price_type: Orb::Price::Package::PriceType, + price_type: Orb::Price::Tiered::PriceType, replaces_price_id: String | nil, + tiered_config: Orb::TieredConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :matrix, + model_type: :bulk, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::Matrix::Cadence, + bulk_config: Orb::BulkConfig, + cadence: Orb::Price::Bulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Matrix::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Bulk::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -127,7 +128,6 @@ def test_create_required_params fixed_price_quantity: Float | nil, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, - matrix_config: Orb::MatrixConfig, maximum: Orb::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -135,19 +135,19 @@ def test_create_required_params minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::Matrix::PriceType, + price_type: Orb::Price::Bulk::PriceType, replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :tiered, + model_type: :package, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::Tiered::Cadence, + cadence: Orb::Price::Package::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Tiered::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Package::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -162,22 +162,21 @@ def test_create_required_params minimum: Orb::Minimum | nil, minimum_amount: String | nil, name: String, + package_config: Orb::PackageConfig, plan_phase_order: Integer | nil, - price_type: Orb::Price::Tiered::PriceType, + price_type: Orb::Price::Package::PriceType, replaces_price_id: String | nil, - tiered_config: Orb::TieredConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :bulk, + model_type: :matrix, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - bulk_config: Orb::BulkConfig, - cadence: Orb::Price::Bulk::Cadence, + cadence: Orb::Price::Matrix::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Bulk::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Matrix::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -186,6 +185,7 @@ def test_create_required_params fixed_price_quantity: Float | nil, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, + matrix_config: Orb::MatrixConfig, maximum: Orb::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -193,7 +193,7 @@ def test_create_required_params minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::Bulk::PriceType, + price_type: Orb::Price::Matrix::PriceType, replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } @@ -223,7 +223,7 @@ def test_create_required_params plan_phase_order: Integer | nil, price_type: Orb::Price::ThresholdTotalAmount::PriceType, replaces_price_id: String | nil, - threshold_total_amount_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + threshold_total_amount_config: Orb::Price::ThresholdTotalAmount::ThresholdTotalAmountConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -252,25 +252,24 @@ def test_create_required_params plan_phase_order: Integer | nil, price_type: Orb::Price::TieredPackage::PriceType, replaces_price_id: String | nil, - tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + tiered_package_config: Orb::Price::TieredPackage::TieredPackageConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :grouped_tiered, + model_type: :tiered_with_minimum, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::GroupedTiered::Cadence, + cadence: Orb::Price::TieredWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTiered::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredWithMinimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - grouped_tiered_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -280,25 +279,27 @@ def test_create_required_params minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::GroupedTiered::PriceType, + price_type: Orb::Price::TieredWithMinimum::PriceType, replaces_price_id: String | nil, + tiered_with_minimum_config: Orb::Price::TieredWithMinimum::TieredWithMinimumConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :tiered_with_minimum, + model_type: :grouped_tiered, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::TieredWithMinimum::Cadence, + cadence: Orb::Price::GroupedTiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithMinimum::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedTiered::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, + grouped_tiered_config: Orb::Price::GroupedTiered::GroupedTieredConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -308,9 +309,8 @@ def test_create_required_params minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::TieredWithMinimum::PriceType, + price_type: Orb::Price::GroupedTiered::PriceType, replaces_price_id: String | nil, - tiered_with_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -339,7 +339,7 @@ def test_create_required_params plan_phase_order: Integer | nil, price_type: Orb::Price::TieredPackageWithMinimum::PriceType, replaces_price_id: String | nil, - tiered_package_with_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + tiered_package_with_minimum_config: Orb::Price::TieredPackageWithMinimum::TieredPackageWithMinimumConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -365,7 +365,7 @@ def test_create_required_params minimum: Orb::Minimum | nil, minimum_amount: String | nil, name: String, - package_with_allocation_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + package_with_allocation_config: Orb::Price::PackageWithAllocation::PackageWithAllocationConfig, plan_phase_order: Integer | nil, price_type: Orb::Price::PackageWithAllocation::PriceType, replaces_price_id: String | nil, @@ -397,7 +397,7 @@ def test_create_required_params plan_phase_order: Integer | nil, price_type: Orb::Price::UnitWithPercent::PriceType, replaces_price_id: String | nil, - unit_with_percent_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + unit_with_percent_config: Orb::Price::UnitWithPercent::UnitWithPercentConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -455,7 +455,7 @@ def test_create_required_params plan_phase_order: Integer | nil, price_type: Orb::Price::TieredWithProration::PriceType, replaces_price_id: String | nil, - tiered_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + tiered_with_proration_config: Orb::Price::TieredWithProration::TieredWithProrationConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -484,7 +484,7 @@ def test_create_required_params plan_phase_order: Integer | nil, price_type: Orb::Price::UnitWithProration::PriceType, replaces_price_id: String | nil, - unit_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + unit_with_proration_config: Orb::Price::UnitWithProration::UnitWithProrationConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -502,7 +502,7 @@ def test_create_required_params discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - grouped_allocation_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + grouped_allocation_config: Orb::Price::GroupedAllocation::GroupedAllocationConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -516,6 +516,35 @@ def test_create_required_params replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } + in { + model_type: :bulk_with_proration, + id: String, + billable_metric: Orb::BillableMetricTiny | nil, + billing_cycle_configuration: Orb::BillingCycleConfiguration, + bulk_with_proration_config: Orb::Price::BulkWithProration::BulkWithProrationConfig, + cadence: Orb::Price::BulkWithProration::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, + conversion_rate: Float | nil, + conversion_rate_config: Orb::Price::BulkWithProration::ConversionRateConfig | nil, + created_at: Time, + credit_allocation: Orb::Allocation | nil, + currency: String, + discount: Orb::Discount | nil, + external_price_id: String | nil, + fixed_price_quantity: Float | nil, + invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, + item: Orb::ItemSlim, + maximum: Orb::Maximum | nil, + maximum_amount: String | nil, + metadata: ^(Orb::Internal::Type::HashOf[String]), + minimum: Orb::Minimum | nil, + minimum_amount: String | nil, + name: String, + plan_phase_order: Integer | nil, + price_type: Orb::Price::BulkWithProration::PriceType, + replaces_price_id: String | nil, + dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil + } in { model_type: :grouped_with_prorated_minimum, id: String, @@ -531,7 +560,7 @@ def test_create_required_params discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - grouped_with_prorated_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + grouped_with_prorated_minimum_config: Orb::Price::GroupedWithProratedMinimum::GroupedWithProratedMinimumConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -560,7 +589,7 @@ def test_create_required_params discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - grouped_with_metered_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + grouped_with_metered_minimum_config: Orb::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -575,23 +604,23 @@ def test_create_required_params dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :matrix_with_display_name, + model_type: :grouped_with_min_max_thresholds, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::MatrixWithDisplayName::Cadence, + cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithDisplayName::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, + grouped_with_min_max_thresholds_config: Orb::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, - matrix_with_display_name_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), maximum: Orb::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -599,20 +628,19 @@ def test_create_required_params minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::MatrixWithDisplayName::PriceType, + price_type: Orb::Price::GroupedWithMinMaxThresholds::PriceType, replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :bulk_with_proration, + model_type: :matrix_with_display_name, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - bulk_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - cadence: Orb::Price::BulkWithProration::Cadence, + cadence: Orb::Price::MatrixWithDisplayName::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkWithProration::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::MatrixWithDisplayName::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -621,6 +649,7 @@ def test_create_required_params fixed_price_quantity: Float | nil, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, + matrix_with_display_name_config: Orb::Price::MatrixWithDisplayName::MatrixWithDisplayNameConfig, maximum: Orb::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -628,7 +657,7 @@ def test_create_required_params minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::BulkWithProration::PriceType, + price_type: Orb::Price::MatrixWithDisplayName::PriceType, replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } @@ -647,7 +676,7 @@ def test_create_required_params discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - grouped_tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + grouped_tiered_package_config: Orb::Price::GroupedTieredPackage::GroupedTieredPackageConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -678,7 +707,7 @@ def test_create_required_params fixed_price_quantity: Float | nil, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, - max_group_tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + max_group_tiered_package_config: Orb::Price::MaxGroupTieredPackage::MaxGroupTieredPackageConfig, maximum: Orb::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -716,7 +745,7 @@ def test_create_required_params plan_phase_order: Integer | nil, price_type: Orb::Price::ScalableMatrixWithUnitPricing::PriceType, replaces_price_id: String | nil, - scalable_matrix_with_unit_pricing_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + scalable_matrix_with_unit_pricing_config: Orb::Price::ScalableMatrixWithUnitPricing::ScalableMatrixWithUnitPricingConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -745,7 +774,7 @@ def test_create_required_params plan_phase_order: Integer | nil, price_type: Orb::Price::ScalableMatrixWithTieredPricing::PriceType, replaces_price_id: String | nil, - scalable_matrix_with_tiered_pricing_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + scalable_matrix_with_tiered_pricing_config: Orb::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -759,7 +788,7 @@ def test_create_required_params conversion_rate_config: Orb::Price::CumulativeGroupedBulk::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, - cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + cumulative_grouped_bulk_config: Orb::Price::CumulativeGroupedBulk::CumulativeGroupedBulkConfig, currency: String, discount: Orb::Discount | nil, external_price_id: String | nil, @@ -777,35 +806,6 @@ def test_create_required_params replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } - in { - model_type: :grouped_with_min_max_thresholds, - id: String, - billable_metric: Orb::BillableMetricTiny | nil, - billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, - composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, - conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig | nil, - created_at: Time, - credit_allocation: Orb::Allocation | nil, - currency: String, - discount: Orb::Discount | nil, - external_price_id: String | nil, - fixed_price_quantity: Float | nil, - grouped_with_min_max_thresholds_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, - item: Orb::ItemSlim, - maximum: Orb::Maximum | nil, - maximum_amount: String | nil, - metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Minimum | nil, - minimum_amount: String | nil, - name: String, - plan_phase_order: Integer | nil, - price_type: Orb::Price::GroupedWithMinMaxThresholds::PriceType, - replaces_price_id: String | nil, - dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil - } in { model_type: :minimum, id: String, @@ -849,14 +849,14 @@ def test_update assert_pattern do case response in Orb::Price::Unit - in Orb::Price::Package - in Orb::Price::Matrix in Orb::Price::Tiered in Orb::Price::Bulk + in Orb::Price::Package + in Orb::Price::Matrix in Orb::Price::ThresholdTotalAmount in Orb::Price::TieredPackage - in Orb::Price::GroupedTiered in Orb::Price::TieredWithMinimum + in Orb::Price::GroupedTiered in Orb::Price::TieredPackageWithMinimum in Orb::Price::PackageWithAllocation in Orb::Price::UnitWithPercent @@ -864,16 +864,16 @@ def test_update in Orb::Price::TieredWithProration in Orb::Price::UnitWithProration in Orb::Price::GroupedAllocation + in Orb::Price::BulkWithProration in Orb::Price::GroupedWithProratedMinimum in Orb::Price::GroupedWithMeteredMinimum + in Orb::Price::GroupedWithMinMaxThresholds in Orb::Price::MatrixWithDisplayName - in Orb::Price::BulkWithProration in Orb::Price::GroupedTieredPackage in Orb::Price::MaxGroupTieredPackage in Orb::Price::ScalableMatrixWithUnitPricing in Orb::Price::ScalableMatrixWithTieredPricing in Orb::Price::CumulativeGroupedBulk - in Orb::Price::GroupedWithMinMaxThresholds in Orb::Price::Minimum end end @@ -910,14 +910,14 @@ def test_update dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :package, + model_type: :tiered, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::Package::Cadence, + cadence: Orb::Price::Tiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Package::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Tiered::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -932,21 +932,22 @@ def test_update minimum: Orb::Minimum | nil, minimum_amount: String | nil, name: String, - package_config: Orb::PackageConfig, plan_phase_order: Integer | nil, - price_type: Orb::Price::Package::PriceType, + price_type: Orb::Price::Tiered::PriceType, replaces_price_id: String | nil, + tiered_config: Orb::TieredConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :matrix, + model_type: :bulk, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::Matrix::Cadence, + bulk_config: Orb::BulkConfig, + cadence: Orb::Price::Bulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Matrix::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Bulk::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -955,7 +956,6 @@ def test_update fixed_price_quantity: Float | nil, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, - matrix_config: Orb::MatrixConfig, maximum: Orb::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -963,19 +963,19 @@ def test_update minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::Matrix::PriceType, + price_type: Orb::Price::Bulk::PriceType, replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :tiered, + model_type: :package, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::Tiered::Cadence, + cadence: Orb::Price::Package::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Tiered::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Package::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -990,22 +990,21 @@ def test_update minimum: Orb::Minimum | nil, minimum_amount: String | nil, name: String, + package_config: Orb::PackageConfig, plan_phase_order: Integer | nil, - price_type: Orb::Price::Tiered::PriceType, + price_type: Orb::Price::Package::PriceType, replaces_price_id: String | nil, - tiered_config: Orb::TieredConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :bulk, + model_type: :matrix, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - bulk_config: Orb::BulkConfig, - cadence: Orb::Price::Bulk::Cadence, + cadence: Orb::Price::Matrix::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Bulk::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Matrix::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1014,6 +1013,7 @@ def test_update fixed_price_quantity: Float | nil, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, + matrix_config: Orb::MatrixConfig, maximum: Orb::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -1021,7 +1021,7 @@ def test_update minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::Bulk::PriceType, + price_type: Orb::Price::Matrix::PriceType, replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } @@ -1051,7 +1051,7 @@ def test_update plan_phase_order: Integer | nil, price_type: Orb::Price::ThresholdTotalAmount::PriceType, replaces_price_id: String | nil, - threshold_total_amount_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + threshold_total_amount_config: Orb::Price::ThresholdTotalAmount::ThresholdTotalAmountConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -1080,25 +1080,24 @@ def test_update plan_phase_order: Integer | nil, price_type: Orb::Price::TieredPackage::PriceType, replaces_price_id: String | nil, - tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + tiered_package_config: Orb::Price::TieredPackage::TieredPackageConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :grouped_tiered, + model_type: :tiered_with_minimum, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::GroupedTiered::Cadence, + cadence: Orb::Price::TieredWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTiered::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredWithMinimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - grouped_tiered_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -1108,25 +1107,27 @@ def test_update minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::GroupedTiered::PriceType, + price_type: Orb::Price::TieredWithMinimum::PriceType, replaces_price_id: String | nil, + tiered_with_minimum_config: Orb::Price::TieredWithMinimum::TieredWithMinimumConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :tiered_with_minimum, + model_type: :grouped_tiered, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::TieredWithMinimum::Cadence, + cadence: Orb::Price::GroupedTiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithMinimum::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedTiered::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, + grouped_tiered_config: Orb::Price::GroupedTiered::GroupedTieredConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -1136,9 +1137,8 @@ def test_update minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::TieredWithMinimum::PriceType, + price_type: Orb::Price::GroupedTiered::PriceType, replaces_price_id: String | nil, - tiered_with_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -1167,7 +1167,7 @@ def test_update plan_phase_order: Integer | nil, price_type: Orb::Price::TieredPackageWithMinimum::PriceType, replaces_price_id: String | nil, - tiered_package_with_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + tiered_package_with_minimum_config: Orb::Price::TieredPackageWithMinimum::TieredPackageWithMinimumConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -1193,7 +1193,7 @@ def test_update minimum: Orb::Minimum | nil, minimum_amount: String | nil, name: String, - package_with_allocation_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + package_with_allocation_config: Orb::Price::PackageWithAllocation::PackageWithAllocationConfig, plan_phase_order: Integer | nil, price_type: Orb::Price::PackageWithAllocation::PriceType, replaces_price_id: String | nil, @@ -1225,7 +1225,7 @@ def test_update plan_phase_order: Integer | nil, price_type: Orb::Price::UnitWithPercent::PriceType, replaces_price_id: String | nil, - unit_with_percent_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + unit_with_percent_config: Orb::Price::UnitWithPercent::UnitWithPercentConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -1283,7 +1283,7 @@ def test_update plan_phase_order: Integer | nil, price_type: Orb::Price::TieredWithProration::PriceType, replaces_price_id: String | nil, - tiered_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + tiered_with_proration_config: Orb::Price::TieredWithProration::TieredWithProrationConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -1312,7 +1312,7 @@ def test_update plan_phase_order: Integer | nil, price_type: Orb::Price::UnitWithProration::PriceType, replaces_price_id: String | nil, - unit_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + unit_with_proration_config: Orb::Price::UnitWithProration::UnitWithProrationConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -1330,7 +1330,7 @@ def test_update discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - grouped_allocation_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + grouped_allocation_config: Orb::Price::GroupedAllocation::GroupedAllocationConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -1344,6 +1344,35 @@ def test_update replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } + in { + model_type: :bulk_with_proration, + id: String, + billable_metric: Orb::BillableMetricTiny | nil, + billing_cycle_configuration: Orb::BillingCycleConfiguration, + bulk_with_proration_config: Orb::Price::BulkWithProration::BulkWithProrationConfig, + cadence: Orb::Price::BulkWithProration::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, + conversion_rate: Float | nil, + conversion_rate_config: Orb::Price::BulkWithProration::ConversionRateConfig | nil, + created_at: Time, + credit_allocation: Orb::Allocation | nil, + currency: String, + discount: Orb::Discount | nil, + external_price_id: String | nil, + fixed_price_quantity: Float | nil, + invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, + item: Orb::ItemSlim, + maximum: Orb::Maximum | nil, + maximum_amount: String | nil, + metadata: ^(Orb::Internal::Type::HashOf[String]), + minimum: Orb::Minimum | nil, + minimum_amount: String | nil, + name: String, + plan_phase_order: Integer | nil, + price_type: Orb::Price::BulkWithProration::PriceType, + replaces_price_id: String | nil, + dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil + } in { model_type: :grouped_with_prorated_minimum, id: String, @@ -1359,7 +1388,7 @@ def test_update discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - grouped_with_prorated_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + grouped_with_prorated_minimum_config: Orb::Price::GroupedWithProratedMinimum::GroupedWithProratedMinimumConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -1388,7 +1417,7 @@ def test_update discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - grouped_with_metered_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + grouped_with_metered_minimum_config: Orb::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -1403,23 +1432,23 @@ def test_update dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :matrix_with_display_name, + model_type: :grouped_with_min_max_thresholds, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::MatrixWithDisplayName::Cadence, + cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithDisplayName::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, + grouped_with_min_max_thresholds_config: Orb::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, - matrix_with_display_name_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), maximum: Orb::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -1427,20 +1456,19 @@ def test_update minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::MatrixWithDisplayName::PriceType, + price_type: Orb::Price::GroupedWithMinMaxThresholds::PriceType, replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :bulk_with_proration, + model_type: :matrix_with_display_name, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - bulk_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - cadence: Orb::Price::BulkWithProration::Cadence, + cadence: Orb::Price::MatrixWithDisplayName::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkWithProration::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::MatrixWithDisplayName::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1449,6 +1477,7 @@ def test_update fixed_price_quantity: Float | nil, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, + matrix_with_display_name_config: Orb::Price::MatrixWithDisplayName::MatrixWithDisplayNameConfig, maximum: Orb::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -1456,7 +1485,7 @@ def test_update minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::BulkWithProration::PriceType, + price_type: Orb::Price::MatrixWithDisplayName::PriceType, replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } @@ -1475,7 +1504,7 @@ def test_update discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - grouped_tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + grouped_tiered_package_config: Orb::Price::GroupedTieredPackage::GroupedTieredPackageConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -1506,7 +1535,7 @@ def test_update fixed_price_quantity: Float | nil, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, - max_group_tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + max_group_tiered_package_config: Orb::Price::MaxGroupTieredPackage::MaxGroupTieredPackageConfig, maximum: Orb::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -1544,7 +1573,7 @@ def test_update plan_phase_order: Integer | nil, price_type: Orb::Price::ScalableMatrixWithUnitPricing::PriceType, replaces_price_id: String | nil, - scalable_matrix_with_unit_pricing_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + scalable_matrix_with_unit_pricing_config: Orb::Price::ScalableMatrixWithUnitPricing::ScalableMatrixWithUnitPricingConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -1573,7 +1602,7 @@ def test_update plan_phase_order: Integer | nil, price_type: Orb::Price::ScalableMatrixWithTieredPricing::PriceType, replaces_price_id: String | nil, - scalable_matrix_with_tiered_pricing_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + scalable_matrix_with_tiered_pricing_config: Orb::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -1587,7 +1616,7 @@ def test_update conversion_rate_config: Orb::Price::CumulativeGroupedBulk::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, - cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + cumulative_grouped_bulk_config: Orb::Price::CumulativeGroupedBulk::CumulativeGroupedBulkConfig, currency: String, discount: Orb::Discount | nil, external_price_id: String | nil, @@ -1606,21 +1635,20 @@ def test_update dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :grouped_with_min_max_thresholds, + model_type: :minimum, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, + cadence: Orb::Price::Minimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Minimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - grouped_with_min_max_thresholds_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -1628,35 +1656,7 @@ def test_update metadata: ^(Orb::Internal::Type::HashOf[String]), minimum: Orb::Minimum | nil, minimum_amount: String | nil, - name: String, - plan_phase_order: Integer | nil, - price_type: Orb::Price::GroupedWithMinMaxThresholds::PriceType, - replaces_price_id: String | nil, - dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil - } - in { - model_type: :minimum, - id: String, - billable_metric: Orb::BillableMetricTiny | nil, - billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::Minimum::Cadence, - composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, - conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Minimum::ConversionRateConfig | nil, - created_at: Time, - credit_allocation: Orb::Allocation | nil, - currency: String, - discount: Orb::Discount | nil, - external_price_id: String | nil, - fixed_price_quantity: Float | nil, - invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, - item: Orb::ItemSlim, - maximum: Orb::Maximum | nil, - maximum_amount: String | nil, - metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Minimum | nil, - minimum_amount: String | nil, - minimum_config: Orb::Price::Minimum::MinimumConfig, + minimum_config: Orb::Price::Minimum::MinimumConfig, name: String, plan_phase_order: Integer | nil, price_type: Orb::Price::Minimum::PriceType, @@ -1684,14 +1684,14 @@ def test_list assert_pattern do case row in Orb::Price::Unit - in Orb::Price::Package - in Orb::Price::Matrix in Orb::Price::Tiered in Orb::Price::Bulk + in Orb::Price::Package + in Orb::Price::Matrix in Orb::Price::ThresholdTotalAmount in Orb::Price::TieredPackage - in Orb::Price::GroupedTiered in Orb::Price::TieredWithMinimum + in Orb::Price::GroupedTiered in Orb::Price::TieredPackageWithMinimum in Orb::Price::PackageWithAllocation in Orb::Price::UnitWithPercent @@ -1699,16 +1699,16 @@ def test_list in Orb::Price::TieredWithProration in Orb::Price::UnitWithProration in Orb::Price::GroupedAllocation + in Orb::Price::BulkWithProration in Orb::Price::GroupedWithProratedMinimum in Orb::Price::GroupedWithMeteredMinimum + in Orb::Price::GroupedWithMinMaxThresholds in Orb::Price::MatrixWithDisplayName - in Orb::Price::BulkWithProration in Orb::Price::GroupedTieredPackage in Orb::Price::MaxGroupTieredPackage in Orb::Price::ScalableMatrixWithUnitPricing in Orb::Price::ScalableMatrixWithTieredPricing in Orb::Price::CumulativeGroupedBulk - in Orb::Price::GroupedWithMinMaxThresholds in Orb::Price::Minimum end end @@ -1745,14 +1745,14 @@ def test_list dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :package, + model_type: :tiered, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::Package::Cadence, + cadence: Orb::Price::Tiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Package::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Tiered::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1767,21 +1767,22 @@ def test_list minimum: Orb::Minimum | nil, minimum_amount: String | nil, name: String, - package_config: Orb::PackageConfig, plan_phase_order: Integer | nil, - price_type: Orb::Price::Package::PriceType, + price_type: Orb::Price::Tiered::PriceType, replaces_price_id: String | nil, + tiered_config: Orb::TieredConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :matrix, + model_type: :bulk, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::Matrix::Cadence, + bulk_config: Orb::BulkConfig, + cadence: Orb::Price::Bulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Matrix::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Bulk::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1790,7 +1791,6 @@ def test_list fixed_price_quantity: Float | nil, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, - matrix_config: Orb::MatrixConfig, maximum: Orb::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -1798,19 +1798,19 @@ def test_list minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::Matrix::PriceType, + price_type: Orb::Price::Bulk::PriceType, replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :tiered, + model_type: :package, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::Tiered::Cadence, + cadence: Orb::Price::Package::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Tiered::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Package::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1825,22 +1825,21 @@ def test_list minimum: Orb::Minimum | nil, minimum_amount: String | nil, name: String, + package_config: Orb::PackageConfig, plan_phase_order: Integer | nil, - price_type: Orb::Price::Tiered::PriceType, + price_type: Orb::Price::Package::PriceType, replaces_price_id: String | nil, - tiered_config: Orb::TieredConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :bulk, + model_type: :matrix, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - bulk_config: Orb::BulkConfig, - cadence: Orb::Price::Bulk::Cadence, + cadence: Orb::Price::Matrix::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Bulk::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Matrix::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -1849,6 +1848,7 @@ def test_list fixed_price_quantity: Float | nil, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, + matrix_config: Orb::MatrixConfig, maximum: Orb::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -1856,7 +1856,7 @@ def test_list minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::Bulk::PriceType, + price_type: Orb::Price::Matrix::PriceType, replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } @@ -1886,7 +1886,7 @@ def test_list plan_phase_order: Integer | nil, price_type: Orb::Price::ThresholdTotalAmount::PriceType, replaces_price_id: String | nil, - threshold_total_amount_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + threshold_total_amount_config: Orb::Price::ThresholdTotalAmount::ThresholdTotalAmountConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -1915,25 +1915,24 @@ def test_list plan_phase_order: Integer | nil, price_type: Orb::Price::TieredPackage::PriceType, replaces_price_id: String | nil, - tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + tiered_package_config: Orb::Price::TieredPackage::TieredPackageConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :grouped_tiered, + model_type: :tiered_with_minimum, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::GroupedTiered::Cadence, + cadence: Orb::Price::TieredWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTiered::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredWithMinimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - grouped_tiered_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -1943,25 +1942,27 @@ def test_list minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::GroupedTiered::PriceType, + price_type: Orb::Price::TieredWithMinimum::PriceType, replaces_price_id: String | nil, + tiered_with_minimum_config: Orb::Price::TieredWithMinimum::TieredWithMinimumConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :tiered_with_minimum, + model_type: :grouped_tiered, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::TieredWithMinimum::Cadence, + cadence: Orb::Price::GroupedTiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithMinimum::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedTiered::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, + grouped_tiered_config: Orb::Price::GroupedTiered::GroupedTieredConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -1971,9 +1972,8 @@ def test_list minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::TieredWithMinimum::PriceType, + price_type: Orb::Price::GroupedTiered::PriceType, replaces_price_id: String | nil, - tiered_with_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -2002,7 +2002,7 @@ def test_list plan_phase_order: Integer | nil, price_type: Orb::Price::TieredPackageWithMinimum::PriceType, replaces_price_id: String | nil, - tiered_package_with_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + tiered_package_with_minimum_config: Orb::Price::TieredPackageWithMinimum::TieredPackageWithMinimumConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -2028,7 +2028,7 @@ def test_list minimum: Orb::Minimum | nil, minimum_amount: String | nil, name: String, - package_with_allocation_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + package_with_allocation_config: Orb::Price::PackageWithAllocation::PackageWithAllocationConfig, plan_phase_order: Integer | nil, price_type: Orb::Price::PackageWithAllocation::PriceType, replaces_price_id: String | nil, @@ -2060,7 +2060,7 @@ def test_list plan_phase_order: Integer | nil, price_type: Orb::Price::UnitWithPercent::PriceType, replaces_price_id: String | nil, - unit_with_percent_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + unit_with_percent_config: Orb::Price::UnitWithPercent::UnitWithPercentConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -2118,7 +2118,7 @@ def test_list plan_phase_order: Integer | nil, price_type: Orb::Price::TieredWithProration::PriceType, replaces_price_id: String | nil, - tiered_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + tiered_with_proration_config: Orb::Price::TieredWithProration::TieredWithProrationConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -2147,7 +2147,7 @@ def test_list plan_phase_order: Integer | nil, price_type: Orb::Price::UnitWithProration::PriceType, replaces_price_id: String | nil, - unit_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + unit_with_proration_config: Orb::Price::UnitWithProration::UnitWithProrationConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -2165,7 +2165,7 @@ def test_list discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - grouped_allocation_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + grouped_allocation_config: Orb::Price::GroupedAllocation::GroupedAllocationConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -2179,6 +2179,35 @@ def test_list replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } + in { + model_type: :bulk_with_proration, + id: String, + billable_metric: Orb::BillableMetricTiny | nil, + billing_cycle_configuration: Orb::BillingCycleConfiguration, + bulk_with_proration_config: Orb::Price::BulkWithProration::BulkWithProrationConfig, + cadence: Orb::Price::BulkWithProration::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, + conversion_rate: Float | nil, + conversion_rate_config: Orb::Price::BulkWithProration::ConversionRateConfig | nil, + created_at: Time, + credit_allocation: Orb::Allocation | nil, + currency: String, + discount: Orb::Discount | nil, + external_price_id: String | nil, + fixed_price_quantity: Float | nil, + invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, + item: Orb::ItemSlim, + maximum: Orb::Maximum | nil, + maximum_amount: String | nil, + metadata: ^(Orb::Internal::Type::HashOf[String]), + minimum: Orb::Minimum | nil, + minimum_amount: String | nil, + name: String, + plan_phase_order: Integer | nil, + price_type: Orb::Price::BulkWithProration::PriceType, + replaces_price_id: String | nil, + dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil + } in { model_type: :grouped_with_prorated_minimum, id: String, @@ -2194,7 +2223,7 @@ def test_list discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - grouped_with_prorated_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + grouped_with_prorated_minimum_config: Orb::Price::GroupedWithProratedMinimum::GroupedWithProratedMinimumConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -2223,7 +2252,7 @@ def test_list discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - grouped_with_metered_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + grouped_with_metered_minimum_config: Orb::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -2238,23 +2267,23 @@ def test_list dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :matrix_with_display_name, + model_type: :grouped_with_min_max_thresholds, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::MatrixWithDisplayName::Cadence, + cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithDisplayName::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, + grouped_with_min_max_thresholds_config: Orb::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, - matrix_with_display_name_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), maximum: Orb::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -2262,20 +2291,19 @@ def test_list minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::MatrixWithDisplayName::PriceType, + price_type: Orb::Price::GroupedWithMinMaxThresholds::PriceType, replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :bulk_with_proration, + model_type: :matrix_with_display_name, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - bulk_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - cadence: Orb::Price::BulkWithProration::Cadence, + cadence: Orb::Price::MatrixWithDisplayName::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkWithProration::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::MatrixWithDisplayName::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2284,6 +2312,7 @@ def test_list fixed_price_quantity: Float | nil, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, + matrix_with_display_name_config: Orb::Price::MatrixWithDisplayName::MatrixWithDisplayNameConfig, maximum: Orb::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -2291,7 +2320,7 @@ def test_list minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::BulkWithProration::PriceType, + price_type: Orb::Price::MatrixWithDisplayName::PriceType, replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } @@ -2310,7 +2339,7 @@ def test_list discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - grouped_tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + grouped_tiered_package_config: Orb::Price::GroupedTieredPackage::GroupedTieredPackageConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -2341,7 +2370,7 @@ def test_list fixed_price_quantity: Float | nil, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, - max_group_tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + max_group_tiered_package_config: Orb::Price::MaxGroupTieredPackage::MaxGroupTieredPackageConfig, maximum: Orb::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -2379,7 +2408,7 @@ def test_list plan_phase_order: Integer | nil, price_type: Orb::Price::ScalableMatrixWithUnitPricing::PriceType, replaces_price_id: String | nil, - scalable_matrix_with_unit_pricing_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + scalable_matrix_with_unit_pricing_config: Orb::Price::ScalableMatrixWithUnitPricing::ScalableMatrixWithUnitPricingConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -2408,7 +2437,7 @@ def test_list plan_phase_order: Integer | nil, price_type: Orb::Price::ScalableMatrixWithTieredPricing::PriceType, replaces_price_id: String | nil, - scalable_matrix_with_tiered_pricing_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + scalable_matrix_with_tiered_pricing_config: Orb::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -2422,7 +2451,7 @@ def test_list conversion_rate_config: Orb::Price::CumulativeGroupedBulk::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, - cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + cumulative_grouped_bulk_config: Orb::Price::CumulativeGroupedBulk::CumulativeGroupedBulkConfig, currency: String, discount: Orb::Discount | nil, external_price_id: String | nil, @@ -2440,35 +2469,6 @@ def test_list replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } - in { - model_type: :grouped_with_min_max_thresholds, - id: String, - billable_metric: Orb::BillableMetricTiny | nil, - billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, - composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, - conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig | nil, - created_at: Time, - credit_allocation: Orb::Allocation | nil, - currency: String, - discount: Orb::Discount | nil, - external_price_id: String | nil, - fixed_price_quantity: Float | nil, - grouped_with_min_max_thresholds_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, - item: Orb::ItemSlim, - maximum: Orb::Maximum | nil, - maximum_amount: String | nil, - metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Minimum | nil, - minimum_amount: String | nil, - name: String, - plan_phase_order: Integer | nil, - price_type: Orb::Price::GroupedWithMinMaxThresholds::PriceType, - replaces_price_id: String | nil, - dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil - } in { model_type: :minimum, id: String, @@ -2567,14 +2567,14 @@ def test_fetch assert_pattern do case response in Orb::Price::Unit - in Orb::Price::Package - in Orb::Price::Matrix in Orb::Price::Tiered in Orb::Price::Bulk + in Orb::Price::Package + in Orb::Price::Matrix in Orb::Price::ThresholdTotalAmount in Orb::Price::TieredPackage - in Orb::Price::GroupedTiered in Orb::Price::TieredWithMinimum + in Orb::Price::GroupedTiered in Orb::Price::TieredPackageWithMinimum in Orb::Price::PackageWithAllocation in Orb::Price::UnitWithPercent @@ -2582,16 +2582,16 @@ def test_fetch in Orb::Price::TieredWithProration in Orb::Price::UnitWithProration in Orb::Price::GroupedAllocation + in Orb::Price::BulkWithProration in Orb::Price::GroupedWithProratedMinimum in Orb::Price::GroupedWithMeteredMinimum + in Orb::Price::GroupedWithMinMaxThresholds in Orb::Price::MatrixWithDisplayName - in Orb::Price::BulkWithProration in Orb::Price::GroupedTieredPackage in Orb::Price::MaxGroupTieredPackage in Orb::Price::ScalableMatrixWithUnitPricing in Orb::Price::ScalableMatrixWithTieredPricing in Orb::Price::CumulativeGroupedBulk - in Orb::Price::GroupedWithMinMaxThresholds in Orb::Price::Minimum end end @@ -2628,14 +2628,14 @@ def test_fetch dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :package, + model_type: :tiered, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::Package::Cadence, + cadence: Orb::Price::Tiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Package::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Tiered::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2650,21 +2650,22 @@ def test_fetch minimum: Orb::Minimum | nil, minimum_amount: String | nil, name: String, - package_config: Orb::PackageConfig, plan_phase_order: Integer | nil, - price_type: Orb::Price::Package::PriceType, + price_type: Orb::Price::Tiered::PriceType, replaces_price_id: String | nil, + tiered_config: Orb::TieredConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :matrix, + model_type: :bulk, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::Matrix::Cadence, + bulk_config: Orb::BulkConfig, + cadence: Orb::Price::Bulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Matrix::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Bulk::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2673,7 +2674,6 @@ def test_fetch fixed_price_quantity: Float | nil, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, - matrix_config: Orb::MatrixConfig, maximum: Orb::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -2681,19 +2681,19 @@ def test_fetch minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::Matrix::PriceType, + price_type: Orb::Price::Bulk::PriceType, replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :tiered, + model_type: :package, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::Tiered::Cadence, + cadence: Orb::Price::Package::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Tiered::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Package::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2708,22 +2708,21 @@ def test_fetch minimum: Orb::Minimum | nil, minimum_amount: String | nil, name: String, + package_config: Orb::PackageConfig, plan_phase_order: Integer | nil, - price_type: Orb::Price::Tiered::PriceType, + price_type: Orb::Price::Package::PriceType, replaces_price_id: String | nil, - tiered_config: Orb::TieredConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :bulk, + model_type: :matrix, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - bulk_config: Orb::BulkConfig, - cadence: Orb::Price::Bulk::Cadence, + cadence: Orb::Price::Matrix::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::Bulk::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::Matrix::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -2732,6 +2731,7 @@ def test_fetch fixed_price_quantity: Float | nil, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, + matrix_config: Orb::MatrixConfig, maximum: Orb::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -2739,7 +2739,7 @@ def test_fetch minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::Bulk::PriceType, + price_type: Orb::Price::Matrix::PriceType, replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } @@ -2769,7 +2769,7 @@ def test_fetch plan_phase_order: Integer | nil, price_type: Orb::Price::ThresholdTotalAmount::PriceType, replaces_price_id: String | nil, - threshold_total_amount_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + threshold_total_amount_config: Orb::Price::ThresholdTotalAmount::ThresholdTotalAmountConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -2798,25 +2798,24 @@ def test_fetch plan_phase_order: Integer | nil, price_type: Orb::Price::TieredPackage::PriceType, replaces_price_id: String | nil, - tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + tiered_package_config: Orb::Price::TieredPackage::TieredPackageConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :grouped_tiered, + model_type: :tiered_with_minimum, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::GroupedTiered::Cadence, + cadence: Orb::Price::TieredWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedTiered::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::TieredWithMinimum::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - grouped_tiered_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -2826,25 +2825,27 @@ def test_fetch minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::GroupedTiered::PriceType, + price_type: Orb::Price::TieredWithMinimum::PriceType, replaces_price_id: String | nil, + tiered_with_minimum_config: Orb::Price::TieredWithMinimum::TieredWithMinimumConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :tiered_with_minimum, + model_type: :grouped_tiered, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::TieredWithMinimum::Cadence, + cadence: Orb::Price::GroupedTiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::TieredWithMinimum::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedTiered::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, + grouped_tiered_config: Orb::Price::GroupedTiered::GroupedTieredConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -2854,9 +2855,8 @@ def test_fetch minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::TieredWithMinimum::PriceType, + price_type: Orb::Price::GroupedTiered::PriceType, replaces_price_id: String | nil, - tiered_with_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -2885,7 +2885,7 @@ def test_fetch plan_phase_order: Integer | nil, price_type: Orb::Price::TieredPackageWithMinimum::PriceType, replaces_price_id: String | nil, - tiered_package_with_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + tiered_package_with_minimum_config: Orb::Price::TieredPackageWithMinimum::TieredPackageWithMinimumConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -2911,7 +2911,7 @@ def test_fetch minimum: Orb::Minimum | nil, minimum_amount: String | nil, name: String, - package_with_allocation_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + package_with_allocation_config: Orb::Price::PackageWithAllocation::PackageWithAllocationConfig, plan_phase_order: Integer | nil, price_type: Orb::Price::PackageWithAllocation::PriceType, replaces_price_id: String | nil, @@ -2943,7 +2943,7 @@ def test_fetch plan_phase_order: Integer | nil, price_type: Orb::Price::UnitWithPercent::PriceType, replaces_price_id: String | nil, - unit_with_percent_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + unit_with_percent_config: Orb::Price::UnitWithPercent::UnitWithPercentConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -3001,7 +3001,7 @@ def test_fetch plan_phase_order: Integer | nil, price_type: Orb::Price::TieredWithProration::PriceType, replaces_price_id: String | nil, - tiered_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + tiered_with_proration_config: Orb::Price::TieredWithProration::TieredWithProrationConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -3030,7 +3030,7 @@ def test_fetch plan_phase_order: Integer | nil, price_type: Orb::Price::UnitWithProration::PriceType, replaces_price_id: String | nil, - unit_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + unit_with_proration_config: Orb::Price::UnitWithProration::UnitWithProrationConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -3048,7 +3048,7 @@ def test_fetch discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - grouped_allocation_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + grouped_allocation_config: Orb::Price::GroupedAllocation::GroupedAllocationConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -3062,6 +3062,35 @@ def test_fetch replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } + in { + model_type: :bulk_with_proration, + id: String, + billable_metric: Orb::BillableMetricTiny | nil, + billing_cycle_configuration: Orb::BillingCycleConfiguration, + bulk_with_proration_config: Orb::Price::BulkWithProration::BulkWithProrationConfig, + cadence: Orb::Price::BulkWithProration::Cadence, + composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, + conversion_rate: Float | nil, + conversion_rate_config: Orb::Price::BulkWithProration::ConversionRateConfig | nil, + created_at: Time, + credit_allocation: Orb::Allocation | nil, + currency: String, + discount: Orb::Discount | nil, + external_price_id: String | nil, + fixed_price_quantity: Float | nil, + invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, + item: Orb::ItemSlim, + maximum: Orb::Maximum | nil, + maximum_amount: String | nil, + metadata: ^(Orb::Internal::Type::HashOf[String]), + minimum: Orb::Minimum | nil, + minimum_amount: String | nil, + name: String, + plan_phase_order: Integer | nil, + price_type: Orb::Price::BulkWithProration::PriceType, + replaces_price_id: String | nil, + dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil + } in { model_type: :grouped_with_prorated_minimum, id: String, @@ -3077,7 +3106,7 @@ def test_fetch discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - grouped_with_prorated_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + grouped_with_prorated_minimum_config: Orb::Price::GroupedWithProratedMinimum::GroupedWithProratedMinimumConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -3106,7 +3135,7 @@ def test_fetch discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - grouped_with_metered_minimum_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + grouped_with_metered_minimum_config: Orb::Price::GroupedWithMeteredMinimum::GroupedWithMeteredMinimumConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -3121,23 +3150,23 @@ def test_fetch dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :matrix_with_display_name, + model_type: :grouped_with_min_max_thresholds, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::MatrixWithDisplayName::Cadence, + cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::MatrixWithDisplayName::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, + grouped_with_min_max_thresholds_config: Orb::Price::GroupedWithMinMaxThresholds::GroupedWithMinMaxThresholdsConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, - matrix_with_display_name_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), maximum: Orb::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -3145,20 +3174,19 @@ def test_fetch minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::MatrixWithDisplayName::PriceType, + price_type: Orb::Price::GroupedWithMinMaxThresholds::PriceType, replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { - model_type: :bulk_with_proration, + model_type: :matrix_with_display_name, id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, - bulk_with_proration_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - cadence: Orb::Price::BulkWithProration::Cadence, + cadence: Orb::Price::MatrixWithDisplayName::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::BulkWithProration::ConversionRateConfig | nil, + conversion_rate_config: Orb::Price::MatrixWithDisplayName::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, currency: String, @@ -3167,6 +3195,7 @@ def test_fetch fixed_price_quantity: Float | nil, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, + matrix_with_display_name_config: Orb::Price::MatrixWithDisplayName::MatrixWithDisplayNameConfig, maximum: Orb::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -3174,7 +3203,7 @@ def test_fetch minimum_amount: String | nil, name: String, plan_phase_order: Integer | nil, - price_type: Orb::Price::BulkWithProration::PriceType, + price_type: Orb::Price::MatrixWithDisplayName::PriceType, replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } @@ -3193,7 +3222,7 @@ def test_fetch discount: Orb::Discount | nil, external_price_id: String | nil, fixed_price_quantity: Float | nil, - grouped_tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + grouped_tiered_package_config: Orb::Price::GroupedTieredPackage::GroupedTieredPackageConfig, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, maximum: Orb::Maximum | nil, @@ -3224,7 +3253,7 @@ def test_fetch fixed_price_quantity: Float | nil, invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, item: Orb::ItemSlim, - max_group_tiered_package_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + max_group_tiered_package_config: Orb::Price::MaxGroupTieredPackage::MaxGroupTieredPackageConfig, maximum: Orb::Maximum | nil, maximum_amount: String | nil, metadata: ^(Orb::Internal::Type::HashOf[String]), @@ -3262,7 +3291,7 @@ def test_fetch plan_phase_order: Integer | nil, price_type: Orb::Price::ScalableMatrixWithUnitPricing::PriceType, replaces_price_id: String | nil, - scalable_matrix_with_unit_pricing_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + scalable_matrix_with_unit_pricing_config: Orb::Price::ScalableMatrixWithUnitPricing::ScalableMatrixWithUnitPricingConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -3291,7 +3320,7 @@ def test_fetch plan_phase_order: Integer | nil, price_type: Orb::Price::ScalableMatrixWithTieredPricing::PriceType, replaces_price_id: String | nil, - scalable_matrix_with_tiered_pricing_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + scalable_matrix_with_tiered_pricing_config: Orb::Price::ScalableMatrixWithTieredPricing::ScalableMatrixWithTieredPricingConfig, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } in { @@ -3305,7 +3334,7 @@ def test_fetch conversion_rate_config: Orb::Price::CumulativeGroupedBulk::ConversionRateConfig | nil, created_at: Time, credit_allocation: Orb::Allocation | nil, - cumulative_grouped_bulk_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), + cumulative_grouped_bulk_config: Orb::Price::CumulativeGroupedBulk::CumulativeGroupedBulkConfig, currency: String, discount: Orb::Discount | nil, external_price_id: String | nil, @@ -3323,35 +3352,6 @@ def test_fetch replaces_price_id: String | nil, dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil } - in { - model_type: :grouped_with_min_max_thresholds, - id: String, - billable_metric: Orb::BillableMetricTiny | nil, - billing_cycle_configuration: Orb::BillingCycleConfiguration, - cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, - composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, - conversion_rate: Float | nil, - conversion_rate_config: Orb::Price::GroupedWithMinMaxThresholds::ConversionRateConfig | nil, - created_at: Time, - credit_allocation: Orb::Allocation | nil, - currency: String, - discount: Orb::Discount | nil, - external_price_id: String | nil, - fixed_price_quantity: Float | nil, - grouped_with_min_max_thresholds_config: ^(Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]), - invoicing_cycle_configuration: Orb::BillingCycleConfiguration | nil, - item: Orb::ItemSlim, - maximum: Orb::Maximum | nil, - maximum_amount: String | nil, - metadata: ^(Orb::Internal::Type::HashOf[String]), - minimum: Orb::Minimum | nil, - minimum_amount: String | nil, - name: String, - plan_phase_order: Integer | nil, - price_type: Orb::Price::GroupedWithMinMaxThresholds::PriceType, - replaces_price_id: String | nil, - dimensional_price_configuration: Orb::DimensionalPriceConfiguration | nil - } in { model_type: :minimum, id: String, From 246283dc41fd3d9b128ac44ccd8550ae7b987578 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 5 Sep 2025 00:31:24 +0000 Subject: [PATCH 06/24] feat(api): api update --- .stats.yml | 4 +- lib/orb/models/price.rb | 27 +++++++++ rbi/orb/models/price.rbi | 123 +++++++++++++++++++++++++++++++++++++++ sig/orb/models/price.rbs | 81 +++++++++++++++++--------- 4 files changed, 206 insertions(+), 29 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9f1d47fd..f4571777 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 118 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-9dda3e74d276c581c08bea0cad47ae390143d94640f267d827caf234301f2721.yml -openapi_spec_hash: 60daf7a378cdf7dd1f7338c303e2d661 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-d63c8075b48441663736b457f8ad859c58cc3e31dfbffb68db44c3f00562012c.yml +openapi_spec_hash: c47dbff685a0a449bfc1ad729c13a72e config_hash: 1f73a949b649ecfe6ec68ba1bb459dc2 diff --git a/lib/orb/models/price.rb b/lib/orb/models/price.rb index 3bb16d6c..ebe4b490 100644 --- a/lib/orb/models/price.rb +++ b/lib/orb/models/price.rb @@ -301,6 +301,7 @@ module PriceType USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price + COMPOSITE_PRICE = :composite_price # @!method self.values # @return [Array] @@ -537,6 +538,7 @@ module PriceType USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price + COMPOSITE_PRICE = :composite_price # @!method self.values # @return [Array] @@ -773,6 +775,7 @@ module PriceType USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price + COMPOSITE_PRICE = :composite_price # @!method self.values # @return [Array] @@ -1009,6 +1012,7 @@ module PriceType USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price + COMPOSITE_PRICE = :composite_price # @!method self.values # @return [Array] @@ -1245,6 +1249,7 @@ module PriceType USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price + COMPOSITE_PRICE = :composite_price # @!method self.values # @return [Array] @@ -1484,6 +1489,7 @@ module PriceType USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price + COMPOSITE_PRICE = :composite_price # @!method self.values # @return [Array] @@ -1771,6 +1777,7 @@ module PriceType USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price + COMPOSITE_PRICE = :composite_price # @!method self.values # @return [Array] @@ -2056,6 +2063,7 @@ module PriceType USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price + COMPOSITE_PRICE = :composite_price # @!method self.values # @return [Array] @@ -2406,6 +2414,7 @@ module PriceType USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price + COMPOSITE_PRICE = :composite_price # @!method self.values # @return [Array] @@ -2645,6 +2654,7 @@ module PriceType USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price + COMPOSITE_PRICE = :composite_price # @!method self.values # @return [Array] @@ -2971,6 +2981,7 @@ module PriceType USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price + COMPOSITE_PRICE = :composite_price # @!method self.values # @return [Array] @@ -3209,6 +3220,7 @@ module PriceType USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price + COMPOSITE_PRICE = :composite_price # @!method self.values # @return [Array] @@ -3469,6 +3481,7 @@ module PriceType USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price + COMPOSITE_PRICE = :composite_price # @!method self.values # @return [Array] @@ -3707,6 +3720,7 @@ module PriceType USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price + COMPOSITE_PRICE = :composite_price # @!method self.values # @return [Array] @@ -3986,6 +4000,7 @@ module PriceType USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price + COMPOSITE_PRICE = :composite_price # @!method self.values # @return [Array] @@ -4268,6 +4283,7 @@ module PriceType USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price + COMPOSITE_PRICE = :composite_price # @!method self.values # @return [Array] @@ -4542,6 +4558,7 @@ module PriceType USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price + COMPOSITE_PRICE = :composite_price # @!method self.values # @return [Array] @@ -4811,6 +4828,7 @@ module PriceType USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price + COMPOSITE_PRICE = :composite_price # @!method self.values # @return [Array] @@ -5154,6 +5172,7 @@ module PriceType USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price + COMPOSITE_PRICE = :composite_price # @!method self.values # @return [Array] @@ -5431,6 +5450,7 @@ module PriceType USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price + COMPOSITE_PRICE = :composite_price # @!method self.values # @return [Array] @@ -5722,6 +5742,7 @@ module PriceType USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price + COMPOSITE_PRICE = :composite_price # @!method self.values # @return [Array] @@ -6018,6 +6039,7 @@ module PriceType USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price + COMPOSITE_PRICE = :composite_price # @!method self.values # @return [Array] @@ -6313,6 +6335,7 @@ module PriceType USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price + COMPOSITE_PRICE = :composite_price # @!method self.values # @return [Array] @@ -6552,6 +6575,7 @@ module PriceType USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price + COMPOSITE_PRICE = :composite_price # @!method self.values # @return [Array] @@ -6867,6 +6891,7 @@ module PriceType USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price + COMPOSITE_PRICE = :composite_price # @!method self.values # @return [Array] @@ -7248,6 +7273,7 @@ module PriceType USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price + COMPOSITE_PRICE = :composite_price # @!method self.values # @return [Array] @@ -7506,6 +7532,7 @@ module PriceType USAGE_PRICE = :usage_price FIXED_PRICE = :fixed_price + COMPOSITE_PRICE = :composite_price # @!method self.values # @return [Array] diff --git a/rbi/orb/models/price.rbi b/rbi/orb/models/price.rbi index 255ee0b5..1e56f08e 100644 --- a/rbi/orb/models/price.rbi +++ b/rbi/orb/models/price.rbi @@ -350,6 +350,8 @@ module Orb T.let(:usage_price, Orb::Price::Unit::PriceType::TaggedSymbol) FIXED_PRICE = T.let(:fixed_price, Orb::Price::Unit::PriceType::TaggedSymbol) + COMPOSITE_PRICE = + T.let(:composite_price, Orb::Price::Unit::PriceType::TaggedSymbol) sig do override.returns( @@ -666,6 +668,8 @@ module Orb T.let(:usage_price, Orb::Price::Tiered::PriceType::TaggedSymbol) FIXED_PRICE = T.let(:fixed_price, Orb::Price::Tiered::PriceType::TaggedSymbol) + COMPOSITE_PRICE = + T.let(:composite_price, Orb::Price::Tiered::PriceType::TaggedSymbol) sig do override.returns( @@ -979,6 +983,8 @@ module Orb T.let(:usage_price, Orb::Price::Bulk::PriceType::TaggedSymbol) FIXED_PRICE = T.let(:fixed_price, Orb::Price::Bulk::PriceType::TaggedSymbol) + COMPOSITE_PRICE = + T.let(:composite_price, Orb::Price::Bulk::PriceType::TaggedSymbol) sig do override.returns( @@ -1298,6 +1304,11 @@ module Orb T.let(:usage_price, Orb::Price::Package::PriceType::TaggedSymbol) FIXED_PRICE = T.let(:fixed_price, Orb::Price::Package::PriceType::TaggedSymbol) + COMPOSITE_PRICE = + T.let( + :composite_price, + Orb::Price::Package::PriceType::TaggedSymbol + ) sig do override.returns( @@ -1614,6 +1625,8 @@ module Orb T.let(:usage_price, Orb::Price::Matrix::PriceType::TaggedSymbol) FIXED_PRICE = T.let(:fixed_price, Orb::Price::Matrix::PriceType::TaggedSymbol) + COMPOSITE_PRICE = + T.let(:composite_price, Orb::Price::Matrix::PriceType::TaggedSymbol) sig do override.returns( @@ -1982,6 +1995,11 @@ module Orb :fixed_price, Orb::Price::ThresholdTotalAmount::PriceType::TaggedSymbol ) + COMPOSITE_PRICE = + T.let( + :composite_price, + Orb::Price::ThresholdTotalAmount::PriceType::TaggedSymbol + ) sig do override.returns( @@ -2422,6 +2440,11 @@ module Orb :fixed_price, Orb::Price::TieredPackage::PriceType::TaggedSymbol ) + COMPOSITE_PRICE = + T.let( + :composite_price, + Orb::Price::TieredPackage::PriceType::TaggedSymbol + ) sig do override.returns( @@ -2872,6 +2895,11 @@ module Orb :fixed_price, Orb::Price::TieredWithMinimum::PriceType::TaggedSymbol ) + COMPOSITE_PRICE = + T.let( + :composite_price, + Orb::Price::TieredWithMinimum::PriceType::TaggedSymbol + ) sig do override.returns( @@ -3432,6 +3460,11 @@ module Orb :fixed_price, Orb::Price::GroupedTiered::PriceType::TaggedSymbol ) + COMPOSITE_PRICE = + T.let( + :composite_price, + Orb::Price::GroupedTiered::PriceType::TaggedSymbol + ) sig do override.returns( @@ -3808,6 +3841,11 @@ module Orb :fixed_price, Orb::Price::TieredPackageWithMinimum::PriceType::TaggedSymbol ) + COMPOSITE_PRICE = + T.let( + :composite_price, + Orb::Price::TieredPackageWithMinimum::PriceType::TaggedSymbol + ) sig do override.returns( @@ -4344,6 +4382,11 @@ module Orb :fixed_price, Orb::Price::PackageWithAllocation::PriceType::TaggedSymbol ) + COMPOSITE_PRICE = + T.let( + :composite_price, + Orb::Price::PackageWithAllocation::PriceType::TaggedSymbol + ) sig do override.returns( @@ -4695,6 +4738,11 @@ module Orb :fixed_price, Orb::Price::UnitWithPercent::PriceType::TaggedSymbol ) + COMPOSITE_PRICE = + T.let( + :composite_price, + Orb::Price::UnitWithPercent::PriceType::TaggedSymbol + ) sig do override.returns( @@ -5096,6 +5144,11 @@ module Orb :fixed_price, Orb::Price::MatrixWithAllocation::PriceType::TaggedSymbol ) + COMPOSITE_PRICE = + T.let( + :composite_price, + Orb::Price::MatrixWithAllocation::PriceType::TaggedSymbol + ) sig do override.returns( @@ -5466,6 +5519,11 @@ module Orb :fixed_price, Orb::Price::TieredWithProration::PriceType::TaggedSymbol ) + COMPOSITE_PRICE = + T.let( + :composite_price, + Orb::Price::TieredWithProration::PriceType::TaggedSymbol + ) sig do override.returns( @@ -5914,6 +5972,11 @@ module Orb :fixed_price, Orb::Price::UnitWithProration::PriceType::TaggedSymbol ) + COMPOSITE_PRICE = + T.let( + :composite_price, + Orb::Price::UnitWithProration::PriceType::TaggedSymbol + ) sig do override.returns( @@ -6350,6 +6413,11 @@ module Orb :fixed_price, Orb::Price::GroupedAllocation::PriceType::TaggedSymbol ) + COMPOSITE_PRICE = + T.let( + :composite_price, + Orb::Price::GroupedAllocation::PriceType::TaggedSymbol + ) sig do override.returns( @@ -6797,6 +6865,11 @@ module Orb :fixed_price, Orb::Price::BulkWithProration::PriceType::TaggedSymbol ) + COMPOSITE_PRICE = + T.let( + :composite_price, + Orb::Price::BulkWithProration::PriceType::TaggedSymbol + ) sig do override.returns( @@ -7226,6 +7299,11 @@ module Orb :fixed_price, Orb::Price::GroupedWithProratedMinimum::PriceType::TaggedSymbol ) + COMPOSITE_PRICE = + T.let( + :composite_price, + Orb::Price::GroupedWithProratedMinimum::PriceType::TaggedSymbol + ) sig do override.returns( @@ -7788,6 +7866,11 @@ module Orb :fixed_price, Orb::Price::GroupedWithMeteredMinimum::PriceType::TaggedSymbol ) + COMPOSITE_PRICE = + T.let( + :composite_price, + Orb::Price::GroupedWithMeteredMinimum::PriceType::TaggedSymbol + ) sig do override.returns( @@ -8233,6 +8316,11 @@ module Orb :fixed_price, Orb::Price::GroupedWithMinMaxThresholds::PriceType::TaggedSymbol ) + COMPOSITE_PRICE = + T.let( + :composite_price, + Orb::Price::GroupedWithMinMaxThresholds::PriceType::TaggedSymbol + ) sig do override.returns( @@ -8715,6 +8803,11 @@ module Orb :fixed_price, Orb::Price::MatrixWithDisplayName::PriceType::TaggedSymbol ) + COMPOSITE_PRICE = + T.let( + :composite_price, + Orb::Price::MatrixWithDisplayName::PriceType::TaggedSymbol + ) sig do override.returns( @@ -9189,6 +9282,11 @@ module Orb :fixed_price, Orb::Price::GroupedTieredPackage::PriceType::TaggedSymbol ) + COMPOSITE_PRICE = + T.let( + :composite_price, + Orb::Price::GroupedTieredPackage::PriceType::TaggedSymbol + ) sig do override.returns( @@ -9667,6 +9765,11 @@ module Orb :fixed_price, Orb::Price::MaxGroupTieredPackage::PriceType::TaggedSymbol ) + COMPOSITE_PRICE = + T.let( + :composite_price, + Orb::Price::MaxGroupTieredPackage::PriceType::TaggedSymbol + ) sig do override.returns( @@ -10056,6 +10159,11 @@ module Orb :fixed_price, Orb::Price::ScalableMatrixWithUnitPricing::PriceType::TaggedSymbol ) + COMPOSITE_PRICE = + T.let( + :composite_price, + Orb::Price::ScalableMatrixWithUnitPricing::PriceType::TaggedSymbol + ) sig do override.returns( @@ -10580,6 +10688,11 @@ module Orb :fixed_price, Orb::Price::ScalableMatrixWithTieredPricing::PriceType::TaggedSymbol ) + COMPOSITE_PRICE = + T.let( + :composite_price, + Orb::Price::ScalableMatrixWithTieredPricing::PriceType::TaggedSymbol + ) sig do override.returns( @@ -11238,6 +11351,11 @@ module Orb :fixed_price, Orb::Price::CumulativeGroupedBulk::PriceType::TaggedSymbol ) + COMPOSITE_PRICE = + T.let( + :composite_price, + Orb::Price::CumulativeGroupedBulk::PriceType::TaggedSymbol + ) sig do override.returns( @@ -11601,6 +11719,11 @@ module Orb T.let(:usage_price, Orb::Price::Minimum::PriceType::TaggedSymbol) FIXED_PRICE = T.let(:fixed_price, Orb::Price::Minimum::PriceType::TaggedSymbol) + COMPOSITE_PRICE = + T.let( + :composite_price, + Orb::Price::Minimum::PriceType::TaggedSymbol + ) sig do override.returns( diff --git a/sig/orb/models/price.rbs b/sig/orb/models/price.rbs index 91d12246..e836acb6 100644 --- a/sig/orb/models/price.rbs +++ b/sig/orb/models/price.rbs @@ -194,13 +194,14 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::Unit::cadence] end - type price_type = :usage_price | :fixed_price + type price_type = :usage_price | :fixed_price | :composite_price module PriceType extend Orb::Internal::Type::Enum USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price + COMPOSITE_PRICE: :composite_price def self?.values: -> ::Array[Orb::Models::Price::Unit::price_type] end @@ -368,13 +369,14 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::Tiered::cadence] end - type price_type = :usage_price | :fixed_price + type price_type = :usage_price | :fixed_price | :composite_price module PriceType extend Orb::Internal::Type::Enum USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price + COMPOSITE_PRICE: :composite_price def self?.values: -> ::Array[Orb::Models::Price::Tiered::price_type] end @@ -542,13 +544,14 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::Bulk::cadence] end - type price_type = :usage_price | :fixed_price + type price_type = :usage_price | :fixed_price | :composite_price module PriceType extend Orb::Internal::Type::Enum USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price + COMPOSITE_PRICE: :composite_price def self?.values: -> ::Array[Orb::Models::Price::Bulk::price_type] end @@ -716,13 +719,14 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::Package::cadence] end - type price_type = :usage_price | :fixed_price + type price_type = :usage_price | :fixed_price | :composite_price module PriceType extend Orb::Internal::Type::Enum USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price + COMPOSITE_PRICE: :composite_price def self?.values: -> ::Array[Orb::Models::Price::Package::price_type] end @@ -890,13 +894,14 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::Matrix::cadence] end - type price_type = :usage_price | :fixed_price + type price_type = :usage_price | :fixed_price | :composite_price module PriceType extend Orb::Internal::Type::Enum USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price + COMPOSITE_PRICE: :composite_price def self?.values: -> ::Array[Orb::Models::Price::Matrix::price_type] end @@ -1064,13 +1069,14 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::ThresholdTotalAmount::cadence] end - type price_type = :usage_price | :fixed_price + type price_type = :usage_price | :fixed_price | :composite_price module PriceType extend Orb::Internal::Type::Enum USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price + COMPOSITE_PRICE: :composite_price def self?.values: -> ::Array[Orb::Models::Price::ThresholdTotalAmount::price_type] end @@ -1272,13 +1278,14 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::TieredPackage::cadence] end - type price_type = :usage_price | :fixed_price + type price_type = :usage_price | :fixed_price | :composite_price module PriceType extend Orb::Internal::Type::Enum USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price + COMPOSITE_PRICE: :composite_price def self?.values: -> ::Array[Orb::Models::Price::TieredPackage::price_type] end @@ -1480,13 +1487,14 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::TieredWithMinimum::cadence] end - type price_type = :usage_price | :fixed_price + type price_type = :usage_price | :fixed_price | :composite_price module PriceType extend Orb::Internal::Type::Enum USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price + COMPOSITE_PRICE: :composite_price def self?.values: -> ::Array[Orb::Models::Price::TieredWithMinimum::price_type] end @@ -1749,13 +1757,14 @@ module Orb end end - type price_type = :usage_price | :fixed_price + type price_type = :usage_price | :fixed_price | :composite_price module PriceType extend Orb::Internal::Type::Enum USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price + COMPOSITE_PRICE: :composite_price def self?.values: -> ::Array[Orb::Models::Price::GroupedTiered::price_type] end @@ -1923,13 +1932,14 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::TieredPackageWithMinimum::cadence] end - type price_type = :usage_price | :fixed_price + type price_type = :usage_price | :fixed_price | :composite_price module PriceType extend Orb::Internal::Type::Enum USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price + COMPOSITE_PRICE: :composite_price def self?.values: -> ::Array[Orb::Models::Price::TieredPackageWithMinimum::price_type] end @@ -2169,13 +2179,14 @@ module Orb } end - type price_type = :usage_price | :fixed_price + type price_type = :usage_price | :fixed_price | :composite_price module PriceType extend Orb::Internal::Type::Enum USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price + COMPOSITE_PRICE: :composite_price def self?.values: -> ::Array[Orb::Models::Price::PackageWithAllocation::price_type] end @@ -2343,13 +2354,14 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::UnitWithPercent::cadence] end - type price_type = :usage_price | :fixed_price + type price_type = :usage_price | :fixed_price | :composite_price module PriceType extend Orb::Internal::Type::Enum USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price + COMPOSITE_PRICE: :composite_price def self?.values: -> ::Array[Orb::Models::Price::UnitWithPercent::price_type] end @@ -2529,13 +2541,14 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::MatrixWithAllocation::cadence] end - type price_type = :usage_price | :fixed_price + type price_type = :usage_price | :fixed_price | :composite_price module PriceType extend Orb::Internal::Type::Enum USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price + COMPOSITE_PRICE: :composite_price def self?.values: -> ::Array[Orb::Models::Price::MatrixWithAllocation::price_type] end @@ -2703,13 +2716,14 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::TieredWithProration::cadence] end - type price_type = :usage_price | :fixed_price + type price_type = :usage_price | :fixed_price | :composite_price module PriceType extend Orb::Internal::Type::Enum USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price + COMPOSITE_PRICE: :composite_price def self?.values: -> ::Array[Orb::Models::Price::TieredWithProration::price_type] end @@ -2909,13 +2923,14 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::UnitWithProration::cadence] end - type price_type = :usage_price | :fixed_price + type price_type = :usage_price | :fixed_price | :composite_price module PriceType extend Orb::Internal::Type::Enum USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price + COMPOSITE_PRICE: :composite_price def self?.values: -> ::Array[Orb::Models::Price::UnitWithProration::price_type] end @@ -3120,13 +3135,14 @@ module Orb } end - type price_type = :usage_price | :fixed_price + type price_type = :usage_price | :fixed_price | :composite_price module PriceType extend Orb::Internal::Type::Enum USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price + COMPOSITE_PRICE: :composite_price def self?.values: -> ::Array[Orb::Models::Price::GroupedAllocation::price_type] end @@ -3326,13 +3342,14 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::BulkWithProration::cadence] end - type price_type = :usage_price | :fixed_price + type price_type = :usage_price | :fixed_price | :composite_price module PriceType extend Orb::Internal::Type::Enum USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price + COMPOSITE_PRICE: :composite_price def self?.values: -> ::Array[Orb::Models::Price::BulkWithProration::price_type] end @@ -3523,13 +3540,14 @@ module Orb } end - type price_type = :usage_price | :fixed_price + type price_type = :usage_price | :fixed_price | :composite_price module PriceType extend Orb::Internal::Type::Enum USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price + COMPOSITE_PRICE: :composite_price def self?.values: -> ::Array[Orb::Models::Price::GroupedWithProratedMinimum::price_type] end @@ -3767,13 +3785,14 @@ module Orb end end - type price_type = :usage_price | :fixed_price + type price_type = :usage_price | :fixed_price | :composite_price module PriceType extend Orb::Internal::Type::Enum USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price + COMPOSITE_PRICE: :composite_price def self?.values: -> ::Array[Orb::Models::Price::GroupedWithMeteredMinimum::price_type] end @@ -3973,13 +3992,14 @@ module Orb } end - type price_type = :usage_price | :fixed_price + type price_type = :usage_price | :fixed_price | :composite_price module PriceType extend Orb::Internal::Type::Enum USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price + COMPOSITE_PRICE: :composite_price def self?.values: -> ::Array[Orb::Models::Price::GroupedWithMinMaxThresholds::price_type] end @@ -4196,13 +4216,14 @@ module Orb end end - type price_type = :usage_price | :fixed_price + type price_type = :usage_price | :fixed_price | :composite_price module PriceType extend Orb::Internal::Type::Enum USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price + COMPOSITE_PRICE: :composite_price def self?.values: -> ::Array[Orb::Models::Price::MatrixWithDisplayName::price_type] end @@ -4409,13 +4430,14 @@ module Orb end end - type price_type = :usage_price | :fixed_price + type price_type = :usage_price | :fixed_price | :composite_price module PriceType extend Orb::Internal::Type::Enum USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price + COMPOSITE_PRICE: :composite_price def self?.values: -> ::Array[Orb::Models::Price::GroupedTieredPackage::price_type] end @@ -4625,13 +4647,14 @@ module Orb end end - type price_type = :usage_price | :fixed_price + type price_type = :usage_price | :fixed_price | :composite_price module PriceType extend Orb::Internal::Type::Enum USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price + COMPOSITE_PRICE: :composite_price def self?.values: -> ::Array[Orb::Models::Price::MaxGroupTieredPackage::price_type] end @@ -4799,13 +4822,14 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithUnitPricing::cadence] end - type price_type = :usage_price | :fixed_price + type price_type = :usage_price | :fixed_price | :composite_price module PriceType extend Orb::Internal::Type::Enum USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price + COMPOSITE_PRICE: :composite_price def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithUnitPricing::price_type] end @@ -5037,13 +5061,14 @@ module Orb def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithTieredPricing::cadence] end - type price_type = :usage_price | :fixed_price + type price_type = :usage_price | :fixed_price | :composite_price module PriceType extend Orb::Internal::Type::Enum USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price + COMPOSITE_PRICE: :composite_price def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithTieredPricing::price_type] end @@ -5334,13 +5359,14 @@ module Orb end end - type price_type = :usage_price | :fixed_price + type price_type = :usage_price | :fixed_price | :composite_price module PriceType extend Orb::Internal::Type::Enum USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price + COMPOSITE_PRICE: :composite_price def self?.values: -> ::Array[Orb::Models::Price::CumulativeGroupedBulk::price_type] end @@ -5522,13 +5548,14 @@ module Orb def to_hash: -> { minimum_amount: String, prorated: bool } end - type price_type = :usage_price | :fixed_price + type price_type = :usage_price | :fixed_price | :composite_price module PriceType extend Orb::Internal::Type::Enum USAGE_PRICE: :usage_price FIXED_PRICE: :fixed_price + COMPOSITE_PRICE: :composite_price def self?.values: -> ::Array[Orb::Models::Price::Minimum::price_type] end From 8e3ac4b248b2aca6ac6d5360f34be8521b05bc83 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 10 Sep 2025 20:31:25 +0000 Subject: [PATCH 07/24] feat(api): api update --- .stats.yml | 4 ++-- lib/orb/models/new_floating_tiered_package_price.rb | 4 +++- lib/orb/models/new_plan_tiered_package_price.rb | 4 +++- lib/orb/models/new_subscription_tiered_package_price.rb | 4 +++- lib/orb/models/price.rb | 4 +++- lib/orb/models/price_create_params.rb | 4 +++- rbi/orb/models/new_floating_tiered_package_price.rbi | 8 ++++++-- rbi/orb/models/new_plan_tiered_package_price.rbi | 8 ++++++-- rbi/orb/models/new_subscription_tiered_package_price.rbi | 8 ++++++-- rbi/orb/models/price.rbi | 8 ++++++-- rbi/orb/models/price_create_params.rbi | 8 ++++++-- 11 files changed, 47 insertions(+), 17 deletions(-) diff --git a/.stats.yml b/.stats.yml index f4571777..43e82626 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 118 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-d63c8075b48441663736b457f8ad859c58cc3e31dfbffb68db44c3f00562012c.yml -openapi_spec_hash: c47dbff685a0a449bfc1ad729c13a72e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-2c9291de1fd876908ebe56144e90762ab6e390e3f25102da815ab3fca6335d38.yml +openapi_spec_hash: eabe2d8e58ceed1d61d41fe7a44020ca config_hash: 1f73a949b649ecfe6ec68ba1bb459dc2 diff --git a/lib/orb/models/new_floating_tiered_package_price.rb b/lib/orb/models/new_floating_tiered_package_price.rb index 424c5393..06d4f516 100644 --- a/lib/orb/models/new_floating_tiered_package_price.rb +++ b/lib/orb/models/new_floating_tiered_package_price.rb @@ -191,7 +191,9 @@ class TieredPackageConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Apply tiered pricing after rounding up the quantity to the package size. Tiers - # are defined using exclusive lower bounds. + # are defined using exclusive lower bounds. The tier bounds are defined based on + # the total quantity rather than the number of packages, so they must be multiples + # of the package size. # # @return [Array] required :tiers, diff --git a/lib/orb/models/new_plan_tiered_package_price.rb b/lib/orb/models/new_plan_tiered_package_price.rb index 5af0d6b2..4ddaf2c0 100644 --- a/lib/orb/models/new_plan_tiered_package_price.rb +++ b/lib/orb/models/new_plan_tiered_package_price.rb @@ -201,7 +201,9 @@ class TieredPackageConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Apply tiered pricing after rounding up the quantity to the package size. Tiers - # are defined using exclusive lower bounds. + # are defined using exclusive lower bounds. The tier bounds are defined based on + # the total quantity rather than the number of packages, so they must be multiples + # of the package size. # # @return [Array] required :tiers, diff --git a/lib/orb/models/new_subscription_tiered_package_price.rb b/lib/orb/models/new_subscription_tiered_package_price.rb index 8bf1ae7b..101c521c 100644 --- a/lib/orb/models/new_subscription_tiered_package_price.rb +++ b/lib/orb/models/new_subscription_tiered_package_price.rb @@ -201,7 +201,9 @@ class TieredPackageConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Apply tiered pricing after rounding up the quantity to the package size. Tiers - # are defined using exclusive lower bounds. + # are defined using exclusive lower bounds. The tier bounds are defined based on + # the total quantity rather than the number of packages, so they must be multiples + # of the package size. # # @return [Array] required :tiers, diff --git a/lib/orb/models/price.rb b/lib/orb/models/price.rb index ebe4b490..2ac7c771 100644 --- a/lib/orb/models/price.rb +++ b/lib/orb/models/price.rb @@ -1793,7 +1793,9 @@ class TieredPackageConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Apply tiered pricing after rounding up the quantity to the package size. Tiers - # are defined using exclusive lower bounds. + # are defined using exclusive lower bounds. The tier bounds are defined based on + # the total quantity rather than the number of packages, so they must be multiples + # of the package size. # # @return [Array] required :tiers, -> { Orb::Internal::Type::ArrayOf[Orb::Price::TieredPackage::TieredPackageConfig::Tier] } diff --git a/lib/orb/models/price_create_params.rb b/lib/orb/models/price_create_params.rb index abfe79c0..adfc0717 100644 --- a/lib/orb/models/price_create_params.rb +++ b/lib/orb/models/price_create_params.rb @@ -451,7 +451,9 @@ class TieredPackageConfig < Orb::Internal::Type::BaseModel # @!attribute tiers # Apply tiered pricing after rounding up the quantity to the package size. Tiers - # are defined using exclusive lower bounds. + # are defined using exclusive lower bounds. The tier bounds are defined based on + # the total quantity rather than the number of packages, so they must be multiples + # of the package size. # # @return [Array] required :tiers, -> { Orb::Internal::Type::ArrayOf[Orb::PriceCreateParams::TieredPackageConfig::Tier] } diff --git a/rbi/orb/models/new_floating_tiered_package_price.rbi b/rbi/orb/models/new_floating_tiered_package_price.rbi index c9f776d9..9dbf7cd2 100644 --- a/rbi/orb/models/new_floating_tiered_package_price.rbi +++ b/rbi/orb/models/new_floating_tiered_package_price.rbi @@ -327,7 +327,9 @@ module Orb attr_accessor :package_size # Apply tiered pricing after rounding up the quantity to the package size. Tiers - # are defined using exclusive lower bounds. + # are defined using exclusive lower bounds. The tier bounds are defined based on + # the total quantity rather than the number of packages, so they must be multiples + # of the package size. sig do returns( T::Array[ @@ -351,7 +353,9 @@ module Orb # Package size package_size:, # Apply tiered pricing after rounding up the quantity to the package size. Tiers - # are defined using exclusive lower bounds. + # are defined using exclusive lower bounds. The tier bounds are defined based on + # the total quantity rather than the number of packages, so they must be multiples + # of the package size. tiers: ) end diff --git a/rbi/orb/models/new_plan_tiered_package_price.rbi b/rbi/orb/models/new_plan_tiered_package_price.rbi index 6149eee8..950c52d2 100644 --- a/rbi/orb/models/new_plan_tiered_package_price.rbi +++ b/rbi/orb/models/new_plan_tiered_package_price.rbi @@ -328,7 +328,9 @@ module Orb attr_accessor :package_size # Apply tiered pricing after rounding up the quantity to the package size. Tiers - # are defined using exclusive lower bounds. + # are defined using exclusive lower bounds. The tier bounds are defined based on + # the total quantity rather than the number of packages, so they must be multiples + # of the package size. sig do returns( T::Array[Orb::NewPlanTieredPackagePrice::TieredPackageConfig::Tier] @@ -350,7 +352,9 @@ module Orb # Package size package_size:, # Apply tiered pricing after rounding up the quantity to the package size. Tiers - # are defined using exclusive lower bounds. + # are defined using exclusive lower bounds. The tier bounds are defined based on + # the total quantity rather than the number of packages, so they must be multiples + # of the package size. tiers: ) end diff --git a/rbi/orb/models/new_subscription_tiered_package_price.rbi b/rbi/orb/models/new_subscription_tiered_package_price.rbi index 119d1682..e5184ae5 100644 --- a/rbi/orb/models/new_subscription_tiered_package_price.rbi +++ b/rbi/orb/models/new_subscription_tiered_package_price.rbi @@ -347,7 +347,9 @@ module Orb attr_accessor :package_size # Apply tiered pricing after rounding up the quantity to the package size. Tiers - # are defined using exclusive lower bounds. + # are defined using exclusive lower bounds. The tier bounds are defined based on + # the total quantity rather than the number of packages, so they must be multiples + # of the package size. sig do returns( T::Array[ @@ -371,7 +373,9 @@ module Orb # Package size package_size:, # Apply tiered pricing after rounding up the quantity to the package size. Tiers - # are defined using exclusive lower bounds. + # are defined using exclusive lower bounds. The tier bounds are defined based on + # the total quantity rather than the number of packages, so they must be multiples + # of the package size. tiers: ) end diff --git a/rbi/orb/models/price.rbi b/rbi/orb/models/price.rbi index 1e56f08e..ff1c488c 100644 --- a/rbi/orb/models/price.rbi +++ b/rbi/orb/models/price.rbi @@ -2469,7 +2469,9 @@ module Orb attr_accessor :package_size # Apply tiered pricing after rounding up the quantity to the package size. Tiers - # are defined using exclusive lower bounds. + # are defined using exclusive lower bounds. The tier bounds are defined based on + # the total quantity rather than the number of packages, so they must be multiples + # of the package size. sig do returns( T::Array[Orb::Price::TieredPackage::TieredPackageConfig::Tier] @@ -2491,7 +2493,9 @@ module Orb # Package size package_size:, # Apply tiered pricing after rounding up the quantity to the package size. Tiers - # are defined using exclusive lower bounds. + # are defined using exclusive lower bounds. The tier bounds are defined based on + # the total quantity rather than the number of packages, so they must be multiples + # of the package size. tiers: ) end diff --git a/rbi/orb/models/price_create_params.rbi b/rbi/orb/models/price_create_params.rbi index c1efbb8c..2f942635 100644 --- a/rbi/orb/models/price_create_params.rbi +++ b/rbi/orb/models/price_create_params.rbi @@ -825,7 +825,9 @@ module Orb attr_accessor :package_size # Apply tiered pricing after rounding up the quantity to the package size. Tiers - # are defined using exclusive lower bounds. + # are defined using exclusive lower bounds. The tier bounds are defined based on + # the total quantity rather than the number of packages, so they must be multiples + # of the package size. sig do returns(T::Array[Orb::PriceCreateParams::TieredPackageConfig::Tier]) end @@ -845,7 +847,9 @@ module Orb # Package size package_size:, # Apply tiered pricing after rounding up the quantity to the package size. Tiers - # are defined using exclusive lower bounds. + # are defined using exclusive lower bounds. The tier bounds are defined based on + # the total quantity rather than the number of packages, so they must be multiples + # of the package size. tiers: ) end From be80854305b7dd24350c0a955de536d37233bc35 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 12 Sep 2025 00:31:10 +0000 Subject: [PATCH 08/24] feat(api): api update --- .stats.yml | 4 ++-- lib/orb/models/item.rb | 1 + lib/orb/models/item_update_params.rb | 1 + rbi/orb/models/item.rbi | 5 +++++ rbi/orb/models/item_update_params.rbi | 5 +++++ sig/orb/models/item.rbs | 2 ++ sig/orb/models/item_update_params.rbs | 2 ++ 7 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 43e82626..5076b7f7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 118 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-2c9291de1fd876908ebe56144e90762ab6e390e3f25102da815ab3fca6335d38.yml -openapi_spec_hash: eabe2d8e58ceed1d61d41fe7a44020ca +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-d661add554c414c758c2ab668ddfe60da8b4c5cd81c44e59ccca1c2c5c91e898.yml +openapi_spec_hash: 3765a1f72610d1018727f51138dfffc3 config_hash: 1f73a949b649ecfe6ec68ba1bb459dc2 diff --git a/lib/orb/models/item.rb b/lib/orb/models/item.rb index 2ed6a35a..79ea35bb 100644 --- a/lib/orb/models/item.rb +++ b/lib/orb/models/item.rb @@ -77,6 +77,7 @@ module ExternalConnectionName TAXJAR = :taxjar AVALARA = :avalara ANROK = :anrok + NUMERAL = :numeral # @!method self.values # @return [Array] diff --git a/lib/orb/models/item_update_params.rb b/lib/orb/models/item_update_params.rb index 2f974597..2a2197eb 100644 --- a/lib/orb/models/item_update_params.rb +++ b/lib/orb/models/item_update_params.rb @@ -66,6 +66,7 @@ module ExternalConnectionName TAXJAR = :taxjar AVALARA = :avalara ANROK = :anrok + NUMERAL = :numeral # @!method self.values # @return [Array] diff --git a/rbi/orb/models/item.rbi b/rbi/orb/models/item.rbi index f53f97e6..f91b73d7 100644 --- a/rbi/orb/models/item.rbi +++ b/rbi/orb/models/item.rbi @@ -148,6 +148,11 @@ module Orb :anrok, Orb::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol ) + NUMERAL = + T.let( + :numeral, + Orb::Item::ExternalConnection::ExternalConnectionName::TaggedSymbol + ) sig do override.returns( diff --git a/rbi/orb/models/item_update_params.rbi b/rbi/orb/models/item_update_params.rbi index 0880437d..a76c065e 100644 --- a/rbi/orb/models/item_update_params.rbi +++ b/rbi/orb/models/item_update_params.rbi @@ -147,6 +147,11 @@ module Orb :anrok, Orb::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol ) + NUMERAL = + T.let( + :numeral, + Orb::ItemUpdateParams::ExternalConnection::ExternalConnectionName::TaggedSymbol + ) sig do override.returns( diff --git a/sig/orb/models/item.rbs b/sig/orb/models/item.rbs index b869dcab..28f7629c 100644 --- a/sig/orb/models/item.rbs +++ b/sig/orb/models/item.rbs @@ -65,6 +65,7 @@ module Orb | :taxjar | :avalara | :anrok + | :numeral module ExternalConnectionName extend Orb::Internal::Type::Enum @@ -76,6 +77,7 @@ module Orb TAXJAR: :taxjar AVALARA: :avalara ANROK: :anrok + NUMERAL: :numeral def self?.values: -> ::Array[Orb::Models::Item::ExternalConnection::external_connection_name] end diff --git a/sig/orb/models/item_update_params.rbs b/sig/orb/models/item_update_params.rbs index bb25c824..036dddb5 100644 --- a/sig/orb/models/item_update_params.rbs +++ b/sig/orb/models/item_update_params.rbs @@ -61,6 +61,7 @@ module Orb | :taxjar | :avalara | :anrok + | :numeral module ExternalConnectionName extend Orb::Internal::Type::Enum @@ -72,6 +73,7 @@ module Orb TAXJAR: :taxjar AVALARA: :avalara ANROK: :anrok + NUMERAL: :numeral def self?.values: -> ::Array[Orb::Models::ItemUpdateParams::ExternalConnection::external_connection_name] end From b89ea6d10a12909e77c76617d11068ade5cf6fc8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 16 Sep 2025 00:31:30 +0000 Subject: [PATCH 09/24] feat(api): api update --- .stats.yml | 4 +- .../models/changed_subscription_resources.rb | 1082 +++++++++- lib/orb/models/price.rb | 540 ++++- .../models/changed_subscription_resources.rbi | 1741 ++++++++++++++++- rbi/orb/models/price.rbi | 1047 +++++++++- .../models/changed_subscription_resources.rbs | 640 +++++- sig/orb/models/price.rbs | 432 ++++ .../prices/external_price_id_test.rb | 54 + test/orb/resources/prices_test.rb | 108 + 9 files changed, 5594 insertions(+), 54 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5076b7f7..232a1ab7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 118 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-d661add554c414c758c2ab668ddfe60da8b4c5cd81c44e59ccca1c2c5c91e898.yml -openapi_spec_hash: 3765a1f72610d1018727f51138dfffc3 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-96a2f34503f9348f8d7ce82035fe09c917860d77e17bc6817e034b891902599a.yml +openapi_spec_hash: 3719dd8f962e6b0051a95015aecb0e53 config_hash: 1f73a949b649ecfe6ec68ba1bb459dc2 diff --git a/lib/orb/models/changed_subscription_resources.rb b/lib/orb/models/changed_subscription_resources.rb index e5248008..d3094044 100644 --- a/lib/orb/models/changed_subscription_resources.rb +++ b/lib/orb/models/changed_subscription_resources.rb @@ -12,8 +12,9 @@ class ChangedSubscriptionResources < Orb::Internal::Type::BaseModel # @!attribute created_invoices # The invoices that were created as part of this operation. # - # @return [Array] - required :created_invoices, -> { Orb::Internal::Type::ArrayOf[Orb::Invoice] } + # @return [Array] + required :created_invoices, + -> { Orb::Internal::Type::ArrayOf[Orb::ChangedSubscriptionResources::CreatedInvoice] } # @!attribute voided_credit_notes # The credit notes that were voided as part of this operation. @@ -30,11 +31,1086 @@ class ChangedSubscriptionResources < Orb::Internal::Type::BaseModel # @!method initialize(created_credit_notes:, created_invoices:, voided_credit_notes:, voided_invoices:) # @param created_credit_notes [Array] The credit notes that were created as part of this operation. # - # @param created_invoices [Array] The invoices that were created as part of this operation. + # @param created_invoices [Array] The invoices that were created as part of this operation. # # @param voided_credit_notes [Array] The credit notes that were voided as part of this operation. # # @param voided_invoices [Array] The invoices that were voided as part of this operation. + + class CreatedInvoice < Orb::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute amount_due + # This is the final amount required to be charged to the customer and reflects the + # application of the customer balance to the `total` of the invoice. + # + # @return [String] + required :amount_due, String + + # @!attribute auto_collection + # + # @return [Orb::Models::ChangedSubscriptionResources::CreatedInvoice::AutoCollection] + required :auto_collection, -> { Orb::ChangedSubscriptionResources::CreatedInvoice::AutoCollection } + + # @!attribute billing_address + # + # @return [Orb::Models::Address, nil] + required :billing_address, -> { Orb::Address }, nil?: true + + # @!attribute created_at + # The creation time of the resource in Orb. + # + # @return [Time] + required :created_at, Time + + # @!attribute credit_notes + # A list of credit notes associated with the invoice + # + # @return [Array] + required :credit_notes, + -> { Orb::Internal::Type::ArrayOf[Orb::ChangedSubscriptionResources::CreatedInvoice::CreditNote] } + + # @!attribute currency + # An ISO 4217 currency string or `credits` + # + # @return [String] + required :currency, String + + # @!attribute customer + # + # @return [Orb::Models::CustomerMinified] + required :customer, -> { Orb::CustomerMinified } + + # @!attribute customer_balance_transactions + # + # @return [Array] + required :customer_balance_transactions, + -> { Orb::Internal::Type::ArrayOf[Orb::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction] } + + # @!attribute customer_tax_id + # Tax IDs are commonly required to be displayed on customer invoices, which are + # added to the headers of invoices. + # + # ### Supported Tax ID Countries and Types + # + # | Country | Type | Description | + # | ---------------------- | ------------ | ------------------------------------------------------------------------------------------------------- | + # | Albania | `al_tin` | Albania Tax Identification Number | + # | Andorra | `ad_nrt` | Andorran NRT Number | + # | Angola | `ao_tin` | Angola Tax Identification Number | + # | Argentina | `ar_cuit` | Argentinian Tax ID Number | + # | Armenia | `am_tin` | Armenia Tax Identification Number | + # | Aruba | `aw_tin` | Aruba Tax Identification Number | + # | Australia | `au_abn` | Australian Business Number (AU ABN) | + # | Australia | `au_arn` | Australian Taxation Office Reference Number | + # | Austria | `eu_vat` | European VAT Number | + # | Azerbaijan | `az_tin` | Azerbaijan Tax Identification Number | + # | Bahamas | `bs_tin` | Bahamas Tax Identification Number | + # | Bahrain | `bh_vat` | Bahraini VAT Number | + # | Bangladesh | `bd_bin` | Bangladesh Business Identification Number | + # | Barbados | `bb_tin` | Barbados Tax Identification Number | + # | Belarus | `by_tin` | Belarus TIN Number | + # | Belgium | `eu_vat` | European VAT Number | + # | Benin | `bj_ifu` | Benin Tax Identification Number (Identifiant Fiscal Unique) | + # | Bolivia | `bo_tin` | Bolivian Tax ID | + # | Bosnia and Herzegovina | `ba_tin` | Bosnia and Herzegovina Tax Identification Number | + # | Brazil | `br_cnpj` | Brazilian CNPJ Number | + # | Brazil | `br_cpf` | Brazilian CPF Number | + # | Bulgaria | `bg_uic` | Bulgaria Unified Identification Code | + # | Bulgaria | `eu_vat` | European VAT Number | + # | Burkina Faso | `bf_ifu` | Burkina Faso Tax Identification Number (Numéro d'Identifiant Fiscal Unique) | + # | Cambodia | `kh_tin` | Cambodia Tax Identification Number | + # | Cameroon | `cm_niu` | Cameroon Tax Identification Number (Numéro d'Identifiant fiscal Unique) | + # | Canada | `ca_bn` | Canadian BN | + # | Canada | `ca_gst_hst` | Canadian GST/HST Number | + # | Canada | `ca_pst_bc` | Canadian PST Number (British Columbia) | + # | Canada | `ca_pst_mb` | Canadian PST Number (Manitoba) | + # | Canada | `ca_pst_sk` | Canadian PST Number (Saskatchewan) | + # | Canada | `ca_qst` | Canadian QST Number (Québec) | + # | Cape Verde | `cv_nif` | Cape Verde Tax Identification Number (Número de Identificação Fiscal) | + # | Chile | `cl_tin` | Chilean TIN | + # | China | `cn_tin` | Chinese Tax ID | + # | Colombia | `co_nit` | Colombian NIT Number | + # | Congo-Kinshasa | `cd_nif` | Congo (DR) Tax Identification Number (Número de Identificação Fiscal) | + # | Costa Rica | `cr_tin` | Costa Rican Tax ID | + # | Croatia | `eu_vat` | European VAT Number | + # | Croatia | `hr_oib` | Croatian Personal Identification Number (OIB) | + # | Cyprus | `eu_vat` | European VAT Number | + # | Czech Republic | `eu_vat` | European VAT Number | + # | Denmark | `eu_vat` | European VAT Number | + # | Dominican Republic | `do_rcn` | Dominican RCN Number | + # | Ecuador | `ec_ruc` | Ecuadorian RUC Number | + # | Egypt | `eg_tin` | Egyptian Tax Identification Number | + # | El Salvador | `sv_nit` | El Salvadorian NIT Number | + # | Estonia | `eu_vat` | European VAT Number | + # | Ethiopia | `et_tin` | Ethiopia Tax Identification Number | + # | European Union | `eu_oss_vat` | European One Stop Shop VAT Number for non-Union scheme | + # | Finland | `eu_vat` | European VAT Number | + # | France | `eu_vat` | European VAT Number | + # | Georgia | `ge_vat` | Georgian VAT | + # | Germany | `de_stn` | German Tax Number (Steuernummer) | + # | Germany | `eu_vat` | European VAT Number | + # | Greece | `eu_vat` | European VAT Number | + # | Guinea | `gn_nif` | Guinea Tax Identification Number (Número de Identificação Fiscal) | + # | Hong Kong | `hk_br` | Hong Kong BR Number | + # | Hungary | `eu_vat` | European VAT Number | + # | Hungary | `hu_tin` | Hungary Tax Number (adószám) | + # | Iceland | `is_vat` | Icelandic VAT | + # | India | `in_gst` | Indian GST Number | + # | Indonesia | `id_npwp` | Indonesian NPWP Number | + # | Ireland | `eu_vat` | European VAT Number | + # | Israel | `il_vat` | Israel VAT | + # | Italy | `eu_vat` | European VAT Number | + # | Japan | `jp_cn` | Japanese Corporate Number (_Hōjin Bangō_) | + # | Japan | `jp_rn` | Japanese Registered Foreign Businesses' Registration Number (_Tōroku Kokugai Jigyōsha no Tōroku Bangō_) | + # | Japan | `jp_trn` | Japanese Tax Registration Number (_Tōroku Bangō_) | + # | Kazakhstan | `kz_bin` | Kazakhstani Business Identification Number | + # | Kenya | `ke_pin` | Kenya Revenue Authority Personal Identification Number | + # | Kyrgyzstan | `kg_tin` | Kyrgyzstan Tax Identification Number | + # | Laos | `la_tin` | Laos Tax Identification Number | + # | Latvia | `eu_vat` | European VAT Number | + # | Liechtenstein | `li_uid` | Liechtensteinian UID Number | + # | Liechtenstein | `li_vat` | Liechtenstein VAT Number | + # | Lithuania | `eu_vat` | European VAT Number | + # | Luxembourg | `eu_vat` | European VAT Number | + # | Malaysia | `my_frp` | Malaysian FRP Number | + # | Malaysia | `my_itn` | Malaysian ITN | + # | Malaysia | `my_sst` | Malaysian SST Number | + # | Malta | `eu_vat` | European VAT Number | + # | Mauritania | `mr_nif` | Mauritania Tax Identification Number (Número de Identificação Fiscal) | + # | Mexico | `mx_rfc` | Mexican RFC Number | + # | Moldova | `md_vat` | Moldova VAT Number | + # | Montenegro | `me_pib` | Montenegro PIB Number | + # | Morocco | `ma_vat` | Morocco VAT Number | + # | Nepal | `np_pan` | Nepal PAN Number | + # | Netherlands | `eu_vat` | European VAT Number | + # | New Zealand | `nz_gst` | New Zealand GST Number | + # | Nigeria | `ng_tin` | Nigerian Tax Identification Number | + # | North Macedonia | `mk_vat` | North Macedonia VAT Number | + # | Northern Ireland | `eu_vat` | Northern Ireland VAT Number | + # | Norway | `no_vat` | Norwegian VAT Number | + # | Norway | `no_voec` | Norwegian VAT on e-commerce Number | + # | Oman | `om_vat` | Omani VAT Number | + # | Peru | `pe_ruc` | Peruvian RUC Number | + # | Philippines | `ph_tin` | Philippines Tax Identification Number | + # | Poland | `eu_vat` | European VAT Number | + # | Portugal | `eu_vat` | European VAT Number | + # | Romania | `eu_vat` | European VAT Number | + # | Romania | `ro_tin` | Romanian Tax ID Number | + # | Russia | `ru_inn` | Russian INN | + # | Russia | `ru_kpp` | Russian KPP | + # | Saudi Arabia | `sa_vat` | Saudi Arabia VAT | + # | Senegal | `sn_ninea` | Senegal NINEA Number | + # | Serbia | `rs_pib` | Serbian PIB Number | + # | Singapore | `sg_gst` | Singaporean GST | + # | Singapore | `sg_uen` | Singaporean UEN | + # | Slovakia | `eu_vat` | European VAT Number | + # | Slovenia | `eu_vat` | European VAT Number | + # | Slovenia | `si_tin` | Slovenia Tax Number (davčna številka) | + # | South Africa | `za_vat` | South African VAT Number | + # | South Korea | `kr_brn` | Korean BRN | + # | Spain | `es_cif` | Spanish NIF Number (previously Spanish CIF Number) | + # | Spain | `eu_vat` | European VAT Number | + # | Suriname | `sr_fin` | Suriname FIN Number | + # | Sweden | `eu_vat` | European VAT Number | + # | Switzerland | `ch_uid` | Switzerland UID Number | + # | Switzerland | `ch_vat` | Switzerland VAT Number | + # | Taiwan | `tw_vat` | Taiwanese VAT | + # | Tajikistan | `tj_tin` | Tajikistan Tax Identification Number | + # | Tanzania | `tz_vat` | Tanzania VAT Number | + # | Thailand | `th_vat` | Thai VAT | + # | Turkey | `tr_tin` | Turkish Tax Identification Number | + # | Uganda | `ug_tin` | Uganda Tax Identification Number | + # | Ukraine | `ua_vat` | Ukrainian VAT | + # | United Arab Emirates | `ae_trn` | United Arab Emirates TRN | + # | United Kingdom | `gb_vat` | United Kingdom VAT Number | + # | United States | `us_ein` | United States EIN | + # | Uruguay | `uy_ruc` | Uruguayan RUC Number | + # | Uzbekistan | `uz_tin` | Uzbekistan TIN Number | + # | Uzbekistan | `uz_vat` | Uzbekistan VAT Number | + # | Venezuela | `ve_rif` | Venezuelan RIF Number | + # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | + # | Zambia | `zm_tin` | Zambia Tax Identification Number | + # | Zimbabwe | `zw_tin` | Zimbabwe Tax Identification Number | + # + # @return [Orb::Models::CustomerTaxID, nil] + required :customer_tax_id, -> { Orb::CustomerTaxID }, nil?: true + + # @!attribute discount + # @deprecated + # + # This field is deprecated in favor of `discounts`. If a `discounts` list is + # provided, the first discount in the list will be returned. If the list is empty, + # `None` will be returned. + # + # @return [Object] + required :discount, Orb::Internal::Type::Unknown + + # @!attribute discounts + # + # @return [Array] + required :discounts, -> { Orb::Internal::Type::ArrayOf[union: Orb::InvoiceLevelDiscount] } + + # @!attribute due_date + # When the invoice payment is due. The due date is null if the invoice is not yet + # finalized. + # + # @return [Time, nil] + required :due_date, Time, nil?: true + + # @!attribute eligible_to_issue_at + # If the invoice has a status of `draft`, this will be the time that the invoice + # will be eligible to be issued, otherwise it will be `null`. If `auto-issue` is + # true, the invoice will automatically begin issuing at this time. + # + # @return [Time, nil] + required :eligible_to_issue_at, Time, nil?: true + + # @!attribute hosted_invoice_url + # A URL for the customer-facing invoice portal. This URL expires 30 days after the + # invoice's due date, or 60 days after being re-generated through the UI. + # + # @return [String, nil] + required :hosted_invoice_url, String, nil?: true + + # @!attribute invoice_date + # The scheduled date of the invoice + # + # @return [Time] + required :invoice_date, Time + + # @!attribute invoice_number + # Automatically generated invoice number to help track and reconcile invoices. + # Invoice numbers have a prefix such as `RFOBWG`. These can be sequential per + # account or customer. + # + # @return [String] + required :invoice_number, String + + # @!attribute invoice_pdf + # The link to download the PDF representation of the `Invoice`. + # + # @return [String, nil] + required :invoice_pdf, String, nil?: true + + # @!attribute invoice_source + # + # @return [Symbol, Orb::Models::ChangedSubscriptionResources::CreatedInvoice::InvoiceSource] + required :invoice_source, enum: -> { Orb::ChangedSubscriptionResources::CreatedInvoice::InvoiceSource } + + # @!attribute is_payable_now + # True if the invoice has only in-advance fixed fees and is payable now + # + # @return [Boolean] + required :is_payable_now, Orb::Internal::Type::Boolean + + # @!attribute issue_failed_at + # If the invoice failed to issue, this will be the last time it failed to issue + # (even if it is now in a different state.) + # + # @return [Time, nil] + required :issue_failed_at, Time, nil?: true + + # @!attribute issued_at + # If the invoice has been issued, this will be the time it transitioned to + # `issued` (even if it is now in a different state.) + # + # @return [Time, nil] + required :issued_at, Time, nil?: true + + # @!attribute line_items + # The breakdown of prices in this invoice. + # + # @return [Array] + required :line_items, + -> { Orb::Internal::Type::ArrayOf[Orb::ChangedSubscriptionResources::CreatedInvoice::LineItem] } + + # @!attribute maximum + # + # @return [Orb::Models::Maximum, nil] + required :maximum, -> { Orb::Maximum }, nil?: true + + # @!attribute maximum_amount + # + # @return [String, nil] + required :maximum_amount, String, nil?: true + + # @!attribute memo + # Free-form text which is available on the invoice PDF and the Orb invoice portal. + # + # @return [String, nil] + required :memo, String, nil?: true + + # @!attribute metadata + # User specified key-value pairs for the resource. If not present, this defaults + # to an empty dictionary. Individual keys can be removed by setting the value to + # `null`, and the entire metadata mapping can be cleared by setting `metadata` to + # `null`. + # + # @return [Hash{Symbol=>String}] + required :metadata, Orb::Internal::Type::HashOf[String] + + # @!attribute minimum + # + # @return [Orb::Models::Minimum, nil] + required :minimum, -> { Orb::Minimum }, nil?: true + + # @!attribute minimum_amount + # + # @return [String, nil] + required :minimum_amount, String, nil?: true + + # @!attribute paid_at + # If the invoice has a status of `paid`, this gives a timestamp when the invoice + # was paid. + # + # @return [Time, nil] + required :paid_at, Time, nil?: true + + # @!attribute payment_attempts + # A list of payment attempts associated with the invoice + # + # @return [Array] + required :payment_attempts, + -> { Orb::Internal::Type::ArrayOf[Orb::ChangedSubscriptionResources::CreatedInvoice::PaymentAttempt] } + + # @!attribute payment_failed_at + # If payment was attempted on this invoice but failed, this will be the time of + # the most recent attempt. + # + # @return [Time, nil] + required :payment_failed_at, Time, nil?: true + + # @!attribute payment_started_at + # If payment was attempted on this invoice, this will be the start time of the + # most recent attempt. This field is especially useful for delayed-notification + # payment mechanisms (like bank transfers), where payment can take 3 days or more. + # + # @return [Time, nil] + required :payment_started_at, Time, nil?: true + + # @!attribute scheduled_issue_at + # If the invoice is in draft, this timestamp will reflect when the invoice is + # scheduled to be issued. + # + # @return [Time, nil] + required :scheduled_issue_at, Time, nil?: true + + # @!attribute shipping_address + # + # @return [Orb::Models::Address, nil] + required :shipping_address, -> { Orb::Address }, nil?: true + + # @!attribute status + # + # @return [Symbol, Orb::Models::ChangedSubscriptionResources::CreatedInvoice::Status] + required :status, enum: -> { Orb::ChangedSubscriptionResources::CreatedInvoice::Status } + + # @!attribute subscription + # + # @return [Orb::Models::SubscriptionMinified, nil] + required :subscription, -> { Orb::SubscriptionMinified }, nil?: true + + # @!attribute subtotal + # The total before any discounts and minimums are applied. + # + # @return [String] + required :subtotal, String + + # @!attribute sync_failed_at + # If the invoice failed to sync, this will be the last time an external invoicing + # provider sync was attempted. This field will always be `null` for invoices using + # Orb Invoicing. + # + # @return [Time, nil] + required :sync_failed_at, Time, nil?: true + + # @!attribute total + # The total after any minimums and discounts have been applied. + # + # @return [String] + required :total, String + + # @!attribute voided_at + # If the invoice has a status of `void`, this gives a timestamp when the invoice + # was voided. + # + # @return [Time, nil] + required :voided_at, Time, nil?: true + + # @!attribute will_auto_issue + # This is true if the invoice will be automatically issued in the future, and + # false otherwise. + # + # @return [Boolean] + required :will_auto_issue, Orb::Internal::Type::Boolean + + # @!method initialize(id:, amount_due:, auto_collection:, billing_address:, created_at:, credit_notes:, currency:, customer:, customer_balance_transactions:, customer_tax_id:, discount:, discounts:, due_date:, eligible_to_issue_at:, hosted_invoice_url:, invoice_date:, invoice_number:, invoice_pdf:, invoice_source:, is_payable_now:, issue_failed_at:, issued_at:, line_items:, maximum:, maximum_amount:, memo:, metadata:, minimum:, minimum_amount:, paid_at:, payment_attempts:, payment_failed_at:, payment_started_at:, scheduled_issue_at:, shipping_address:, status:, subscription:, subtotal:, sync_failed_at:, total:, voided_at:, will_auto_issue:) + # Some parameter documentations has been truncated, see + # {Orb::Models::ChangedSubscriptionResources::CreatedInvoice} for more details. + # + # @param id [String] + # + # @param amount_due [String] This is the final amount required to be charged to the customer and reflects the + # + # @param auto_collection [Orb::Models::ChangedSubscriptionResources::CreatedInvoice::AutoCollection] + # + # @param billing_address [Orb::Models::Address, nil] + # + # @param created_at [Time] The creation time of the resource in Orb. + # + # @param credit_notes [Array] A list of credit notes associated with the invoice + # + # @param currency [String] An ISO 4217 currency string or `credits` + # + # @param customer [Orb::Models::CustomerMinified] + # + # @param customer_balance_transactions [Array] + # + # @param customer_tax_id [Orb::Models::CustomerTaxID, nil] Tax IDs are commonly required to be displayed on customer invoices, which are ad + # + # @param discount [Object] This field is deprecated in favor of `discounts`. If a `discounts` list is provi + # + # @param discounts [Array] + # + # @param due_date [Time, nil] When the invoice payment is due. The due date is null if the invoice is not yet + # + # @param eligible_to_issue_at [Time, nil] If the invoice has a status of `draft`, this will be the time that the invoice w + # + # @param hosted_invoice_url [String, nil] A URL for the customer-facing invoice portal. This URL expires 30 days after the + # + # @param invoice_date [Time] The scheduled date of the invoice + # + # @param invoice_number [String] Automatically generated invoice number to help track and reconcile invoices. Inv + # + # @param invoice_pdf [String, nil] The link to download the PDF representation of the `Invoice`. + # + # @param invoice_source [Symbol, Orb::Models::ChangedSubscriptionResources::CreatedInvoice::InvoiceSource] + # + # @param is_payable_now [Boolean] True if the invoice has only in-advance fixed fees and is payable now + # + # @param issue_failed_at [Time, nil] If the invoice failed to issue, this will be the last time it failed to issue (e + # + # @param issued_at [Time, nil] If the invoice has been issued, this will be the time it transitioned to `issued + # + # @param line_items [Array] The breakdown of prices in this invoice. + # + # @param maximum [Orb::Models::Maximum, nil] + # + # @param maximum_amount [String, nil] + # + # @param memo [String, nil] Free-form text which is available on the invoice PDF and the Orb invoice portal. + # + # @param metadata [Hash{Symbol=>String}] User specified key-value pairs for the resource. If not present, this defaults t + # + # @param minimum [Orb::Models::Minimum, nil] + # + # @param minimum_amount [String, nil] + # + # @param paid_at [Time, nil] If the invoice has a status of `paid`, this gives a timestamp when the invoice w + # + # @param payment_attempts [Array] A list of payment attempts associated with the invoice + # + # @param payment_failed_at [Time, nil] If payment was attempted on this invoice but failed, this will be the time of th + # + # @param payment_started_at [Time, nil] If payment was attempted on this invoice, this will be the start time of the mos + # + # @param scheduled_issue_at [Time, nil] If the invoice is in draft, this timestamp will reflect when the invoice is sche + # + # @param shipping_address [Orb::Models::Address, nil] + # + # @param status [Symbol, Orb::Models::ChangedSubscriptionResources::CreatedInvoice::Status] + # + # @param subscription [Orb::Models::SubscriptionMinified, nil] + # + # @param subtotal [String] The total before any discounts and minimums are applied. + # + # @param sync_failed_at [Time, nil] If the invoice failed to sync, this will be the last time an external invoicing + # + # @param total [String] The total after any minimums and discounts have been applied. + # + # @param voided_at [Time, nil] If the invoice has a status of `void`, this gives a timestamp when the invoice w + # + # @param will_auto_issue [Boolean] This is true if the invoice will be automatically issued in the future, and fals + + # @see Orb::Models::ChangedSubscriptionResources::CreatedInvoice#auto_collection + class AutoCollection < Orb::Internal::Type::BaseModel + # @!attribute enabled + # True only if auto-collection is enabled for this invoice. + # + # @return [Boolean, nil] + required :enabled, Orb::Internal::Type::Boolean, nil?: true + + # @!attribute next_attempt_at + # If the invoice is scheduled for auto-collection, this field will reflect when + # the next attempt will occur. If dunning has been exhausted, or auto-collection + # is not enabled for this invoice, this field will be `null`. + # + # @return [Time, nil] + required :next_attempt_at, Time, nil?: true + + # @!attribute num_attempts + # Number of auto-collection payment attempts. + # + # @return [Integer, nil] + required :num_attempts, Integer, nil?: true + + # @!attribute previously_attempted_at + # If Orb has ever attempted payment auto-collection for this invoice, this field + # will reflect when that attempt occurred. In conjunction with `next_attempt_at`, + # this can be used to tell whether the invoice is currently in dunning (that is, + # `previously_attempted_at` is non-null, and `next_attempt_time` is non-null), or + # if dunning has been exhausted (`previously_attempted_at` is non-null, but + # `next_attempt_time` is null). + # + # @return [Time, nil] + required :previously_attempted_at, Time, nil?: true + + # @!method initialize(enabled:, next_attempt_at:, num_attempts:, previously_attempted_at:) + # Some parameter documentations has been truncated, see + # {Orb::Models::ChangedSubscriptionResources::CreatedInvoice::AutoCollection} for + # more details. + # + # @param enabled [Boolean, nil] True only if auto-collection is enabled for this invoice. + # + # @param next_attempt_at [Time, nil] If the invoice is scheduled for auto-collection, this field will reflect when th + # + # @param num_attempts [Integer, nil] Number of auto-collection payment attempts. + # + # @param previously_attempted_at [Time, nil] If Orb has ever attempted payment auto-collection for this invoice, this field w + end + + class CreditNote < Orb::Internal::Type::BaseModel + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute credit_note_number + # + # @return [String] + required :credit_note_number, String + + # @!attribute memo + # An optional memo supplied on the credit note. + # + # @return [String, nil] + required :memo, String, nil?: true + + # @!attribute reason + # + # @return [String] + required :reason, String + + # @!attribute total + # + # @return [String] + required :total, String + + # @!attribute type + # + # @return [String] + required :type, String + + # @!attribute voided_at + # If the credit note has a status of `void`, this gives a timestamp when the + # credit note was voided. + # + # @return [Time, nil] + required :voided_at, Time, nil?: true + + # @!method initialize(id:, credit_note_number:, memo:, reason:, total:, type:, voided_at:) + # Some parameter documentations has been truncated, see + # {Orb::Models::ChangedSubscriptionResources::CreatedInvoice::CreditNote} for more + # details. + # + # @param id [String] + # + # @param credit_note_number [String] + # + # @param memo [String, nil] An optional memo supplied on the credit note. + # + # @param reason [String] + # + # @param total [String] + # + # @param type [String] + # + # @param voided_at [Time, nil] If the credit note has a status of `void`, this gives a timestamp when the credi + end + + class CustomerBalanceTransaction < Orb::Internal::Type::BaseModel + # @!attribute id + # A unique id for this transaction. + # + # @return [String] + required :id, String + + # @!attribute action + # + # @return [Symbol, Orb::Models::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::Action] + required :action, + enum: -> { Orb::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::Action } + + # @!attribute amount + # The value of the amount changed in the transaction. + # + # @return [String] + required :amount, String + + # @!attribute created_at + # The creation time of this transaction. + # + # @return [Time] + required :created_at, Time + + # @!attribute credit_note + # + # @return [Orb::Models::CreditNoteTiny, nil] + required :credit_note, -> { Orb::CreditNoteTiny }, nil?: true + + # @!attribute description + # An optional description provided for manual customer balance adjustments. + # + # @return [String, nil] + required :description, String, nil?: true + + # @!attribute ending_balance + # The new value of the customer's balance prior to the transaction, in the + # customer's currency. + # + # @return [String] + required :ending_balance, String + + # @!attribute invoice + # + # @return [Orb::Models::InvoiceTiny, nil] + required :invoice, -> { Orb::InvoiceTiny }, nil?: true + + # @!attribute starting_balance + # The original value of the customer's balance prior to the transaction, in the + # customer's currency. + # + # @return [String] + required :starting_balance, String + + # @!attribute type + # + # @return [Symbol, Orb::Models::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::Type] + required :type, + enum: -> { Orb::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::Type } + + # @!method initialize(id:, action:, amount:, created_at:, credit_note:, description:, ending_balance:, invoice:, starting_balance:, type:) + # Some parameter documentations has been truncated, see + # {Orb::Models::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction} + # for more details. + # + # @param id [String] A unique id for this transaction. + # + # @param action [Symbol, Orb::Models::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::Action] + # + # @param amount [String] The value of the amount changed in the transaction. + # + # @param created_at [Time] The creation time of this transaction. + # + # @param credit_note [Orb::Models::CreditNoteTiny, nil] + # + # @param description [String, nil] An optional description provided for manual customer balance adjustments. + # + # @param ending_balance [String] The new value of the customer's balance prior to the transaction, in the custome + # + # @param invoice [Orb::Models::InvoiceTiny, nil] + # + # @param starting_balance [String] The original value of the customer's balance prior to the transaction, in the cu + # + # @param type [Symbol, Orb::Models::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::Type] + + # @see Orb::Models::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction#action + module Action + extend Orb::Internal::Type::Enum + + APPLIED_TO_INVOICE = :applied_to_invoice + MANUAL_ADJUSTMENT = :manual_adjustment + PRORATED_REFUND = :prorated_refund + REVERT_PRORATED_REFUND = :revert_prorated_refund + RETURN_FROM_VOIDING = :return_from_voiding + CREDIT_NOTE_APPLIED = :credit_note_applied + CREDIT_NOTE_VOIDED = :credit_note_voided + OVERPAYMENT_REFUND = :overpayment_refund + EXTERNAL_PAYMENT = :external_payment + SMALL_INVOICE_CARRYOVER = :small_invoice_carryover + + # @!method self.values + # @return [Array] + end + + # @see Orb::Models::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction#type + module Type + extend Orb::Internal::Type::Enum + + INCREMENT = :increment + DECREMENT = :decrement + + # @!method self.values + # @return [Array] + end + end + + # @see Orb::Models::ChangedSubscriptionResources::CreatedInvoice#invoice_source + module InvoiceSource + extend Orb::Internal::Type::Enum + + SUBSCRIPTION = :subscription + PARTIAL = :partial + ONE_OFF = :one_off + + # @!method self.values + # @return [Array] + end + + class LineItem < Orb::Internal::Type::BaseModel + # @!attribute id + # A unique ID for this line item. + # + # @return [String] + required :id, String + + # @!attribute adjusted_subtotal + # The line amount after any adjustments and before overage conversion, credits and + # partial invoicing. + # + # @return [String] + required :adjusted_subtotal, String + + # @!attribute adjustments + # All adjustments applied to the line item in the order they were applied based on + # invoice calculations (ie. usage discounts -> amount discounts -> percentage + # discounts -> minimums -> maximums). + # + # @return [Array] + required :adjustments, + -> { Orb::Internal::Type::ArrayOf[union: Orb::ChangedSubscriptionResources::CreatedInvoice::LineItem::Adjustment] } + + # @!attribute amount + # The final amount for a line item after all adjustments and pre paid credits have + # been applied. + # + # @return [String] + required :amount, String + + # @!attribute credits_applied + # The number of prepaid credits applied. + # + # @return [String] + required :credits_applied, String + + # @!attribute discount + # @deprecated + # + # This field is deprecated in favor of `adjustments` + # + # @return [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] + required :discount, union: -> { Orb::Discount }, nil?: true + + # @!attribute end_date + # The end date of the range of time applied for this line item's price. + # + # @return [Time] + required :end_date, Time + + # @!attribute filter + # An additional filter that was used to calculate the usage for this line item. + # + # @return [String, nil] + required :filter, String, nil?: true + + # @!attribute grouping + # [DEPRECATED] For configured prices that are split by a grouping key, this will + # be populated with the key and a value. The `amount` and `subtotal` will be the + # values for this particular grouping. + # + # @return [String, nil] + required :grouping, String, nil?: true + + # @!attribute maximum + # @deprecated + # + # This field is deprecated in favor of `adjustments`. + # + # @return [Orb::Models::Maximum, nil] + required :maximum, -> { Orb::Maximum }, nil?: true + + # @!attribute maximum_amount + # @deprecated + # + # This field is deprecated in favor of `adjustments`. + # + # @return [String, nil] + required :maximum_amount, String, nil?: true + + # @!attribute minimum + # @deprecated + # + # This field is deprecated in favor of `adjustments`. + # + # @return [Orb::Models::Minimum, nil] + required :minimum, -> { Orb::Minimum }, nil?: true + + # @!attribute minimum_amount + # @deprecated + # + # This field is deprecated in favor of `adjustments`. + # + # @return [String, nil] + required :minimum_amount, String, nil?: true + + # @!attribute name + # The name of the price associated with this line item. + # + # @return [String] + required :name, String + + # @!attribute partially_invoiced_amount + # Any amount applied from a partial invoice + # + # @return [String] + required :partially_invoiced_amount, String + + # @!attribute price + # The Price resource represents a price that can be billed on a subscription, + # resulting in a charge on an invoice in the form of an invoice line item. Prices + # take a quantity and determine an amount to bill. + # + # Orb supports a few different pricing models out of the box. Each of these models + # is serialized differently in a given Price object. The model_type field + # determines the key for the configuration object that is present. + # + # For more on the types of prices, see + # [the core concepts documentation](/core-concepts#plan-and-price) + # + # @return [Orb::Models::Price::Unit, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::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::Minimum] + required :price, union: -> { Orb::Price } + + # @!attribute quantity + # Either the fixed fee quantity or the usage during the service period. + # + # @return [Float] + required :quantity, Float + + # @!attribute start_date + # The start date of the range of time applied for this line item's price. + # + # @return [Time] + required :start_date, Time + + # @!attribute sub_line_items + # For complex pricing structures, the line item can be broken down further in + # `sub_line_items`. + # + # @return [Array] + required :sub_line_items, + -> { Orb::Internal::Type::ArrayOf[union: Orb::ChangedSubscriptionResources::CreatedInvoice::LineItem::SubLineItem] } + + # @!attribute subtotal + # The line amount before any adjustments. + # + # @return [String] + required :subtotal, String + + # @!attribute tax_amounts + # An array of tax rates and their incurred tax amounts. Empty if no tax + # integration is configured. + # + # @return [Array] + required :tax_amounts, -> { Orb::Internal::Type::ArrayOf[Orb::TaxAmount] } + + # @!attribute usage_customer_ids + # A list of customer ids that were used to calculate the usage for this line item. + # + # @return [Array, nil] + required :usage_customer_ids, Orb::Internal::Type::ArrayOf[String], nil?: true + + # @!method initialize(id:, adjusted_subtotal:, adjustments:, amount:, credits_applied:, discount:, end_date:, filter:, grouping:, maximum:, maximum_amount:, minimum:, minimum_amount:, name:, partially_invoiced_amount:, price:, quantity:, start_date:, sub_line_items:, subtotal:, tax_amounts:, usage_customer_ids:) + # Some parameter documentations has been truncated, see + # {Orb::Models::ChangedSubscriptionResources::CreatedInvoice::LineItem} for more + # details. + # + # @param id [String] A unique ID for this line item. + # + # @param adjusted_subtotal [String] The line amount after any adjustments and before overage conversion, credits and + # + # @param adjustments [Array] All adjustments applied to the line item in the order they were applied based on + # + # @param amount [String] The final amount for a line item after all adjustments and pre paid credits have + # + # @param credits_applied [String] The number of prepaid credits applied. + # + # @param discount [Orb::Models::PercentageDiscount, Orb::Models::TrialDiscount, Orb::Models::UsageDiscount, Orb::Models::AmountDiscount, nil] This field is deprecated in favor of `adjustments` + # + # @param end_date [Time] The end date of the range of time applied for this line item's price. + # + # @param filter [String, nil] An additional filter that was used to calculate the usage for this line item. + # + # @param grouping [String, nil] [DEPRECATED] For configured prices that are split by a grouping key, this will b + # + # @param maximum [Orb::Models::Maximum, nil] This field is deprecated in favor of `adjustments`. + # + # @param maximum_amount [String, nil] This field is deprecated in favor of `adjustments`. + # + # @param minimum [Orb::Models::Minimum, nil] This field is deprecated in favor of `adjustments`. + # + # @param minimum_amount [String, nil] This field is deprecated in favor of `adjustments`. + # + # @param name [String] The name of the price associated with this line item. + # + # @param partially_invoiced_amount [String] Any amount applied from a partial invoice + # + # @param price [Orb::Models::Price::Unit, Orb::Models::Price::Tiered, Orb::Models::Price::Bulk, Orb::Models::Price::Package, Orb::Models::Price::Matrix, Orb::Models::Price::ThresholdTotalAmount, Orb::Models::Price::TieredPackage, Orb::Models::Price::TieredWithMinimum, Orb::Models::Price::GroupedTiered, Orb::Models::Price::TieredPackageWithMinimum, Orb::Models::Price::PackageWithAllocation, Orb::Models::Price::UnitWithPercent, Orb::Models::Price::MatrixWithAllocation, Orb::Models::Price::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::Minimum] The Price resource represents a price that can be billed on a subscription, resu + # + # @param quantity [Float] Either the fixed fee quantity or the usage during the service period. + # + # @param start_date [Time] The start date of the range of time applied for this line item's price. + # + # @param sub_line_items [Array] For complex pricing structures, the line item can be broken down further in `sub + # + # @param subtotal [String] The line amount before any adjustments. + # + # @param tax_amounts [Array] An array of tax rates and their incurred tax amounts. Empty if no tax integratio + # + # @param usage_customer_ids [Array, nil] A list of customer ids that were used to calculate the usage for this line item. + + module Adjustment + extend Orb::Internal::Type::Union + + discriminator :adjustment_type + + variant :usage_discount, -> { Orb::MonetaryUsageDiscountAdjustment } + + variant :amount_discount, -> { Orb::MonetaryAmountDiscountAdjustment } + + variant :percentage_discount, -> { Orb::MonetaryPercentageDiscountAdjustment } + + variant :minimum, -> { Orb::MonetaryMinimumAdjustment } + + variant :maximum, -> { Orb::MonetaryMaximumAdjustment } + + # @!method self.variants + # @return [Array(Orb::Models::MonetaryUsageDiscountAdjustment, Orb::Models::MonetaryAmountDiscountAdjustment, Orb::Models::MonetaryPercentageDiscountAdjustment, Orb::Models::MonetaryMinimumAdjustment, Orb::Models::MonetaryMaximumAdjustment)] + end + + module SubLineItem + extend Orb::Internal::Type::Union + + discriminator :type + + variant :matrix, -> { Orb::MatrixSubLineItem } + + variant :tier, -> { Orb::TierSubLineItem } + + variant :"'null'", -> { Orb::OtherSubLineItem } + + # @!method self.variants + # @return [Array(Orb::Models::MatrixSubLineItem, Orb::Models::TierSubLineItem, Orb::Models::OtherSubLineItem)] + end + end + + class PaymentAttempt < Orb::Internal::Type::BaseModel + # @!attribute id + # The ID of the payment attempt. + # + # @return [String] + required :id, String + + # @!attribute amount + # The amount of the payment attempt. + # + # @return [String] + required :amount, String + + # @!attribute created_at + # The time at which the payment attempt was created. + # + # @return [Time] + required :created_at, Time + + # @!attribute payment_provider + # The payment provider that attempted to collect the payment. + # + # @return [Symbol, Orb::Models::ChangedSubscriptionResources::CreatedInvoice::PaymentAttempt::PaymentProvider, nil] + required :payment_provider, + enum: -> { + Orb::ChangedSubscriptionResources::CreatedInvoice::PaymentAttempt::PaymentProvider + }, + nil?: true + + # @!attribute payment_provider_id + # The ID of the payment attempt in the payment provider. + # + # @return [String, nil] + required :payment_provider_id, String, nil?: true + + # @!attribute receipt_pdf + # URL to the downloadable PDF version of the receipt. This field will be `null` + # for payment attempts that did not succeed. + # + # @return [String, nil] + required :receipt_pdf, String, nil?: true + + # @!attribute succeeded + # Whether the payment attempt succeeded. + # + # @return [Boolean] + required :succeeded, Orb::Internal::Type::Boolean + + # @!method initialize(id:, amount:, created_at:, payment_provider:, payment_provider_id:, receipt_pdf:, succeeded:) + # Some parameter documentations has been truncated, see + # {Orb::Models::ChangedSubscriptionResources::CreatedInvoice::PaymentAttempt} for + # more details. + # + # @param id [String] The ID of the payment attempt. + # + # @param amount [String] The amount of the payment attempt. + # + # @param created_at [Time] The time at which the payment attempt was created. + # + # @param payment_provider [Symbol, Orb::Models::ChangedSubscriptionResources::CreatedInvoice::PaymentAttempt::PaymentProvider, nil] The payment provider that attempted to collect the payment. + # + # @param payment_provider_id [String, nil] The ID of the payment attempt in the payment provider. + # + # @param receipt_pdf [String, nil] URL to the downloadable PDF version of the receipt. This field will be `null` fo + # + # @param succeeded [Boolean] Whether the payment attempt succeeded. + + # The payment provider that attempted to collect the payment. + # + # @see Orb::Models::ChangedSubscriptionResources::CreatedInvoice::PaymentAttempt#payment_provider + module PaymentProvider + extend Orb::Internal::Type::Enum + + STRIPE = :stripe + + # @!method self.values + # @return [Array] + end + end + + # @see Orb::Models::ChangedSubscriptionResources::CreatedInvoice#status + module Status + extend Orb::Internal::Type::Enum + + ISSUED = :issued + PAID = :paid + SYNCED = :synced + VOID = :void + DRAFT = :draft + + # @!method self.values + # @return [Array] + end + end end end end diff --git a/lib/orb/models/price.rb b/lib/orb/models/price.rb index 2ac7c771..c5c976ec 100644 --- a/lib/orb/models/price.rb +++ b/lib/orb/models/price.rb @@ -87,6 +87,11 @@ class Unit < Orb::Internal::Type::BaseModel # @return [Orb::Models::BillingCycleConfiguration] required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } + # @!attribute billing_mode + # + # @return [Symbol, Orb::Models::Price::Unit::BillingMode] + required :billing_mode, enum: -> { Orb::Price::Unit::BillingMode } + # @!attribute cadence # # @return [Symbol, Orb::Models::Price::Unit::Cadence] @@ -222,7 +227,7 @@ class Unit < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, unit_config:, dimensional_price_configuration: nil, model_type: :unit) + # @!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:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, unit_config:, dimensional_price_configuration: nil, model_type: :unit) # Some parameter documentations has been truncated, see {Orb::Models::Price::Unit} # for more details. # @@ -232,6 +237,8 @@ class Unit < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # + # @param billing_mode [Symbol, Orb::Models::Price::Unit::BillingMode] + # # @param cadence [Symbol, Orb::Models::Price::Unit::Cadence] # # @param composite_price_filters [Array, nil] @@ -280,6 +287,17 @@ class Unit < Orb::Internal::Type::BaseModel # # @param model_type [Symbol, :unit] The pricing model type + # @see Orb::Models::Price::Unit#billing_mode + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE = :in_advance + IN_ARREAR = :in_arrear + + # @!method self.values + # @return [Array] + end + # @see Orb::Models::Price::Unit#cadence module Cadence extend Orb::Internal::Type::Enum @@ -324,6 +342,11 @@ class Tiered < Orb::Internal::Type::BaseModel # @return [Orb::Models::BillingCycleConfiguration] required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } + # @!attribute billing_mode + # + # @return [Symbol, Orb::Models::Price::Tiered::BillingMode] + required :billing_mode, enum: -> { Orb::Price::Tiered::BillingMode } + # @!attribute cadence # # @return [Symbol, Orb::Models::Price::Tiered::Cadence] @@ -459,7 +482,7 @@ class Tiered < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, tiered_config:, dimensional_price_configuration: nil, model_type: :tiered) + # @!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:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, tiered_config:, dimensional_price_configuration: nil, model_type: :tiered) # Some parameter documentations has been truncated, see # {Orb::Models::Price::Tiered} for more details. # @@ -469,6 +492,8 @@ class Tiered < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # + # @param billing_mode [Symbol, Orb::Models::Price::Tiered::BillingMode] + # # @param cadence [Symbol, Orb::Models::Price::Tiered::Cadence] # # @param composite_price_filters [Array, nil] @@ -517,6 +542,17 @@ class Tiered < Orb::Internal::Type::BaseModel # # @param model_type [Symbol, :tiered] The pricing model type + # @see Orb::Models::Price::Tiered#billing_mode + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE = :in_advance + IN_ARREAR = :in_arrear + + # @!method self.values + # @return [Array] + end + # @see Orb::Models::Price::Tiered#cadence module Cadence extend Orb::Internal::Type::Enum @@ -561,6 +597,11 @@ class Bulk < Orb::Internal::Type::BaseModel # @return [Orb::Models::BillingCycleConfiguration] required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } + # @!attribute billing_mode + # + # @return [Symbol, Orb::Models::Price::Bulk::BillingMode] + required :billing_mode, enum: -> { Orb::Price::Bulk::BillingMode } + # @!attribute bulk_config # Configuration for bulk pricing # @@ -696,7 +737,7 @@ class Bulk < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, bulk_config:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :bulk) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, billing_mode:, bulk_config:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :bulk) # Some parameter documentations has been truncated, see {Orb::Models::Price::Bulk} # for more details. # @@ -706,6 +747,8 @@ class Bulk < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # + # @param billing_mode [Symbol, Orb::Models::Price::Bulk::BillingMode] + # # @param bulk_config [Orb::Models::BulkConfig] Configuration for bulk pricing # # @param cadence [Symbol, Orb::Models::Price::Bulk::Cadence] @@ -754,6 +797,17 @@ class Bulk < Orb::Internal::Type::BaseModel # # @param model_type [Symbol, :bulk] The pricing model type + # @see Orb::Models::Price::Bulk#billing_mode + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE = :in_advance + IN_ARREAR = :in_arrear + + # @!method self.values + # @return [Array] + end + # @see Orb::Models::Price::Bulk#cadence module Cadence extend Orb::Internal::Type::Enum @@ -798,6 +852,11 @@ class Package < Orb::Internal::Type::BaseModel # @return [Orb::Models::BillingCycleConfiguration] required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } + # @!attribute billing_mode + # + # @return [Symbol, Orb::Models::Price::Package::BillingMode] + required :billing_mode, enum: -> { Orb::Price::Package::BillingMode } + # @!attribute cadence # # @return [Symbol, Orb::Models::Price::Package::Cadence] @@ -933,7 +992,7 @@ class Package < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, package_config:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :package) + # @!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:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, package_config:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :package) # Some parameter documentations has been truncated, see # {Orb::Models::Price::Package} for more details. # @@ -943,6 +1002,8 @@ class Package < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # + # @param billing_mode [Symbol, Orb::Models::Price::Package::BillingMode] + # # @param cadence [Symbol, Orb::Models::Price::Package::Cadence] # # @param composite_price_filters [Array, nil] @@ -991,6 +1052,17 @@ class Package < Orb::Internal::Type::BaseModel # # @param model_type [Symbol, :package] The pricing model type + # @see Orb::Models::Price::Package#billing_mode + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE = :in_advance + IN_ARREAR = :in_arrear + + # @!method self.values + # @return [Array] + end + # @see Orb::Models::Price::Package#cadence module Cadence extend Orb::Internal::Type::Enum @@ -1035,6 +1107,11 @@ class Matrix < Orb::Internal::Type::BaseModel # @return [Orb::Models::BillingCycleConfiguration] required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } + # @!attribute billing_mode + # + # @return [Symbol, Orb::Models::Price::Matrix::BillingMode] + required :billing_mode, enum: -> { Orb::Price::Matrix::BillingMode } + # @!attribute cadence # # @return [Symbol, Orb::Models::Price::Matrix::Cadence] @@ -1170,7 +1247,7 @@ class Matrix < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, matrix_config:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :matrix) + # @!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:, invoicing_cycle_configuration:, item:, matrix_config:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :matrix) # Some parameter documentations has been truncated, see # {Orb::Models::Price::Matrix} for more details. # @@ -1180,6 +1257,8 @@ class Matrix < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # + # @param billing_mode [Symbol, Orb::Models::Price::Matrix::BillingMode] + # # @param cadence [Symbol, Orb::Models::Price::Matrix::Cadence] # # @param composite_price_filters [Array, nil] @@ -1228,6 +1307,17 @@ class Matrix < Orb::Internal::Type::BaseModel # # @param model_type [Symbol, :matrix] The pricing model type + # @see Orb::Models::Price::Matrix#billing_mode + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE = :in_advance + IN_ARREAR = :in_arrear + + # @!method self.values + # @return [Array] + end + # @see Orb::Models::Price::Matrix#cadence module Cadence extend Orb::Internal::Type::Enum @@ -1272,6 +1362,11 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # @return [Orb::Models::BillingCycleConfiguration] required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } + # @!attribute billing_mode + # + # @return [Symbol, Orb::Models::Price::ThresholdTotalAmount::BillingMode] + required :billing_mode, enum: -> { Orb::Price::ThresholdTotalAmount::BillingMode } + # @!attribute cadence # # @return [Symbol, Orb::Models::Price::ThresholdTotalAmount::Cadence] @@ -1410,7 +1505,7 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, threshold_total_amount_config:, dimensional_price_configuration: nil, model_type: :threshold_total_amount) + # @!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:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, threshold_total_amount_config:, dimensional_price_configuration: nil, model_type: :threshold_total_amount) # Some parameter documentations has been truncated, see # {Orb::Models::Price::ThresholdTotalAmount} for more details. # @@ -1420,6 +1515,8 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # + # @param billing_mode [Symbol, Orb::Models::Price::ThresholdTotalAmount::BillingMode] + # # @param cadence [Symbol, Orb::Models::Price::ThresholdTotalAmount::Cadence] # # @param composite_price_filters [Array, nil] @@ -1468,6 +1565,17 @@ class ThresholdTotalAmount < Orb::Internal::Type::BaseModel # # @param model_type [Symbol, :threshold_total_amount] The pricing model type + # @see Orb::Models::Price::ThresholdTotalAmount#billing_mode + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE = :in_advance + IN_ARREAR = :in_arrear + + # @!method self.values + # @return [Array] + end + # @see Orb::Models::Price::ThresholdTotalAmount#cadence module Cadence extend Orb::Internal::Type::Enum @@ -1561,6 +1669,11 @@ class TieredPackage < Orb::Internal::Type::BaseModel # @return [Orb::Models::BillingCycleConfiguration] required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } + # @!attribute billing_mode + # + # @return [Symbol, Orb::Models::Price::TieredPackage::BillingMode] + required :billing_mode, enum: -> { Orb::Price::TieredPackage::BillingMode } + # @!attribute cadence # # @return [Symbol, Orb::Models::Price::TieredPackage::Cadence] @@ -1698,7 +1811,7 @@ class TieredPackage < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, tiered_package_config:, dimensional_price_configuration: nil, model_type: :tiered_package) + # @!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:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, tiered_package_config:, dimensional_price_configuration: nil, model_type: :tiered_package) # Some parameter documentations has been truncated, see # {Orb::Models::Price::TieredPackage} for more details. # @@ -1708,6 +1821,8 @@ class TieredPackage < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # + # @param billing_mode [Symbol, Orb::Models::Price::TieredPackage::BillingMode] + # # @param cadence [Symbol, Orb::Models::Price::TieredPackage::Cadence] # # @param composite_price_filters [Array, nil] @@ -1756,6 +1871,17 @@ class TieredPackage < Orb::Internal::Type::BaseModel # # @param model_type [Symbol, :tiered_package] The pricing model type + # @see Orb::Models::Price::TieredPackage#billing_mode + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE = :in_advance + IN_ARREAR = :in_arrear + + # @!method self.values + # @return [Array] + end + # @see Orb::Models::Price::TieredPackage#cadence module Cadence extend Orb::Internal::Type::Enum @@ -1849,6 +1975,11 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # @return [Orb::Models::BillingCycleConfiguration] required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } + # @!attribute billing_mode + # + # @return [Symbol, Orb::Models::Price::TieredWithMinimum::BillingMode] + required :billing_mode, enum: -> { Orb::Price::TieredWithMinimum::BillingMode } + # @!attribute cadence # # @return [Symbol, Orb::Models::Price::TieredWithMinimum::Cadence] @@ -1986,7 +2117,7 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, tiered_with_minimum_config:, dimensional_price_configuration: nil, model_type: :tiered_with_minimum) + # @!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:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, tiered_with_minimum_config:, dimensional_price_configuration: nil, model_type: :tiered_with_minimum) # Some parameter documentations has been truncated, see # {Orb::Models::Price::TieredWithMinimum} for more details. # @@ -1996,6 +2127,8 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # + # @param billing_mode [Symbol, Orb::Models::Price::TieredWithMinimum::BillingMode] + # # @param cadence [Symbol, Orb::Models::Price::TieredWithMinimum::Cadence] # # @param composite_price_filters [Array, nil] @@ -2044,6 +2177,17 @@ class TieredWithMinimum < Orb::Internal::Type::BaseModel # # @param model_type [Symbol, :tiered_with_minimum] The pricing model type + # @see Orb::Models::Price::TieredWithMinimum#billing_mode + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE = :in_advance + IN_ARREAR = :in_arrear + + # @!method self.values + # @return [Array] + end + # @see Orb::Models::Price::TieredWithMinimum#cadence module Cadence extend Orb::Internal::Type::Enum @@ -2153,6 +2297,11 @@ class GroupedTiered < Orb::Internal::Type::BaseModel # @return [Orb::Models::BillingCycleConfiguration] required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } + # @!attribute billing_mode + # + # @return [Symbol, Orb::Models::Price::GroupedTiered::BillingMode] + required :billing_mode, enum: -> { Orb::Price::GroupedTiered::BillingMode } + # @!attribute cadence # # @return [Symbol, Orb::Models::Price::GroupedTiered::Cadence] @@ -2290,7 +2439,7 @@ class GroupedTiered < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_tiered_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :grouped_tiered) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, billing_mode:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_tiered_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :grouped_tiered) # Some parameter documentations has been truncated, see # {Orb::Models::Price::GroupedTiered} for more details. # @@ -2300,6 +2449,8 @@ class GroupedTiered < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # + # @param billing_mode [Symbol, Orb::Models::Price::GroupedTiered::BillingMode] + # # @param cadence [Symbol, Orb::Models::Price::GroupedTiered::Cadence] # # @param composite_price_filters [Array, nil] @@ -2348,6 +2499,17 @@ class GroupedTiered < Orb::Internal::Type::BaseModel # # @param model_type [Symbol, :grouped_tiered] The pricing model type + # @see Orb::Models::Price::GroupedTiered#billing_mode + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE = :in_advance + IN_ARREAR = :in_arrear + + # @!method self.values + # @return [Array] + end + # @see Orb::Models::Price::GroupedTiered#cadence module Cadence extend Orb::Internal::Type::Enum @@ -2439,6 +2601,11 @@ class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel # @return [Orb::Models::BillingCycleConfiguration] required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } + # @!attribute billing_mode + # + # @return [Symbol, Orb::Models::Price::TieredPackageWithMinimum::BillingMode] + required :billing_mode, enum: -> { Orb::Price::TieredPackageWithMinimum::BillingMode } + # @!attribute cadence # # @return [Symbol, Orb::Models::Price::TieredPackageWithMinimum::Cadence] @@ -2577,7 +2744,7 @@ class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, tiered_package_with_minimum_config:, dimensional_price_configuration: nil, model_type: :tiered_package_with_minimum) + # @!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:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, tiered_package_with_minimum_config:, dimensional_price_configuration: nil, model_type: :tiered_package_with_minimum) # Some parameter documentations has been truncated, see # {Orb::Models::Price::TieredPackageWithMinimum} for more details. # @@ -2587,6 +2754,8 @@ class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # + # @param billing_mode [Symbol, Orb::Models::Price::TieredPackageWithMinimum::BillingMode] + # # @param cadence [Symbol, Orb::Models::Price::TieredPackageWithMinimum::Cadence] # # @param composite_price_filters [Array, nil] @@ -2635,6 +2804,17 @@ class TieredPackageWithMinimum < Orb::Internal::Type::BaseModel # # @param model_type [Symbol, :tiered_package_with_minimum] The pricing model type + # @see Orb::Models::Price::TieredPackageWithMinimum#billing_mode + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE = :in_advance + IN_ARREAR = :in_arrear + + # @!method self.values + # @return [Array] + end + # @see Orb::Models::Price::TieredPackageWithMinimum#cadence module Cadence extend Orb::Internal::Type::Enum @@ -2736,6 +2916,11 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # @return [Orb::Models::BillingCycleConfiguration] required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } + # @!attribute billing_mode + # + # @return [Symbol, Orb::Models::Price::PackageWithAllocation::BillingMode] + required :billing_mode, enum: -> { Orb::Price::PackageWithAllocation::BillingMode } + # @!attribute cadence # # @return [Symbol, Orb::Models::Price::PackageWithAllocation::Cadence] @@ -2874,7 +3059,7 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, package_with_allocation_config:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :package_with_allocation) + # @!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:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, package_with_allocation_config:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :package_with_allocation) # Some parameter documentations has been truncated, see # {Orb::Models::Price::PackageWithAllocation} for more details. # @@ -2884,6 +3069,8 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # + # @param billing_mode [Symbol, Orb::Models::Price::PackageWithAllocation::BillingMode] + # # @param cadence [Symbol, Orb::Models::Price::PackageWithAllocation::Cadence] # # @param composite_price_filters [Array, nil] @@ -2932,6 +3119,17 @@ class PackageWithAllocation < Orb::Internal::Type::BaseModel # # @param model_type [Symbol, :package_with_allocation] The pricing model type + # @see Orb::Models::Price::PackageWithAllocation#billing_mode + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE = :in_advance + IN_ARREAR = :in_arrear + + # @!method self.values + # @return [Array] + end + # @see Orb::Models::Price::PackageWithAllocation#cadence module Cadence extend Orb::Internal::Type::Enum @@ -3006,6 +3204,11 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # @return [Orb::Models::BillingCycleConfiguration] required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } + # @!attribute billing_mode + # + # @return [Symbol, Orb::Models::Price::UnitWithPercent::BillingMode] + required :billing_mode, enum: -> { Orb::Price::UnitWithPercent::BillingMode } + # @!attribute cadence # # @return [Symbol, Orb::Models::Price::UnitWithPercent::Cadence] @@ -3143,7 +3346,7 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, unit_with_percent_config:, dimensional_price_configuration: nil, model_type: :unit_with_percent) + # @!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:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, unit_with_percent_config:, dimensional_price_configuration: nil, model_type: :unit_with_percent) # Some parameter documentations has been truncated, see # {Orb::Models::Price::UnitWithPercent} for more details. # @@ -3153,6 +3356,8 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # + # @param billing_mode [Symbol, Orb::Models::Price::UnitWithPercent::BillingMode] + # # @param cadence [Symbol, Orb::Models::Price::UnitWithPercent::Cadence] # # @param composite_price_filters [Array, nil] @@ -3201,6 +3406,17 @@ class UnitWithPercent < Orb::Internal::Type::BaseModel # # @param model_type [Symbol, :unit_with_percent] The pricing model type + # @see Orb::Models::Price::UnitWithPercent#billing_mode + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE = :in_advance + IN_ARREAR = :in_arrear + + # @!method self.values + # @return [Array] + end + # @see Orb::Models::Price::UnitWithPercent#cadence module Cadence extend Orb::Internal::Type::Enum @@ -3267,6 +3483,11 @@ class MatrixWithAllocation < Orb::Internal::Type::BaseModel # @return [Orb::Models::BillingCycleConfiguration] required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } + # @!attribute billing_mode + # + # @return [Symbol, Orb::Models::Price::MatrixWithAllocation::BillingMode] + required :billing_mode, enum: -> { Orb::Price::MatrixWithAllocation::BillingMode } + # @!attribute cadence # # @return [Symbol, Orb::Models::Price::MatrixWithAllocation::Cadence] @@ -3404,7 +3625,7 @@ class MatrixWithAllocation < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, matrix_with_allocation_config:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :matrix_with_allocation) + # @!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:, invoicing_cycle_configuration:, item:, matrix_with_allocation_config:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :matrix_with_allocation) # Some parameter documentations has been truncated, see # {Orb::Models::Price::MatrixWithAllocation} for more details. # @@ -3414,6 +3635,8 @@ class MatrixWithAllocation < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # + # @param billing_mode [Symbol, Orb::Models::Price::MatrixWithAllocation::BillingMode] + # # @param cadence [Symbol, Orb::Models::Price::MatrixWithAllocation::Cadence] # # @param composite_price_filters [Array, nil] @@ -3462,6 +3685,17 @@ class MatrixWithAllocation < Orb::Internal::Type::BaseModel # # @param model_type [Symbol, :matrix_with_allocation] The pricing model type + # @see Orb::Models::Price::MatrixWithAllocation#billing_mode + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE = :in_advance + IN_ARREAR = :in_arrear + + # @!method self.values + # @return [Array] + end + # @see Orb::Models::Price::MatrixWithAllocation#cadence module Cadence extend Orb::Internal::Type::Enum @@ -3506,6 +3740,11 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # @return [Orb::Models::BillingCycleConfiguration] required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } + # @!attribute billing_mode + # + # @return [Symbol, Orb::Models::Price::TieredWithProration::BillingMode] + required :billing_mode, enum: -> { Orb::Price::TieredWithProration::BillingMode } + # @!attribute cadence # # @return [Symbol, Orb::Models::Price::TieredWithProration::Cadence] @@ -3643,7 +3882,7 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, tiered_with_proration_config:, dimensional_price_configuration: nil, model_type: :tiered_with_proration) + # @!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:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, tiered_with_proration_config:, dimensional_price_configuration: nil, model_type: :tiered_with_proration) # Some parameter documentations has been truncated, see # {Orb::Models::Price::TieredWithProration} for more details. # @@ -3653,6 +3892,8 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # + # @param billing_mode [Symbol, Orb::Models::Price::TieredWithProration::BillingMode] + # # @param cadence [Symbol, Orb::Models::Price::TieredWithProration::Cadence] # # @param composite_price_filters [Array, nil] @@ -3701,6 +3942,17 @@ class TieredWithProration < Orb::Internal::Type::BaseModel # # @param model_type [Symbol, :tiered_with_proration] The pricing model type + # @see Orb::Models::Price::TieredWithProration#billing_mode + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE = :in_advance + IN_ARREAR = :in_arrear + + # @!method self.values + # @return [Array] + end + # @see Orb::Models::Price::TieredWithProration#cadence module Cadence extend Orb::Internal::Type::Enum @@ -3786,6 +4038,11 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # @return [Orb::Models::BillingCycleConfiguration] required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } + # @!attribute billing_mode + # + # @return [Symbol, Orb::Models::Price::UnitWithProration::BillingMode] + required :billing_mode, enum: -> { Orb::Price::UnitWithProration::BillingMode } + # @!attribute cadence # # @return [Symbol, Orb::Models::Price::UnitWithProration::Cadence] @@ -3923,7 +4180,7 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, unit_with_proration_config:, dimensional_price_configuration: nil, model_type: :unit_with_proration) + # @!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:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, unit_with_proration_config:, dimensional_price_configuration: nil, model_type: :unit_with_proration) # Some parameter documentations has been truncated, see # {Orb::Models::Price::UnitWithProration} for more details. # @@ -3933,6 +4190,8 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # + # @param billing_mode [Symbol, Orb::Models::Price::UnitWithProration::BillingMode] + # # @param cadence [Symbol, Orb::Models::Price::UnitWithProration::Cadence] # # @param composite_price_filters [Array, nil] @@ -3981,6 +4240,17 @@ class UnitWithProration < Orb::Internal::Type::BaseModel # # @param model_type [Symbol, :unit_with_proration] The pricing model type + # @see Orb::Models::Price::UnitWithProration#billing_mode + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE = :in_advance + IN_ARREAR = :in_arrear + + # @!method self.values + # @return [Array] + end + # @see Orb::Models::Price::UnitWithProration#cadence module Cadence extend Orb::Internal::Type::Enum @@ -4039,6 +4309,11 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # @return [Orb::Models::BillingCycleConfiguration] required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } + # @!attribute billing_mode + # + # @return [Symbol, Orb::Models::Price::GroupedAllocation::BillingMode] + required :billing_mode, enum: -> { Orb::Price::GroupedAllocation::BillingMode } + # @!attribute cadence # # @return [Symbol, Orb::Models::Price::GroupedAllocation::Cadence] @@ -4176,7 +4451,7 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_allocation_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :grouped_allocation) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, billing_mode:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_allocation_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :grouped_allocation) # Some parameter documentations has been truncated, see # {Orb::Models::Price::GroupedAllocation} for more details. # @@ -4186,6 +4461,8 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # + # @param billing_mode [Symbol, Orb::Models::Price::GroupedAllocation::BillingMode] + # # @param cadence [Symbol, Orb::Models::Price::GroupedAllocation::Cadence] # # @param composite_price_filters [Array, nil] @@ -4234,6 +4511,17 @@ class GroupedAllocation < Orb::Internal::Type::BaseModel # # @param model_type [Symbol, :grouped_allocation] The pricing model type + # @see Orb::Models::Price::GroupedAllocation#billing_mode + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE = :in_advance + IN_ARREAR = :in_arrear + + # @!method self.values + # @return [Array] + end + # @see Orb::Models::Price::GroupedAllocation#cadence module Cadence extend Orb::Internal::Type::Enum @@ -4308,6 +4596,11 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # @return [Orb::Models::BillingCycleConfiguration] required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } + # @!attribute billing_mode + # + # @return [Symbol, Orb::Models::Price::BulkWithProration::BillingMode] + required :billing_mode, enum: -> { Orb::Price::BulkWithProration::BillingMode } + # @!attribute bulk_with_proration_config # Configuration for bulk_with_proration pricing # @@ -4445,7 +4738,7 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, bulk_with_proration_config:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :bulk_with_proration) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, billing_mode:, bulk_with_proration_config:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :bulk_with_proration) # Some parameter documentations has been truncated, see # {Orb::Models::Price::BulkWithProration} for more details. # @@ -4455,6 +4748,8 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # + # @param billing_mode [Symbol, Orb::Models::Price::BulkWithProration::BillingMode] + # # @param bulk_with_proration_config [Orb::Models::Price::BulkWithProration::BulkWithProrationConfig] Configuration for bulk_with_proration pricing # # @param cadence [Symbol, Orb::Models::Price::BulkWithProration::Cadence] @@ -4503,6 +4798,17 @@ class BulkWithProration < Orb::Internal::Type::BaseModel # # @param model_type [Symbol, :bulk_with_proration] The pricing model type + # @see Orb::Models::Price::BulkWithProration#billing_mode + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE = :in_advance + IN_ARREAR = :in_arrear + + # @!method self.values + # @return [Array] + end + # @see Orb::Models::Price::BulkWithProration#bulk_with_proration_config class BulkWithProrationConfig < Orb::Internal::Type::BaseModel # @!attribute tiers @@ -4583,6 +4889,11 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # @return [Orb::Models::BillingCycleConfiguration] required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } + # @!attribute billing_mode + # + # @return [Symbol, Orb::Models::Price::GroupedWithProratedMinimum::BillingMode] + required :billing_mode, enum: -> { Orb::Price::GroupedWithProratedMinimum::BillingMode } + # @!attribute cadence # # @return [Symbol, Orb::Models::Price::GroupedWithProratedMinimum::Cadence] @@ -4721,7 +5032,7 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_with_prorated_minimum_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :grouped_with_prorated_minimum) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, billing_mode:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_with_prorated_minimum_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :grouped_with_prorated_minimum) # Some parameter documentations has been truncated, see # {Orb::Models::Price::GroupedWithProratedMinimum} for more details. # @@ -4731,6 +5042,8 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # + # @param billing_mode [Symbol, Orb::Models::Price::GroupedWithProratedMinimum::BillingMode] + # # @param cadence [Symbol, Orb::Models::Price::GroupedWithProratedMinimum::Cadence] # # @param composite_price_filters [Array, nil] @@ -4779,6 +5092,17 @@ class GroupedWithProratedMinimum < Orb::Internal::Type::BaseModel # # @param model_type [Symbol, :grouped_with_prorated_minimum] The pricing model type + # @see Orb::Models::Price::GroupedWithProratedMinimum#billing_mode + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE = :in_advance + IN_ARREAR = :in_arrear + + # @!method self.values + # @return [Array] + end + # @see Orb::Models::Price::GroupedWithProratedMinimum#cadence module Cadence extend Orb::Internal::Type::Enum @@ -4853,6 +5177,11 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # @return [Orb::Models::BillingCycleConfiguration] required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } + # @!attribute billing_mode + # + # @return [Symbol, Orb::Models::Price::GroupedWithMeteredMinimum::BillingMode] + required :billing_mode, enum: -> { Orb::Price::GroupedWithMeteredMinimum::BillingMode } + # @!attribute cadence # # @return [Symbol, Orb::Models::Price::GroupedWithMeteredMinimum::Cadence] @@ -4991,7 +5320,7 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_with_metered_minimum_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :grouped_with_metered_minimum) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, billing_mode:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_with_metered_minimum_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :grouped_with_metered_minimum) # Some parameter documentations has been truncated, see # {Orb::Models::Price::GroupedWithMeteredMinimum} for more details. # @@ -5001,6 +5330,8 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # + # @param billing_mode [Symbol, Orb::Models::Price::GroupedWithMeteredMinimum::BillingMode] + # # @param cadence [Symbol, Orb::Models::Price::GroupedWithMeteredMinimum::Cadence] # # @param composite_price_filters [Array, nil] @@ -5049,6 +5380,17 @@ class GroupedWithMeteredMinimum < Orb::Internal::Type::BaseModel # # @param model_type [Symbol, :grouped_with_metered_minimum] The pricing model type + # @see Orb::Models::Price::GroupedWithMeteredMinimum#billing_mode + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE = :in_advance + IN_ARREAR = :in_arrear + + # @!method self.values + # @return [Array] + end + # @see Orb::Models::Price::GroupedWithMeteredMinimum#cadence module Cadence extend Orb::Internal::Type::Enum @@ -5197,6 +5539,11 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @return [Orb::Models::BillingCycleConfiguration] required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } + # @!attribute billing_mode + # + # @return [Symbol, Orb::Models::Price::GroupedWithMinMaxThresholds::BillingMode] + required :billing_mode, enum: -> { Orb::Price::GroupedWithMinMaxThresholds::BillingMode } + # @!attribute cadence # # @return [Symbol, Orb::Models::Price::GroupedWithMinMaxThresholds::Cadence] @@ -5335,7 +5682,7 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_with_min_max_thresholds_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :grouped_with_min_max_thresholds) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, billing_mode:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_with_min_max_thresholds_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :grouped_with_min_max_thresholds) # Some parameter documentations has been truncated, see # {Orb::Models::Price::GroupedWithMinMaxThresholds} for more details. # @@ -5345,6 +5692,8 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # + # @param billing_mode [Symbol, Orb::Models::Price::GroupedWithMinMaxThresholds::BillingMode] + # # @param cadence [Symbol, Orb::Models::Price::GroupedWithMinMaxThresholds::Cadence] # # @param composite_price_filters [Array, nil] @@ -5393,6 +5742,17 @@ class GroupedWithMinMaxThresholds < Orb::Internal::Type::BaseModel # # @param model_type [Symbol, :grouped_with_min_max_thresholds] The pricing model type + # @see Orb::Models::Price::GroupedWithMinMaxThresholds#billing_mode + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE = :in_advance + IN_ARREAR = :in_arrear + + # @!method self.values + # @return [Array] + end + # @see Orb::Models::Price::GroupedWithMinMaxThresholds#cadence module Cadence extend Orb::Internal::Type::Enum @@ -5475,6 +5835,11 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @return [Orb::Models::BillingCycleConfiguration] required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } + # @!attribute billing_mode + # + # @return [Symbol, Orb::Models::Price::MatrixWithDisplayName::BillingMode] + required :billing_mode, enum: -> { Orb::Price::MatrixWithDisplayName::BillingMode } + # @!attribute cadence # # @return [Symbol, Orb::Models::Price::MatrixWithDisplayName::Cadence] @@ -5613,7 +5978,7 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, matrix_with_display_name_config:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :matrix_with_display_name) + # @!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:, invoicing_cycle_configuration:, item:, matrix_with_display_name_config:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :matrix_with_display_name) # Some parameter documentations has been truncated, see # {Orb::Models::Price::MatrixWithDisplayName} for more details. # @@ -5623,6 +5988,8 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # + # @param billing_mode [Symbol, Orb::Models::Price::MatrixWithDisplayName::BillingMode] + # # @param cadence [Symbol, Orb::Models::Price::MatrixWithDisplayName::Cadence] # # @param composite_price_filters [Array, nil] @@ -5671,6 +6038,17 @@ class MatrixWithDisplayName < Orb::Internal::Type::BaseModel # # @param model_type [Symbol, :matrix_with_display_name] The pricing model type + # @see Orb::Models::Price::MatrixWithDisplayName#billing_mode + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE = :in_advance + IN_ARREAR = :in_arrear + + # @!method self.values + # @return [Array] + end + # @see Orb::Models::Price::MatrixWithDisplayName#cadence module Cadence extend Orb::Internal::Type::Enum @@ -5767,6 +6145,11 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # @return [Orb::Models::BillingCycleConfiguration] required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } + # @!attribute billing_mode + # + # @return [Symbol, Orb::Models::Price::GroupedTieredPackage::BillingMode] + required :billing_mode, enum: -> { Orb::Price::GroupedTieredPackage::BillingMode } + # @!attribute cadence # # @return [Symbol, Orb::Models::Price::GroupedTieredPackage::Cadence] @@ -5905,7 +6288,7 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_tiered_package_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :grouped_tiered_package) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, billing_mode:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, grouped_tiered_package_config:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :grouped_tiered_package) # Some parameter documentations has been truncated, see # {Orb::Models::Price::GroupedTieredPackage} for more details. # @@ -5915,6 +6298,8 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # + # @param billing_mode [Symbol, Orb::Models::Price::GroupedTieredPackage::BillingMode] + # # @param cadence [Symbol, Orb::Models::Price::GroupedTieredPackage::Cadence] # # @param composite_price_filters [Array, nil] @@ -5963,6 +6348,17 @@ class GroupedTieredPackage < Orb::Internal::Type::BaseModel # # @param model_type [Symbol, :grouped_tiered_package] The pricing model type + # @see Orb::Models::Price::GroupedTieredPackage#billing_mode + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE = :in_advance + IN_ARREAR = :in_arrear + + # @!method self.values + # @return [Array] + end + # @see Orb::Models::Price::GroupedTieredPackage#cadence module Cadence extend Orb::Internal::Type::Enum @@ -6064,6 +6460,11 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @return [Orb::Models::BillingCycleConfiguration] required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } + # @!attribute billing_mode + # + # @return [Symbol, Orb::Models::Price::MaxGroupTieredPackage::BillingMode] + required :billing_mode, enum: -> { Orb::Price::MaxGroupTieredPackage::BillingMode } + # @!attribute cadence # # @return [Symbol, Orb::Models::Price::MaxGroupTieredPackage::Cadence] @@ -6202,7 +6603,7 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, max_group_tiered_package_config:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :max_group_tiered_package) + # @!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:, invoicing_cycle_configuration:, item:, max_group_tiered_package_config:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :max_group_tiered_package) # Some parameter documentations has been truncated, see # {Orb::Models::Price::MaxGroupTieredPackage} for more details. # @@ -6212,6 +6613,8 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # + # @param billing_mode [Symbol, Orb::Models::Price::MaxGroupTieredPackage::BillingMode] + # # @param cadence [Symbol, Orb::Models::Price::MaxGroupTieredPackage::Cadence] # # @param composite_price_filters [Array, nil] @@ -6260,6 +6663,17 @@ class MaxGroupTieredPackage < Orb::Internal::Type::BaseModel # # @param model_type [Symbol, :max_group_tiered_package] The pricing model type + # @see Orb::Models::Price::MaxGroupTieredPackage#billing_mode + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE = :in_advance + IN_ARREAR = :in_arrear + + # @!method self.values + # @return [Array] + end + # @see Orb::Models::Price::MaxGroupTieredPackage#cadence module Cadence extend Orb::Internal::Type::Enum @@ -6360,6 +6774,11 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # @return [Orb::Models::BillingCycleConfiguration] required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } + # @!attribute billing_mode + # + # @return [Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricing::BillingMode] + required :billing_mode, enum: -> { Orb::Price::ScalableMatrixWithUnitPricing::BillingMode } + # @!attribute cadence # # @return [Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricing::Cadence] @@ -6498,7 +6917,7 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, scalable_matrix_with_unit_pricing_config:, dimensional_price_configuration: nil, model_type: :scalable_matrix_with_unit_pricing) + # @!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:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, scalable_matrix_with_unit_pricing_config:, dimensional_price_configuration: nil, model_type: :scalable_matrix_with_unit_pricing) # Some parameter documentations has been truncated, see # {Orb::Models::Price::ScalableMatrixWithUnitPricing} for more details. # @@ -6508,6 +6927,8 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # + # @param billing_mode [Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricing::BillingMode] + # # @param cadence [Symbol, Orb::Models::Price::ScalableMatrixWithUnitPricing::Cadence] # # @param composite_price_filters [Array, nil] @@ -6556,6 +6977,17 @@ class ScalableMatrixWithUnitPricing < Orb::Internal::Type::BaseModel # # @param model_type [Symbol, :scalable_matrix_with_unit_pricing] The pricing model type + # @see Orb::Models::Price::ScalableMatrixWithUnitPricing#billing_mode + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE = :in_advance + IN_ARREAR = :in_arrear + + # @!method self.values + # @return [Array] + end + # @see Orb::Models::Price::ScalableMatrixWithUnitPricing#cadence module Cadence extend Orb::Internal::Type::Enum @@ -6676,6 +7108,11 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # @return [Orb::Models::BillingCycleConfiguration] required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } + # @!attribute billing_mode + # + # @return [Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricing::BillingMode] + required :billing_mode, enum: -> { Orb::Price::ScalableMatrixWithTieredPricing::BillingMode } + # @!attribute cadence # # @return [Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricing::Cadence] @@ -6814,7 +7251,7 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, scalable_matrix_with_tiered_pricing_config:, dimensional_price_configuration: nil, model_type: :scalable_matrix_with_tiered_pricing) + # @!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:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, scalable_matrix_with_tiered_pricing_config:, dimensional_price_configuration: nil, model_type: :scalable_matrix_with_tiered_pricing) # Some parameter documentations has been truncated, see # {Orb::Models::Price::ScalableMatrixWithTieredPricing} for more details. # @@ -6824,6 +7261,8 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # + # @param billing_mode [Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricing::BillingMode] + # # @param cadence [Symbol, Orb::Models::Price::ScalableMatrixWithTieredPricing::Cadence] # # @param composite_price_filters [Array, nil] @@ -6872,6 +7311,17 @@ class ScalableMatrixWithTieredPricing < Orb::Internal::Type::BaseModel # # @param model_type [Symbol, :scalable_matrix_with_tiered_pricing] The pricing model type + # @see Orb::Models::Price::ScalableMatrixWithTieredPricing#billing_mode + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE = :in_advance + IN_ARREAR = :in_arrear + + # @!method self.values + # @return [Array] + end + # @see Orb::Models::Price::ScalableMatrixWithTieredPricing#cadence module Cadence extend Orb::Internal::Type::Enum @@ -7006,6 +7456,11 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # @return [Orb::Models::BillingCycleConfiguration] required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } + # @!attribute billing_mode + # + # @return [Symbol, Orb::Models::Price::CumulativeGroupedBulk::BillingMode] + required :billing_mode, enum: -> { Orb::Price::CumulativeGroupedBulk::BillingMode } + # @!attribute cadence # # @return [Symbol, Orb::Models::Price::CumulativeGroupedBulk::Cadence] @@ -7144,7 +7599,7 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, cumulative_grouped_bulk_config:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :cumulative_grouped_bulk) + # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, billing_mode:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, cumulative_grouped_bulk_config:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :cumulative_grouped_bulk) # Some parameter documentations has been truncated, see # {Orb::Models::Price::CumulativeGroupedBulk} for more details. # @@ -7154,6 +7609,8 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # + # @param billing_mode [Symbol, Orb::Models::Price::CumulativeGroupedBulk::BillingMode] + # # @param cadence [Symbol, Orb::Models::Price::CumulativeGroupedBulk::Cadence] # # @param composite_price_filters [Array, nil] @@ -7202,6 +7659,17 @@ class CumulativeGroupedBulk < Orb::Internal::Type::BaseModel # # @param model_type [Symbol, :cumulative_grouped_bulk] The pricing model type + # @see Orb::Models::Price::CumulativeGroupedBulk#billing_mode + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE = :in_advance + IN_ARREAR = :in_arrear + + # @!method self.values + # @return [Array] + end + # @see Orb::Models::Price::CumulativeGroupedBulk#cadence module Cadence extend Orb::Internal::Type::Enum @@ -7298,6 +7766,11 @@ class Minimum < Orb::Internal::Type::BaseModel # @return [Orb::Models::BillingCycleConfiguration] required :billing_cycle_configuration, -> { Orb::BillingCycleConfiguration } + # @!attribute billing_mode + # + # @return [Symbol, Orb::Models::Price::Minimum::BillingMode] + required :billing_mode, enum: -> { Orb::Price::Minimum::BillingMode } + # @!attribute cadence # # @return [Symbol, Orb::Models::Price::Minimum::Cadence] @@ -7433,7 +7906,7 @@ class Minimum < Orb::Internal::Type::BaseModel # @return [Orb::Models::DimensionalPriceConfiguration, nil] optional :dimensional_price_configuration, -> { Orb::DimensionalPriceConfiguration }, nil?: true - # @!method initialize(id:, billable_metric:, billing_cycle_configuration:, cadence:, composite_price_filters:, conversion_rate:, conversion_rate_config:, created_at:, credit_allocation:, currency:, discount:, external_price_id:, fixed_price_quantity:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, minimum_config:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :minimum) + # @!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:, invoicing_cycle_configuration:, item:, maximum:, maximum_amount:, metadata:, minimum:, minimum_amount:, minimum_config:, name:, plan_phase_order:, price_type:, replaces_price_id:, dimensional_price_configuration: nil, model_type: :minimum) # Some parameter documentations has been truncated, see # {Orb::Models::Price::Minimum} for more details. # @@ -7443,6 +7916,8 @@ class Minimum < Orb::Internal::Type::BaseModel # # @param billing_cycle_configuration [Orb::Models::BillingCycleConfiguration] # + # @param billing_mode [Symbol, Orb::Models::Price::Minimum::BillingMode] + # # @param cadence [Symbol, Orb::Models::Price::Minimum::Cadence] # # @param composite_price_filters [Array, nil] @@ -7491,6 +7966,17 @@ class Minimum < Orb::Internal::Type::BaseModel # # @param model_type [Symbol, :minimum] The pricing model type + # @see Orb::Models::Price::Minimum#billing_mode + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE = :in_advance + IN_ARREAR = :in_arrear + + # @!method self.values + # @return [Array] + end + # @see Orb::Models::Price::Minimum#cadence module Cadence extend Orb::Internal::Type::Enum diff --git a/rbi/orb/models/changed_subscription_resources.rbi b/rbi/orb/models/changed_subscription_resources.rbi index aedca1e6..a8039d72 100644 --- a/rbi/orb/models/changed_subscription_resources.rbi +++ b/rbi/orb/models/changed_subscription_resources.rbi @@ -13,7 +13,9 @@ module Orb attr_accessor :created_credit_notes # The invoices that were created as part of this operation. - sig { returns(T::Array[Orb::Invoice]) } + sig do + returns(T::Array[Orb::ChangedSubscriptionResources::CreatedInvoice]) + end attr_accessor :created_invoices # The credit notes that were voided as part of this operation. @@ -27,7 +29,8 @@ module Orb sig do params( created_credit_notes: T::Array[Orb::CreditNote::OrHash], - created_invoices: T::Array[Orb::Invoice::OrHash], + created_invoices: + T::Array[Orb::ChangedSubscriptionResources::CreatedInvoice::OrHash], voided_credit_notes: T::Array[Orb::CreditNote::OrHash], voided_invoices: T::Array[Orb::Invoice::OrHash] ).returns(T.attached_class) @@ -48,7 +51,8 @@ module Orb override.returns( { created_credit_notes: T::Array[Orb::CreditNote], - created_invoices: T::Array[Orb::Invoice], + created_invoices: + T::Array[Orb::ChangedSubscriptionResources::CreatedInvoice], voided_credit_notes: T::Array[Orb::CreditNote], voided_invoices: T::Array[Orb::Invoice] } @@ -56,6 +60,1737 @@ module Orb end def to_hash end + + class CreatedInvoice < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::ChangedSubscriptionResources::CreatedInvoice, + Orb::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :id + + # This is the final amount required to be charged to the customer and reflects the + # application of the customer balance to the `total` of the invoice. + sig { returns(String) } + attr_accessor :amount_due + + sig do + returns( + Orb::ChangedSubscriptionResources::CreatedInvoice::AutoCollection + ) + end + attr_reader :auto_collection + + sig do + params( + auto_collection: + Orb::ChangedSubscriptionResources::CreatedInvoice::AutoCollection::OrHash + ).void + end + attr_writer :auto_collection + + sig { returns(T.nilable(Orb::Address)) } + attr_reader :billing_address + + sig { params(billing_address: T.nilable(Orb::Address::OrHash)).void } + attr_writer :billing_address + + # The creation time of the resource in Orb. + sig { returns(Time) } + attr_accessor :created_at + + # A list of credit notes associated with the invoice + sig do + returns( + T::Array[ + Orb::ChangedSubscriptionResources::CreatedInvoice::CreditNote + ] + ) + end + attr_accessor :credit_notes + + # An ISO 4217 currency string or `credits` + sig { returns(String) } + attr_accessor :currency + + sig { returns(Orb::CustomerMinified) } + attr_reader :customer + + sig { params(customer: Orb::CustomerMinified::OrHash).void } + attr_writer :customer + + sig do + returns( + T::Array[ + Orb::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction + ] + ) + end + attr_accessor :customer_balance_transactions + + # Tax IDs are commonly required to be displayed on customer invoices, which are + # added to the headers of invoices. + # + # ### Supported Tax ID Countries and Types + # + # | Country | Type | Description | + # | ---------------------- | ------------ | ------------------------------------------------------------------------------------------------------- | + # | Albania | `al_tin` | Albania Tax Identification Number | + # | Andorra | `ad_nrt` | Andorran NRT Number | + # | Angola | `ao_tin` | Angola Tax Identification Number | + # | Argentina | `ar_cuit` | Argentinian Tax ID Number | + # | Armenia | `am_tin` | Armenia Tax Identification Number | + # | Aruba | `aw_tin` | Aruba Tax Identification Number | + # | Australia | `au_abn` | Australian Business Number (AU ABN) | + # | Australia | `au_arn` | Australian Taxation Office Reference Number | + # | Austria | `eu_vat` | European VAT Number | + # | Azerbaijan | `az_tin` | Azerbaijan Tax Identification Number | + # | Bahamas | `bs_tin` | Bahamas Tax Identification Number | + # | Bahrain | `bh_vat` | Bahraini VAT Number | + # | Bangladesh | `bd_bin` | Bangladesh Business Identification Number | + # | Barbados | `bb_tin` | Barbados Tax Identification Number | + # | Belarus | `by_tin` | Belarus TIN Number | + # | Belgium | `eu_vat` | European VAT Number | + # | Benin | `bj_ifu` | Benin Tax Identification Number (Identifiant Fiscal Unique) | + # | Bolivia | `bo_tin` | Bolivian Tax ID | + # | Bosnia and Herzegovina | `ba_tin` | Bosnia and Herzegovina Tax Identification Number | + # | Brazil | `br_cnpj` | Brazilian CNPJ Number | + # | Brazil | `br_cpf` | Brazilian CPF Number | + # | Bulgaria | `bg_uic` | Bulgaria Unified Identification Code | + # | Bulgaria | `eu_vat` | European VAT Number | + # | Burkina Faso | `bf_ifu` | Burkina Faso Tax Identification Number (Numéro d'Identifiant Fiscal Unique) | + # | Cambodia | `kh_tin` | Cambodia Tax Identification Number | + # | Cameroon | `cm_niu` | Cameroon Tax Identification Number (Numéro d'Identifiant fiscal Unique) | + # | Canada | `ca_bn` | Canadian BN | + # | Canada | `ca_gst_hst` | Canadian GST/HST Number | + # | Canada | `ca_pst_bc` | Canadian PST Number (British Columbia) | + # | Canada | `ca_pst_mb` | Canadian PST Number (Manitoba) | + # | Canada | `ca_pst_sk` | Canadian PST Number (Saskatchewan) | + # | Canada | `ca_qst` | Canadian QST Number (Québec) | + # | Cape Verde | `cv_nif` | Cape Verde Tax Identification Number (Número de Identificação Fiscal) | + # | Chile | `cl_tin` | Chilean TIN | + # | China | `cn_tin` | Chinese Tax ID | + # | Colombia | `co_nit` | Colombian NIT Number | + # | Congo-Kinshasa | `cd_nif` | Congo (DR) Tax Identification Number (Número de Identificação Fiscal) | + # | Costa Rica | `cr_tin` | Costa Rican Tax ID | + # | Croatia | `eu_vat` | European VAT Number | + # | Croatia | `hr_oib` | Croatian Personal Identification Number (OIB) | + # | Cyprus | `eu_vat` | European VAT Number | + # | Czech Republic | `eu_vat` | European VAT Number | + # | Denmark | `eu_vat` | European VAT Number | + # | Dominican Republic | `do_rcn` | Dominican RCN Number | + # | Ecuador | `ec_ruc` | Ecuadorian RUC Number | + # | Egypt | `eg_tin` | Egyptian Tax Identification Number | + # | El Salvador | `sv_nit` | El Salvadorian NIT Number | + # | Estonia | `eu_vat` | European VAT Number | + # | Ethiopia | `et_tin` | Ethiopia Tax Identification Number | + # | European Union | `eu_oss_vat` | European One Stop Shop VAT Number for non-Union scheme | + # | Finland | `eu_vat` | European VAT Number | + # | France | `eu_vat` | European VAT Number | + # | Georgia | `ge_vat` | Georgian VAT | + # | Germany | `de_stn` | German Tax Number (Steuernummer) | + # | Germany | `eu_vat` | European VAT Number | + # | Greece | `eu_vat` | European VAT Number | + # | Guinea | `gn_nif` | Guinea Tax Identification Number (Número de Identificação Fiscal) | + # | Hong Kong | `hk_br` | Hong Kong BR Number | + # | Hungary | `eu_vat` | European VAT Number | + # | Hungary | `hu_tin` | Hungary Tax Number (adószám) | + # | Iceland | `is_vat` | Icelandic VAT | + # | India | `in_gst` | Indian GST Number | + # | Indonesia | `id_npwp` | Indonesian NPWP Number | + # | Ireland | `eu_vat` | European VAT Number | + # | Israel | `il_vat` | Israel VAT | + # | Italy | `eu_vat` | European VAT Number | + # | Japan | `jp_cn` | Japanese Corporate Number (_Hōjin Bangō_) | + # | Japan | `jp_rn` | Japanese Registered Foreign Businesses' Registration Number (_Tōroku Kokugai Jigyōsha no Tōroku Bangō_) | + # | Japan | `jp_trn` | Japanese Tax Registration Number (_Tōroku Bangō_) | + # | Kazakhstan | `kz_bin` | Kazakhstani Business Identification Number | + # | Kenya | `ke_pin` | Kenya Revenue Authority Personal Identification Number | + # | Kyrgyzstan | `kg_tin` | Kyrgyzstan Tax Identification Number | + # | Laos | `la_tin` | Laos Tax Identification Number | + # | Latvia | `eu_vat` | European VAT Number | + # | Liechtenstein | `li_uid` | Liechtensteinian UID Number | + # | Liechtenstein | `li_vat` | Liechtenstein VAT Number | + # | Lithuania | `eu_vat` | European VAT Number | + # | Luxembourg | `eu_vat` | European VAT Number | + # | Malaysia | `my_frp` | Malaysian FRP Number | + # | Malaysia | `my_itn` | Malaysian ITN | + # | Malaysia | `my_sst` | Malaysian SST Number | + # | Malta | `eu_vat` | European VAT Number | + # | Mauritania | `mr_nif` | Mauritania Tax Identification Number (Número de Identificação Fiscal) | + # | Mexico | `mx_rfc` | Mexican RFC Number | + # | Moldova | `md_vat` | Moldova VAT Number | + # | Montenegro | `me_pib` | Montenegro PIB Number | + # | Morocco | `ma_vat` | Morocco VAT Number | + # | Nepal | `np_pan` | Nepal PAN Number | + # | Netherlands | `eu_vat` | European VAT Number | + # | New Zealand | `nz_gst` | New Zealand GST Number | + # | Nigeria | `ng_tin` | Nigerian Tax Identification Number | + # | North Macedonia | `mk_vat` | North Macedonia VAT Number | + # | Northern Ireland | `eu_vat` | Northern Ireland VAT Number | + # | Norway | `no_vat` | Norwegian VAT Number | + # | Norway | `no_voec` | Norwegian VAT on e-commerce Number | + # | Oman | `om_vat` | Omani VAT Number | + # | Peru | `pe_ruc` | Peruvian RUC Number | + # | Philippines | `ph_tin` | Philippines Tax Identification Number | + # | Poland | `eu_vat` | European VAT Number | + # | Portugal | `eu_vat` | European VAT Number | + # | Romania | `eu_vat` | European VAT Number | + # | Romania | `ro_tin` | Romanian Tax ID Number | + # | Russia | `ru_inn` | Russian INN | + # | Russia | `ru_kpp` | Russian KPP | + # | Saudi Arabia | `sa_vat` | Saudi Arabia VAT | + # | Senegal | `sn_ninea` | Senegal NINEA Number | + # | Serbia | `rs_pib` | Serbian PIB Number | + # | Singapore | `sg_gst` | Singaporean GST | + # | Singapore | `sg_uen` | Singaporean UEN | + # | Slovakia | `eu_vat` | European VAT Number | + # | Slovenia | `eu_vat` | European VAT Number | + # | Slovenia | `si_tin` | Slovenia Tax Number (davčna številka) | + # | South Africa | `za_vat` | South African VAT Number | + # | South Korea | `kr_brn` | Korean BRN | + # | Spain | `es_cif` | Spanish NIF Number (previously Spanish CIF Number) | + # | Spain | `eu_vat` | European VAT Number | + # | Suriname | `sr_fin` | Suriname FIN Number | + # | Sweden | `eu_vat` | European VAT Number | + # | Switzerland | `ch_uid` | Switzerland UID Number | + # | Switzerland | `ch_vat` | Switzerland VAT Number | + # | Taiwan | `tw_vat` | Taiwanese VAT | + # | Tajikistan | `tj_tin` | Tajikistan Tax Identification Number | + # | Tanzania | `tz_vat` | Tanzania VAT Number | + # | Thailand | `th_vat` | Thai VAT | + # | Turkey | `tr_tin` | Turkish Tax Identification Number | + # | Uganda | `ug_tin` | Uganda Tax Identification Number | + # | Ukraine | `ua_vat` | Ukrainian VAT | + # | United Arab Emirates | `ae_trn` | United Arab Emirates TRN | + # | United Kingdom | `gb_vat` | United Kingdom VAT Number | + # | United States | `us_ein` | United States EIN | + # | Uruguay | `uy_ruc` | Uruguayan RUC Number | + # | Uzbekistan | `uz_tin` | Uzbekistan TIN Number | + # | Uzbekistan | `uz_vat` | Uzbekistan VAT Number | + # | Venezuela | `ve_rif` | Venezuelan RIF Number | + # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | + # | Zambia | `zm_tin` | Zambia Tax Identification Number | + # | Zimbabwe | `zw_tin` | Zimbabwe Tax Identification Number | + sig { returns(T.nilable(Orb::CustomerTaxID)) } + attr_reader :customer_tax_id + + sig do + params(customer_tax_id: T.nilable(Orb::CustomerTaxID::OrHash)).void + end + attr_writer :customer_tax_id + + # This field is deprecated in favor of `discounts`. If a `discounts` list is + # provided, the first discount in the list will be returned. If the list is empty, + # `None` will be returned. + sig { returns(T.anything) } + attr_accessor :discount + + sig { returns(T::Array[Orb::InvoiceLevelDiscount::Variants]) } + attr_accessor :discounts + + # When the invoice payment is due. The due date is null if the invoice is not yet + # finalized. + sig { returns(T.nilable(Time)) } + attr_accessor :due_date + + # If the invoice has a status of `draft`, this will be the time that the invoice + # will be eligible to be issued, otherwise it will be `null`. If `auto-issue` is + # true, the invoice will automatically begin issuing at this time. + sig { returns(T.nilable(Time)) } + attr_accessor :eligible_to_issue_at + + # A URL for the customer-facing invoice portal. This URL expires 30 days after the + # invoice's due date, or 60 days after being re-generated through the UI. + sig { returns(T.nilable(String)) } + attr_accessor :hosted_invoice_url + + # The scheduled date of the invoice + sig { returns(Time) } + attr_accessor :invoice_date + + # Automatically generated invoice number to help track and reconcile invoices. + # Invoice numbers have a prefix such as `RFOBWG`. These can be sequential per + # account or customer. + sig { returns(String) } + attr_accessor :invoice_number + + # The link to download the PDF representation of the `Invoice`. + sig { returns(T.nilable(String)) } + attr_accessor :invoice_pdf + + sig do + returns( + Orb::ChangedSubscriptionResources::CreatedInvoice::InvoiceSource::TaggedSymbol + ) + end + attr_accessor :invoice_source + + # True if the invoice has only in-advance fixed fees and is payable now + sig { returns(T::Boolean) } + attr_accessor :is_payable_now + + # If the invoice failed to issue, this will be the last time it failed to issue + # (even if it is now in a different state.) + sig { returns(T.nilable(Time)) } + attr_accessor :issue_failed_at + + # If the invoice has been issued, this will be the time it transitioned to + # `issued` (even if it is now in a different state.) + sig { returns(T.nilable(Time)) } + attr_accessor :issued_at + + # The breakdown of prices in this invoice. + sig do + returns( + T::Array[ + Orb::ChangedSubscriptionResources::CreatedInvoice::LineItem + ] + ) + end + attr_accessor :line_items + + sig { returns(T.nilable(Orb::Maximum)) } + attr_reader :maximum + + sig { params(maximum: T.nilable(Orb::Maximum::OrHash)).void } + attr_writer :maximum + + sig { returns(T.nilable(String)) } + attr_accessor :maximum_amount + + # Free-form text which is available on the invoice PDF and the Orb invoice portal. + sig { returns(T.nilable(String)) } + attr_accessor :memo + + # User specified key-value pairs for the resource. If not present, this defaults + # to an empty dictionary. Individual keys can be removed by setting the value to + # `null`, and the entire metadata mapping can be cleared by setting `metadata` to + # `null`. + sig { returns(T::Hash[Symbol, String]) } + attr_accessor :metadata + + sig { returns(T.nilable(Orb::Minimum)) } + attr_reader :minimum + + sig { params(minimum: T.nilable(Orb::Minimum::OrHash)).void } + attr_writer :minimum + + sig { returns(T.nilable(String)) } + attr_accessor :minimum_amount + + # If the invoice has a status of `paid`, this gives a timestamp when the invoice + # was paid. + sig { returns(T.nilable(Time)) } + attr_accessor :paid_at + + # A list of payment attempts associated with the invoice + sig do + returns( + T::Array[ + Orb::ChangedSubscriptionResources::CreatedInvoice::PaymentAttempt + ] + ) + end + attr_accessor :payment_attempts + + # If payment was attempted on this invoice but failed, this will be the time of + # the most recent attempt. + sig { returns(T.nilable(Time)) } + attr_accessor :payment_failed_at + + # If payment was attempted on this invoice, this will be the start time of the + # most recent attempt. This field is especially useful for delayed-notification + # payment mechanisms (like bank transfers), where payment can take 3 days or more. + sig { returns(T.nilable(Time)) } + attr_accessor :payment_started_at + + # If the invoice is in draft, this timestamp will reflect when the invoice is + # scheduled to be issued. + sig { returns(T.nilable(Time)) } + attr_accessor :scheduled_issue_at + + sig { returns(T.nilable(Orb::Address)) } + attr_reader :shipping_address + + sig { params(shipping_address: T.nilable(Orb::Address::OrHash)).void } + attr_writer :shipping_address + + sig do + returns( + Orb::ChangedSubscriptionResources::CreatedInvoice::Status::TaggedSymbol + ) + end + attr_accessor :status + + sig { returns(T.nilable(Orb::SubscriptionMinified)) } + attr_reader :subscription + + sig do + params( + subscription: T.nilable(Orb::SubscriptionMinified::OrHash) + ).void + end + attr_writer :subscription + + # The total before any discounts and minimums are applied. + sig { returns(String) } + attr_accessor :subtotal + + # If the invoice failed to sync, this will be the last time an external invoicing + # provider sync was attempted. This field will always be `null` for invoices using + # Orb Invoicing. + sig { returns(T.nilable(Time)) } + attr_accessor :sync_failed_at + + # The total after any minimums and discounts have been applied. + sig { returns(String) } + attr_accessor :total + + # If the invoice has a status of `void`, this gives a timestamp when the invoice + # was voided. + sig { returns(T.nilable(Time)) } + attr_accessor :voided_at + + # This is true if the invoice will be automatically issued in the future, and + # false otherwise. + sig { returns(T::Boolean) } + attr_accessor :will_auto_issue + + sig do + params( + id: String, + amount_due: String, + auto_collection: + Orb::ChangedSubscriptionResources::CreatedInvoice::AutoCollection::OrHash, + billing_address: T.nilable(Orb::Address::OrHash), + created_at: Time, + credit_notes: + T::Array[ + Orb::ChangedSubscriptionResources::CreatedInvoice::CreditNote::OrHash + ], + currency: String, + customer: Orb::CustomerMinified::OrHash, + customer_balance_transactions: + T::Array[ + Orb::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::OrHash + ], + customer_tax_id: T.nilable(Orb::CustomerTaxID::OrHash), + discount: T.anything, + discounts: + T::Array[ + T.any( + Orb::PercentageDiscount::OrHash, + Orb::AmountDiscount::OrHash, + Orb::TrialDiscount::OrHash + ) + ], + due_date: T.nilable(Time), + eligible_to_issue_at: T.nilable(Time), + hosted_invoice_url: T.nilable(String), + invoice_date: Time, + invoice_number: String, + invoice_pdf: T.nilable(String), + invoice_source: + Orb::ChangedSubscriptionResources::CreatedInvoice::InvoiceSource::OrSymbol, + is_payable_now: T::Boolean, + issue_failed_at: T.nilable(Time), + issued_at: T.nilable(Time), + line_items: + T::Array[ + Orb::ChangedSubscriptionResources::CreatedInvoice::LineItem::OrHash + ], + maximum: T.nilable(Orb::Maximum::OrHash), + maximum_amount: T.nilable(String), + memo: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Minimum::OrHash), + minimum_amount: T.nilable(String), + paid_at: T.nilable(Time), + payment_attempts: + T::Array[ + Orb::ChangedSubscriptionResources::CreatedInvoice::PaymentAttempt::OrHash + ], + payment_failed_at: T.nilable(Time), + payment_started_at: T.nilable(Time), + scheduled_issue_at: T.nilable(Time), + shipping_address: T.nilable(Orb::Address::OrHash), + status: + Orb::ChangedSubscriptionResources::CreatedInvoice::Status::OrSymbol, + subscription: T.nilable(Orb::SubscriptionMinified::OrHash), + subtotal: String, + sync_failed_at: T.nilable(Time), + total: String, + voided_at: T.nilable(Time), + will_auto_issue: T::Boolean + ).returns(T.attached_class) + end + def self.new( + id:, + # This is the final amount required to be charged to the customer and reflects the + # application of the customer balance to the `total` of the invoice. + amount_due:, + auto_collection:, + billing_address:, + # The creation time of the resource in Orb. + created_at:, + # A list of credit notes associated with the invoice + credit_notes:, + # An ISO 4217 currency string or `credits` + currency:, + customer:, + customer_balance_transactions:, + # Tax IDs are commonly required to be displayed on customer invoices, which are + # added to the headers of invoices. + # + # ### Supported Tax ID Countries and Types + # + # | Country | Type | Description | + # | ---------------------- | ------------ | ------------------------------------------------------------------------------------------------------- | + # | Albania | `al_tin` | Albania Tax Identification Number | + # | Andorra | `ad_nrt` | Andorran NRT Number | + # | Angola | `ao_tin` | Angola Tax Identification Number | + # | Argentina | `ar_cuit` | Argentinian Tax ID Number | + # | Armenia | `am_tin` | Armenia Tax Identification Number | + # | Aruba | `aw_tin` | Aruba Tax Identification Number | + # | Australia | `au_abn` | Australian Business Number (AU ABN) | + # | Australia | `au_arn` | Australian Taxation Office Reference Number | + # | Austria | `eu_vat` | European VAT Number | + # | Azerbaijan | `az_tin` | Azerbaijan Tax Identification Number | + # | Bahamas | `bs_tin` | Bahamas Tax Identification Number | + # | Bahrain | `bh_vat` | Bahraini VAT Number | + # | Bangladesh | `bd_bin` | Bangladesh Business Identification Number | + # | Barbados | `bb_tin` | Barbados Tax Identification Number | + # | Belarus | `by_tin` | Belarus TIN Number | + # | Belgium | `eu_vat` | European VAT Number | + # | Benin | `bj_ifu` | Benin Tax Identification Number (Identifiant Fiscal Unique) | + # | Bolivia | `bo_tin` | Bolivian Tax ID | + # | Bosnia and Herzegovina | `ba_tin` | Bosnia and Herzegovina Tax Identification Number | + # | Brazil | `br_cnpj` | Brazilian CNPJ Number | + # | Brazil | `br_cpf` | Brazilian CPF Number | + # | Bulgaria | `bg_uic` | Bulgaria Unified Identification Code | + # | Bulgaria | `eu_vat` | European VAT Number | + # | Burkina Faso | `bf_ifu` | Burkina Faso Tax Identification Number (Numéro d'Identifiant Fiscal Unique) | + # | Cambodia | `kh_tin` | Cambodia Tax Identification Number | + # | Cameroon | `cm_niu` | Cameroon Tax Identification Number (Numéro d'Identifiant fiscal Unique) | + # | Canada | `ca_bn` | Canadian BN | + # | Canada | `ca_gst_hst` | Canadian GST/HST Number | + # | Canada | `ca_pst_bc` | Canadian PST Number (British Columbia) | + # | Canada | `ca_pst_mb` | Canadian PST Number (Manitoba) | + # | Canada | `ca_pst_sk` | Canadian PST Number (Saskatchewan) | + # | Canada | `ca_qst` | Canadian QST Number (Québec) | + # | Cape Verde | `cv_nif` | Cape Verde Tax Identification Number (Número de Identificação Fiscal) | + # | Chile | `cl_tin` | Chilean TIN | + # | China | `cn_tin` | Chinese Tax ID | + # | Colombia | `co_nit` | Colombian NIT Number | + # | Congo-Kinshasa | `cd_nif` | Congo (DR) Tax Identification Number (Número de Identificação Fiscal) | + # | Costa Rica | `cr_tin` | Costa Rican Tax ID | + # | Croatia | `eu_vat` | European VAT Number | + # | Croatia | `hr_oib` | Croatian Personal Identification Number (OIB) | + # | Cyprus | `eu_vat` | European VAT Number | + # | Czech Republic | `eu_vat` | European VAT Number | + # | Denmark | `eu_vat` | European VAT Number | + # | Dominican Republic | `do_rcn` | Dominican RCN Number | + # | Ecuador | `ec_ruc` | Ecuadorian RUC Number | + # | Egypt | `eg_tin` | Egyptian Tax Identification Number | + # | El Salvador | `sv_nit` | El Salvadorian NIT Number | + # | Estonia | `eu_vat` | European VAT Number | + # | Ethiopia | `et_tin` | Ethiopia Tax Identification Number | + # | European Union | `eu_oss_vat` | European One Stop Shop VAT Number for non-Union scheme | + # | Finland | `eu_vat` | European VAT Number | + # | France | `eu_vat` | European VAT Number | + # | Georgia | `ge_vat` | Georgian VAT | + # | Germany | `de_stn` | German Tax Number (Steuernummer) | + # | Germany | `eu_vat` | European VAT Number | + # | Greece | `eu_vat` | European VAT Number | + # | Guinea | `gn_nif` | Guinea Tax Identification Number (Número de Identificação Fiscal) | + # | Hong Kong | `hk_br` | Hong Kong BR Number | + # | Hungary | `eu_vat` | European VAT Number | + # | Hungary | `hu_tin` | Hungary Tax Number (adószám) | + # | Iceland | `is_vat` | Icelandic VAT | + # | India | `in_gst` | Indian GST Number | + # | Indonesia | `id_npwp` | Indonesian NPWP Number | + # | Ireland | `eu_vat` | European VAT Number | + # | Israel | `il_vat` | Israel VAT | + # | Italy | `eu_vat` | European VAT Number | + # | Japan | `jp_cn` | Japanese Corporate Number (_Hōjin Bangō_) | + # | Japan | `jp_rn` | Japanese Registered Foreign Businesses' Registration Number (_Tōroku Kokugai Jigyōsha no Tōroku Bangō_) | + # | Japan | `jp_trn` | Japanese Tax Registration Number (_Tōroku Bangō_) | + # | Kazakhstan | `kz_bin` | Kazakhstani Business Identification Number | + # | Kenya | `ke_pin` | Kenya Revenue Authority Personal Identification Number | + # | Kyrgyzstan | `kg_tin` | Kyrgyzstan Tax Identification Number | + # | Laos | `la_tin` | Laos Tax Identification Number | + # | Latvia | `eu_vat` | European VAT Number | + # | Liechtenstein | `li_uid` | Liechtensteinian UID Number | + # | Liechtenstein | `li_vat` | Liechtenstein VAT Number | + # | Lithuania | `eu_vat` | European VAT Number | + # | Luxembourg | `eu_vat` | European VAT Number | + # | Malaysia | `my_frp` | Malaysian FRP Number | + # | Malaysia | `my_itn` | Malaysian ITN | + # | Malaysia | `my_sst` | Malaysian SST Number | + # | Malta | `eu_vat` | European VAT Number | + # | Mauritania | `mr_nif` | Mauritania Tax Identification Number (Número de Identificação Fiscal) | + # | Mexico | `mx_rfc` | Mexican RFC Number | + # | Moldova | `md_vat` | Moldova VAT Number | + # | Montenegro | `me_pib` | Montenegro PIB Number | + # | Morocco | `ma_vat` | Morocco VAT Number | + # | Nepal | `np_pan` | Nepal PAN Number | + # | Netherlands | `eu_vat` | European VAT Number | + # | New Zealand | `nz_gst` | New Zealand GST Number | + # | Nigeria | `ng_tin` | Nigerian Tax Identification Number | + # | North Macedonia | `mk_vat` | North Macedonia VAT Number | + # | Northern Ireland | `eu_vat` | Northern Ireland VAT Number | + # | Norway | `no_vat` | Norwegian VAT Number | + # | Norway | `no_voec` | Norwegian VAT on e-commerce Number | + # | Oman | `om_vat` | Omani VAT Number | + # | Peru | `pe_ruc` | Peruvian RUC Number | + # | Philippines | `ph_tin` | Philippines Tax Identification Number | + # | Poland | `eu_vat` | European VAT Number | + # | Portugal | `eu_vat` | European VAT Number | + # | Romania | `eu_vat` | European VAT Number | + # | Romania | `ro_tin` | Romanian Tax ID Number | + # | Russia | `ru_inn` | Russian INN | + # | Russia | `ru_kpp` | Russian KPP | + # | Saudi Arabia | `sa_vat` | Saudi Arabia VAT | + # | Senegal | `sn_ninea` | Senegal NINEA Number | + # | Serbia | `rs_pib` | Serbian PIB Number | + # | Singapore | `sg_gst` | Singaporean GST | + # | Singapore | `sg_uen` | Singaporean UEN | + # | Slovakia | `eu_vat` | European VAT Number | + # | Slovenia | `eu_vat` | European VAT Number | + # | Slovenia | `si_tin` | Slovenia Tax Number (davčna številka) | + # | South Africa | `za_vat` | South African VAT Number | + # | South Korea | `kr_brn` | Korean BRN | + # | Spain | `es_cif` | Spanish NIF Number (previously Spanish CIF Number) | + # | Spain | `eu_vat` | European VAT Number | + # | Suriname | `sr_fin` | Suriname FIN Number | + # | Sweden | `eu_vat` | European VAT Number | + # | Switzerland | `ch_uid` | Switzerland UID Number | + # | Switzerland | `ch_vat` | Switzerland VAT Number | + # | Taiwan | `tw_vat` | Taiwanese VAT | + # | Tajikistan | `tj_tin` | Tajikistan Tax Identification Number | + # | Tanzania | `tz_vat` | Tanzania VAT Number | + # | Thailand | `th_vat` | Thai VAT | + # | Turkey | `tr_tin` | Turkish Tax Identification Number | + # | Uganda | `ug_tin` | Uganda Tax Identification Number | + # | Ukraine | `ua_vat` | Ukrainian VAT | + # | United Arab Emirates | `ae_trn` | United Arab Emirates TRN | + # | United Kingdom | `gb_vat` | United Kingdom VAT Number | + # | United States | `us_ein` | United States EIN | + # | Uruguay | `uy_ruc` | Uruguayan RUC Number | + # | Uzbekistan | `uz_tin` | Uzbekistan TIN Number | + # | Uzbekistan | `uz_vat` | Uzbekistan VAT Number | + # | Venezuela | `ve_rif` | Venezuelan RIF Number | + # | Vietnam | `vn_tin` | Vietnamese Tax ID Number | + # | Zambia | `zm_tin` | Zambia Tax Identification Number | + # | Zimbabwe | `zw_tin` | Zimbabwe Tax Identification Number | + customer_tax_id:, + # This field is deprecated in favor of `discounts`. If a `discounts` list is + # provided, the first discount in the list will be returned. If the list is empty, + # `None` will be returned. + discount:, + discounts:, + # When the invoice payment is due. The due date is null if the invoice is not yet + # finalized. + due_date:, + # If the invoice has a status of `draft`, this will be the time that the invoice + # will be eligible to be issued, otherwise it will be `null`. If `auto-issue` is + # true, the invoice will automatically begin issuing at this time. + eligible_to_issue_at:, + # A URL for the customer-facing invoice portal. This URL expires 30 days after the + # invoice's due date, or 60 days after being re-generated through the UI. + hosted_invoice_url:, + # The scheduled date of the invoice + invoice_date:, + # Automatically generated invoice number to help track and reconcile invoices. + # Invoice numbers have a prefix such as `RFOBWG`. These can be sequential per + # account or customer. + invoice_number:, + # The link to download the PDF representation of the `Invoice`. + invoice_pdf:, + invoice_source:, + # True if the invoice has only in-advance fixed fees and is payable now + is_payable_now:, + # If the invoice failed to issue, this will be the last time it failed to issue + # (even if it is now in a different state.) + issue_failed_at:, + # If the invoice has been issued, this will be the time it transitioned to + # `issued` (even if it is now in a different state.) + issued_at:, + # The breakdown of prices in this invoice. + line_items:, + maximum:, + maximum_amount:, + # Free-form text which is available on the invoice PDF and the Orb invoice portal. + memo:, + # User specified key-value pairs for the resource. If not present, this defaults + # to an empty dictionary. Individual keys can be removed by setting the value to + # `null`, and the entire metadata mapping can be cleared by setting `metadata` to + # `null`. + metadata:, + minimum:, + minimum_amount:, + # If the invoice has a status of `paid`, this gives a timestamp when the invoice + # was paid. + paid_at:, + # A list of payment attempts associated with the invoice + payment_attempts:, + # If payment was attempted on this invoice but failed, this will be the time of + # the most recent attempt. + payment_failed_at:, + # If payment was attempted on this invoice, this will be the start time of the + # most recent attempt. This field is especially useful for delayed-notification + # payment mechanisms (like bank transfers), where payment can take 3 days or more. + payment_started_at:, + # If the invoice is in draft, this timestamp will reflect when the invoice is + # scheduled to be issued. + scheduled_issue_at:, + shipping_address:, + status:, + subscription:, + # The total before any discounts and minimums are applied. + subtotal:, + # If the invoice failed to sync, this will be the last time an external invoicing + # provider sync was attempted. This field will always be `null` for invoices using + # Orb Invoicing. + sync_failed_at:, + # The total after any minimums and discounts have been applied. + total:, + # If the invoice has a status of `void`, this gives a timestamp when the invoice + # was voided. + voided_at:, + # This is true if the invoice will be automatically issued in the future, and + # false otherwise. + will_auto_issue: + ) + end + + sig do + override.returns( + { + id: String, + amount_due: String, + auto_collection: + Orb::ChangedSubscriptionResources::CreatedInvoice::AutoCollection, + billing_address: T.nilable(Orb::Address), + created_at: Time, + credit_notes: + T::Array[ + Orb::ChangedSubscriptionResources::CreatedInvoice::CreditNote + ], + currency: String, + customer: Orb::CustomerMinified, + customer_balance_transactions: + T::Array[ + Orb::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction + ], + customer_tax_id: T.nilable(Orb::CustomerTaxID), + discount: T.anything, + discounts: T::Array[Orb::InvoiceLevelDiscount::Variants], + due_date: T.nilable(Time), + eligible_to_issue_at: T.nilable(Time), + hosted_invoice_url: T.nilable(String), + invoice_date: Time, + invoice_number: String, + invoice_pdf: T.nilable(String), + invoice_source: + Orb::ChangedSubscriptionResources::CreatedInvoice::InvoiceSource::TaggedSymbol, + is_payable_now: T::Boolean, + issue_failed_at: T.nilable(Time), + issued_at: T.nilable(Time), + line_items: + T::Array[ + Orb::ChangedSubscriptionResources::CreatedInvoice::LineItem + ], + maximum: T.nilable(Orb::Maximum), + maximum_amount: T.nilable(String), + memo: T.nilable(String), + metadata: T::Hash[Symbol, String], + minimum: T.nilable(Orb::Minimum), + minimum_amount: T.nilable(String), + paid_at: T.nilable(Time), + payment_attempts: + T::Array[ + Orb::ChangedSubscriptionResources::CreatedInvoice::PaymentAttempt + ], + payment_failed_at: T.nilable(Time), + payment_started_at: T.nilable(Time), + scheduled_issue_at: T.nilable(Time), + shipping_address: T.nilable(Orb::Address), + status: + Orb::ChangedSubscriptionResources::CreatedInvoice::Status::TaggedSymbol, + subscription: T.nilable(Orb::SubscriptionMinified), + subtotal: String, + sync_failed_at: T.nilable(Time), + total: String, + voided_at: T.nilable(Time), + will_auto_issue: T::Boolean + } + ) + end + def to_hash + end + + class AutoCollection < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::ChangedSubscriptionResources::CreatedInvoice::AutoCollection, + Orb::Internal::AnyHash + ) + end + + # True only if auto-collection is enabled for this invoice. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :enabled + + # If the invoice is scheduled for auto-collection, this field will reflect when + # the next attempt will occur. If dunning has been exhausted, or auto-collection + # is not enabled for this invoice, this field will be `null`. + sig { returns(T.nilable(Time)) } + attr_accessor :next_attempt_at + + # Number of auto-collection payment attempts. + sig { returns(T.nilable(Integer)) } + attr_accessor :num_attempts + + # If Orb has ever attempted payment auto-collection for this invoice, this field + # will reflect when that attempt occurred. In conjunction with `next_attempt_at`, + # this can be used to tell whether the invoice is currently in dunning (that is, + # `previously_attempted_at` is non-null, and `next_attempt_time` is non-null), or + # if dunning has been exhausted (`previously_attempted_at` is non-null, but + # `next_attempt_time` is null). + sig { returns(T.nilable(Time)) } + attr_accessor :previously_attempted_at + + sig do + params( + enabled: T.nilable(T::Boolean), + next_attempt_at: T.nilable(Time), + num_attempts: T.nilable(Integer), + previously_attempted_at: T.nilable(Time) + ).returns(T.attached_class) + end + def self.new( + # True only if auto-collection is enabled for this invoice. + enabled:, + # If the invoice is scheduled for auto-collection, this field will reflect when + # the next attempt will occur. If dunning has been exhausted, or auto-collection + # is not enabled for this invoice, this field will be `null`. + next_attempt_at:, + # Number of auto-collection payment attempts. + num_attempts:, + # If Orb has ever attempted payment auto-collection for this invoice, this field + # will reflect when that attempt occurred. In conjunction with `next_attempt_at`, + # this can be used to tell whether the invoice is currently in dunning (that is, + # `previously_attempted_at` is non-null, and `next_attempt_time` is non-null), or + # if dunning has been exhausted (`previously_attempted_at` is non-null, but + # `next_attempt_time` is null). + previously_attempted_at: + ) + end + + sig do + override.returns( + { + enabled: T.nilable(T::Boolean), + next_attempt_at: T.nilable(Time), + num_attempts: T.nilable(Integer), + previously_attempted_at: T.nilable(Time) + } + ) + end + def to_hash + end + end + + class CreditNote < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::ChangedSubscriptionResources::CreatedInvoice::CreditNote, + Orb::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :id + + sig { returns(String) } + attr_accessor :credit_note_number + + # An optional memo supplied on the credit note. + sig { returns(T.nilable(String)) } + attr_accessor :memo + + sig { returns(String) } + attr_accessor :reason + + sig { returns(String) } + attr_accessor :total + + sig { returns(String) } + attr_accessor :type + + # If the credit note has a status of `void`, this gives a timestamp when the + # credit note was voided. + sig { returns(T.nilable(Time)) } + attr_accessor :voided_at + + sig do + params( + id: String, + credit_note_number: String, + memo: T.nilable(String), + reason: String, + total: String, + type: String, + voided_at: T.nilable(Time) + ).returns(T.attached_class) + end + def self.new( + id:, + credit_note_number:, + # An optional memo supplied on the credit note. + memo:, + reason:, + total:, + type:, + # If the credit note has a status of `void`, this gives a timestamp when the + # credit note was voided. + voided_at: + ) + end + + sig do + override.returns( + { + id: String, + credit_note_number: String, + memo: T.nilable(String), + reason: String, + total: String, + type: String, + voided_at: T.nilable(Time) + } + ) + end + def to_hash + end + end + + class CustomerBalanceTransaction < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction, + Orb::Internal::AnyHash + ) + end + + # A unique id for this transaction. + sig { returns(String) } + attr_accessor :id + + sig do + returns( + Orb::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::Action::TaggedSymbol + ) + end + attr_accessor :action + + # The value of the amount changed in the transaction. + sig { returns(String) } + attr_accessor :amount + + # The creation time of this transaction. + sig { returns(Time) } + attr_accessor :created_at + + sig { returns(T.nilable(Orb::CreditNoteTiny)) } + attr_reader :credit_note + + sig do + params(credit_note: T.nilable(Orb::CreditNoteTiny::OrHash)).void + end + attr_writer :credit_note + + # An optional description provided for manual customer balance adjustments. + sig { returns(T.nilable(String)) } + attr_accessor :description + + # The new value of the customer's balance prior to the transaction, in the + # customer's currency. + sig { returns(String) } + attr_accessor :ending_balance + + sig { returns(T.nilable(Orb::InvoiceTiny)) } + attr_reader :invoice + + sig { params(invoice: T.nilable(Orb::InvoiceTiny::OrHash)).void } + attr_writer :invoice + + # The original value of the customer's balance prior to the transaction, in the + # customer's currency. + sig { returns(String) } + attr_accessor :starting_balance + + sig do + returns( + Orb::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::Type::TaggedSymbol + ) + end + attr_accessor :type + + sig do + params( + id: String, + action: + Orb::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::Action::OrSymbol, + amount: String, + created_at: Time, + credit_note: T.nilable(Orb::CreditNoteTiny::OrHash), + description: T.nilable(String), + ending_balance: String, + invoice: T.nilable(Orb::InvoiceTiny::OrHash), + starting_balance: String, + type: + Orb::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::Type::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # A unique id for this transaction. + id:, + action:, + # The value of the amount changed in the transaction. + amount:, + # The creation time of this transaction. + created_at:, + credit_note:, + # An optional description provided for manual customer balance adjustments. + description:, + # The new value of the customer's balance prior to the transaction, in the + # customer's currency. + ending_balance:, + invoice:, + # The original value of the customer's balance prior to the transaction, in the + # customer's currency. + starting_balance:, + type: + ) + end + + sig do + override.returns( + { + id: String, + action: + Orb::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::Action::TaggedSymbol, + amount: String, + created_at: Time, + credit_note: T.nilable(Orb::CreditNoteTiny), + description: T.nilable(String), + ending_balance: String, + invoice: T.nilable(Orb::InvoiceTiny), + starting_balance: String, + type: + Orb::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::Type::TaggedSymbol + } + ) + end + def to_hash + end + + module Action + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::Action + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + APPLIED_TO_INVOICE = + T.let( + :applied_to_invoice, + Orb::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::Action::TaggedSymbol + ) + MANUAL_ADJUSTMENT = + T.let( + :manual_adjustment, + Orb::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::Action::TaggedSymbol + ) + PRORATED_REFUND = + T.let( + :prorated_refund, + Orb::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::Action::TaggedSymbol + ) + REVERT_PRORATED_REFUND = + T.let( + :revert_prorated_refund, + Orb::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::Action::TaggedSymbol + ) + RETURN_FROM_VOIDING = + T.let( + :return_from_voiding, + Orb::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::Action::TaggedSymbol + ) + CREDIT_NOTE_APPLIED = + T.let( + :credit_note_applied, + Orb::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::Action::TaggedSymbol + ) + CREDIT_NOTE_VOIDED = + T.let( + :credit_note_voided, + Orb::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::Action::TaggedSymbol + ) + OVERPAYMENT_REFUND = + T.let( + :overpayment_refund, + Orb::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::Action::TaggedSymbol + ) + EXTERNAL_PAYMENT = + T.let( + :external_payment, + Orb::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::Action::TaggedSymbol + ) + SMALL_INVOICE_CARRYOVER = + T.let( + :small_invoice_carryover, + Orb::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::Action::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::Action::TaggedSymbol + ] + ) + end + def self.values + end + end + + module Type + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::Type + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + INCREMENT = + T.let( + :increment, + Orb::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::Type::TaggedSymbol + ) + DECREMENT = + T.let( + :decrement, + Orb::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::Type::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::Type::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + module InvoiceSource + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::ChangedSubscriptionResources::CreatedInvoice::InvoiceSource + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + SUBSCRIPTION = + T.let( + :subscription, + Orb::ChangedSubscriptionResources::CreatedInvoice::InvoiceSource::TaggedSymbol + ) + PARTIAL = + T.let( + :partial, + Orb::ChangedSubscriptionResources::CreatedInvoice::InvoiceSource::TaggedSymbol + ) + ONE_OFF = + T.let( + :one_off, + Orb::ChangedSubscriptionResources::CreatedInvoice::InvoiceSource::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::ChangedSubscriptionResources::CreatedInvoice::InvoiceSource::TaggedSymbol + ] + ) + end + def self.values + end + end + + class LineItem < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::ChangedSubscriptionResources::CreatedInvoice::LineItem, + Orb::Internal::AnyHash + ) + end + + # A unique ID for this line item. + sig { returns(String) } + attr_accessor :id + + # The line amount after any adjustments and before overage conversion, credits and + # partial invoicing. + sig { returns(String) } + attr_accessor :adjusted_subtotal + + # All adjustments applied to the line item in the order they were applied based on + # invoice calculations (ie. usage discounts -> amount discounts -> percentage + # discounts -> minimums -> maximums). + sig do + returns( + T::Array[ + Orb::ChangedSubscriptionResources::CreatedInvoice::LineItem::Adjustment::Variants + ] + ) + end + attr_accessor :adjustments + + # The final amount for a line item after all adjustments and pre paid credits have + # been applied. + sig { returns(String) } + attr_accessor :amount + + # The number of prepaid credits applied. + sig { returns(String) } + attr_accessor :credits_applied + + # This field is deprecated in favor of `adjustments` + sig { returns(T.nilable(Orb::Discount::Variants)) } + attr_accessor :discount + + # The end date of the range of time applied for this line item's price. + sig { returns(Time) } + attr_accessor :end_date + + # An additional filter that was used to calculate the usage for this line item. + sig { returns(T.nilable(String)) } + attr_accessor :filter + + # [DEPRECATED] For configured prices that are split by a grouping key, this will + # be populated with the key and a value. The `amount` and `subtotal` will be the + # values for this particular grouping. + sig { returns(T.nilable(String)) } + attr_accessor :grouping + + # This field is deprecated in favor of `adjustments`. + sig { returns(T.nilable(Orb::Maximum)) } + attr_reader :maximum + + sig { params(maximum: T.nilable(Orb::Maximum::OrHash)).void } + attr_writer :maximum + + # This field is deprecated in favor of `adjustments`. + sig { returns(T.nilable(String)) } + attr_accessor :maximum_amount + + # This field is deprecated in favor of `adjustments`. + sig { returns(T.nilable(Orb::Minimum)) } + attr_reader :minimum + + sig { params(minimum: T.nilable(Orb::Minimum::OrHash)).void } + attr_writer :minimum + + # This field is deprecated in favor of `adjustments`. + sig { returns(T.nilable(String)) } + attr_accessor :minimum_amount + + # The name of the price associated with this line item. + sig { returns(String) } + attr_accessor :name + + # Any amount applied from a partial invoice + sig { returns(String) } + attr_accessor :partially_invoiced_amount + + # The Price resource represents a price that can be billed on a subscription, + # resulting in a charge on an invoice in the form of an invoice line item. Prices + # take a quantity and determine an amount to bill. + # + # Orb supports a few different pricing models out of the box. Each of these models + # is serialized differently in a given Price object. The model_type field + # determines the key for the configuration object that is present. + # + # For more on the types of prices, see + # [the core concepts documentation](/core-concepts#plan-and-price) + sig { returns(Orb::Price::Variants) } + attr_accessor :price + + # Either the fixed fee quantity or the usage during the service period. + sig { returns(Float) } + attr_accessor :quantity + + # The start date of the range of time applied for this line item's price. + sig { returns(Time) } + attr_accessor :start_date + + # For complex pricing structures, the line item can be broken down further in + # `sub_line_items`. + sig do + returns( + T::Array[ + Orb::ChangedSubscriptionResources::CreatedInvoice::LineItem::SubLineItem::Variants + ] + ) + end + attr_accessor :sub_line_items + + # The line amount before any adjustments. + sig { returns(String) } + attr_accessor :subtotal + + # An array of tax rates and their incurred tax amounts. Empty if no tax + # integration is configured. + sig { returns(T::Array[Orb::TaxAmount]) } + attr_accessor :tax_amounts + + # A list of customer ids that were used to calculate the usage for this line item. + sig { returns(T.nilable(T::Array[String])) } + attr_accessor :usage_customer_ids + + sig do + params( + id: String, + adjusted_subtotal: String, + adjustments: + T::Array[ + T.any( + Orb::MonetaryUsageDiscountAdjustment::OrHash, + Orb::MonetaryAmountDiscountAdjustment::OrHash, + Orb::MonetaryPercentageDiscountAdjustment::OrHash, + Orb::MonetaryMinimumAdjustment::OrHash, + Orb::MonetaryMaximumAdjustment::OrHash + ) + ], + amount: String, + credits_applied: String, + discount: + T.nilable( + T.any( + Orb::PercentageDiscount::OrHash, + Orb::TrialDiscount::OrHash, + Orb::UsageDiscount::OrHash, + Orb::AmountDiscount::OrHash + ) + ), + end_date: Time, + filter: T.nilable(String), + grouping: T.nilable(String), + maximum: T.nilable(Orb::Maximum::OrHash), + maximum_amount: T.nilable(String), + minimum: T.nilable(Orb::Minimum::OrHash), + minimum_amount: T.nilable(String), + name: String, + partially_invoiced_amount: String, + price: + T.any( + Orb::Price::Unit::OrHash, + Orb::Price::Tiered::OrHash, + Orb::Price::Bulk::OrHash, + Orb::Price::Package::OrHash, + Orb::Price::Matrix::OrHash, + Orb::Price::ThresholdTotalAmount::OrHash, + Orb::Price::TieredPackage::OrHash, + Orb::Price::TieredWithMinimum::OrHash, + Orb::Price::GroupedTiered::OrHash, + Orb::Price::TieredPackageWithMinimum::OrHash, + Orb::Price::PackageWithAllocation::OrHash, + Orb::Price::UnitWithPercent::OrHash, + Orb::Price::MatrixWithAllocation::OrHash, + Orb::Price::TieredWithProration::OrHash, + Orb::Price::UnitWithProration::OrHash, + Orb::Price::GroupedAllocation::OrHash, + Orb::Price::BulkWithProration::OrHash, + Orb::Price::GroupedWithProratedMinimum::OrHash, + Orb::Price::GroupedWithMeteredMinimum::OrHash, + Orb::Price::GroupedWithMinMaxThresholds::OrHash, + Orb::Price::MatrixWithDisplayName::OrHash, + Orb::Price::GroupedTieredPackage::OrHash, + Orb::Price::MaxGroupTieredPackage::OrHash, + Orb::Price::ScalableMatrixWithUnitPricing::OrHash, + Orb::Price::ScalableMatrixWithTieredPricing::OrHash, + Orb::Price::CumulativeGroupedBulk::OrHash, + Orb::Price::Minimum::OrHash + ), + quantity: Float, + start_date: Time, + sub_line_items: + T::Array[ + T.any( + Orb::MatrixSubLineItem::OrHash, + Orb::TierSubLineItem::OrHash, + Orb::OtherSubLineItem::OrHash + ) + ], + subtotal: String, + tax_amounts: T::Array[Orb::TaxAmount::OrHash], + usage_customer_ids: T.nilable(T::Array[String]) + ).returns(T.attached_class) + end + def self.new( + # A unique ID for this line item. + id:, + # The line amount after any adjustments and before overage conversion, credits and + # partial invoicing. + adjusted_subtotal:, + # All adjustments applied to the line item in the order they were applied based on + # invoice calculations (ie. usage discounts -> amount discounts -> percentage + # discounts -> minimums -> maximums). + adjustments:, + # The final amount for a line item after all adjustments and pre paid credits have + # been applied. + amount:, + # The number of prepaid credits applied. + credits_applied:, + # This field is deprecated in favor of `adjustments` + discount:, + # The end date of the range of time applied for this line item's price. + end_date:, + # An additional filter that was used to calculate the usage for this line item. + filter:, + # [DEPRECATED] For configured prices that are split by a grouping key, this will + # be populated with the key and a value. The `amount` and `subtotal` will be the + # values for this particular grouping. + grouping:, + # This field is deprecated in favor of `adjustments`. + maximum:, + # This field is deprecated in favor of `adjustments`. + maximum_amount:, + # This field is deprecated in favor of `adjustments`. + minimum:, + # This field is deprecated in favor of `adjustments`. + minimum_amount:, + # The name of the price associated with this line item. + name:, + # Any amount applied from a partial invoice + partially_invoiced_amount:, + # The Price resource represents a price that can be billed on a subscription, + # resulting in a charge on an invoice in the form of an invoice line item. Prices + # take a quantity and determine an amount to bill. + # + # Orb supports a few different pricing models out of the box. Each of these models + # is serialized differently in a given Price object. The model_type field + # determines the key for the configuration object that is present. + # + # For more on the types of prices, see + # [the core concepts documentation](/core-concepts#plan-and-price) + price:, + # Either the fixed fee quantity or the usage during the service period. + quantity:, + # The start date of the range of time applied for this line item's price. + start_date:, + # For complex pricing structures, the line item can be broken down further in + # `sub_line_items`. + sub_line_items:, + # The line amount before any adjustments. + subtotal:, + # An array of tax rates and their incurred tax amounts. Empty if no tax + # integration is configured. + tax_amounts:, + # A list of customer ids that were used to calculate the usage for this line item. + usage_customer_ids: + ) + end + + sig do + override.returns( + { + id: String, + adjusted_subtotal: String, + adjustments: + T::Array[ + Orb::ChangedSubscriptionResources::CreatedInvoice::LineItem::Adjustment::Variants + ], + amount: String, + credits_applied: String, + discount: T.nilable(Orb::Discount::Variants), + end_date: Time, + filter: T.nilable(String), + grouping: T.nilable(String), + maximum: T.nilable(Orb::Maximum), + maximum_amount: T.nilable(String), + minimum: T.nilable(Orb::Minimum), + minimum_amount: T.nilable(String), + name: String, + partially_invoiced_amount: String, + price: Orb::Price::Variants, + quantity: Float, + start_date: Time, + sub_line_items: + T::Array[ + Orb::ChangedSubscriptionResources::CreatedInvoice::LineItem::SubLineItem::Variants + ], + subtotal: String, + tax_amounts: T::Array[Orb::TaxAmount], + usage_customer_ids: T.nilable(T::Array[String]) + } + ) + end + def to_hash + end + + module Adjustment + extend Orb::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + Orb::MonetaryUsageDiscountAdjustment, + Orb::MonetaryAmountDiscountAdjustment, + Orb::MonetaryPercentageDiscountAdjustment, + Orb::MonetaryMinimumAdjustment, + Orb::MonetaryMaximumAdjustment + ) + end + + sig do + override.returns( + T::Array[ + Orb::ChangedSubscriptionResources::CreatedInvoice::LineItem::Adjustment::Variants + ] + ) + end + def self.variants + end + end + + module SubLineItem + extend Orb::Internal::Type::Union + + Variants = + T.type_alias do + T.any( + Orb::MatrixSubLineItem, + Orb::TierSubLineItem, + Orb::OtherSubLineItem + ) + end + + sig do + override.returns( + T::Array[ + Orb::ChangedSubscriptionResources::CreatedInvoice::LineItem::SubLineItem::Variants + ] + ) + end + def self.variants + end + end + end + + class PaymentAttempt < Orb::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Orb::ChangedSubscriptionResources::CreatedInvoice::PaymentAttempt, + Orb::Internal::AnyHash + ) + end + + # The ID of the payment attempt. + sig { returns(String) } + attr_accessor :id + + # The amount of the payment attempt. + sig { returns(String) } + attr_accessor :amount + + # The time at which the payment attempt was created. + sig { returns(Time) } + attr_accessor :created_at + + # The payment provider that attempted to collect the payment. + sig do + returns( + T.nilable( + Orb::ChangedSubscriptionResources::CreatedInvoice::PaymentAttempt::PaymentProvider::TaggedSymbol + ) + ) + end + attr_accessor :payment_provider + + # The ID of the payment attempt in the payment provider. + sig { returns(T.nilable(String)) } + attr_accessor :payment_provider_id + + # URL to the downloadable PDF version of the receipt. This field will be `null` + # for payment attempts that did not succeed. + sig { returns(T.nilable(String)) } + attr_accessor :receipt_pdf + + # Whether the payment attempt succeeded. + sig { returns(T::Boolean) } + attr_accessor :succeeded + + sig do + params( + id: String, + amount: String, + created_at: Time, + payment_provider: + T.nilable( + Orb::ChangedSubscriptionResources::CreatedInvoice::PaymentAttempt::PaymentProvider::OrSymbol + ), + payment_provider_id: T.nilable(String), + receipt_pdf: T.nilable(String), + succeeded: T::Boolean + ).returns(T.attached_class) + end + def self.new( + # The ID of the payment attempt. + id:, + # The amount of the payment attempt. + amount:, + # The time at which the payment attempt was created. + created_at:, + # The payment provider that attempted to collect the payment. + payment_provider:, + # The ID of the payment attempt in the payment provider. + payment_provider_id:, + # URL to the downloadable PDF version of the receipt. This field will be `null` + # for payment attempts that did not succeed. + receipt_pdf:, + # Whether the payment attempt succeeded. + succeeded: + ) + end + + sig do + override.returns( + { + id: String, + amount: String, + created_at: Time, + payment_provider: + T.nilable( + Orb::ChangedSubscriptionResources::CreatedInvoice::PaymentAttempt::PaymentProvider::TaggedSymbol + ), + payment_provider_id: T.nilable(String), + receipt_pdf: T.nilable(String), + succeeded: T::Boolean + } + ) + end + def to_hash + end + + # The payment provider that attempted to collect the payment. + module PaymentProvider + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::ChangedSubscriptionResources::CreatedInvoice::PaymentAttempt::PaymentProvider + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + STRIPE = + T.let( + :stripe, + Orb::ChangedSubscriptionResources::CreatedInvoice::PaymentAttempt::PaymentProvider::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::ChangedSubscriptionResources::CreatedInvoice::PaymentAttempt::PaymentProvider::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + module Status + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::ChangedSubscriptionResources::CreatedInvoice::Status + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ISSUED = + T.let( + :issued, + Orb::ChangedSubscriptionResources::CreatedInvoice::Status::TaggedSymbol + ) + PAID = + T.let( + :paid, + Orb::ChangedSubscriptionResources::CreatedInvoice::Status::TaggedSymbol + ) + SYNCED = + T.let( + :synced, + Orb::ChangedSubscriptionResources::CreatedInvoice::Status::TaggedSymbol + ) + VOID = + T.let( + :void, + Orb::ChangedSubscriptionResources::CreatedInvoice::Status::TaggedSymbol + ) + DRAFT = + T.let( + :draft, + Orb::ChangedSubscriptionResources::CreatedInvoice::Status::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::ChangedSubscriptionResources::CreatedInvoice::Status::TaggedSymbol + ] + ) + end + def self.values + end + end + end end end end diff --git a/rbi/orb/models/price.rbi b/rbi/orb/models/price.rbi index ff1c488c..e92c74b7 100644 --- a/rbi/orb/models/price.rbi +++ b/rbi/orb/models/price.rbi @@ -75,6 +75,9 @@ module Orb end attr_writer :billing_cycle_configuration + sig { returns(Orb::Price::Unit::BillingMode::TaggedSymbol) } + attr_accessor :billing_mode + sig { returns(Orb::Price::Unit::Cadence::TaggedSymbol) } attr_accessor :cadence @@ -195,6 +198,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, + billing_mode: Orb::Price::Unit::BillingMode::OrSymbol, cadence: Orb::Price::Unit::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), @@ -242,6 +246,7 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, + billing_mode:, cadence:, composite_price_filters:, conversion_rate:, @@ -283,6 +288,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Unit::BillingMode::TaggedSymbol, cadence: Orb::Price::Unit::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), @@ -317,6 +323,27 @@ module Orb def to_hash end + module BillingMode + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Price::Unit::BillingMode) } + OrSymbol = T.type_alias { T.any(Symbol, String) } + + IN_ADVANCE = + T.let(:in_advance, Orb::Price::Unit::BillingMode::TaggedSymbol) + IN_ARREAR = + T.let(:in_arrear, Orb::Price::Unit::BillingMode::TaggedSymbol) + + sig do + override.returns( + T::Array[Orb::Price::Unit::BillingMode::TaggedSymbol] + ) + end + def self.values + end + end + module Cadence extend Orb::Internal::Type::Enum @@ -390,6 +417,9 @@ module Orb end attr_writer :billing_cycle_configuration + sig { returns(Orb::Price::Tiered::BillingMode::TaggedSymbol) } + attr_accessor :billing_mode + sig { returns(Orb::Price::Tiered::Cadence::TaggedSymbol) } attr_accessor :cadence @@ -510,6 +540,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, + billing_mode: Orb::Price::Tiered::BillingMode::OrSymbol, cadence: Orb::Price::Tiered::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), @@ -557,6 +588,7 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, + billing_mode:, cadence:, composite_price_filters:, conversion_rate:, @@ -598,6 +630,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Tiered::BillingMode::TaggedSymbol, cadence: Orb::Price::Tiered::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), @@ -632,6 +665,27 @@ module Orb def to_hash end + module BillingMode + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Price::Tiered::BillingMode) } + OrSymbol = T.type_alias { T.any(Symbol, String) } + + IN_ADVANCE = + T.let(:in_advance, Orb::Price::Tiered::BillingMode::TaggedSymbol) + IN_ARREAR = + T.let(:in_arrear, Orb::Price::Tiered::BillingMode::TaggedSymbol) + + sig do + override.returns( + T::Array[Orb::Price::Tiered::BillingMode::TaggedSymbol] + ) + end + def self.values + end + end + module Cadence extend Orb::Internal::Type::Enum @@ -708,6 +762,9 @@ module Orb end attr_writer :billing_cycle_configuration + sig { returns(Orb::Price::Bulk::BillingMode::TaggedSymbol) } + attr_accessor :billing_mode + # Configuration for bulk pricing sig { returns(Orb::BulkConfig) } attr_reader :bulk_config @@ -828,6 +885,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, + billing_mode: Orb::Price::Bulk::BillingMode::OrSymbol, bulk_config: Orb::BulkConfig::OrHash, cadence: Orb::Price::Bulk::Cadence::OrSymbol, composite_price_filters: @@ -875,6 +933,7 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, + billing_mode:, # Configuration for bulk pricing bulk_config:, cadence:, @@ -916,6 +975,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Bulk::BillingMode::TaggedSymbol, bulk_config: Orb::BulkConfig, cadence: Orb::Price::Bulk::Cadence::TaggedSymbol, composite_price_filters: @@ -950,6 +1010,27 @@ module Orb def to_hash end + module BillingMode + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Price::Bulk::BillingMode) } + OrSymbol = T.type_alias { T.any(Symbol, String) } + + IN_ADVANCE = + T.let(:in_advance, Orb::Price::Bulk::BillingMode::TaggedSymbol) + IN_ARREAR = + T.let(:in_arrear, Orb::Price::Bulk::BillingMode::TaggedSymbol) + + sig do + override.returns( + T::Array[Orb::Price::Bulk::BillingMode::TaggedSymbol] + ) + end + def self.values + end + end + module Cadence extend Orb::Internal::Type::Enum @@ -1023,6 +1104,9 @@ module Orb end attr_writer :billing_cycle_configuration + sig { returns(Orb::Price::Package::BillingMode::TaggedSymbol) } + attr_accessor :billing_mode + sig { returns(Orb::Price::Package::Cadence::TaggedSymbol) } attr_accessor :cadence @@ -1145,6 +1229,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, + billing_mode: Orb::Price::Package::BillingMode::OrSymbol, cadence: Orb::Price::Package::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), @@ -1192,6 +1277,7 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, + billing_mode:, cadence:, composite_price_filters:, conversion_rate:, @@ -1233,6 +1319,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Package::BillingMode::TaggedSymbol, cadence: Orb::Price::Package::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), @@ -1267,6 +1354,27 @@ module Orb def to_hash end + module BillingMode + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Price::Package::BillingMode) } + OrSymbol = T.type_alias { T.any(Symbol, String) } + + IN_ADVANCE = + T.let(:in_advance, Orb::Price::Package::BillingMode::TaggedSymbol) + IN_ARREAR = + T.let(:in_arrear, Orb::Price::Package::BillingMode::TaggedSymbol) + + sig do + override.returns( + T::Array[Orb::Price::Package::BillingMode::TaggedSymbol] + ) + end + def self.values + end + end + module Cadence extend Orb::Internal::Type::Enum @@ -1347,6 +1455,9 @@ module Orb end attr_writer :billing_cycle_configuration + sig { returns(Orb::Price::Matrix::BillingMode::TaggedSymbol) } + attr_accessor :billing_mode + sig { returns(Orb::Price::Matrix::Cadence::TaggedSymbol) } attr_accessor :cadence @@ -1467,6 +1578,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, + billing_mode: Orb::Price::Matrix::BillingMode::OrSymbol, cadence: Orb::Price::Matrix::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), @@ -1514,6 +1626,7 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, + billing_mode:, cadence:, composite_price_filters:, conversion_rate:, @@ -1555,6 +1668,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Matrix::BillingMode::TaggedSymbol, cadence: Orb::Price::Matrix::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), @@ -1589,6 +1703,27 @@ module Orb def to_hash end + module BillingMode + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Price::Matrix::BillingMode) } + OrSymbol = T.type_alias { T.any(Symbol, String) } + + IN_ADVANCE = + T.let(:in_advance, Orb::Price::Matrix::BillingMode::TaggedSymbol) + IN_ARREAR = + T.let(:in_arrear, Orb::Price::Matrix::BillingMode::TaggedSymbol) + + sig do + override.returns( + T::Array[Orb::Price::Matrix::BillingMode::TaggedSymbol] + ) + end + def self.values + end + end + module Cadence extend Orb::Internal::Type::Enum @@ -1667,6 +1802,11 @@ module Orb end attr_writer :billing_cycle_configuration + sig do + returns(Orb::Price::ThresholdTotalAmount::BillingMode::TaggedSymbol) + end + attr_accessor :billing_mode + sig { returns(Orb::Price::ThresholdTotalAmount::Cadence::TaggedSymbol) } attr_accessor :cadence @@ -1800,6 +1940,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, + billing_mode: + Orb::Price::ThresholdTotalAmount::BillingMode::OrSymbol, cadence: Orb::Price::ThresholdTotalAmount::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), @@ -1848,6 +1990,7 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, + billing_mode:, cadence:, composite_price_filters:, conversion_rate:, @@ -1889,6 +2032,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: + Orb::Price::ThresholdTotalAmount::BillingMode::TaggedSymbol, cadence: Orb::Price::ThresholdTotalAmount::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), @@ -1927,6 +2072,37 @@ module Orb def to_hash end + module BillingMode + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::ThresholdTotalAmount::BillingMode) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + IN_ADVANCE = + T.let( + :in_advance, + Orb::Price::ThresholdTotalAmount::BillingMode::TaggedSymbol + ) + IN_ARREAR = + T.let( + :in_arrear, + Orb::Price::ThresholdTotalAmount::BillingMode::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::Price::ThresholdTotalAmount::BillingMode::TaggedSymbol + ] + ) + end + def self.values + end + end + module Cadence extend Orb::Internal::Type::Enum @@ -2138,6 +2314,9 @@ module Orb end attr_writer :billing_cycle_configuration + sig { returns(Orb::Price::TieredPackage::BillingMode::TaggedSymbol) } + attr_accessor :billing_mode + sig { returns(Orb::Price::TieredPackage::Cadence::TaggedSymbol) } attr_accessor :cadence @@ -2265,6 +2444,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, + billing_mode: Orb::Price::TieredPackage::BillingMode::OrSymbol, cadence: Orb::Price::TieredPackage::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), @@ -2313,6 +2493,7 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, + billing_mode:, cadence:, composite_price_filters:, conversion_rate:, @@ -2354,6 +2535,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: + Orb::Price::TieredPackage::BillingMode::TaggedSymbol, cadence: Orb::Price::TieredPackage::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), @@ -2391,6 +2574,35 @@ module Orb def to_hash end + module BillingMode + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::TieredPackage::BillingMode) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + IN_ADVANCE = + T.let( + :in_advance, + Orb::Price::TieredPackage::BillingMode::TaggedSymbol + ) + IN_ARREAR = + T.let( + :in_arrear, + Orb::Price::TieredPackage::BillingMode::TaggedSymbol + ) + + sig do + override.returns( + T::Array[Orb::Price::TieredPackage::BillingMode::TaggedSymbol] + ) + end + def self.values + end + end + module Cadence extend Orb::Internal::Type::Enum @@ -2581,6 +2793,11 @@ module Orb end attr_writer :billing_cycle_configuration + sig do + returns(Orb::Price::TieredWithMinimum::BillingMode::TaggedSymbol) + end + attr_accessor :billing_mode + sig { returns(Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol) } attr_accessor :cadence @@ -2710,6 +2927,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, + billing_mode: Orb::Price::TieredWithMinimum::BillingMode::OrSymbol, cadence: Orb::Price::TieredWithMinimum::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), @@ -2758,6 +2976,7 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, + billing_mode:, cadence:, composite_price_filters:, conversion_rate:, @@ -2799,6 +3018,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: + Orb::Price::TieredWithMinimum::BillingMode::TaggedSymbol, cadence: Orb::Price::TieredWithMinimum::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), @@ -2837,6 +3058,35 @@ module Orb def to_hash end + module BillingMode + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::TieredWithMinimum::BillingMode) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + IN_ADVANCE = + T.let( + :in_advance, + Orb::Price::TieredWithMinimum::BillingMode::TaggedSymbol + ) + IN_ARREAR = + T.let( + :in_arrear, + Orb::Price::TieredWithMinimum::BillingMode::TaggedSymbol + ) + + sig do + override.returns( + T::Array[Orb::Price::TieredWithMinimum::BillingMode::TaggedSymbol] + ) + end + def self.values + end + end + module Cadence extend Orb::Internal::Type::Enum @@ -3068,6 +3318,9 @@ module Orb end attr_writer :billing_cycle_configuration + sig { returns(Orb::Price::GroupedTiered::BillingMode::TaggedSymbol) } + attr_accessor :billing_mode + sig { returns(Orb::Price::GroupedTiered::Cadence::TaggedSymbol) } attr_accessor :cadence @@ -3195,6 +3448,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, + billing_mode: Orb::Price::GroupedTiered::BillingMode::OrSymbol, cadence: Orb::Price::GroupedTiered::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), @@ -3243,6 +3497,7 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, + billing_mode:, cadence:, composite_price_filters:, conversion_rate:, @@ -3284,6 +3539,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: + Orb::Price::GroupedTiered::BillingMode::TaggedSymbol, cadence: Orb::Price::GroupedTiered::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), @@ -3321,6 +3578,35 @@ module Orb def to_hash end + module BillingMode + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::GroupedTiered::BillingMode) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + IN_ADVANCE = + T.let( + :in_advance, + Orb::Price::GroupedTiered::BillingMode::TaggedSymbol + ) + IN_ARREAR = + T.let( + :in_arrear, + Orb::Price::GroupedTiered::BillingMode::TaggedSymbol + ) + + sig do + override.returns( + T::Array[Orb::Price::GroupedTiered::BillingMode::TaggedSymbol] + ) + end + def self.values + end + end + module Cadence extend Orb::Internal::Type::Enum @@ -3509,6 +3795,13 @@ module Orb end attr_writer :billing_cycle_configuration + sig do + returns( + Orb::Price::TieredPackageWithMinimum::BillingMode::TaggedSymbol + ) + end + attr_accessor :billing_mode + sig do returns(Orb::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol) end @@ -3646,6 +3939,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, + billing_mode: + Orb::Price::TieredPackageWithMinimum::BillingMode::OrSymbol, cadence: Orb::Price::TieredPackageWithMinimum::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), @@ -3695,6 +3990,7 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, + billing_mode:, cadence:, composite_price_filters:, conversion_rate:, @@ -3736,6 +4032,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: + Orb::Price::TieredPackageWithMinimum::BillingMode::TaggedSymbol, cadence: Orb::Price::TieredPackageWithMinimum::Cadence::TaggedSymbol, composite_price_filters: @@ -3775,6 +4073,37 @@ module Orb def to_hash end + module BillingMode + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::TieredPackageWithMinimum::BillingMode) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + IN_ADVANCE = + T.let( + :in_advance, + Orb::Price::TieredPackageWithMinimum::BillingMode::TaggedSymbol + ) + IN_ARREAR = + T.let( + :in_arrear, + Orb::Price::TieredPackageWithMinimum::BillingMode::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::Price::TieredPackageWithMinimum::BillingMode::TaggedSymbol + ] + ) + end + def self.values + end + end + module Cadence extend Orb::Internal::Type::Enum @@ -4002,6 +4331,11 @@ module Orb end attr_writer :billing_cycle_configuration + sig do + returns(Orb::Price::PackageWithAllocation::BillingMode::TaggedSymbol) + end + attr_accessor :billing_mode + sig do returns(Orb::Price::PackageWithAllocation::Cadence::TaggedSymbol) end @@ -4139,6 +4473,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, + billing_mode: + Orb::Price::PackageWithAllocation::BillingMode::OrSymbol, cadence: Orb::Price::PackageWithAllocation::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), @@ -4187,6 +4523,7 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, + billing_mode:, cadence:, composite_price_filters:, conversion_rate:, @@ -4228,6 +4565,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: + Orb::Price::PackageWithAllocation::BillingMode::TaggedSymbol, cadence: Orb::Price::PackageWithAllocation::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), @@ -4266,6 +4605,37 @@ module Orb def to_hash end + module BillingMode + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::PackageWithAllocation::BillingMode) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + IN_ADVANCE = + T.let( + :in_advance, + Orb::Price::PackageWithAllocation::BillingMode::TaggedSymbol + ) + IN_ARREAR = + T.let( + :in_arrear, + Orb::Price::PackageWithAllocation::BillingMode::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::Price::PackageWithAllocation::BillingMode::TaggedSymbol + ] + ) + end + def self.values + end + end + module Cadence extend Orb::Internal::Type::Enum @@ -4433,6 +4803,9 @@ module Orb end attr_writer :billing_cycle_configuration + sig { returns(Orb::Price::UnitWithPercent::BillingMode::TaggedSymbol) } + attr_accessor :billing_mode + sig { returns(Orb::Price::UnitWithPercent::Cadence::TaggedSymbol) } attr_accessor :cadence @@ -4562,6 +4935,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, + billing_mode: Orb::Price::UnitWithPercent::BillingMode::OrSymbol, cadence: Orb::Price::UnitWithPercent::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), @@ -4610,6 +4984,7 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, + billing_mode:, cadence:, composite_price_filters:, conversion_rate:, @@ -4651,6 +5026,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: + Orb::Price::UnitWithPercent::BillingMode::TaggedSymbol, cadence: Orb::Price::UnitWithPercent::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), @@ -4688,6 +5065,35 @@ module Orb def to_hash end + module BillingMode + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::UnitWithPercent::BillingMode) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + IN_ADVANCE = + T.let( + :in_advance, + Orb::Price::UnitWithPercent::BillingMode::TaggedSymbol + ) + IN_ARREAR = + T.let( + :in_arrear, + Orb::Price::UnitWithPercent::BillingMode::TaggedSymbol + ) + + sig do + override.returns( + T::Array[Orb::Price::UnitWithPercent::BillingMode::TaggedSymbol] + ) + end + def self.values + end + end + module Cadence extend Orb::Internal::Type::Enum @@ -4823,6 +5229,11 @@ module Orb end attr_writer :billing_cycle_configuration + sig do + returns(Orb::Price::MatrixWithAllocation::BillingMode::TaggedSymbol) + end + attr_accessor :billing_mode + sig { returns(Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol) } attr_accessor :cadence @@ -4954,6 +5365,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, + billing_mode: + Orb::Price::MatrixWithAllocation::BillingMode::OrSymbol, cadence: Orb::Price::MatrixWithAllocation::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), @@ -5002,6 +5415,7 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, + billing_mode:, cadence:, composite_price_filters:, conversion_rate:, @@ -5043,6 +5457,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: + Orb::Price::MatrixWithAllocation::BillingMode::TaggedSymbol, cadence: Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), @@ -5080,32 +5496,63 @@ module Orb def to_hash end - module Cadence + module BillingMode extend Orb::Internal::Type::Enum TaggedSymbol = T.type_alias do - T.all(Symbol, Orb::Price::MatrixWithAllocation::Cadence) + T.all(Symbol, Orb::Price::MatrixWithAllocation::BillingMode) end OrSymbol = T.type_alias { T.any(Symbol, String) } - ONE_TIME = - T.let( - :one_time, - Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol - ) - MONTHLY = + IN_ADVANCE = T.let( - :monthly, - Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol + :in_advance, + Orb::Price::MatrixWithAllocation::BillingMode::TaggedSymbol ) - QUARTERLY = + IN_ARREAR = T.let( - :quarterly, - Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol + :in_arrear, + Orb::Price::MatrixWithAllocation::BillingMode::TaggedSymbol ) - SEMI_ANNUAL = - T.let( + + sig do + override.returns( + T::Array[ + Orb::Price::MatrixWithAllocation::BillingMode::TaggedSymbol + ] + ) + end + def self.values + end + end + + module Cadence + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::MatrixWithAllocation::Cadence) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + ONE_TIME = + T.let( + :one_time, + Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol + ) + MONTHLY = + T.let( + :monthly, + Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol + ) + QUARTERLY = + T.let( + :quarterly, + Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol + ) + SEMI_ANNUAL = + T.let( :semi_annual, Orb::Price::MatrixWithAllocation::Cadence::TaggedSymbol ) @@ -5195,6 +5642,11 @@ module Orb end attr_writer :billing_cycle_configuration + sig do + returns(Orb::Price::TieredWithProration::BillingMode::TaggedSymbol) + end + attr_accessor :billing_mode + sig { returns(Orb::Price::TieredWithProration::Cadence::TaggedSymbol) } attr_accessor :cadence @@ -5328,6 +5780,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, + billing_mode: + Orb::Price::TieredWithProration::BillingMode::OrSymbol, cadence: Orb::Price::TieredWithProration::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), @@ -5376,6 +5830,7 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, + billing_mode:, cadence:, composite_price_filters:, conversion_rate:, @@ -5417,6 +5872,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: + Orb::Price::TieredWithProration::BillingMode::TaggedSymbol, cadence: Orb::Price::TieredWithProration::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), @@ -5455,6 +5912,37 @@ module Orb def to_hash end + module BillingMode + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::TieredWithProration::BillingMode) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + IN_ADVANCE = + T.let( + :in_advance, + Orb::Price::TieredWithProration::BillingMode::TaggedSymbol + ) + IN_ARREAR = + T.let( + :in_arrear, + Orb::Price::TieredWithProration::BillingMode::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::Price::TieredWithProration::BillingMode::TaggedSymbol + ] + ) + end + def self.values + end + end + module Cadence extend Orb::Internal::Type::Enum @@ -5658,6 +6146,11 @@ module Orb end attr_writer :billing_cycle_configuration + sig do + returns(Orb::Price::UnitWithProration::BillingMode::TaggedSymbol) + end + attr_accessor :billing_mode + sig { returns(Orb::Price::UnitWithProration::Cadence::TaggedSymbol) } attr_accessor :cadence @@ -5787,6 +6280,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, + billing_mode: Orb::Price::UnitWithProration::BillingMode::OrSymbol, cadence: Orb::Price::UnitWithProration::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), @@ -5835,6 +6329,7 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, + billing_mode:, cadence:, composite_price_filters:, conversion_rate:, @@ -5876,6 +6371,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: + Orb::Price::UnitWithProration::BillingMode::TaggedSymbol, cadence: Orb::Price::UnitWithProration::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), @@ -5914,6 +6411,35 @@ module Orb def to_hash end + module BillingMode + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::UnitWithProration::BillingMode) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + IN_ADVANCE = + T.let( + :in_advance, + Orb::Price::UnitWithProration::BillingMode::TaggedSymbol + ) + IN_ARREAR = + T.let( + :in_arrear, + Orb::Price::UnitWithProration::BillingMode::TaggedSymbol + ) + + sig do + override.returns( + T::Array[Orb::Price::UnitWithProration::BillingMode::TaggedSymbol] + ) + end + def self.values + end + end + module Cadence extend Orb::Internal::Type::Enum @@ -6047,6 +6573,11 @@ module Orb end attr_writer :billing_cycle_configuration + sig do + returns(Orb::Price::GroupedAllocation::BillingMode::TaggedSymbol) + end + attr_accessor :billing_mode + sig { returns(Orb::Price::GroupedAllocation::Cadence::TaggedSymbol) } attr_accessor :cadence @@ -6176,6 +6707,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, + billing_mode: Orb::Price::GroupedAllocation::BillingMode::OrSymbol, cadence: Orb::Price::GroupedAllocation::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), @@ -6224,6 +6756,7 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, + billing_mode:, cadence:, composite_price_filters:, conversion_rate:, @@ -6265,6 +6798,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: + Orb::Price::GroupedAllocation::BillingMode::TaggedSymbol, cadence: Orb::Price::GroupedAllocation::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), @@ -6303,6 +6838,35 @@ module Orb def to_hash end + module BillingMode + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::GroupedAllocation::BillingMode) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + IN_ADVANCE = + T.let( + :in_advance, + Orb::Price::GroupedAllocation::BillingMode::TaggedSymbol + ) + IN_ARREAR = + T.let( + :in_arrear, + Orb::Price::GroupedAllocation::BillingMode::TaggedSymbol + ) + + sig do + override.returns( + T::Array[Orb::Price::GroupedAllocation::BillingMode::TaggedSymbol] + ) + end + def self.values + end + end + module Cadence extend Orb::Internal::Type::Enum @@ -6462,6 +7026,11 @@ module Orb end attr_writer :billing_cycle_configuration + sig do + returns(Orb::Price::BulkWithProration::BillingMode::TaggedSymbol) + end + attr_accessor :billing_mode + # Configuration for bulk_with_proration pricing sig { returns(Orb::Price::BulkWithProration::BulkWithProrationConfig) } attr_reader :bulk_with_proration_config @@ -6591,6 +7160,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, + billing_mode: Orb::Price::BulkWithProration::BillingMode::OrSymbol, bulk_with_proration_config: Orb::Price::BulkWithProration::BulkWithProrationConfig::OrHash, cadence: Orb::Price::BulkWithProration::Cadence::OrSymbol, @@ -6639,6 +7209,7 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, + billing_mode:, # Configuration for bulk_with_proration pricing bulk_with_proration_config:, cadence:, @@ -6680,6 +7251,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: + Orb::Price::BulkWithProration::BillingMode::TaggedSymbol, bulk_with_proration_config: Orb::Price::BulkWithProration::BulkWithProrationConfig, cadence: Orb::Price::BulkWithProration::Cadence::TaggedSymbol, @@ -6718,6 +7291,35 @@ module Orb def to_hash end + module BillingMode + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::BulkWithProration::BillingMode) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + IN_ADVANCE = + T.let( + :in_advance, + Orb::Price::BulkWithProration::BillingMode::TaggedSymbol + ) + IN_ARREAR = + T.let( + :in_arrear, + Orb::Price::BulkWithProration::BillingMode::TaggedSymbol + ) + + sig do + override.returns( + T::Array[Orb::Price::BulkWithProration::BillingMode::TaggedSymbol] + ) + end + def self.values + end + end + class BulkWithProrationConfig < Orb::Internal::Type::BaseModel OrHash = T.type_alias do @@ -6917,6 +7519,13 @@ module Orb end attr_writer :billing_cycle_configuration + sig do + returns( + Orb::Price::GroupedWithProratedMinimum::BillingMode::TaggedSymbol + ) + end + attr_accessor :billing_mode + sig do returns(Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol) end @@ -7056,6 +7665,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, + billing_mode: + Orb::Price::GroupedWithProratedMinimum::BillingMode::OrSymbol, cadence: Orb::Price::GroupedWithProratedMinimum::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), @@ -7105,6 +7716,7 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, + billing_mode:, cadence:, composite_price_filters:, conversion_rate:, @@ -7146,6 +7758,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: + Orb::Price::GroupedWithProratedMinimum::BillingMode::TaggedSymbol, cadence: Orb::Price::GroupedWithProratedMinimum::Cadence::TaggedSymbol, composite_price_filters: @@ -7185,6 +7799,37 @@ module Orb def to_hash end + module BillingMode + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::GroupedWithProratedMinimum::BillingMode) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + IN_ADVANCE = + T.let( + :in_advance, + Orb::Price::GroupedWithProratedMinimum::BillingMode::TaggedSymbol + ) + IN_ARREAR = + T.let( + :in_arrear, + Orb::Price::GroupedWithProratedMinimum::BillingMode::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::Price::GroupedWithProratedMinimum::BillingMode::TaggedSymbol + ] + ) + end + def self.values + end + end + module Cadence extend Orb::Internal::Type::Enum @@ -7350,6 +7995,13 @@ module Orb end attr_writer :billing_cycle_configuration + sig do + returns( + Orb::Price::GroupedWithMeteredMinimum::BillingMode::TaggedSymbol + ) + end + attr_accessor :billing_mode + sig do returns(Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol) end @@ -7489,6 +8141,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, + billing_mode: + Orb::Price::GroupedWithMeteredMinimum::BillingMode::OrSymbol, cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), @@ -7538,6 +8192,7 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, + billing_mode:, cadence:, composite_price_filters:, conversion_rate:, @@ -7579,6 +8234,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: + Orb::Price::GroupedWithMeteredMinimum::BillingMode::TaggedSymbol, cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence::TaggedSymbol, composite_price_filters: @@ -7618,6 +8275,37 @@ module Orb def to_hash end + module BillingMode + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::GroupedWithMeteredMinimum::BillingMode) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + IN_ADVANCE = + T.let( + :in_advance, + Orb::Price::GroupedWithMeteredMinimum::BillingMode::TaggedSymbol + ) + IN_ARREAR = + T.let( + :in_arrear, + Orb::Price::GroupedWithMeteredMinimum::BillingMode::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::Price::GroupedWithMeteredMinimum::BillingMode::TaggedSymbol + ] + ) + end + def self.values + end + end + module Cadence extend Orb::Internal::Type::Enum @@ -7920,6 +8608,13 @@ module Orb end attr_writer :billing_cycle_configuration + sig do + returns( + Orb::Price::GroupedWithMinMaxThresholds::BillingMode::TaggedSymbol + ) + end + attr_accessor :billing_mode + sig do returns( Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol @@ -8061,6 +8756,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, + billing_mode: + Orb::Price::GroupedWithMinMaxThresholds::BillingMode::OrSymbol, cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), @@ -8110,6 +8807,7 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, + billing_mode:, cadence:, composite_price_filters:, conversion_rate:, @@ -8151,6 +8849,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: + Orb::Price::GroupedWithMinMaxThresholds::BillingMode::TaggedSymbol, cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence::TaggedSymbol, composite_price_filters: @@ -8190,6 +8890,40 @@ module Orb def to_hash end + module BillingMode + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::Price::GroupedWithMinMaxThresholds::BillingMode + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + IN_ADVANCE = + T.let( + :in_advance, + Orb::Price::GroupedWithMinMaxThresholds::BillingMode::TaggedSymbol + ) + IN_ARREAR = + T.let( + :in_arrear, + Orb::Price::GroupedWithMinMaxThresholds::BillingMode::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::Price::GroupedWithMinMaxThresholds::BillingMode::TaggedSymbol + ] + ) + end + def self.values + end + end + module Cadence extend Orb::Internal::Type::Enum @@ -8367,6 +9101,11 @@ module Orb end attr_writer :billing_cycle_configuration + sig do + returns(Orb::Price::MatrixWithDisplayName::BillingMode::TaggedSymbol) + end + attr_accessor :billing_mode + sig do returns(Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol) end @@ -8504,6 +9243,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, + billing_mode: + Orb::Price::MatrixWithDisplayName::BillingMode::OrSymbol, cadence: Orb::Price::MatrixWithDisplayName::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), @@ -8552,6 +9293,7 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, + billing_mode:, cadence:, composite_price_filters:, conversion_rate:, @@ -8593,6 +9335,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: + Orb::Price::MatrixWithDisplayName::BillingMode::TaggedSymbol, cadence: Orb::Price::MatrixWithDisplayName::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), @@ -8631,6 +9375,37 @@ module Orb def to_hash end + module BillingMode + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::MatrixWithDisplayName::BillingMode) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + IN_ADVANCE = + T.let( + :in_advance, + Orb::Price::MatrixWithDisplayName::BillingMode::TaggedSymbol + ) + IN_ARREAR = + T.let( + :in_arrear, + Orb::Price::MatrixWithDisplayName::BillingMode::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::Price::MatrixWithDisplayName::BillingMode::TaggedSymbol + ] + ) + end + def self.values + end + end + module Cadence extend Orb::Internal::Type::Enum @@ -8854,6 +9629,11 @@ module Orb end attr_writer :billing_cycle_configuration + sig do + returns(Orb::Price::GroupedTieredPackage::BillingMode::TaggedSymbol) + end + attr_accessor :billing_mode + sig { returns(Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol) } attr_accessor :cadence @@ -8987,6 +9767,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, + billing_mode: + Orb::Price::GroupedTieredPackage::BillingMode::OrSymbol, cadence: Orb::Price::GroupedTieredPackage::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), @@ -9035,6 +9817,7 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, + billing_mode:, cadence:, composite_price_filters:, conversion_rate:, @@ -9076,6 +9859,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: + Orb::Price::GroupedTieredPackage::BillingMode::TaggedSymbol, cadence: Orb::Price::GroupedTieredPackage::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), @@ -9114,6 +9899,37 @@ module Orb def to_hash end + module BillingMode + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::GroupedTieredPackage::BillingMode) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + IN_ADVANCE = + T.let( + :in_advance, + Orb::Price::GroupedTieredPackage::BillingMode::TaggedSymbol + ) + IN_ARREAR = + T.let( + :in_arrear, + Orb::Price::GroupedTieredPackage::BillingMode::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::Price::GroupedTieredPackage::BillingMode::TaggedSymbol + ] + ) + end + def self.values + end + end + module Cadence extend Orb::Internal::Type::Enum @@ -9333,6 +10149,11 @@ module Orb end attr_writer :billing_cycle_configuration + sig do + returns(Orb::Price::MaxGroupTieredPackage::BillingMode::TaggedSymbol) + end + attr_accessor :billing_mode + sig do returns(Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol) end @@ -9470,6 +10291,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, + billing_mode: + Orb::Price::MaxGroupTieredPackage::BillingMode::OrSymbol, cadence: Orb::Price::MaxGroupTieredPackage::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), @@ -9518,6 +10341,7 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, + billing_mode:, cadence:, composite_price_filters:, conversion_rate:, @@ -9559,6 +10383,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: + Orb::Price::MaxGroupTieredPackage::BillingMode::TaggedSymbol, cadence: Orb::Price::MaxGroupTieredPackage::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), @@ -9597,6 +10423,37 @@ module Orb def to_hash end + module BillingMode + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::MaxGroupTieredPackage::BillingMode) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + IN_ADVANCE = + T.let( + :in_advance, + Orb::Price::MaxGroupTieredPackage::BillingMode::TaggedSymbol + ) + IN_ARREAR = + T.let( + :in_arrear, + Orb::Price::MaxGroupTieredPackage::BillingMode::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::Price::MaxGroupTieredPackage::BillingMode::TaggedSymbol + ] + ) + end + def self.values + end + end + module Cadence extend Orb::Internal::Type::Enum @@ -9819,6 +10676,13 @@ module Orb end attr_writer :billing_cycle_configuration + sig do + returns( + Orb::Price::ScalableMatrixWithUnitPricing::BillingMode::TaggedSymbol + ) + end + attr_accessor :billing_mode + sig do returns( Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol @@ -9960,6 +10824,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, + billing_mode: + Orb::Price::ScalableMatrixWithUnitPricing::BillingMode::OrSymbol, cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence::OrSymbol, composite_price_filters: @@ -10010,6 +10876,7 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, + billing_mode:, cadence:, composite_price_filters:, conversion_rate:, @@ -10051,6 +10918,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: + Orb::Price::ScalableMatrixWithUnitPricing::BillingMode::TaggedSymbol, cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence::TaggedSymbol, composite_price_filters: @@ -10090,6 +10959,40 @@ module Orb def to_hash end + module BillingMode + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::Price::ScalableMatrixWithUnitPricing::BillingMode + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + IN_ADVANCE = + T.let( + :in_advance, + Orb::Price::ScalableMatrixWithUnitPricing::BillingMode::TaggedSymbol + ) + IN_ARREAR = + T.let( + :in_arrear, + Orb::Price::ScalableMatrixWithUnitPricing::BillingMode::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::Price::ScalableMatrixWithUnitPricing::BillingMode::TaggedSymbol + ] + ) + end + def self.values + end + end + module Cadence extend Orb::Internal::Type::Enum @@ -10345,6 +11248,13 @@ module Orb end attr_writer :billing_cycle_configuration + sig do + returns( + Orb::Price::ScalableMatrixWithTieredPricing::BillingMode::TaggedSymbol + ) + end + attr_accessor :billing_mode + sig do returns( Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol @@ -10486,6 +11396,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, + billing_mode: + Orb::Price::ScalableMatrixWithTieredPricing::BillingMode::OrSymbol, cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence::OrSymbol, composite_price_filters: @@ -10536,6 +11448,7 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, + billing_mode:, cadence:, composite_price_filters:, conversion_rate:, @@ -10577,6 +11490,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: + Orb::Price::ScalableMatrixWithTieredPricing::BillingMode::TaggedSymbol, cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence::TaggedSymbol, composite_price_filters: @@ -10616,6 +11531,40 @@ module Orb def to_hash end + module BillingMode + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Orb::Price::ScalableMatrixWithTieredPricing::BillingMode + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + IN_ADVANCE = + T.let( + :in_advance, + Orb::Price::ScalableMatrixWithTieredPricing::BillingMode::TaggedSymbol + ) + IN_ARREAR = + T.let( + :in_arrear, + Orb::Price::ScalableMatrixWithTieredPricing::BillingMode::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::Price::ScalableMatrixWithTieredPricing::BillingMode::TaggedSymbol + ] + ) + end + def self.values + end + end + module Cadence extend Orb::Internal::Type::Enum @@ -10915,6 +11864,11 @@ module Orb end attr_writer :billing_cycle_configuration + sig do + returns(Orb::Price::CumulativeGroupedBulk::BillingMode::TaggedSymbol) + end + attr_accessor :billing_mode + sig do returns(Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol) end @@ -11052,6 +12006,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, + billing_mode: + Orb::Price::CumulativeGroupedBulk::BillingMode::OrSymbol, cadence: Orb::Price::CumulativeGroupedBulk::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), @@ -11100,6 +12056,7 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, + billing_mode:, cadence:, composite_price_filters:, conversion_rate:, @@ -11141,6 +12098,8 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: + Orb::Price::CumulativeGroupedBulk::BillingMode::TaggedSymbol, cadence: Orb::Price::CumulativeGroupedBulk::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), @@ -11179,6 +12138,37 @@ module Orb def to_hash end + module BillingMode + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Orb::Price::CumulativeGroupedBulk::BillingMode) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + IN_ADVANCE = + T.let( + :in_advance, + Orb::Price::CumulativeGroupedBulk::BillingMode::TaggedSymbol + ) + IN_ARREAR = + T.let( + :in_arrear, + Orb::Price::CumulativeGroupedBulk::BillingMode::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Orb::Price::CumulativeGroupedBulk::BillingMode::TaggedSymbol + ] + ) + end + def self.values + end + end + module Cadence extend Orb::Internal::Type::Enum @@ -11400,6 +12390,9 @@ module Orb end attr_writer :billing_cycle_configuration + sig { returns(Orb::Price::Minimum::BillingMode::TaggedSymbol) } + attr_accessor :billing_mode + sig { returns(Orb::Price::Minimum::Cadence::TaggedSymbol) } attr_accessor :cadence @@ -11526,6 +12519,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny::OrHash), billing_cycle_configuration: Orb::BillingCycleConfiguration::OrHash, + billing_mode: Orb::Price::Minimum::BillingMode::OrSymbol, cadence: Orb::Price::Minimum::Cadence::OrSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter::OrHash]), @@ -11573,6 +12567,7 @@ module Orb id:, billable_metric:, billing_cycle_configuration:, + billing_mode:, cadence:, composite_price_filters:, conversion_rate:, @@ -11614,6 +12609,7 @@ module Orb id: String, billable_metric: T.nilable(Orb::BillableMetricTiny), billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Minimum::BillingMode::TaggedSymbol, cadence: Orb::Price::Minimum::Cadence::TaggedSymbol, composite_price_filters: T.nilable(T::Array[Orb::TransformPriceFilter]), @@ -11648,6 +12644,27 @@ module Orb def to_hash end + module BillingMode + extend Orb::Internal::Type::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Orb::Price::Minimum::BillingMode) } + OrSymbol = T.type_alias { T.any(Symbol, String) } + + IN_ADVANCE = + T.let(:in_advance, Orb::Price::Minimum::BillingMode::TaggedSymbol) + IN_ARREAR = + T.let(:in_arrear, Orb::Price::Minimum::BillingMode::TaggedSymbol) + + sig do + override.returns( + T::Array[Orb::Price::Minimum::BillingMode::TaggedSymbol] + ) + end + def self.values + end + end + module Cadence extend Orb::Internal::Type::Enum diff --git a/sig/orb/models/changed_subscription_resources.rbs b/sig/orb/models/changed_subscription_resources.rbs index 8e01b335..6e6bede6 100644 --- a/sig/orb/models/changed_subscription_resources.rbs +++ b/sig/orb/models/changed_subscription_resources.rbs @@ -3,7 +3,7 @@ module Orb type changed_subscription_resources = { created_credit_notes: ::Array[Orb::CreditNote], - created_invoices: ::Array[Orb::Invoice], + created_invoices: ::Array[Orb::ChangedSubscriptionResources::CreatedInvoice], voided_credit_notes: ::Array[Orb::CreditNote], voided_invoices: ::Array[Orb::Invoice] } @@ -11,7 +11,7 @@ module Orb class ChangedSubscriptionResources < Orb::Internal::Type::BaseModel attr_accessor created_credit_notes: ::Array[Orb::CreditNote] - attr_accessor created_invoices: ::Array[Orb::Invoice] + attr_accessor created_invoices: ::Array[Orb::ChangedSubscriptionResources::CreatedInvoice] attr_accessor voided_credit_notes: ::Array[Orb::CreditNote] @@ -19,17 +19,649 @@ module Orb def initialize: ( created_credit_notes: ::Array[Orb::CreditNote], - created_invoices: ::Array[Orb::Invoice], + created_invoices: ::Array[Orb::ChangedSubscriptionResources::CreatedInvoice], voided_credit_notes: ::Array[Orb::CreditNote], voided_invoices: ::Array[Orb::Invoice] ) -> void def to_hash: -> { created_credit_notes: ::Array[Orb::CreditNote], - created_invoices: ::Array[Orb::Invoice], + created_invoices: ::Array[Orb::ChangedSubscriptionResources::CreatedInvoice], voided_credit_notes: ::Array[Orb::CreditNote], voided_invoices: ::Array[Orb::Invoice] } + + type created_invoice = + { + id: String, + amount_due: String, + auto_collection: Orb::ChangedSubscriptionResources::CreatedInvoice::AutoCollection, + billing_address: Orb::Address?, + created_at: Time, + credit_notes: ::Array[Orb::ChangedSubscriptionResources::CreatedInvoice::CreditNote], + currency: String, + customer: Orb::CustomerMinified, + customer_balance_transactions: ::Array[Orb::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction], + customer_tax_id: Orb::CustomerTaxID?, + discount: top, + discounts: ::Array[Orb::Models::invoice_level_discount], + due_date: Time?, + eligible_to_issue_at: Time?, + hosted_invoice_url: String?, + invoice_date: Time, + invoice_number: String, + invoice_pdf: String?, + invoice_source: Orb::Models::ChangedSubscriptionResources::CreatedInvoice::invoice_source, + is_payable_now: bool, + issue_failed_at: Time?, + issued_at: Time?, + line_items: ::Array[Orb::ChangedSubscriptionResources::CreatedInvoice::LineItem], + maximum: Orb::Maximum?, + maximum_amount: String?, + memo: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Minimum?, + minimum_amount: String?, + paid_at: Time?, + payment_attempts: ::Array[Orb::ChangedSubscriptionResources::CreatedInvoice::PaymentAttempt], + payment_failed_at: Time?, + payment_started_at: Time?, + scheduled_issue_at: Time?, + shipping_address: Orb::Address?, + status: Orb::Models::ChangedSubscriptionResources::CreatedInvoice::status, + subscription: Orb::SubscriptionMinified?, + subtotal: String, + sync_failed_at: Time?, + total: String, + voided_at: Time?, + will_auto_issue: bool + } + + class CreatedInvoice < Orb::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor amount_due: String + + attr_accessor auto_collection: Orb::ChangedSubscriptionResources::CreatedInvoice::AutoCollection + + attr_accessor billing_address: Orb::Address? + + attr_accessor created_at: Time + + attr_accessor credit_notes: ::Array[Orb::ChangedSubscriptionResources::CreatedInvoice::CreditNote] + + attr_accessor currency: String + + attr_accessor customer: Orb::CustomerMinified + + attr_accessor customer_balance_transactions: ::Array[Orb::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction] + + attr_accessor customer_tax_id: Orb::CustomerTaxID? + + attr_accessor discount: top + + attr_accessor discounts: ::Array[Orb::Models::invoice_level_discount] + + attr_accessor due_date: Time? + + attr_accessor eligible_to_issue_at: Time? + + attr_accessor hosted_invoice_url: String? + + attr_accessor invoice_date: Time + + attr_accessor invoice_number: String + + attr_accessor invoice_pdf: String? + + attr_accessor invoice_source: Orb::Models::ChangedSubscriptionResources::CreatedInvoice::invoice_source + + attr_accessor is_payable_now: bool + + attr_accessor issue_failed_at: Time? + + attr_accessor issued_at: Time? + + attr_accessor line_items: ::Array[Orb::ChangedSubscriptionResources::CreatedInvoice::LineItem] + + attr_accessor maximum: Orb::Maximum? + + attr_accessor maximum_amount: String? + + attr_accessor memo: String? + + attr_accessor metadata: ::Hash[Symbol, String] + + attr_accessor minimum: Orb::Minimum? + + attr_accessor minimum_amount: String? + + attr_accessor paid_at: Time? + + attr_accessor payment_attempts: ::Array[Orb::ChangedSubscriptionResources::CreatedInvoice::PaymentAttempt] + + attr_accessor payment_failed_at: Time? + + attr_accessor payment_started_at: Time? + + attr_accessor scheduled_issue_at: Time? + + attr_accessor shipping_address: Orb::Address? + + attr_accessor status: Orb::Models::ChangedSubscriptionResources::CreatedInvoice::status + + attr_accessor subscription: Orb::SubscriptionMinified? + + attr_accessor subtotal: String + + attr_accessor sync_failed_at: Time? + + attr_accessor total: String + + attr_accessor voided_at: Time? + + attr_accessor will_auto_issue: bool + + def initialize: ( + id: String, + amount_due: String, + auto_collection: Orb::ChangedSubscriptionResources::CreatedInvoice::AutoCollection, + billing_address: Orb::Address?, + created_at: Time, + credit_notes: ::Array[Orb::ChangedSubscriptionResources::CreatedInvoice::CreditNote], + currency: String, + customer: Orb::CustomerMinified, + customer_balance_transactions: ::Array[Orb::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction], + customer_tax_id: Orb::CustomerTaxID?, + discount: top, + discounts: ::Array[Orb::Models::invoice_level_discount], + due_date: Time?, + eligible_to_issue_at: Time?, + hosted_invoice_url: String?, + invoice_date: Time, + invoice_number: String, + invoice_pdf: String?, + invoice_source: Orb::Models::ChangedSubscriptionResources::CreatedInvoice::invoice_source, + is_payable_now: bool, + issue_failed_at: Time?, + issued_at: Time?, + line_items: ::Array[Orb::ChangedSubscriptionResources::CreatedInvoice::LineItem], + maximum: Orb::Maximum?, + maximum_amount: String?, + memo: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Minimum?, + minimum_amount: String?, + paid_at: Time?, + payment_attempts: ::Array[Orb::ChangedSubscriptionResources::CreatedInvoice::PaymentAttempt], + payment_failed_at: Time?, + payment_started_at: Time?, + scheduled_issue_at: Time?, + shipping_address: Orb::Address?, + status: Orb::Models::ChangedSubscriptionResources::CreatedInvoice::status, + subscription: Orb::SubscriptionMinified?, + subtotal: String, + sync_failed_at: Time?, + total: String, + voided_at: Time?, + will_auto_issue: bool + ) -> void + + def to_hash: -> { + id: String, + amount_due: String, + auto_collection: Orb::ChangedSubscriptionResources::CreatedInvoice::AutoCollection, + billing_address: Orb::Address?, + created_at: Time, + credit_notes: ::Array[Orb::ChangedSubscriptionResources::CreatedInvoice::CreditNote], + currency: String, + customer: Orb::CustomerMinified, + customer_balance_transactions: ::Array[Orb::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction], + customer_tax_id: Orb::CustomerTaxID?, + discount: top, + discounts: ::Array[Orb::Models::invoice_level_discount], + due_date: Time?, + eligible_to_issue_at: Time?, + hosted_invoice_url: String?, + invoice_date: Time, + invoice_number: String, + invoice_pdf: String?, + invoice_source: Orb::Models::ChangedSubscriptionResources::CreatedInvoice::invoice_source, + is_payable_now: bool, + issue_failed_at: Time?, + issued_at: Time?, + line_items: ::Array[Orb::ChangedSubscriptionResources::CreatedInvoice::LineItem], + maximum: Orb::Maximum?, + maximum_amount: String?, + memo: String?, + metadata: ::Hash[Symbol, String], + minimum: Orb::Minimum?, + minimum_amount: String?, + paid_at: Time?, + payment_attempts: ::Array[Orb::ChangedSubscriptionResources::CreatedInvoice::PaymentAttempt], + payment_failed_at: Time?, + payment_started_at: Time?, + scheduled_issue_at: Time?, + shipping_address: Orb::Address?, + status: Orb::Models::ChangedSubscriptionResources::CreatedInvoice::status, + subscription: Orb::SubscriptionMinified?, + subtotal: String, + sync_failed_at: Time?, + total: String, + voided_at: Time?, + will_auto_issue: bool + } + + type auto_collection = + { + enabled: bool?, + next_attempt_at: Time?, + num_attempts: Integer?, + previously_attempted_at: Time? + } + + class AutoCollection < Orb::Internal::Type::BaseModel + attr_accessor enabled: bool? + + attr_accessor next_attempt_at: Time? + + attr_accessor num_attempts: Integer? + + attr_accessor previously_attempted_at: Time? + + def initialize: ( + enabled: bool?, + next_attempt_at: Time?, + num_attempts: Integer?, + previously_attempted_at: Time? + ) -> void + + def to_hash: -> { + enabled: bool?, + next_attempt_at: Time?, + num_attempts: Integer?, + previously_attempted_at: Time? + } + end + + type credit_note = + { + id: String, + credit_note_number: String, + memo: String?, + reason: String, + total: String, + type: String, + voided_at: Time? + } + + class CreditNote < Orb::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor credit_note_number: String + + attr_accessor memo: String? + + attr_accessor reason: String + + attr_accessor total: String + + attr_accessor type: String + + attr_accessor voided_at: Time? + + def initialize: ( + id: String, + credit_note_number: String, + memo: String?, + reason: String, + total: String, + type: String, + voided_at: Time? + ) -> void + + def to_hash: -> { + id: String, + credit_note_number: String, + memo: String?, + reason: String, + total: String, + type: String, + voided_at: Time? + } + end + + type customer_balance_transaction = + { + id: String, + action: Orb::Models::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::action, + amount: String, + created_at: Time, + credit_note: Orb::CreditNoteTiny?, + description: String?, + ending_balance: String, + invoice: Orb::InvoiceTiny?, + starting_balance: String, + type: Orb::Models::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::type_ + } + + class CustomerBalanceTransaction < Orb::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor action: Orb::Models::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::action + + attr_accessor amount: String + + attr_accessor created_at: Time + + attr_accessor credit_note: Orb::CreditNoteTiny? + + attr_accessor description: String? + + attr_accessor ending_balance: String + + attr_accessor invoice: Orb::InvoiceTiny? + + attr_accessor starting_balance: String + + attr_accessor type: Orb::Models::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::type_ + + def initialize: ( + id: String, + action: Orb::Models::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::action, + amount: String, + created_at: Time, + credit_note: Orb::CreditNoteTiny?, + description: String?, + ending_balance: String, + invoice: Orb::InvoiceTiny?, + starting_balance: String, + type: Orb::Models::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::type_ + ) -> void + + def to_hash: -> { + id: String, + action: Orb::Models::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::action, + amount: String, + created_at: Time, + credit_note: Orb::CreditNoteTiny?, + description: String?, + ending_balance: String, + invoice: Orb::InvoiceTiny?, + starting_balance: String, + type: Orb::Models::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::type_ + } + + type action = + :applied_to_invoice + | :manual_adjustment + | :prorated_refund + | :revert_prorated_refund + | :return_from_voiding + | :credit_note_applied + | :credit_note_voided + | :overpayment_refund + | :external_payment + | :small_invoice_carryover + + module Action + extend Orb::Internal::Type::Enum + + APPLIED_TO_INVOICE: :applied_to_invoice + MANUAL_ADJUSTMENT: :manual_adjustment + PRORATED_REFUND: :prorated_refund + REVERT_PRORATED_REFUND: :revert_prorated_refund + RETURN_FROM_VOIDING: :return_from_voiding + CREDIT_NOTE_APPLIED: :credit_note_applied + CREDIT_NOTE_VOIDED: :credit_note_voided + OVERPAYMENT_REFUND: :overpayment_refund + EXTERNAL_PAYMENT: :external_payment + SMALL_INVOICE_CARRYOVER: :small_invoice_carryover + + def self?.values: -> ::Array[Orb::Models::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::action] + end + + type type_ = :increment | :decrement + + module Type + extend Orb::Internal::Type::Enum + + INCREMENT: :increment + DECREMENT: :decrement + + def self?.values: -> ::Array[Orb::Models::ChangedSubscriptionResources::CreatedInvoice::CustomerBalanceTransaction::type_] + end + end + + type invoice_source = :subscription | :partial | :one_off + + module InvoiceSource + extend Orb::Internal::Type::Enum + + SUBSCRIPTION: :subscription + PARTIAL: :partial + ONE_OFF: :one_off + + def self?.values: -> ::Array[Orb::Models::ChangedSubscriptionResources::CreatedInvoice::invoice_source] + end + + type line_item = + { + id: String, + adjusted_subtotal: String, + adjustments: ::Array[Orb::Models::ChangedSubscriptionResources::CreatedInvoice::LineItem::adjustment], + amount: String, + credits_applied: String, + discount: Orb::Models::discount?, + end_date: Time, + filter: String?, + grouping: String?, + maximum: Orb::Maximum?, + maximum_amount: String?, + minimum: Orb::Minimum?, + minimum_amount: String?, + name: String, + partially_invoiced_amount: String, + price: Orb::Models::price, + quantity: Float, + start_date: Time, + sub_line_items: ::Array[Orb::Models::ChangedSubscriptionResources::CreatedInvoice::LineItem::sub_line_item], + subtotal: String, + tax_amounts: ::Array[Orb::TaxAmount], + usage_customer_ids: ::Array[String]? + } + + class LineItem < Orb::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor adjusted_subtotal: String + + attr_accessor adjustments: ::Array[Orb::Models::ChangedSubscriptionResources::CreatedInvoice::LineItem::adjustment] + + attr_accessor amount: String + + attr_accessor credits_applied: String + + attr_accessor discount: Orb::Models::discount? + + attr_accessor end_date: Time + + attr_accessor filter: String? + + attr_accessor grouping: String? + + attr_accessor maximum: Orb::Maximum? + + attr_accessor maximum_amount: String? + + attr_accessor minimum: Orb::Minimum? + + attr_accessor minimum_amount: String? + + attr_accessor name: String + + attr_accessor partially_invoiced_amount: String + + attr_accessor price: Orb::Models::price + + attr_accessor quantity: Float + + attr_accessor start_date: Time + + attr_accessor sub_line_items: ::Array[Orb::Models::ChangedSubscriptionResources::CreatedInvoice::LineItem::sub_line_item] + + attr_accessor subtotal: String + + attr_accessor tax_amounts: ::Array[Orb::TaxAmount] + + attr_accessor usage_customer_ids: ::Array[String]? + + def initialize: ( + id: String, + adjusted_subtotal: String, + adjustments: ::Array[Orb::Models::ChangedSubscriptionResources::CreatedInvoice::LineItem::adjustment], + amount: String, + credits_applied: String, + discount: Orb::Models::discount?, + end_date: Time, + filter: String?, + grouping: String?, + maximum: Orb::Maximum?, + maximum_amount: String?, + minimum: Orb::Minimum?, + minimum_amount: String?, + name: String, + partially_invoiced_amount: String, + price: Orb::Models::price, + quantity: Float, + start_date: Time, + sub_line_items: ::Array[Orb::Models::ChangedSubscriptionResources::CreatedInvoice::LineItem::sub_line_item], + subtotal: String, + tax_amounts: ::Array[Orb::TaxAmount], + usage_customer_ids: ::Array[String]? + ) -> void + + def to_hash: -> { + id: String, + adjusted_subtotal: String, + adjustments: ::Array[Orb::Models::ChangedSubscriptionResources::CreatedInvoice::LineItem::adjustment], + amount: String, + credits_applied: String, + discount: Orb::Models::discount?, + end_date: Time, + filter: String?, + grouping: String?, + maximum: Orb::Maximum?, + maximum_amount: String?, + minimum: Orb::Minimum?, + minimum_amount: String?, + name: String, + partially_invoiced_amount: String, + price: Orb::Models::price, + quantity: Float, + start_date: Time, + sub_line_items: ::Array[Orb::Models::ChangedSubscriptionResources::CreatedInvoice::LineItem::sub_line_item], + subtotal: String, + tax_amounts: ::Array[Orb::TaxAmount], + usage_customer_ids: ::Array[String]? + } + + type adjustment = + Orb::MonetaryUsageDiscountAdjustment + | Orb::MonetaryAmountDiscountAdjustment + | Orb::MonetaryPercentageDiscountAdjustment + | Orb::MonetaryMinimumAdjustment + | Orb::MonetaryMaximumAdjustment + + module Adjustment + extend Orb::Internal::Type::Union + + def self?.variants: -> ::Array[Orb::Models::ChangedSubscriptionResources::CreatedInvoice::LineItem::adjustment] + end + + type sub_line_item = + Orb::MatrixSubLineItem + | Orb::TierSubLineItem + | Orb::OtherSubLineItem + + module SubLineItem + extend Orb::Internal::Type::Union + + def self?.variants: -> ::Array[Orb::Models::ChangedSubscriptionResources::CreatedInvoice::LineItem::sub_line_item] + end + end + + type payment_attempt = + { + id: String, + amount: String, + created_at: Time, + payment_provider: Orb::Models::ChangedSubscriptionResources::CreatedInvoice::PaymentAttempt::payment_provider?, + payment_provider_id: String?, + receipt_pdf: String?, + succeeded: bool + } + + class PaymentAttempt < Orb::Internal::Type::BaseModel + attr_accessor id: String + + attr_accessor amount: String + + attr_accessor created_at: Time + + attr_accessor payment_provider: Orb::Models::ChangedSubscriptionResources::CreatedInvoice::PaymentAttempt::payment_provider? + + attr_accessor payment_provider_id: String? + + attr_accessor receipt_pdf: String? + + attr_accessor succeeded: bool + + def initialize: ( + id: String, + amount: String, + created_at: Time, + payment_provider: Orb::Models::ChangedSubscriptionResources::CreatedInvoice::PaymentAttempt::payment_provider?, + payment_provider_id: String?, + receipt_pdf: String?, + succeeded: bool + ) -> void + + def to_hash: -> { + id: String, + amount: String, + created_at: Time, + payment_provider: Orb::Models::ChangedSubscriptionResources::CreatedInvoice::PaymentAttempt::payment_provider?, + payment_provider_id: String?, + receipt_pdf: String?, + succeeded: bool + } + + type payment_provider = :stripe + + module PaymentProvider + extend Orb::Internal::Type::Enum + + STRIPE: :stripe + + def self?.values: -> ::Array[Orb::Models::ChangedSubscriptionResources::CreatedInvoice::PaymentAttempt::payment_provider] + end + end + + type status = :issued | :paid | :synced | :void | :draft + + module Status + extend Orb::Internal::Type::Enum + + ISSUED: :issued + PAID: :paid + SYNCED: :synced + VOID: :void + DRAFT: :draft + + def self?.values: -> ::Array[Orb::Models::ChangedSubscriptionResources::CreatedInvoice::status] + end + end end end end diff --git a/sig/orb/models/price.rbs b/sig/orb/models/price.rbs index e836acb6..fa87592e 100644 --- a/sig/orb/models/price.rbs +++ b/sig/orb/models/price.rbs @@ -37,6 +37,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::Unit::billing_mode, cadence: Orb::Models::Price::Unit::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -70,6 +71,8 @@ module Orb attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration + attr_accessor billing_mode: Orb::Models::Price::Unit::billing_mode + attr_accessor cadence: Orb::Models::Price::Unit::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? @@ -122,6 +125,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::Unit::billing_mode, cadence: Orb::Models::Price::Unit::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -152,6 +156,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::Unit::billing_mode, cadence: Orb::Models::Price::Unit::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -178,6 +183,17 @@ module Orb dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } + type billing_mode = :in_advance | :in_arrear + + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE: :in_advance + IN_ARREAR: :in_arrear + + def self?.values: -> ::Array[Orb::Models::Price::Unit::billing_mode] + end + type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom @@ -212,6 +228,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::Tiered::billing_mode, cadence: Orb::Models::Price::Tiered::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -245,6 +262,8 @@ module Orb attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration + attr_accessor billing_mode: Orb::Models::Price::Tiered::billing_mode + attr_accessor cadence: Orb::Models::Price::Tiered::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? @@ -297,6 +316,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::Tiered::billing_mode, cadence: Orb::Models::Price::Tiered::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -327,6 +347,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::Tiered::billing_mode, cadence: Orb::Models::Price::Tiered::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -353,6 +374,17 @@ module Orb dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } + type billing_mode = :in_advance | :in_arrear + + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE: :in_advance + IN_ARREAR: :in_arrear + + def self?.values: -> ::Array[Orb::Models::Price::Tiered::billing_mode] + end + type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom @@ -387,6 +419,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::Bulk::billing_mode, bulk_config: Orb::BulkConfig, cadence: Orb::Models::Price::Bulk::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, @@ -420,6 +453,8 @@ module Orb attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration + attr_accessor billing_mode: Orb::Models::Price::Bulk::billing_mode + attr_accessor bulk_config: Orb::BulkConfig attr_accessor cadence: Orb::Models::Price::Bulk::cadence @@ -472,6 +507,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::Bulk::billing_mode, bulk_config: Orb::BulkConfig, cadence: Orb::Models::Price::Bulk::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, @@ -502,6 +538,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::Bulk::billing_mode, bulk_config: Orb::BulkConfig, cadence: Orb::Models::Price::Bulk::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, @@ -528,6 +565,17 @@ module Orb dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } + type billing_mode = :in_advance | :in_arrear + + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE: :in_advance + IN_ARREAR: :in_arrear + + def self?.values: -> ::Array[Orb::Models::Price::Bulk::billing_mode] + end + type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom @@ -562,6 +610,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::Package::billing_mode, cadence: Orb::Models::Price::Package::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -595,6 +644,8 @@ module Orb attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration + attr_accessor billing_mode: Orb::Models::Price::Package::billing_mode + attr_accessor cadence: Orb::Models::Price::Package::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? @@ -647,6 +698,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::Package::billing_mode, cadence: Orb::Models::Price::Package::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -677,6 +729,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::Package::billing_mode, cadence: Orb::Models::Price::Package::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -703,6 +756,17 @@ module Orb dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } + type billing_mode = :in_advance | :in_arrear + + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE: :in_advance + IN_ARREAR: :in_arrear + + def self?.values: -> ::Array[Orb::Models::Price::Package::billing_mode] + end + type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom @@ -737,6 +801,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::Matrix::billing_mode, cadence: Orb::Models::Price::Matrix::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -770,6 +835,8 @@ module Orb attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration + attr_accessor billing_mode: Orb::Models::Price::Matrix::billing_mode + attr_accessor cadence: Orb::Models::Price::Matrix::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? @@ -822,6 +889,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::Matrix::billing_mode, cadence: Orb::Models::Price::Matrix::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -852,6 +920,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::Matrix::billing_mode, cadence: Orb::Models::Price::Matrix::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -878,6 +947,17 @@ module Orb dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } + type billing_mode = :in_advance | :in_arrear + + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE: :in_advance + IN_ARREAR: :in_arrear + + def self?.values: -> ::Array[Orb::Models::Price::Matrix::billing_mode] + end + type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom @@ -912,6 +992,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::ThresholdTotalAmount::billing_mode, cadence: Orb::Models::Price::ThresholdTotalAmount::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -945,6 +1026,8 @@ module Orb attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration + attr_accessor billing_mode: Orb::Models::Price::ThresholdTotalAmount::billing_mode + attr_accessor cadence: Orb::Models::Price::ThresholdTotalAmount::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? @@ -997,6 +1080,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::ThresholdTotalAmount::billing_mode, cadence: Orb::Models::Price::ThresholdTotalAmount::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -1027,6 +1111,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::ThresholdTotalAmount::billing_mode, cadence: Orb::Models::Price::ThresholdTotalAmount::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -1053,6 +1138,17 @@ module Orb dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } + type billing_mode = :in_advance | :in_arrear + + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE: :in_advance + IN_ARREAR: :in_arrear + + def self?.values: -> ::Array[Orb::Models::Price::ThresholdTotalAmount::billing_mode] + end + type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom @@ -1121,6 +1217,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::TieredPackage::billing_mode, cadence: Orb::Models::Price::TieredPackage::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -1154,6 +1251,8 @@ module Orb attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration + attr_accessor billing_mode: Orb::Models::Price::TieredPackage::billing_mode + attr_accessor cadence: Orb::Models::Price::TieredPackage::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? @@ -1206,6 +1305,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::TieredPackage::billing_mode, cadence: Orb::Models::Price::TieredPackage::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -1236,6 +1336,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::TieredPackage::billing_mode, cadence: Orb::Models::Price::TieredPackage::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -1262,6 +1363,17 @@ module Orb dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } + type billing_mode = :in_advance | :in_arrear + + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE: :in_advance + IN_ARREAR: :in_arrear + + def self?.values: -> ::Array[Orb::Models::Price::TieredPackage::billing_mode] + end + type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom @@ -1330,6 +1442,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::TieredWithMinimum::billing_mode, cadence: Orb::Models::Price::TieredWithMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -1363,6 +1476,8 @@ module Orb attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration + attr_accessor billing_mode: Orb::Models::Price::TieredWithMinimum::billing_mode + attr_accessor cadence: Orb::Models::Price::TieredWithMinimum::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? @@ -1415,6 +1530,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::TieredWithMinimum::billing_mode, cadence: Orb::Models::Price::TieredWithMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -1445,6 +1561,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::TieredWithMinimum::billing_mode, cadence: Orb::Models::Price::TieredWithMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -1471,6 +1588,17 @@ module Orb dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } + type billing_mode = :in_advance | :in_arrear + + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE: :in_advance + IN_ARREAR: :in_arrear + + def self?.values: -> ::Array[Orb::Models::Price::TieredWithMinimum::billing_mode] + end + type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom @@ -1563,6 +1691,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::GroupedTiered::billing_mode, cadence: Orb::Models::Price::GroupedTiered::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -1596,6 +1725,8 @@ module Orb attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration + attr_accessor billing_mode: Orb::Models::Price::GroupedTiered::billing_mode + attr_accessor cadence: Orb::Models::Price::GroupedTiered::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? @@ -1648,6 +1779,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::GroupedTiered::billing_mode, cadence: Orb::Models::Price::GroupedTiered::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -1678,6 +1810,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::GroupedTiered::billing_mode, cadence: Orb::Models::Price::GroupedTiered::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -1704,6 +1837,17 @@ module Orb dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } + type billing_mode = :in_advance | :in_arrear + + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE: :in_advance + IN_ARREAR: :in_arrear + + def self?.values: -> ::Array[Orb::Models::Price::GroupedTiered::billing_mode] + end + type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom @@ -1775,6 +1919,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::TieredPackageWithMinimum::billing_mode, cadence: Orb::Models::Price::TieredPackageWithMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -1808,6 +1953,8 @@ module Orb attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration + attr_accessor billing_mode: Orb::Models::Price::TieredPackageWithMinimum::billing_mode + attr_accessor cadence: Orb::Models::Price::TieredPackageWithMinimum::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? @@ -1860,6 +2007,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::TieredPackageWithMinimum::billing_mode, cadence: Orb::Models::Price::TieredPackageWithMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -1890,6 +2038,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::TieredPackageWithMinimum::billing_mode, cadence: Orb::Models::Price::TieredPackageWithMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -1916,6 +2065,17 @@ module Orb dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } + type billing_mode = :in_advance | :in_arrear + + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE: :in_advance + IN_ARREAR: :in_arrear + + def self?.values: -> ::Array[Orb::Models::Price::TieredPackageWithMinimum::billing_mode] + end + type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom @@ -1999,6 +2159,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::PackageWithAllocation::billing_mode, cadence: Orb::Models::Price::PackageWithAllocation::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -2032,6 +2193,8 @@ module Orb attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration + attr_accessor billing_mode: Orb::Models::Price::PackageWithAllocation::billing_mode + attr_accessor cadence: Orb::Models::Price::PackageWithAllocation::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? @@ -2084,6 +2247,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::PackageWithAllocation::billing_mode, cadence: Orb::Models::Price::PackageWithAllocation::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -2114,6 +2278,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::PackageWithAllocation::billing_mode, cadence: Orb::Models::Price::PackageWithAllocation::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -2140,6 +2305,17 @@ module Orb dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } + type billing_mode = :in_advance | :in_arrear + + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE: :in_advance + IN_ARREAR: :in_arrear + + def self?.values: -> ::Array[Orb::Models::Price::PackageWithAllocation::billing_mode] + end + type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom @@ -2197,6 +2373,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::UnitWithPercent::billing_mode, cadence: Orb::Models::Price::UnitWithPercent::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -2230,6 +2407,8 @@ module Orb attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration + attr_accessor billing_mode: Orb::Models::Price::UnitWithPercent::billing_mode + attr_accessor cadence: Orb::Models::Price::UnitWithPercent::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? @@ -2282,6 +2461,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::UnitWithPercent::billing_mode, cadence: Orb::Models::Price::UnitWithPercent::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -2312,6 +2492,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::UnitWithPercent::billing_mode, cadence: Orb::Models::Price::UnitWithPercent::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -2338,6 +2519,17 @@ module Orb dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } + type billing_mode = :in_advance | :in_arrear + + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE: :in_advance + IN_ARREAR: :in_arrear + + def self?.values: -> ::Array[Orb::Models::Price::UnitWithPercent::billing_mode] + end + type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom @@ -2384,6 +2576,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::MatrixWithAllocation::billing_mode, cadence: Orb::Models::Price::MatrixWithAllocation::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -2417,6 +2610,8 @@ module Orb attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration + attr_accessor billing_mode: Orb::Models::Price::MatrixWithAllocation::billing_mode + attr_accessor cadence: Orb::Models::Price::MatrixWithAllocation::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? @@ -2469,6 +2664,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::MatrixWithAllocation::billing_mode, cadence: Orb::Models::Price::MatrixWithAllocation::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -2499,6 +2695,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::MatrixWithAllocation::billing_mode, cadence: Orb::Models::Price::MatrixWithAllocation::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -2525,6 +2722,17 @@ module Orb dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } + type billing_mode = :in_advance | :in_arrear + + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE: :in_advance + IN_ARREAR: :in_arrear + + def self?.values: -> ::Array[Orb::Models::Price::MatrixWithAllocation::billing_mode] + end + type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom @@ -2559,6 +2767,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::TieredWithProration::billing_mode, cadence: Orb::Models::Price::TieredWithProration::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -2592,6 +2801,8 @@ module Orb attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration + attr_accessor billing_mode: Orb::Models::Price::TieredWithProration::billing_mode + attr_accessor cadence: Orb::Models::Price::TieredWithProration::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? @@ -2644,6 +2855,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::TieredWithProration::billing_mode, cadence: Orb::Models::Price::TieredWithProration::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -2674,6 +2886,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::TieredWithProration::billing_mode, cadence: Orb::Models::Price::TieredWithProration::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -2700,6 +2913,17 @@ module Orb dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } + type billing_mode = :in_advance | :in_arrear + + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE: :in_advance + IN_ARREAR: :in_arrear + + def self?.values: -> ::Array[Orb::Models::Price::TieredWithProration::billing_mode] + end + type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom @@ -2766,6 +2990,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::UnitWithProration::billing_mode, cadence: Orb::Models::Price::UnitWithProration::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -2799,6 +3024,8 @@ module Orb attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration + attr_accessor billing_mode: Orb::Models::Price::UnitWithProration::billing_mode + attr_accessor cadence: Orb::Models::Price::UnitWithProration::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? @@ -2851,6 +3078,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::UnitWithProration::billing_mode, cadence: Orb::Models::Price::UnitWithProration::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -2881,6 +3109,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::UnitWithProration::billing_mode, cadence: Orb::Models::Price::UnitWithProration::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -2907,6 +3136,17 @@ module Orb dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } + type billing_mode = :in_advance | :in_arrear + + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE: :in_advance + IN_ARREAR: :in_arrear + + def self?.values: -> ::Array[Orb::Models::Price::UnitWithProration::billing_mode] + end + type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom @@ -2951,6 +3191,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::GroupedAllocation::billing_mode, cadence: Orb::Models::Price::GroupedAllocation::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -2984,6 +3225,8 @@ module Orb attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration + attr_accessor billing_mode: Orb::Models::Price::GroupedAllocation::billing_mode + attr_accessor cadence: Orb::Models::Price::GroupedAllocation::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? @@ -3036,6 +3279,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::GroupedAllocation::billing_mode, cadence: Orb::Models::Price::GroupedAllocation::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -3066,6 +3310,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::GroupedAllocation::billing_mode, cadence: Orb::Models::Price::GroupedAllocation::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -3092,6 +3337,17 @@ module Orb dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } + type billing_mode = :in_advance | :in_arrear + + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE: :in_advance + IN_ARREAR: :in_arrear + + def self?.values: -> ::Array[Orb::Models::Price::GroupedAllocation::billing_mode] + end + type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom @@ -3153,6 +3409,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::BulkWithProration::billing_mode, bulk_with_proration_config: Orb::Price::BulkWithProration::BulkWithProrationConfig, cadence: Orb::Models::Price::BulkWithProration::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, @@ -3186,6 +3443,8 @@ module Orb attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration + attr_accessor billing_mode: Orb::Models::Price::BulkWithProration::billing_mode + attr_accessor bulk_with_proration_config: Orb::Price::BulkWithProration::BulkWithProrationConfig attr_accessor cadence: Orb::Models::Price::BulkWithProration::cadence @@ -3238,6 +3497,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::BulkWithProration::billing_mode, bulk_with_proration_config: Orb::Price::BulkWithProration::BulkWithProrationConfig, cadence: Orb::Models::Price::BulkWithProration::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, @@ -3268,6 +3528,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::BulkWithProration::billing_mode, bulk_with_proration_config: Orb::Price::BulkWithProration::BulkWithProrationConfig, cadence: Orb::Models::Price::BulkWithProration::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, @@ -3294,6 +3555,17 @@ module Orb dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } + type billing_mode = :in_advance | :in_arrear + + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE: :in_advance + IN_ARREAR: :in_arrear + + def self?.values: -> ::Array[Orb::Models::Price::BulkWithProration::billing_mode] + end + type bulk_with_proration_config = { tiers: ::Array[Orb::Price::BulkWithProration::BulkWithProrationConfig::Tier] @@ -3360,6 +3632,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::GroupedWithProratedMinimum::billing_mode, cadence: Orb::Models::Price::GroupedWithProratedMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -3393,6 +3666,8 @@ module Orb attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration + attr_accessor billing_mode: Orb::Models::Price::GroupedWithProratedMinimum::billing_mode + attr_accessor cadence: Orb::Models::Price::GroupedWithProratedMinimum::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? @@ -3445,6 +3720,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::GroupedWithProratedMinimum::billing_mode, cadence: Orb::Models::Price::GroupedWithProratedMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -3475,6 +3751,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::GroupedWithProratedMinimum::billing_mode, cadence: Orb::Models::Price::GroupedWithProratedMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -3501,6 +3778,17 @@ module Orb dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } + type billing_mode = :in_advance | :in_arrear + + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE: :in_advance + IN_ARREAR: :in_arrear + + def self?.values: -> ::Array[Orb::Models::Price::GroupedWithProratedMinimum::billing_mode] + end + type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom @@ -3558,6 +3846,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::GroupedWithMeteredMinimum::billing_mode, cadence: Orb::Models::Price::GroupedWithMeteredMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -3591,6 +3880,8 @@ module Orb attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration + attr_accessor billing_mode: Orb::Models::Price::GroupedWithMeteredMinimum::billing_mode + attr_accessor cadence: Orb::Models::Price::GroupedWithMeteredMinimum::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? @@ -3643,6 +3934,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::GroupedWithMeteredMinimum::billing_mode, cadence: Orb::Models::Price::GroupedWithMeteredMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -3673,6 +3965,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::GroupedWithMeteredMinimum::billing_mode, cadence: Orb::Models::Price::GroupedWithMeteredMinimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -3699,6 +3992,17 @@ module Orb dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } + type billing_mode = :in_advance | :in_arrear + + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE: :in_advance + IN_ARREAR: :in_arrear + + def self?.values: -> ::Array[Orb::Models::Price::GroupedWithMeteredMinimum::billing_mode] + end + type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom @@ -3803,6 +4107,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::GroupedWithMinMaxThresholds::billing_mode, cadence: Orb::Models::Price::GroupedWithMinMaxThresholds::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -3836,6 +4141,8 @@ module Orb attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration + attr_accessor billing_mode: Orb::Models::Price::GroupedWithMinMaxThresholds::billing_mode + attr_accessor cadence: Orb::Models::Price::GroupedWithMinMaxThresholds::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? @@ -3888,6 +4195,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::GroupedWithMinMaxThresholds::billing_mode, cadence: Orb::Models::Price::GroupedWithMinMaxThresholds::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -3918,6 +4226,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::GroupedWithMinMaxThresholds::billing_mode, cadence: Orb::Models::Price::GroupedWithMinMaxThresholds::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -3944,6 +4253,17 @@ module Orb dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } + type billing_mode = :in_advance | :in_arrear + + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE: :in_advance + IN_ARREAR: :in_arrear + + def self?.values: -> ::Array[Orb::Models::Price::GroupedWithMinMaxThresholds::billing_mode] + end + type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom @@ -4010,6 +4330,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::MatrixWithDisplayName::billing_mode, cadence: Orb::Models::Price::MatrixWithDisplayName::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -4043,6 +4364,8 @@ module Orb attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration + attr_accessor billing_mode: Orb::Models::Price::MatrixWithDisplayName::billing_mode + attr_accessor cadence: Orb::Models::Price::MatrixWithDisplayName::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? @@ -4095,6 +4418,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::MatrixWithDisplayName::billing_mode, cadence: Orb::Models::Price::MatrixWithDisplayName::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -4125,6 +4449,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::MatrixWithDisplayName::billing_mode, cadence: Orb::Models::Price::MatrixWithDisplayName::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -4151,6 +4476,17 @@ module Orb dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } + type billing_mode = :in_advance | :in_arrear + + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE: :in_advance + IN_ARREAR: :in_arrear + + def self?.values: -> ::Array[Orb::Models::Price::MatrixWithDisplayName::billing_mode] + end + type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom @@ -4234,6 +4570,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::GroupedTieredPackage::billing_mode, cadence: Orb::Models::Price::GroupedTieredPackage::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -4267,6 +4604,8 @@ module Orb attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration + attr_accessor billing_mode: Orb::Models::Price::GroupedTieredPackage::billing_mode + attr_accessor cadence: Orb::Models::Price::GroupedTieredPackage::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? @@ -4319,6 +4658,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::GroupedTieredPackage::billing_mode, cadence: Orb::Models::Price::GroupedTieredPackage::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -4349,6 +4689,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::GroupedTieredPackage::billing_mode, cadence: Orb::Models::Price::GroupedTieredPackage::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -4375,6 +4716,17 @@ module Orb dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } + type billing_mode = :in_advance | :in_arrear + + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE: :in_advance + IN_ARREAR: :in_arrear + + def self?.values: -> ::Array[Orb::Models::Price::GroupedTieredPackage::billing_mode] + end + type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom @@ -4448,6 +4800,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::MaxGroupTieredPackage::billing_mode, cadence: Orb::Models::Price::MaxGroupTieredPackage::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -4481,6 +4834,8 @@ module Orb attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration + attr_accessor billing_mode: Orb::Models::Price::MaxGroupTieredPackage::billing_mode + attr_accessor cadence: Orb::Models::Price::MaxGroupTieredPackage::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? @@ -4533,6 +4888,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::MaxGroupTieredPackage::billing_mode, cadence: Orb::Models::Price::MaxGroupTieredPackage::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -4563,6 +4919,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::MaxGroupTieredPackage::billing_mode, cadence: Orb::Models::Price::MaxGroupTieredPackage::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -4589,6 +4946,17 @@ module Orb dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } + type billing_mode = :in_advance | :in_arrear + + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE: :in_advance + IN_ARREAR: :in_arrear + + def self?.values: -> ::Array[Orb::Models::Price::MaxGroupTieredPackage::billing_mode] + end + type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom @@ -4665,6 +5033,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::ScalableMatrixWithUnitPricing::billing_mode, cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -4698,6 +5067,8 @@ module Orb attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration + attr_accessor billing_mode: Orb::Models::Price::ScalableMatrixWithUnitPricing::billing_mode + attr_accessor cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? @@ -4750,6 +5121,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::ScalableMatrixWithUnitPricing::billing_mode, cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -4780,6 +5152,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::ScalableMatrixWithUnitPricing::billing_mode, cadence: Orb::Models::Price::ScalableMatrixWithUnitPricing::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -4806,6 +5179,17 @@ module Orb dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } + type billing_mode = :in_advance | :in_arrear + + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE: :in_advance + IN_ARREAR: :in_arrear + + def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithUnitPricing::billing_mode] + end + type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom @@ -4904,6 +5288,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::ScalableMatrixWithTieredPricing::billing_mode, cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -4937,6 +5322,8 @@ module Orb attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration + attr_accessor billing_mode: Orb::Models::Price::ScalableMatrixWithTieredPricing::billing_mode + attr_accessor cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? @@ -4989,6 +5376,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::ScalableMatrixWithTieredPricing::billing_mode, cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -5019,6 +5407,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::ScalableMatrixWithTieredPricing::billing_mode, cadence: Orb::Models::Price::ScalableMatrixWithTieredPricing::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -5045,6 +5434,17 @@ module Orb dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } + type billing_mode = :in_advance | :in_arrear + + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE: :in_advance + IN_ARREAR: :in_arrear + + def self?.values: -> ::Array[Orb::Models::Price::ScalableMatrixWithTieredPricing::billing_mode] + end + type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom @@ -5153,6 +5553,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::CumulativeGroupedBulk::billing_mode, cadence: Orb::Models::Price::CumulativeGroupedBulk::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -5186,6 +5587,8 @@ module Orb attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration + attr_accessor billing_mode: Orb::Models::Price::CumulativeGroupedBulk::billing_mode + attr_accessor cadence: Orb::Models::Price::CumulativeGroupedBulk::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? @@ -5238,6 +5641,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::CumulativeGroupedBulk::billing_mode, cadence: Orb::Models::Price::CumulativeGroupedBulk::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -5268,6 +5672,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::CumulativeGroupedBulk::billing_mode, cadence: Orb::Models::Price::CumulativeGroupedBulk::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -5294,6 +5699,17 @@ module Orb dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } + type billing_mode = :in_advance | :in_arrear + + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE: :in_advance + IN_ARREAR: :in_arrear + + def self?.values: -> ::Array[Orb::Models::Price::CumulativeGroupedBulk::billing_mode] + end + type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom @@ -5377,6 +5793,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::Minimum::billing_mode, cadence: Orb::Models::Price::Minimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -5410,6 +5827,8 @@ module Orb attr_accessor billing_cycle_configuration: Orb::BillingCycleConfiguration + attr_accessor billing_mode: Orb::Models::Price::Minimum::billing_mode + attr_accessor cadence: Orb::Models::Price::Minimum::cadence attr_accessor composite_price_filters: ::Array[Orb::TransformPriceFilter]? @@ -5462,6 +5881,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::Minimum::billing_mode, cadence: Orb::Models::Price::Minimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -5492,6 +5912,7 @@ module Orb id: String, billable_metric: Orb::BillableMetricTiny?, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Models::Price::Minimum::billing_mode, cadence: Orb::Models::Price::Minimum::cadence, composite_price_filters: ::Array[Orb::TransformPriceFilter]?, conversion_rate: Float?, @@ -5518,6 +5939,17 @@ module Orb dimensional_price_configuration: Orb::DimensionalPriceConfiguration? } + type billing_mode = :in_advance | :in_arrear + + module BillingMode + extend Orb::Internal::Type::Enum + + IN_ADVANCE: :in_advance + IN_ARREAR: :in_arrear + + def self?.values: -> ::Array[Orb::Models::Price::Minimum::billing_mode] + end + type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom diff --git a/test/orb/resources/prices/external_price_id_test.rb b/test/orb/resources/prices/external_price_id_test.rb index af25cf80..2f61d44d 100644 --- a/test/orb/resources/prices/external_price_id_test.rb +++ b/test/orb/resources/prices/external_price_id_test.rb @@ -49,6 +49,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Unit::BillingMode, cadence: Orb::Price::Unit::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -78,6 +79,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Tiered::BillingMode, cadence: Orb::Price::Tiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -107,6 +109,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Bulk::BillingMode, bulk_config: Orb::BulkConfig, cadence: Orb::Price::Bulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, @@ -136,6 +139,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Package::BillingMode, cadence: Orb::Price::Package::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -165,6 +169,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Matrix::BillingMode, cadence: Orb::Price::Matrix::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -194,6 +199,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::ThresholdTotalAmount::BillingMode, cadence: Orb::Price::ThresholdTotalAmount::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -223,6 +229,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::TieredPackage::BillingMode, cadence: Orb::Price::TieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -252,6 +259,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::TieredWithMinimum::BillingMode, cadence: Orb::Price::TieredWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -281,6 +289,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedTiered::BillingMode, cadence: Orb::Price::GroupedTiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -310,6 +319,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::TieredPackageWithMinimum::BillingMode, cadence: Orb::Price::TieredPackageWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -339,6 +349,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::PackageWithAllocation::BillingMode, cadence: Orb::Price::PackageWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -368,6 +379,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::UnitWithPercent::BillingMode, cadence: Orb::Price::UnitWithPercent::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -397,6 +409,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::MatrixWithAllocation::BillingMode, cadence: Orb::Price::MatrixWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -426,6 +439,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::TieredWithProration::BillingMode, cadence: Orb::Price::TieredWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -455,6 +469,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::UnitWithProration::BillingMode, cadence: Orb::Price::UnitWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -484,6 +499,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedAllocation::BillingMode, cadence: Orb::Price::GroupedAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -513,6 +529,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::BulkWithProration::BillingMode, bulk_with_proration_config: Orb::Price::BulkWithProration::BulkWithProrationConfig, cadence: Orb::Price::BulkWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, @@ -542,6 +559,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedWithProratedMinimum::BillingMode, cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -571,6 +589,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedWithMeteredMinimum::BillingMode, cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -600,6 +619,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedWithMinMaxThresholds::BillingMode, cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -629,6 +649,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::MatrixWithDisplayName::BillingMode, cadence: Orb::Price::MatrixWithDisplayName::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -658,6 +679,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedTieredPackage::BillingMode, cadence: Orb::Price::GroupedTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -687,6 +709,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::MaxGroupTieredPackage::BillingMode, cadence: Orb::Price::MaxGroupTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -716,6 +739,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::ScalableMatrixWithUnitPricing::BillingMode, cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -745,6 +769,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::ScalableMatrixWithTieredPricing::BillingMode, cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -774,6 +799,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::CumulativeGroupedBulk::BillingMode, cadence: Orb::Price::CumulativeGroupedBulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -803,6 +829,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Minimum::BillingMode, cadence: Orb::Price::Minimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -877,6 +904,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Unit::BillingMode, cadence: Orb::Price::Unit::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -906,6 +934,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Tiered::BillingMode, cadence: Orb::Price::Tiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -935,6 +964,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Bulk::BillingMode, bulk_config: Orb::BulkConfig, cadence: Orb::Price::Bulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, @@ -964,6 +994,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Package::BillingMode, cadence: Orb::Price::Package::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -993,6 +1024,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Matrix::BillingMode, cadence: Orb::Price::Matrix::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1022,6 +1054,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::ThresholdTotalAmount::BillingMode, cadence: Orb::Price::ThresholdTotalAmount::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1051,6 +1084,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::TieredPackage::BillingMode, cadence: Orb::Price::TieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1080,6 +1114,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::TieredWithMinimum::BillingMode, cadence: Orb::Price::TieredWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1109,6 +1144,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedTiered::BillingMode, cadence: Orb::Price::GroupedTiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1138,6 +1174,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::TieredPackageWithMinimum::BillingMode, cadence: Orb::Price::TieredPackageWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1167,6 +1204,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::PackageWithAllocation::BillingMode, cadence: Orb::Price::PackageWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1196,6 +1234,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::UnitWithPercent::BillingMode, cadence: Orb::Price::UnitWithPercent::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1225,6 +1264,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::MatrixWithAllocation::BillingMode, cadence: Orb::Price::MatrixWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1254,6 +1294,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::TieredWithProration::BillingMode, cadence: Orb::Price::TieredWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1283,6 +1324,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::UnitWithProration::BillingMode, cadence: Orb::Price::UnitWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1312,6 +1354,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedAllocation::BillingMode, cadence: Orb::Price::GroupedAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1341,6 +1384,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::BulkWithProration::BillingMode, bulk_with_proration_config: Orb::Price::BulkWithProration::BulkWithProrationConfig, cadence: Orb::Price::BulkWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, @@ -1370,6 +1414,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedWithProratedMinimum::BillingMode, cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1399,6 +1444,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedWithMeteredMinimum::BillingMode, cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1428,6 +1474,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedWithMinMaxThresholds::BillingMode, cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1457,6 +1504,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::MatrixWithDisplayName::BillingMode, cadence: Orb::Price::MatrixWithDisplayName::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1486,6 +1534,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedTieredPackage::BillingMode, cadence: Orb::Price::GroupedTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1515,6 +1564,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::MaxGroupTieredPackage::BillingMode, cadence: Orb::Price::MaxGroupTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1544,6 +1594,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::ScalableMatrixWithUnitPricing::BillingMode, cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1573,6 +1624,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::ScalableMatrixWithTieredPricing::BillingMode, cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1602,6 +1654,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::CumulativeGroupedBulk::BillingMode, cadence: Orb::Price::CumulativeGroupedBulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1631,6 +1684,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Minimum::BillingMode, cadence: Orb::Price::Minimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, diff --git a/test/orb/resources/prices_test.rb b/test/orb/resources/prices_test.rb index 707ef8a7..6871b93d 100644 --- a/test/orb/resources/prices_test.rb +++ b/test/orb/resources/prices_test.rb @@ -57,6 +57,7 @@ def test_create_required_params id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Unit::BillingMode, cadence: Orb::Price::Unit::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -86,6 +87,7 @@ def test_create_required_params id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Tiered::BillingMode, cadence: Orb::Price::Tiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -115,6 +117,7 @@ def test_create_required_params id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Bulk::BillingMode, bulk_config: Orb::BulkConfig, cadence: Orb::Price::Bulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, @@ -144,6 +147,7 @@ def test_create_required_params id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Package::BillingMode, cadence: Orb::Price::Package::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -173,6 +177,7 @@ def test_create_required_params id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Matrix::BillingMode, cadence: Orb::Price::Matrix::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -202,6 +207,7 @@ def test_create_required_params id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::ThresholdTotalAmount::BillingMode, cadence: Orb::Price::ThresholdTotalAmount::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -231,6 +237,7 @@ def test_create_required_params id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::TieredPackage::BillingMode, cadence: Orb::Price::TieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -260,6 +267,7 @@ def test_create_required_params id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::TieredWithMinimum::BillingMode, cadence: Orb::Price::TieredWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -289,6 +297,7 @@ def test_create_required_params id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedTiered::BillingMode, cadence: Orb::Price::GroupedTiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -318,6 +327,7 @@ def test_create_required_params id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::TieredPackageWithMinimum::BillingMode, cadence: Orb::Price::TieredPackageWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -347,6 +357,7 @@ def test_create_required_params id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::PackageWithAllocation::BillingMode, cadence: Orb::Price::PackageWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -376,6 +387,7 @@ def test_create_required_params id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::UnitWithPercent::BillingMode, cadence: Orb::Price::UnitWithPercent::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -405,6 +417,7 @@ def test_create_required_params id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::MatrixWithAllocation::BillingMode, cadence: Orb::Price::MatrixWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -434,6 +447,7 @@ def test_create_required_params id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::TieredWithProration::BillingMode, cadence: Orb::Price::TieredWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -463,6 +477,7 @@ def test_create_required_params id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::UnitWithProration::BillingMode, cadence: Orb::Price::UnitWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -492,6 +507,7 @@ def test_create_required_params id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedAllocation::BillingMode, cadence: Orb::Price::GroupedAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -521,6 +537,7 @@ def test_create_required_params id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::BulkWithProration::BillingMode, bulk_with_proration_config: Orb::Price::BulkWithProration::BulkWithProrationConfig, cadence: Orb::Price::BulkWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, @@ -550,6 +567,7 @@ def test_create_required_params id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedWithProratedMinimum::BillingMode, cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -579,6 +597,7 @@ def test_create_required_params id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedWithMeteredMinimum::BillingMode, cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -608,6 +627,7 @@ def test_create_required_params id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedWithMinMaxThresholds::BillingMode, cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -637,6 +657,7 @@ def test_create_required_params id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::MatrixWithDisplayName::BillingMode, cadence: Orb::Price::MatrixWithDisplayName::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -666,6 +687,7 @@ def test_create_required_params id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedTieredPackage::BillingMode, cadence: Orb::Price::GroupedTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -695,6 +717,7 @@ def test_create_required_params id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::MaxGroupTieredPackage::BillingMode, cadence: Orb::Price::MaxGroupTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -724,6 +747,7 @@ def test_create_required_params id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::ScalableMatrixWithUnitPricing::BillingMode, cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -753,6 +777,7 @@ def test_create_required_params id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::ScalableMatrixWithTieredPricing::BillingMode, cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -782,6 +807,7 @@ def test_create_required_params id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::CumulativeGroupedBulk::BillingMode, cadence: Orb::Price::CumulativeGroupedBulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -811,6 +837,7 @@ def test_create_required_params id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Minimum::BillingMode, cadence: Orb::Price::Minimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -885,6 +912,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Unit::BillingMode, cadence: Orb::Price::Unit::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -914,6 +942,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Tiered::BillingMode, cadence: Orb::Price::Tiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -943,6 +972,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Bulk::BillingMode, bulk_config: Orb::BulkConfig, cadence: Orb::Price::Bulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, @@ -972,6 +1002,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Package::BillingMode, cadence: Orb::Price::Package::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1001,6 +1032,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Matrix::BillingMode, cadence: Orb::Price::Matrix::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1030,6 +1062,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::ThresholdTotalAmount::BillingMode, cadence: Orb::Price::ThresholdTotalAmount::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1059,6 +1092,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::TieredPackage::BillingMode, cadence: Orb::Price::TieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1088,6 +1122,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::TieredWithMinimum::BillingMode, cadence: Orb::Price::TieredWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1117,6 +1152,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedTiered::BillingMode, cadence: Orb::Price::GroupedTiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1146,6 +1182,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::TieredPackageWithMinimum::BillingMode, cadence: Orb::Price::TieredPackageWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1175,6 +1212,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::PackageWithAllocation::BillingMode, cadence: Orb::Price::PackageWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1204,6 +1242,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::UnitWithPercent::BillingMode, cadence: Orb::Price::UnitWithPercent::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1233,6 +1272,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::MatrixWithAllocation::BillingMode, cadence: Orb::Price::MatrixWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1262,6 +1302,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::TieredWithProration::BillingMode, cadence: Orb::Price::TieredWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1291,6 +1332,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::UnitWithProration::BillingMode, cadence: Orb::Price::UnitWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1320,6 +1362,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedAllocation::BillingMode, cadence: Orb::Price::GroupedAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1349,6 +1392,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::BulkWithProration::BillingMode, bulk_with_proration_config: Orb::Price::BulkWithProration::BulkWithProrationConfig, cadence: Orb::Price::BulkWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, @@ -1378,6 +1422,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedWithProratedMinimum::BillingMode, cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1407,6 +1452,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedWithMeteredMinimum::BillingMode, cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1436,6 +1482,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedWithMinMaxThresholds::BillingMode, cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1465,6 +1512,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::MatrixWithDisplayName::BillingMode, cadence: Orb::Price::MatrixWithDisplayName::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1494,6 +1542,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedTieredPackage::BillingMode, cadence: Orb::Price::GroupedTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1523,6 +1572,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::MaxGroupTieredPackage::BillingMode, cadence: Orb::Price::MaxGroupTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1552,6 +1602,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::ScalableMatrixWithUnitPricing::BillingMode, cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1581,6 +1632,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::ScalableMatrixWithTieredPricing::BillingMode, cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1610,6 +1662,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::CumulativeGroupedBulk::BillingMode, cadence: Orb::Price::CumulativeGroupedBulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1639,6 +1692,7 @@ def test_update id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Minimum::BillingMode, cadence: Orb::Price::Minimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1720,6 +1774,7 @@ def test_list id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Unit::BillingMode, cadence: Orb::Price::Unit::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1749,6 +1804,7 @@ def test_list id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Tiered::BillingMode, cadence: Orb::Price::Tiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1778,6 +1834,7 @@ def test_list id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Bulk::BillingMode, bulk_config: Orb::BulkConfig, cadence: Orb::Price::Bulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, @@ -1807,6 +1864,7 @@ def test_list id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Package::BillingMode, cadence: Orb::Price::Package::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1836,6 +1894,7 @@ def test_list id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Matrix::BillingMode, cadence: Orb::Price::Matrix::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1865,6 +1924,7 @@ def test_list id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::ThresholdTotalAmount::BillingMode, cadence: Orb::Price::ThresholdTotalAmount::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1894,6 +1954,7 @@ def test_list id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::TieredPackage::BillingMode, cadence: Orb::Price::TieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1923,6 +1984,7 @@ def test_list id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::TieredWithMinimum::BillingMode, cadence: Orb::Price::TieredWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1952,6 +2014,7 @@ def test_list id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedTiered::BillingMode, cadence: Orb::Price::GroupedTiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -1981,6 +2044,7 @@ def test_list id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::TieredPackageWithMinimum::BillingMode, cadence: Orb::Price::TieredPackageWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -2010,6 +2074,7 @@ def test_list id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::PackageWithAllocation::BillingMode, cadence: Orb::Price::PackageWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -2039,6 +2104,7 @@ def test_list id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::UnitWithPercent::BillingMode, cadence: Orb::Price::UnitWithPercent::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -2068,6 +2134,7 @@ def test_list id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::MatrixWithAllocation::BillingMode, cadence: Orb::Price::MatrixWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -2097,6 +2164,7 @@ def test_list id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::TieredWithProration::BillingMode, cadence: Orb::Price::TieredWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -2126,6 +2194,7 @@ def test_list id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::UnitWithProration::BillingMode, cadence: Orb::Price::UnitWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -2155,6 +2224,7 @@ def test_list id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedAllocation::BillingMode, cadence: Orb::Price::GroupedAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -2184,6 +2254,7 @@ def test_list id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::BulkWithProration::BillingMode, bulk_with_proration_config: Orb::Price::BulkWithProration::BulkWithProrationConfig, cadence: Orb::Price::BulkWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, @@ -2213,6 +2284,7 @@ def test_list id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedWithProratedMinimum::BillingMode, cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -2242,6 +2314,7 @@ def test_list id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedWithMeteredMinimum::BillingMode, cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -2271,6 +2344,7 @@ def test_list id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedWithMinMaxThresholds::BillingMode, cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -2300,6 +2374,7 @@ def test_list id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::MatrixWithDisplayName::BillingMode, cadence: Orb::Price::MatrixWithDisplayName::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -2329,6 +2404,7 @@ def test_list id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedTieredPackage::BillingMode, cadence: Orb::Price::GroupedTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -2358,6 +2434,7 @@ def test_list id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::MaxGroupTieredPackage::BillingMode, cadence: Orb::Price::MaxGroupTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -2387,6 +2464,7 @@ def test_list id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::ScalableMatrixWithUnitPricing::BillingMode, cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -2416,6 +2494,7 @@ def test_list id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::ScalableMatrixWithTieredPricing::BillingMode, cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -2445,6 +2524,7 @@ def test_list id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::CumulativeGroupedBulk::BillingMode, cadence: Orb::Price::CumulativeGroupedBulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -2474,6 +2554,7 @@ def test_list id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Minimum::BillingMode, cadence: Orb::Price::Minimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -2603,6 +2684,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Unit::BillingMode, cadence: Orb::Price::Unit::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -2632,6 +2714,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Tiered::BillingMode, cadence: Orb::Price::Tiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -2661,6 +2744,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Bulk::BillingMode, bulk_config: Orb::BulkConfig, cadence: Orb::Price::Bulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, @@ -2690,6 +2774,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Package::BillingMode, cadence: Orb::Price::Package::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -2719,6 +2804,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Matrix::BillingMode, cadence: Orb::Price::Matrix::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -2748,6 +2834,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::ThresholdTotalAmount::BillingMode, cadence: Orb::Price::ThresholdTotalAmount::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -2777,6 +2864,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::TieredPackage::BillingMode, cadence: Orb::Price::TieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -2806,6 +2894,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::TieredWithMinimum::BillingMode, cadence: Orb::Price::TieredWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -2835,6 +2924,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedTiered::BillingMode, cadence: Orb::Price::GroupedTiered::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -2864,6 +2954,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::TieredPackageWithMinimum::BillingMode, cadence: Orb::Price::TieredPackageWithMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -2893,6 +2984,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::PackageWithAllocation::BillingMode, cadence: Orb::Price::PackageWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -2922,6 +3014,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::UnitWithPercent::BillingMode, cadence: Orb::Price::UnitWithPercent::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -2951,6 +3044,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::MatrixWithAllocation::BillingMode, cadence: Orb::Price::MatrixWithAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -2980,6 +3074,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::TieredWithProration::BillingMode, cadence: Orb::Price::TieredWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -3009,6 +3104,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::UnitWithProration::BillingMode, cadence: Orb::Price::UnitWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -3038,6 +3134,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedAllocation::BillingMode, cadence: Orb::Price::GroupedAllocation::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -3067,6 +3164,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::BulkWithProration::BillingMode, bulk_with_proration_config: Orb::Price::BulkWithProration::BulkWithProrationConfig, cadence: Orb::Price::BulkWithProration::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, @@ -3096,6 +3194,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedWithProratedMinimum::BillingMode, cadence: Orb::Price::GroupedWithProratedMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -3125,6 +3224,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedWithMeteredMinimum::BillingMode, cadence: Orb::Price::GroupedWithMeteredMinimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -3154,6 +3254,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedWithMinMaxThresholds::BillingMode, cadence: Orb::Price::GroupedWithMinMaxThresholds::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -3183,6 +3284,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::MatrixWithDisplayName::BillingMode, cadence: Orb::Price::MatrixWithDisplayName::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -3212,6 +3314,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::GroupedTieredPackage::BillingMode, cadence: Orb::Price::GroupedTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -3241,6 +3344,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::MaxGroupTieredPackage::BillingMode, cadence: Orb::Price::MaxGroupTieredPackage::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -3270,6 +3374,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::ScalableMatrixWithUnitPricing::BillingMode, cadence: Orb::Price::ScalableMatrixWithUnitPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -3299,6 +3404,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::ScalableMatrixWithTieredPricing::BillingMode, cadence: Orb::Price::ScalableMatrixWithTieredPricing::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -3328,6 +3434,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::CumulativeGroupedBulk::BillingMode, cadence: Orb::Price::CumulativeGroupedBulk::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, @@ -3357,6 +3464,7 @@ def test_fetch id: String, billable_metric: Orb::BillableMetricTiny | nil, billing_cycle_configuration: Orb::BillingCycleConfiguration, + billing_mode: Orb::Price::Minimum::BillingMode, cadence: Orb::Price::Minimum::Cadence, composite_price_filters: ^(Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter]) | nil, conversion_rate: Float | nil, From cafba93f8798a84815c9c9d1183327e498cb6b95 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 17 Sep 2025 18:17:26 +0000 Subject: [PATCH 10/24] feat: expose response headers for both streams and errors --- lib/orb/errors.rb | 36 +++++++++++++++------- lib/orb/internal/page.rb | 2 +- lib/orb/internal/transport/base_client.rb | 18 ++++++----- lib/orb/internal/type/base_page.rb | 2 +- lib/orb/internal/util.rb | 2 +- rbi/orb/errors.rbi | 31 +++++++++++++++++-- rbi/orb/internal/transport/base_client.rbi | 9 +++--- rbi/orb/internal/type/base_page.rbi | 2 +- rbi/orb/internal/util.rbi | 2 +- sig/orb/errors.rbs | 7 +++++ 10 files changed, 81 insertions(+), 30 deletions(-) diff --git a/lib/orb/errors.rb b/lib/orb/errors.rb index db0cb388..a1725eb1 100644 --- a/lib/orb/errors.rb +++ b/lib/orb/errors.rb @@ -40,6 +40,9 @@ class APIError < Orb::Errors::Error # @return [Integer, nil] attr_accessor :status + # @return [Hash{String=>String}, nil] + attr_accessor :headers + # @return [Object, nil] attr_accessor :body @@ -47,13 +50,15 @@ class APIError < Orb::Errors::Error # # @param url [URI::Generic] # @param status [Integer, nil] + # @param headers [Hash{String=>String}, nil] # @param body [Object, nil] # @param request [nil] # @param response [nil] # @param message [String, nil] - def initialize(url:, status: nil, body: nil, request: nil, response: nil, message: nil) + def initialize(url:, status: nil, headers: nil, body: nil, request: nil, response: nil, message: nil) @url = url @status = status + @headers = headers @body = body @request = request @response = response @@ -74,6 +79,7 @@ class APIConnectionError < Orb::Errors::APIError # # @param url [URI::Generic] # @param status [nil] + # @param headers [Hash{String=>String}, nil] # @param body [nil] # @param request [nil] # @param response [nil] @@ -81,6 +87,7 @@ class APIConnectionError < Orb::Errors::APIError def initialize( url:, status: nil, + headers: nil, body: nil, request: nil, response: nil, @@ -95,6 +102,7 @@ class APITimeoutError < Orb::Errors::APIConnectionError # # @param url [URI::Generic] # @param status [nil] + # @param headers [Hash{String=>String}, nil] # @param body [nil] # @param request [nil] # @param response [nil] @@ -102,6 +110,7 @@ class APITimeoutError < Orb::Errors::APIConnectionError def initialize( url:, status: nil, + headers: nil, body: nil, request: nil, response: nil, @@ -116,22 +125,25 @@ class APIStatusError < Orb::Errors::APIError # # @param url [URI::Generic] # @param status [Integer] + # @param headers [Hash{String=>String}, nil] # @param body [Object, nil] # @param request [nil] # @param response [nil] # @param message [String, nil] # # @return [self] - def self.for(url:, status:, body:, request:, response:, message: nil) + def self.for(url:, status:, headers:, body:, request:, response:, message: nil) key = Orb::Internal::Util.dig(body, :type) - kwargs = { - url: url, - status: status, - body: body, - request: request, - response: response, - message: message - } + kwargs = + { + url: url, + status: status, + headers: headers, + body: body, + request: request, + response: response, + message: message + } case [status, key] in [400, Orb::Errors::ConstraintViolation::TYPE] @@ -187,15 +199,17 @@ def self.for(url:, status:, body:, request:, response:, message: nil) # # @param url [URI::Generic] # @param status [Integer] + # @param headers [Hash{String=>String}, nil] # @param body [Object, nil] # @param request [nil] # @param response [nil] # @param message [String, nil] - def initialize(url:, status:, body:, request:, response:, message: nil) + def initialize(url:, status:, headers:, body:, request:, response:, message: nil) message ||= {url: url.to_s, status: status, body: body} super( url: url, status: status, + headers: headers, body: body, request: request, response: response, diff --git a/lib/orb/internal/page.rb b/lib/orb/internal/page.rb index d9e38211..8d458355 100644 --- a/lib/orb/internal/page.rb +++ b/lib/orb/internal/page.rb @@ -60,7 +60,7 @@ def auto_paging_each(&blk) # # @param client [Orb::Internal::Transport::BaseClient] # @param req [Hash{Symbol=>Object}] - # @param headers [Hash{String=>String}, Net::HTTPHeader] + # @param headers [Hash{String=>String}] # @param page_data [Hash{Symbol=>Object}] def initialize(client:, req:, headers:, page_data:) super diff --git a/lib/orb/internal/transport/base_client.rb b/lib/orb/internal/transport/base_client.rb index 84dc98c7..a1b369a1 100644 --- a/lib/orb/internal/transport/base_client.rb +++ b/lib/orb/internal/transport/base_client.rb @@ -47,7 +47,7 @@ def validate!(req) # @api private # # @param status [Integer] - # @param headers [Hash{String=>String}, Net::HTTPHeader] + # @param headers [Hash{String=>String}] # # @return [Boolean] def should_retry?(status, headers:) @@ -85,7 +85,7 @@ def should_retry?(status, headers:) # # @param status [Integer] # - # @param response_headers [Hash{String=>String}, Net::HTTPHeader] + # @param response_headers [Hash{String=>String}] # # @return [Hash{Symbol=>Object}] def follow_redirect(request, status:, response_headers:) @@ -375,6 +375,7 @@ def send_request(request, redirect_count:, retry_count:, send_retry_header:) rescue Orb::Errors::APIConnectionError => e status = e end + headers = Orb::Internal::Util.normalized_headers(response&.each_header&.to_h) case status in ..299 @@ -387,7 +388,7 @@ def send_request(request, redirect_count:, retry_count:, send_retry_header:) in 300..399 self.class.reap_connection!(status, stream: stream) - request = self.class.follow_redirect(request, status: status, response_headers: response) + request = self.class.follow_redirect(request, status: status, response_headers: headers) send_request( request, redirect_count: redirect_count + 1, @@ -396,9 +397,9 @@ def send_request(request, redirect_count:, retry_count:, send_retry_header:) ) in Orb::Errors::APIConnectionError if retry_count >= max_retries raise status - in (400..) if retry_count >= max_retries || !self.class.should_retry?(status, headers: response) + in (400..) if retry_count >= max_retries || !self.class.should_retry?(status, headers: headers) decoded = Kernel.then do - Orb::Internal::Util.decode_content(response, stream: stream, suppress_error: true) + Orb::Internal::Util.decode_content(headers, stream: stream, suppress_error: true) ensure self.class.reap_connection!(status, stream: stream) end @@ -406,6 +407,7 @@ def send_request(request, redirect_count:, retry_count:, send_retry_header:) raise Orb::Errors::APIStatusError.for( url: url, status: status, + headers: headers, body: decoded, request: nil, response: response @@ -482,19 +484,21 @@ def request(req) send_retry_header: send_retry_header ) - decoded = Orb::Internal::Util.decode_content(response, stream: stream) + headers = Orb::Internal::Util.normalized_headers(response.each_header.to_h) + decoded = Orb::Internal::Util.decode_content(headers, stream: stream) case req in {stream: Class => st} st.new( model: model, url: url, status: status, + headers: headers, response: response, unwrap: unwrap, stream: decoded ) in {page: Class => page} - page.new(client: self, req: req, headers: response, page_data: decoded) + page.new(client: self, req: req, headers: headers, page_data: decoded) else unwrapped = Orb::Internal::Util.dig(decoded, unwrap) Orb::Internal::Type::Converter.coerce(model, unwrapped) diff --git a/lib/orb/internal/type/base_page.rb b/lib/orb/internal/type/base_page.rb index 8585169c..4df77ad6 100644 --- a/lib/orb/internal/type/base_page.rb +++ b/lib/orb/internal/type/base_page.rb @@ -39,7 +39,7 @@ def to_enum = super(:auto_paging_each) # # @param client [Orb::Internal::Transport::BaseClient] # @param req [Hash{Symbol=>Object}] - # @param headers [Hash{String=>String}, Net::HTTPHeader] + # @param headers [Hash{String=>String}] # @param page_data [Object] def initialize(client:, req:, headers:, page_data:) @client = client diff --git a/lib/orb/internal/util.rb b/lib/orb/internal/util.rb index 88501161..4a1803c9 100644 --- a/lib/orb/internal/util.rb +++ b/lib/orb/internal/util.rb @@ -645,7 +645,7 @@ def force_charset!(content_type, text:) # # Assumes each chunk in stream has `Encoding::BINARY`. # - # @param headers [Hash{String=>String}, Net::HTTPHeader] + # @param headers [Hash{String=>String}] # @param stream [Enumerable] # @param suppress_error [Boolean] # diff --git a/rbi/orb/errors.rbi b/rbi/orb/errors.rbi index 45922141..77400cdd 100644 --- a/rbi/orb/errors.rbi +++ b/rbi/orb/errors.rbi @@ -33,6 +33,9 @@ module Orb sig { returns(T.nilable(Integer)) } attr_accessor :status + sig { returns(T.nilable(T::Hash[String, String])) } + attr_accessor :headers + sig { returns(T.nilable(T.anything)) } attr_accessor :body @@ -41,6 +44,7 @@ module Orb params( url: URI::Generic, status: T.nilable(Integer), + headers: T.nilable(T::Hash[String, String]), body: T.nilable(Object), request: NilClass, response: NilClass, @@ -50,6 +54,7 @@ module Orb def self.new( url:, status: nil, + headers: nil, body: nil, request: nil, response: nil, @@ -70,6 +75,7 @@ module Orb params( url: URI::Generic, status: NilClass, + headers: T.nilable(T::Hash[String, String]), body: NilClass, request: NilClass, response: NilClass, @@ -79,6 +85,7 @@ module Orb def self.new( url:, status: nil, + headers: nil, body: nil, request: nil, response: nil, @@ -93,6 +100,7 @@ module Orb params( url: URI::Generic, status: NilClass, + headers: T.nilable(T::Hash[String, String]), body: NilClass, request: NilClass, response: NilClass, @@ -102,6 +110,7 @@ module Orb def self.new( url:, status: nil, + headers: nil, body: nil, request: nil, response: nil, @@ -116,13 +125,22 @@ module Orb params( url: URI::Generic, status: Integer, + headers: T.nilable(T::Hash[String, String]), body: T.nilable(Object), request: NilClass, response: NilClass, message: T.nilable(String) ).returns(T.attached_class) end - def self.for(url:, status:, body:, request:, response:, message: nil) + def self.for( + url:, + status:, + headers:, + body:, + request:, + response:, + message: nil + ) end sig { returns(Integer) } @@ -133,13 +151,22 @@ module Orb params( url: URI::Generic, status: Integer, + headers: T.nilable(T::Hash[String, String]), body: T.nilable(Object), request: NilClass, response: NilClass, message: T.nilable(String) ).returns(T.attached_class) end - def self.new(url:, status:, body:, request:, response:, message: nil) + def self.new( + url:, + status:, + headers:, + body:, + request:, + response:, + message: nil + ) end end diff --git a/rbi/orb/internal/transport/base_client.rbi b/rbi/orb/internal/transport/base_client.rbi index 9ed4da5a..31987a5e 100644 --- a/rbi/orb/internal/transport/base_client.rbi +++ b/rbi/orb/internal/transport/base_client.rbi @@ -84,10 +84,9 @@ module Orb # @api private sig do - params( - status: Integer, - headers: T.any(T::Hash[String, String], Net::HTTPHeader) - ).returns(T::Boolean) + params(status: Integer, headers: T::Hash[String, String]).returns( + T::Boolean + ) end def should_retry?(status, headers:) end @@ -97,7 +96,7 @@ module Orb params( request: Orb::Internal::Transport::BaseClient::RequestInput, status: Integer, - response_headers: T.any(T::Hash[String, String], Net::HTTPHeader) + response_headers: T::Hash[String, String] ).returns(Orb::Internal::Transport::BaseClient::RequestInput) end def follow_redirect(request, status:, response_headers:) diff --git a/rbi/orb/internal/type/base_page.rbi b/rbi/orb/internal/type/base_page.rbi index c2901134..63413234 100644 --- a/rbi/orb/internal/type/base_page.rbi +++ b/rbi/orb/internal/type/base_page.rbi @@ -30,7 +30,7 @@ module Orb params( client: Orb::Internal::Transport::BaseClient, req: Orb::Internal::Transport::BaseClient::RequestComponents, - headers: T.any(T::Hash[String, String], Net::HTTPHeader), + headers: T::Hash[String, String], page_data: T.anything ).void end diff --git a/rbi/orb/internal/util.rbi b/rbi/orb/internal/util.rbi index 7820ed36..28a4a75b 100644 --- a/rbi/orb/internal/util.rbi +++ b/rbi/orb/internal/util.rbi @@ -355,7 +355,7 @@ module Orb # Assumes each chunk in stream has `Encoding::BINARY`. sig do params( - headers: T.any(T::Hash[String, String], Net::HTTPHeader), + headers: T::Hash[String, String], stream: T::Enumerable[String], suppress_error: T::Boolean ).returns(T.anything) diff --git a/sig/orb/errors.rbs b/sig/orb/errors.rbs index 1631d86f..f92e25ae 100644 --- a/sig/orb/errors.rbs +++ b/sig/orb/errors.rbs @@ -21,11 +21,14 @@ module Orb attr_accessor status: Integer? + attr_accessor headers: ::Hash[String, String]? + attr_accessor body: top? def initialize: ( url: URI::Generic, ?status: Integer?, + ?headers: ::Hash[String, String]?, ?body: Object?, ?request: nil, ?response: nil, @@ -37,6 +40,7 @@ module Orb def initialize: ( url: URI::Generic, ?status: nil, + ?headers: ::Hash[String, String]?, ?body: nil, ?request: nil, ?response: nil, @@ -48,6 +52,7 @@ module Orb def initialize: ( url: URI::Generic, ?status: nil, + ?headers: ::Hash[String, String]?, ?body: nil, ?request: nil, ?response: nil, @@ -59,6 +64,7 @@ module Orb def self.for: ( url: URI::Generic, status: Integer, + headers: ::Hash[String, String]?, body: Object?, request: nil, response: nil, @@ -68,6 +74,7 @@ module Orb def initialize: ( url: URI::Generic, status: Integer, + headers: ::Hash[String, String]?, body: Object?, request: nil, response: nil, From c7d13317194914b406f35048eb198c715e3645da Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 19 Sep 2025 17:46:08 +0000 Subject: [PATCH 11/24] chore: do not install brew dependencies in ./scripts/bootstrap by default --- scripts/bootstrap | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/scripts/bootstrap b/scripts/bootstrap index cc31aa85..34878642 100755 --- a/scripts/bootstrap +++ b/scripts/bootstrap @@ -4,10 +4,18 @@ set -e cd -- "$(dirname -- "$0")/.." -if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "$SKIP_BREW" != "1" ]; then +if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "$SKIP_BREW" != "1" ] && [ -t 0 ]; then brew bundle check >/dev/null 2>&1 || { - echo "==> Installing Homebrew dependencies…" - brew bundle + echo -n "==> Install Homebrew dependencies? (y/N): " + read -r response + case "$response" in + [yY][eE][sS]|[yY]) + brew bundle + ;; + *) + ;; + esac + echo } fi From 343fa0b8a9a724b73f8abe5e9de34795f232e065 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 19 Sep 2025 22:31:16 +0000 Subject: [PATCH 12/24] feat(api): api update --- .stats.yml | 4 ++-- lib/orb/resources/beta.rb | 3 --- lib/orb/resources/beta/external_plan_id.rb | 3 --- rbi/orb/resources/beta.rbi | 3 --- rbi/orb/resources/beta/external_plan_id.rbi | 3 --- 5 files changed, 2 insertions(+), 14 deletions(-) diff --git a/.stats.yml b/.stats.yml index 232a1ab7..d522ff7b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 118 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-96a2f34503f9348f8d7ce82035fe09c917860d77e17bc6817e034b891902599a.yml -openapi_spec_hash: 3719dd8f962e6b0051a95015aecb0e53 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-42aa43f3893eef31a351e066bf0cf8c56da8c857ccbb45eb7dd58739ad43bd86.yml +openapi_spec_hash: e6b8c1e707036539d88a7b79af864a49 config_hash: 1f73a949b649ecfe6ec68ba1bb459dc2 diff --git a/lib/orb/resources/beta.rb b/lib/orb/resources/beta.rb index 0dcffdb1..862d68fa 100644 --- a/lib/orb/resources/beta.rb +++ b/lib/orb/resources/beta.rb @@ -6,9 +6,6 @@ class Beta # @return [Orb::Resources::Beta::ExternalPlanID] attr_reader :external_plan_id - # This API endpoint is in beta and its interface may change. It is recommended for - # use only in test mode. - # # This endpoint allows the creation of a new plan version for an existing plan. # # @overload create_plan_version(plan_id, version:, add_adjustments: nil, add_prices: nil, remove_adjustments: nil, remove_prices: nil, replace_adjustments: nil, replace_prices: nil, set_as_default: nil, request_options: {}) diff --git a/lib/orb/resources/beta/external_plan_id.rb b/lib/orb/resources/beta/external_plan_id.rb index 4a609681..5a0a6cb1 100644 --- a/lib/orb/resources/beta/external_plan_id.rb +++ b/lib/orb/resources/beta/external_plan_id.rb @@ -4,9 +4,6 @@ module Orb module Resources class Beta class ExternalPlanID - # This API endpoint is in beta and its interface may change. It is recommended for - # use only in test mode. - # # This endpoint allows the creation of a new plan version for an existing plan. # # @overload create_plan_version(external_plan_id, version:, add_adjustments: nil, add_prices: nil, remove_adjustments: nil, remove_prices: nil, replace_adjustments: nil, replace_prices: nil, set_as_default: nil, request_options: {}) diff --git a/rbi/orb/resources/beta.rbi b/rbi/orb/resources/beta.rbi index cf606026..ce2a236b 100644 --- a/rbi/orb/resources/beta.rbi +++ b/rbi/orb/resources/beta.rbi @@ -6,9 +6,6 @@ module Orb sig { returns(Orb::Resources::Beta::ExternalPlanID) } attr_reader :external_plan_id - # This API endpoint is in beta and its interface may change. It is recommended for - # use only in test mode. - # # This endpoint allows the creation of a new plan version for an existing plan. sig do params( diff --git a/rbi/orb/resources/beta/external_plan_id.rbi b/rbi/orb/resources/beta/external_plan_id.rbi index 46b536ac..d40c459c 100644 --- a/rbi/orb/resources/beta/external_plan_id.rbi +++ b/rbi/orb/resources/beta/external_plan_id.rbi @@ -4,9 +4,6 @@ module Orb module Resources class Beta class ExternalPlanID - # This API endpoint is in beta and its interface may change. It is recommended for - # use only in test mode. - # # This endpoint allows the creation of a new plan version for an existing plan. sig do params( From 95389713d7c3b97ec3cf0963b86211d5fba72fe4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 25 Sep 2025 21:46:00 +0000 Subject: [PATCH 13/24] perf: faster code formatting --- Rakefile | 18 ++++++++++-------- scripts/fast-format | 18 ++++++++++++++++++ 2 files changed, 28 insertions(+), 8 deletions(-) create mode 100755 scripts/fast-format diff --git a/Rakefile b/Rakefile index 4da7115a..9d412c41 100644 --- a/Rakefile +++ b/Rakefile @@ -12,6 +12,8 @@ tapioca = "sorbet/tapioca" examples = "examples" ignore_file = ".ignore" +FILES_ENV = "FORMAT_FILE" + CLEAN.push(*%w[.idea/ .ruby-lsp/ .yardoc/ doc/], *FileList["*.gem"], ignore_file) CLOBBER.push(*%w[sorbet/rbi/annotations/ sorbet/rbi/gems/], tapioca) @@ -55,21 +57,21 @@ end desc("Format `*.rb`") multitask(:"format:rb") do # while `syntax_tree` is much faster than `rubocop`, `rubocop` is the only formatter with full syntax support - find = %w[find ./lib ./test ./examples -type f -and -name *.rb -print0] + files = ENV.key?(FILES_ENV) ? %w[sed -E -n -e /\.rb$/p --] << ENV.fetch(FILES_ENV) : %w[find ./lib ./test ./examples -type f -and -name *.rb -print0] fmt = xargs + %w[rubocop --fail-level F --autocorrect --format simple --] - sh("#{find.shelljoin} | #{fmt.shelljoin}") + sh("#{files.shelljoin} | #{fmt.shelljoin}") end desc("Format `*.rbi`") multitask(:"format:rbi") do - find = %w[find ./rbi -type f -and -name *.rbi -print0] + files = ENV.key?(FILES_ENV) ? %w[sed -E -n -e /\.rbi$/p --] << ENV.fetch(FILES_ENV) : %w[find ./rbi -type f -and -name *.rbi -print0] fmt = xargs + %w[stree write --] - sh(ruby_opt, "#{find.shelljoin} | #{fmt.shelljoin}") + sh(ruby_opt, "#{files.shelljoin} | #{fmt.shelljoin}") end desc("Format `*.rbs`") multitask(:"format:rbs") do - find = %w[find ./sig -type f -name *.rbs -print0] + files = ENV.key?(FILES_ENV) ? %w[sed -E -n -e /\.rbs$/p --] << ENV.fetch(FILES_ENV) : %w[find ./sig -type f -name *.rbs -print0] inplace = /darwin|bsd/ =~ RUBY_PLATFORM ? ["-i", ""] : %w[-i] uuid = SecureRandom.uuid @@ -98,13 +100,13 @@ multitask(:"format:rbs") do success = false # transform class aliases to type aliases, which syntax tree has no trouble with - sh("#{find.shelljoin} | #{pre.shelljoin}") + sh("#{files.shelljoin} | #{pre.shelljoin}") # run syntax tree to format `*.rbs` files - sh(ruby_opt, "#{find.shelljoin} | #{fmt.shelljoin}") do + sh(ruby_opt, "#{files.shelljoin} | #{fmt.shelljoin}") do success = _1 end # transform type aliases back to class aliases - sh("#{find.shelljoin} | #{pst.shelljoin}") + sh("#{files.shelljoin} | #{pst.shelljoin}") # always run post-processing to remove comment marker fail unless success diff --git a/scripts/fast-format b/scripts/fast-format new file mode 100755 index 00000000..7f2f820e --- /dev/null +++ b/scripts/fast-format @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +set -euo pipefail + +echo "Script started with $# arguments" +echo "Arguments: $*" +echo "Script location: $(dirname "$0")" + +cd "$(dirname "$0")/.." +echo "Changed to directory: $(pwd)" + +if [ $# -eq 0 ]; then + echo "Usage: $0 [additional-formatter-args...]" + echo "The file should contain one file path per line" + exit 1 +fi + +FORMAT_FILE="$1" exec -- bundle exec rake format From 58f092f32214ae8deb17db5e002f10fafd60378e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 26 Sep 2025 14:25:38 +0000 Subject: [PATCH 14/24] fix(internal): use null byte as file separator in the fast formatting script --- Rakefile | 6 +++--- scripts/fast-format | 9 ++++++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Rakefile b/Rakefile index 9d412c41..f3a49789 100644 --- a/Rakefile +++ b/Rakefile @@ -57,21 +57,21 @@ end desc("Format `*.rb`") multitask(:"format:rb") do # while `syntax_tree` is much faster than `rubocop`, `rubocop` is the only formatter with full syntax support - files = ENV.key?(FILES_ENV) ? %w[sed -E -n -e /\.rb$/p --] << ENV.fetch(FILES_ENV) : %w[find ./lib ./test ./examples -type f -and -name *.rb -print0] + files = ENV.key?(FILES_ENV) ? %w[sed -E -z -n -e /\.rb$/p --] << ENV.fetch(FILES_ENV) : %w[find ./lib ./test ./examples -type f -and -name *.rb -print0] fmt = xargs + %w[rubocop --fail-level F --autocorrect --format simple --] sh("#{files.shelljoin} | #{fmt.shelljoin}") end desc("Format `*.rbi`") multitask(:"format:rbi") do - files = ENV.key?(FILES_ENV) ? %w[sed -E -n -e /\.rbi$/p --] << ENV.fetch(FILES_ENV) : %w[find ./rbi -type f -and -name *.rbi -print0] + files = ENV.key?(FILES_ENV) ? %w[sed -E -z -n -e /\.rbi$/p --] << ENV.fetch(FILES_ENV) : %w[find ./rbi -type f -and -name *.rbi -print0] fmt = xargs + %w[stree write --] sh(ruby_opt, "#{files.shelljoin} | #{fmt.shelljoin}") end desc("Format `*.rbs`") multitask(:"format:rbs") do - files = ENV.key?(FILES_ENV) ? %w[sed -E -n -e /\.rbs$/p --] << ENV.fetch(FILES_ENV) : %w[find ./sig -type f -name *.rbs -print0] + files = ENV.key?(FILES_ENV) ? %w[sed -E -z -n -e /\.rbs$/p --] << ENV.fetch(FILES_ENV) : %w[find ./sig -type f -name *.rbs -print0] inplace = /darwin|bsd/ =~ RUBY_PLATFORM ? ["-i", ""] : %w[-i] uuid = SecureRandom.uuid diff --git a/scripts/fast-format b/scripts/fast-format index 7f2f820e..8df0aa26 100755 --- a/scripts/fast-format +++ b/scripts/fast-format @@ -6,8 +6,8 @@ echo "Script started with $# arguments" echo "Arguments: $*" echo "Script location: $(dirname "$0")" -cd "$(dirname "$0")/.." -echo "Changed to directory: $(pwd)" +cd -- "$(dirname "$0")/.." +echo "Changed to directory: $PWD" if [ $# -eq 0 ]; then echo "Usage: $0 [additional-formatter-args...]" @@ -15,4 +15,7 @@ if [ $# -eq 0 ]; then exit 1 fi -FORMAT_FILE="$1" exec -- bundle exec rake format +FILE="$(mktemp)" +tr -- '\n' '\0' < "$1" > "$FILE" + +exec -- bundle exec rake format FORMAT_FILE="$FILE" From 984b6ad403302ab97275136e145dce322ce82e9b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 26 Sep 2025 15:39:24 +0000 Subject: [PATCH 15/24] fix: shorten multipart boundary sep to less than RFC specificed max length --- lib/orb/internal/util.rb | 3 ++- test/orb/internal/util_test.rb | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/lib/orb/internal/util.rb b/lib/orb/internal/util.rb index 4a1803c9..f4a0e2ec 100644 --- a/lib/orb/internal/util.rb +++ b/lib/orb/internal/util.rb @@ -566,7 +566,8 @@ class << self # # @return [Array(String, Enumerable)] private def encode_multipart_streaming(body) - boundary = SecureRandom.urlsafe_base64(60) + # RFC 1521 Section 7.2.1 says we should have 70 char maximum for boundary length + boundary = SecureRandom.urlsafe_base64(46) closing = [] strio = writable_enum do |y| diff --git a/test/orb/internal/util_test.rb b/test/orb/internal/util_test.rb index 0db46f6f..548537d9 100644 --- a/test/orb/internal/util_test.rb +++ b/test/orb/internal/util_test.rb @@ -213,6 +213,18 @@ def env_table end end + def test_encoding_length + headers, = Orb::Internal::Util.encode_content( + {"content-type" => "multipart/form-data"}, + Pathname(__FILE__) + ) + assert_pattern do + headers.fetch("content-type") => /boundary=(.+)$/ + end + field, = Regexp.last_match.captures + assert(field.length < 70 - 6) + end + def test_file_encode file = Pathname(__FILE__) headers = {"content-type" => "multipart/form-data"} From 6566897b0797bdbad69e21ed05d97f4ce1509f07 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 26 Sep 2025 20:39:35 +0000 Subject: [PATCH 16/24] chore: allow fast-format to use bsd sed as well --- Rakefile | 26 ++++++++++++++++++-------- scripts/fast-format | 5 +---- 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/Rakefile b/Rakefile index f3a49789..f874b088 100644 --- a/Rakefile +++ b/Rakefile @@ -40,6 +40,14 @@ end xargs = %w[xargs --no-run-if-empty --null --max-procs=0 --max-args=300 --] ruby_opt = {"RUBYOPT" => [ENV["RUBYOPT"], "--encoding=UTF-8"].compact.join(" ")} +filtered = ->(ext, dirs) do + if ENV.key?(FILES_ENV) + %w[sed -E -n -e] << "/\\.#{ext}$/p" << "--" << ENV.fetch(FILES_ENV) + else + (%w[find] + dirs + %w[-type f -and -name]) << "*.#{ext}" << "-print0" + end +end + desc("Lint `*.rb(i)`") multitask(:"lint:rubocop") do find = %w[find ./lib ./test ./rbi ./examples -type f -and ( -name *.rb -or -name *.rbi ) -print0] @@ -54,24 +62,26 @@ multitask(:"lint:rubocop") do sh("#{find.shelljoin} | #{lint.shelljoin}") end +norm_lines = %w[tr -- \n \0].shelljoin + desc("Format `*.rb`") multitask(:"format:rb") do # while `syntax_tree` is much faster than `rubocop`, `rubocop` is the only formatter with full syntax support - files = ENV.key?(FILES_ENV) ? %w[sed -E -z -n -e /\.rb$/p --] << ENV.fetch(FILES_ENV) : %w[find ./lib ./test ./examples -type f -and -name *.rb -print0] + files = filtered["rb", %w[./lib ./test ./examples]] fmt = xargs + %w[rubocop --fail-level F --autocorrect --format simple --] - sh("#{files.shelljoin} | #{fmt.shelljoin}") + sh("#{files.shelljoin} | #{norm_lines} | #{fmt.shelljoin}") end desc("Format `*.rbi`") multitask(:"format:rbi") do - files = ENV.key?(FILES_ENV) ? %w[sed -E -z -n -e /\.rbi$/p --] << ENV.fetch(FILES_ENV) : %w[find ./rbi -type f -and -name *.rbi -print0] + files = filtered["rbi", %w[./rbi]] fmt = xargs + %w[stree write --] - sh(ruby_opt, "#{files.shelljoin} | #{fmt.shelljoin}") + sh(ruby_opt, "#{files.shelljoin} | #{norm_lines} | #{fmt.shelljoin}") end desc("Format `*.rbs`") multitask(:"format:rbs") do - files = ENV.key?(FILES_ENV) ? %w[sed -E -z -n -e /\.rbs$/p --] << ENV.fetch(FILES_ENV) : %w[find ./sig -type f -name *.rbs -print0] + files = filtered["rbs", %w[./sig]] inplace = /darwin|bsd/ =~ RUBY_PLATFORM ? ["-i", ""] : %w[-i] uuid = SecureRandom.uuid @@ -100,13 +110,13 @@ multitask(:"format:rbs") do success = false # transform class aliases to type aliases, which syntax tree has no trouble with - sh("#{files.shelljoin} | #{pre.shelljoin}") + sh("#{files.shelljoin} | #{norm_lines} | #{pre.shelljoin}") # run syntax tree to format `*.rbs` files - sh(ruby_opt, "#{files.shelljoin} | #{fmt.shelljoin}") do + sh(ruby_opt, "#{files.shelljoin} | #{norm_lines} | #{fmt.shelljoin}") do success = _1 end # transform type aliases back to class aliases - sh("#{files.shelljoin} | #{pst.shelljoin}") + sh("#{files.shelljoin} | #{norm_lines} | #{pst.shelljoin}") # always run post-processing to remove comment marker fail unless success diff --git a/scripts/fast-format b/scripts/fast-format index 8df0aa26..6d5973fb 100755 --- a/scripts/fast-format +++ b/scripts/fast-format @@ -15,7 +15,4 @@ if [ $# -eq 0 ]; then exit 1 fi -FILE="$(mktemp)" -tr -- '\n' '\0' < "$1" > "$FILE" - -exec -- bundle exec rake format FORMAT_FILE="$FILE" +exec -- bundle exec rake format FORMAT_FILE="$1" From aefe58f92b1296aa30172ce8206f84723a3a326c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 29 Sep 2025 17:27:46 +0000 Subject: [PATCH 17/24] fix: always send `filename=...` for multipart requests where a file is expected --- lib/orb/file_part.rb | 17 ++++++++++------- lib/orb/internal/type/file_input.rb | 11 +++++++---- rbi/orb/file_part.rbi | 2 +- sig/orb/file_part.rbs | 2 +- test/orb/internal/util_test.rb | 29 ++++++++++++++++++++--------- 5 files changed, 39 insertions(+), 22 deletions(-) diff --git a/lib/orb/file_part.rb b/lib/orb/file_part.rb index e96e727a..e2b9f1a2 100644 --- a/lib/orb/file_part.rb +++ b/lib/orb/file_part.rb @@ -38,18 +38,21 @@ def to_json(*a) = read.to_json(*a) def to_yaml(*a) = read.to_yaml(*a) # @param content [Pathname, StringIO, IO, String] - # @param filename [String, nil] + # @param filename [Pathname, String, nil] # @param content_type [String, nil] def initialize(content, filename: nil, content_type: nil) - @content = content + @content_type = content_type @filename = - case content - in Pathname - filename.nil? ? content.basename.to_path : ::File.basename(filename) + case [filename, (@content = content)] + in [String | Pathname, _] + ::File.basename(filename) + in [nil, Pathname] + content.basename.to_path + in [nil, IO] + content.to_path else - filename.nil? ? nil : ::File.basename(filename) + filename end - @content_type = content_type end end end diff --git a/lib/orb/internal/type/file_input.rb b/lib/orb/internal/type/file_input.rb index f6742b3b..db81fd24 100644 --- a/lib/orb/internal/type/file_input.rb +++ b/lib/orb/internal/type/file_input.rb @@ -81,17 +81,20 @@ def coerce(value, state:) # # @return [Pathname, StringIO, IO, String, Object] def dump(value, state:) - # rubocop:disable Lint/DuplicateBranch case value + in StringIO | String + # https://datatracker.ietf.org/doc/html/rfc7578#section-4.2 + # while not required, a filename is recommended, and in practice many servers do expect this + Orb::FilePart.new(value, filename: "upload") in IO state[:can_retry] = false + value.to_path.nil? ? Orb::FilePart.new(value, filename: "upload") : value in Orb::FilePart if value.content.is_a?(IO) state[:can_retry] = false + value else + value end - # rubocop:enable Lint/DuplicateBranch - - value end # @api private diff --git a/rbi/orb/file_part.rbi b/rbi/orb/file_part.rbi index 9f9485dd..f3f79d99 100644 --- a/rbi/orb/file_part.rbi +++ b/rbi/orb/file_part.rbi @@ -27,7 +27,7 @@ module Orb sig do params( content: T.any(Pathname, StringIO, IO, String), - filename: T.nilable(String), + filename: T.nilable(T.any(Pathname, String)), content_type: T.nilable(String) ).returns(T.attached_class) end diff --git a/sig/orb/file_part.rbs b/sig/orb/file_part.rbs index e151025e..e1747cb0 100644 --- a/sig/orb/file_part.rbs +++ b/sig/orb/file_part.rbs @@ -14,7 +14,7 @@ module Orb def initialize: ( Pathname | StringIO | IO | String content, - ?filename: String?, + ?filename: (Pathname | String)?, ?content_type: String? ) -> void end diff --git a/test/orb/internal/util_test.rb b/test/orb/internal/util_test.rb index 548537d9..bbacc6c2 100644 --- a/test/orb/internal/util_test.rb +++ b/test/orb/internal/util_test.rb @@ -227,20 +227,24 @@ def test_encoding_length def test_file_encode file = Pathname(__FILE__) + fileinput = Orb::Internal::Type::Converter.dump(Orb::Internal::Type::FileInput, "abc") headers = {"content-type" => "multipart/form-data"} cases = { - "abc" => "abc", - StringIO.new("abc") => "abc", - Orb::FilePart.new("abc") => "abc", - Orb::FilePart.new(StringIO.new("abc")) => "abc", - file => /^class Orb/, - Orb::FilePart.new(file) => /^class Orb/ + "abc" => ["", "abc"], + StringIO.new("abc") => ["", "abc"], + fileinput => %w[upload abc], + Orb::FilePart.new(StringIO.new("abc")) => ["", "abc"], + file => [file.basename.to_path, /^class Orb/], + Orb::FilePart.new(file, filename: "d o g") => ["d%20o%20g", /^class Orb/] } - cases.each do |body, val| + cases.each do |body, testcase| + filename, val = testcase encoded = Orb::Internal::Util.encode_content(headers, body) cgi = FakeCGI.new(*encoded) + io = cgi[""] assert_pattern do - cgi[""].read => ^val + io.original_filename => ^filename + io.read => ^val end end end @@ -261,7 +265,14 @@ def test_hash_encode cgi = FakeCGI.new(*encoded) testcase.each do |key, val| assert_pattern do - cgi[key] => ^val + parsed = + case (p = cgi[key]) + in StringIO + p.read + else + p + end + parsed => ^val end end end From 83a6ffda9613b6571029f01235d673d179294c94 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 29 Sep 2025 18:31:23 +0000 Subject: [PATCH 18/24] feat(api): api update --- .stats.yml | 4 ++-- .../subscription_change_apply_params.rb | 19 ++++++++++++++++--- lib/orb/resources/subscription_changes.rb | 9 +++++++-- .../subscription_change_apply_params.rbi | 16 ++++++++++++++-- rbi/orb/resources/subscription_changes.rbi | 7 ++++++- .../subscription_change_apply_params.rbs | 10 +++++++++- sig/orb/resources/subscription_changes.rbs | 1 + 7 files changed, 55 insertions(+), 11 deletions(-) diff --git a/.stats.yml b/.stats.yml index d522ff7b..b0dfd8e3 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 118 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-42aa43f3893eef31a351e066bf0cf8c56da8c857ccbb45eb7dd58739ad43bd86.yml -openapi_spec_hash: e6b8c1e707036539d88a7b79af864a49 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-c075f748a7de8ecdccf11a8f2374682b0efd84f1318147274a838bf2fdd73b58.yml +openapi_spec_hash: ae918b8f348f1b7d3252a59dac36c453 config_hash: 1f73a949b649ecfe6ec68ba1bb459dc2 diff --git a/lib/orb/models/subscription_change_apply_params.rb b/lib/orb/models/subscription_change_apply_params.rb index 8a2c1c21..5f35fe41 100644 --- a/lib/orb/models/subscription_change_apply_params.rb +++ b/lib/orb/models/subscription_change_apply_params.rb @@ -13,16 +13,29 @@ class SubscriptionChangeApplyParams < Orb::Internal::Type::BaseModel # @return [String, nil] optional :description, String, nil?: true + # @!attribute mark_as_paid + # Mark all pending invoices that are payable as paid. If amount is also provided, + # mark as paid and credit the difference to the customer's balance. + # + # @return [Boolean, nil] + optional :mark_as_paid, Orb::Internal::Type::Boolean, nil?: true + # @!attribute previously_collected_amount - # Amount already collected to apply to the customer's balance. + # Amount already collected to apply to the customer's balance. If mark_as_paid is + # also provided, credit the difference to the customer's balance. # # @return [String, nil] optional :previously_collected_amount, String, nil?: true - # @!method initialize(description: nil, previously_collected_amount: nil, request_options: {}) + # @!method initialize(description: nil, mark_as_paid: nil, previously_collected_amount: nil, request_options: {}) + # Some parameter documentations has been truncated, see + # {Orb::Models::SubscriptionChangeApplyParams} for more details. + # # @param description [String, nil] Description to apply to the balance transaction representing this credit. # - # @param previously_collected_amount [String, nil] Amount already collected to apply to the customer's balance. + # @param mark_as_paid [Boolean, nil] Mark all pending invoices that are payable as paid. If amount is also provided, + # + # @param previously_collected_amount [String, nil] Amount already collected to apply to the customer's balance. If mark_as_paid is # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] end diff --git a/lib/orb/resources/subscription_changes.rb b/lib/orb/resources/subscription_changes.rb index 3fa6416a..45d1e756 100644 --- a/lib/orb/resources/subscription_changes.rb +++ b/lib/orb/resources/subscription_changes.rb @@ -30,17 +30,22 @@ def retrieve(subscription_change_id, params = {}) ) end + # Some parameter documentations has been truncated, see + # {Orb::Models::SubscriptionChangeApplyParams} for more details. + # # Apply a subscription change to perform the intended action. If a positive amount # is passed with a request to this endpoint, any eligible invoices that were # created will be issued immediately if they only contain in-advance fees. # - # @overload apply(subscription_change_id, description: nil, previously_collected_amount: nil, request_options: {}) + # @overload apply(subscription_change_id, description: nil, mark_as_paid: nil, previously_collected_amount: nil, request_options: {}) # # @param subscription_change_id [String] # # @param description [String, nil] Description to apply to the balance transaction representing this credit. # - # @param previously_collected_amount [String, nil] Amount already collected to apply to the customer's balance. + # @param mark_as_paid [Boolean, nil] Mark all pending invoices that are payable as paid. If amount is also provided, + # + # @param previously_collected_amount [String, nil] Amount already collected to apply to the customer's balance. If mark_as_paid is # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] # diff --git a/rbi/orb/models/subscription_change_apply_params.rbi b/rbi/orb/models/subscription_change_apply_params.rbi index b523cd86..75829791 100644 --- a/rbi/orb/models/subscription_change_apply_params.rbi +++ b/rbi/orb/models/subscription_change_apply_params.rbi @@ -15,13 +15,20 @@ module Orb sig { returns(T.nilable(String)) } attr_accessor :description - # Amount already collected to apply to the customer's balance. + # Mark all pending invoices that are payable as paid. If amount is also provided, + # mark as paid and credit the difference to the customer's balance. + sig { returns(T.nilable(T::Boolean)) } + attr_accessor :mark_as_paid + + # Amount already collected to apply to the customer's balance. If mark_as_paid is + # also provided, credit the difference to the customer's balance. sig { returns(T.nilable(String)) } attr_accessor :previously_collected_amount sig do params( description: T.nilable(String), + mark_as_paid: T.nilable(T::Boolean), previously_collected_amount: T.nilable(String), request_options: Orb::RequestOptions::OrHash ).returns(T.attached_class) @@ -29,7 +36,11 @@ module Orb def self.new( # Description to apply to the balance transaction representing this credit. description: nil, - # Amount already collected to apply to the customer's balance. + # Mark all pending invoices that are payable as paid. If amount is also provided, + # mark as paid and credit the difference to the customer's balance. + mark_as_paid: nil, + # Amount already collected to apply to the customer's balance. If mark_as_paid is + # also provided, credit the difference to the customer's balance. previously_collected_amount: nil, request_options: {} ) @@ -39,6 +50,7 @@ module Orb override.returns( { description: T.nilable(String), + mark_as_paid: T.nilable(T::Boolean), previously_collected_amount: T.nilable(String), request_options: Orb::RequestOptions } diff --git a/rbi/orb/resources/subscription_changes.rbi b/rbi/orb/resources/subscription_changes.rbi index 5f04e8bb..c0b3afd2 100644 --- a/rbi/orb/resources/subscription_changes.rbi +++ b/rbi/orb/resources/subscription_changes.rbi @@ -28,6 +28,7 @@ module Orb params( subscription_change_id: String, description: T.nilable(String), + mark_as_paid: T.nilable(T::Boolean), previously_collected_amount: T.nilable(String), request_options: Orb::RequestOptions::OrHash ).returns(Orb::Models::SubscriptionChangeApplyResponse) @@ -36,7 +37,11 @@ module Orb subscription_change_id, # Description to apply to the balance transaction representing this credit. description: nil, - # Amount already collected to apply to the customer's balance. + # Mark all pending invoices that are payable as paid. If amount is also provided, + # mark as paid and credit the difference to the customer's balance. + mark_as_paid: nil, + # Amount already collected to apply to the customer's balance. If mark_as_paid is + # also provided, credit the difference to the customer's balance. previously_collected_amount: nil, request_options: {} ) diff --git a/sig/orb/models/subscription_change_apply_params.rbs b/sig/orb/models/subscription_change_apply_params.rbs index 2391cf0c..10559337 100644 --- a/sig/orb/models/subscription_change_apply_params.rbs +++ b/sig/orb/models/subscription_change_apply_params.rbs @@ -1,7 +1,11 @@ module Orb module Models type subscription_change_apply_params = - { description: String?, previously_collected_amount: String? } + { + description: String?, + mark_as_paid: bool?, + previously_collected_amount: String? + } & Orb::Internal::Type::request_parameters class SubscriptionChangeApplyParams < Orb::Internal::Type::BaseModel @@ -10,16 +14,20 @@ module Orb attr_accessor description: String? + attr_accessor mark_as_paid: bool? + attr_accessor previously_collected_amount: String? def initialize: ( ?description: String?, + ?mark_as_paid: bool?, ?previously_collected_amount: String?, ?request_options: Orb::request_opts ) -> void def to_hash: -> { description: String?, + mark_as_paid: bool?, previously_collected_amount: String?, request_options: Orb::RequestOptions } diff --git a/sig/orb/resources/subscription_changes.rbs b/sig/orb/resources/subscription_changes.rbs index 7c13d48a..d9845576 100644 --- a/sig/orb/resources/subscription_changes.rbs +++ b/sig/orb/resources/subscription_changes.rbs @@ -9,6 +9,7 @@ module Orb def apply: ( String subscription_change_id, ?description: String?, + ?mark_as_paid: bool?, ?previously_collected_amount: String?, ?request_options: Orb::request_opts ) -> Orb::Models::SubscriptionChangeApplyResponse From b9d53189e8678e7ffbdbf6d487b0e7160a0337f8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 29 Sep 2025 21:31:14 +0000 Subject: [PATCH 19/24] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index b0dfd8e3..b104a7d7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 118 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-c075f748a7de8ecdccf11a8f2374682b0efd84f1318147274a838bf2fdd73b58.yml -openapi_spec_hash: ae918b8f348f1b7d3252a59dac36c453 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-ab79d1df8310a4fc3089fcf814f9fb00c7341acc254aafe34479af0f871d244b.yml +openapi_spec_hash: 9416d6718ca4eeb3c20790187348b5b0 config_hash: 1f73a949b649ecfe6ec68ba1bb459dc2 From a4faf55a381bcdaae01f0a22cd8922038af38f69 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 30 Sep 2025 17:13:30 +0000 Subject: [PATCH 20/24] fix: coroutine leaks from connection pool --- .../transport/pooled_net_requester.rb | 17 ++++++------- test/orb/internal/util_test.rb | 25 +++++++++++++++++++ 2 files changed, 32 insertions(+), 10 deletions(-) diff --git a/lib/orb/internal/transport/pooled_net_requester.rb b/lib/orb/internal/transport/pooled_net_requester.rb index d18f8262..8016381f 100644 --- a/lib/orb/internal/transport/pooled_net_requester.rb +++ b/lib/orb/internal/transport/pooled_net_requester.rb @@ -134,9 +134,9 @@ def execute(request) # rubocop:disable Metrics/BlockLength enum = Enumerator.new do |y| - with_pool(url, deadline: deadline) do |conn| - next if finished + next if finished + with_pool(url, deadline: deadline) do |conn| req, closing = self.class.build_request(request) do self.class.calibrate_socket_timeout(conn, deadline) end @@ -149,7 +149,7 @@ def execute(request) self.class.calibrate_socket_timeout(conn, deadline) conn.request(req) do |rsp| - y << [conn, req, rsp] + y << [req, rsp] break if finished rsp.read_body do |bytes| @@ -160,6 +160,8 @@ def execute(request) end eof = true end + ensure + conn.finish if !eof && conn&.started? end rescue Timeout::Error raise Orb::Errors::APITimeoutError.new(url: url, request: req) @@ -168,16 +170,11 @@ def execute(request) end # rubocop:enable Metrics/BlockLength - conn, _, response = enum.next + _, response = enum.next body = Orb::Internal::Util.fused_enum(enum, external: true) do finished = true - tap do - enum.next - rescue StopIteration - nil - end + loop { enum.next } ensure - conn.finish if !eof && conn&.started? closing&.call end [Integer(response.code), response, body] diff --git a/test/orb/internal/util_test.rb b/test/orb/internal/util_test.rb index bbacc6c2..55f52599 100644 --- a/test/orb/internal/util_test.rb +++ b/test/orb/internal/util_test.rb @@ -310,6 +310,31 @@ def test_copy_write end class Orb::Test::UtilFusedEnumTest < Minitest::Test + def test_rewind_closing + touched = false + once = 0 + steps = 0 + enum = Enumerator.new do |y| + next if touched + + 10.times do + steps = _1 + y << _1 + end + ensure + once = once.succ + end + + fused = Orb::Internal::Util.fused_enum(enum, external: true) do + touched = true + loop { enum.next } + end + Orb::Internal::Util.close_fused!(fused) + + assert_equal(1, once) + assert_equal(0, steps) + end + def test_closing arr = [1, 2, 3] once = 0 From d1fc414cb976afe6bb19dc284dceb7ed7bfa38c2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 30 Sep 2025 22:31:25 +0000 Subject: [PATCH 21/24] feat(api): api update --- .stats.yml | 4 ++-- lib/orb/models/subscription_list_params.rb | 16 +++++++++++++++- lib/orb/resources/subscriptions.rb | 6 +++++- rbi/orb/models/subscription_list_params.rbi | 12 ++++++++++++ rbi/orb/resources/subscriptions.rbi | 4 ++++ sig/orb/models/subscription_list_params.rbs | 10 ++++++++++ sig/orb/resources/subscriptions.rbs | 2 ++ 7 files changed, 50 insertions(+), 4 deletions(-) diff --git a/.stats.yml b/.stats.yml index b104a7d7..4975db47 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 118 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-ab79d1df8310a4fc3089fcf814f9fb00c7341acc254aafe34479af0f871d244b.yml -openapi_spec_hash: 9416d6718ca4eeb3c20790187348b5b0 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-b6ec9a6bf40b74575d917ab145b2413bc61dcd6989bb9d1aa41624bf3437599e.yml +openapi_spec_hash: 53cf9363c3bd9649e0af5f713abdcba7 config_hash: 1f73a949b649ecfe6ec68ba1bb459dc2 diff --git a/lib/orb/models/subscription_list_params.rb b/lib/orb/models/subscription_list_params.rb index 7c4b8565..55e1c4da 100644 --- a/lib/orb/models/subscription_list_params.rb +++ b/lib/orb/models/subscription_list_params.rb @@ -44,18 +44,28 @@ class SubscriptionListParams < Orb::Internal::Type::BaseModel # @return [Array, nil] optional :external_customer_id, Orb::Internal::Type::ArrayOf[String], nil?: true + # @!attribute external_plan_id + # + # @return [String, nil] + optional :external_plan_id, String, nil?: true + # @!attribute limit # The number of items to fetch. Defaults to 20. # # @return [Integer, nil] optional :limit, Integer + # @!attribute plan_id + # + # @return [String, nil] + optional :plan_id, String, nil?: true + # @!attribute status # # @return [Symbol, Orb::Models::SubscriptionListParams::Status, nil] optional :status, enum: -> { Orb::SubscriptionListParams::Status }, nil?: true - # @!method initialize(created_at_gt: nil, created_at_gte: nil, created_at_lt: nil, created_at_lte: nil, cursor: nil, customer_id: nil, external_customer_id: nil, limit: nil, status: nil, request_options: {}) + # @!method initialize(created_at_gt: nil, created_at_gte: nil, created_at_lt: nil, created_at_lte: nil, cursor: nil, customer_id: nil, external_customer_id: nil, external_plan_id: nil, limit: nil, plan_id: nil, status: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Orb::Models::SubscriptionListParams} for more details. # @@ -73,8 +83,12 @@ class SubscriptionListParams < Orb::Internal::Type::BaseModel # # @param external_customer_id [Array, nil] # + # @param external_plan_id [String, nil] + # # @param limit [Integer] The number of items to fetch. Defaults to 20. # + # @param plan_id [String, nil] + # # @param status [Symbol, Orb::Models::SubscriptionListParams::Status, nil] # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}] diff --git a/lib/orb/resources/subscriptions.rb b/lib/orb/resources/subscriptions.rb index b7ae55a9..4cbe12e9 100644 --- a/lib/orb/resources/subscriptions.rb +++ b/lib/orb/resources/subscriptions.rb @@ -397,7 +397,7 @@ def update(subscription_id, params = {}) # for multiple customers, use the customer_id[] or external_customer_id[] query # parameters. # - # @overload list(created_at_gt: nil, created_at_gte: nil, created_at_lt: nil, created_at_lte: nil, cursor: nil, customer_id: nil, external_customer_id: nil, limit: nil, status: nil, request_options: {}) + # @overload list(created_at_gt: nil, created_at_gte: nil, created_at_lt: nil, created_at_lte: nil, cursor: nil, customer_id: nil, external_customer_id: nil, external_plan_id: nil, limit: nil, plan_id: nil, status: nil, request_options: {}) # # @param created_at_gt [Time, nil] # @@ -413,8 +413,12 @@ def update(subscription_id, params = {}) # # @param external_customer_id [Array, nil] # + # @param external_plan_id [String, nil] + # # @param limit [Integer] The number of items to fetch. Defaults to 20. # + # @param plan_id [String, nil] + # # @param status [Symbol, Orb::Models::SubscriptionListParams::Status, nil] # # @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil] diff --git a/rbi/orb/models/subscription_list_params.rbi b/rbi/orb/models/subscription_list_params.rbi index 00f88590..674a2322 100644 --- a/rbi/orb/models/subscription_list_params.rbi +++ b/rbi/orb/models/subscription_list_params.rbi @@ -34,6 +34,9 @@ module Orb sig { returns(T.nilable(T::Array[String])) } attr_accessor :external_customer_id + sig { returns(T.nilable(String)) } + attr_accessor :external_plan_id + # The number of items to fetch. Defaults to 20. sig { returns(T.nilable(Integer)) } attr_reader :limit @@ -41,6 +44,9 @@ module Orb sig { params(limit: Integer).void } attr_writer :limit + sig { returns(T.nilable(String)) } + attr_accessor :plan_id + sig { returns(T.nilable(Orb::SubscriptionListParams::Status::OrSymbol)) } attr_accessor :status @@ -53,7 +59,9 @@ module Orb cursor: T.nilable(String), customer_id: T.nilable(T::Array[String]), external_customer_id: T.nilable(T::Array[String]), + external_plan_id: T.nilable(String), limit: Integer, + plan_id: T.nilable(String), status: T.nilable(Orb::SubscriptionListParams::Status::OrSymbol), request_options: Orb::RequestOptions::OrHash ).returns(T.attached_class) @@ -68,8 +76,10 @@ module Orb cursor: nil, customer_id: nil, external_customer_id: nil, + external_plan_id: nil, # The number of items to fetch. Defaults to 20. limit: nil, + plan_id: nil, status: nil, request_options: {} ) @@ -85,7 +95,9 @@ module Orb cursor: T.nilable(String), customer_id: T.nilable(T::Array[String]), external_customer_id: T.nilable(T::Array[String]), + external_plan_id: T.nilable(String), limit: Integer, + plan_id: T.nilable(String), status: T.nilable(Orb::SubscriptionListParams::Status::OrSymbol), request_options: Orb::RequestOptions } diff --git a/rbi/orb/resources/subscriptions.rbi b/rbi/orb/resources/subscriptions.rbi index be24328f..975bafb5 100644 --- a/rbi/orb/resources/subscriptions.rbi +++ b/rbi/orb/resources/subscriptions.rbi @@ -470,7 +470,9 @@ module Orb cursor: T.nilable(String), customer_id: T.nilable(T::Array[String]), external_customer_id: T.nilable(T::Array[String]), + external_plan_id: T.nilable(String), limit: Integer, + plan_id: T.nilable(String), status: T.nilable(Orb::SubscriptionListParams::Status::OrSymbol), request_options: Orb::RequestOptions::OrHash ).returns(Orb::Internal::Page[Orb::Subscription]) @@ -485,8 +487,10 @@ module Orb cursor: nil, customer_id: nil, external_customer_id: nil, + external_plan_id: nil, # The number of items to fetch. Defaults to 20. limit: nil, + plan_id: nil, status: nil, request_options: {} ) diff --git a/sig/orb/models/subscription_list_params.rbs b/sig/orb/models/subscription_list_params.rbs index 1f189e63..95f015c4 100644 --- a/sig/orb/models/subscription_list_params.rbs +++ b/sig/orb/models/subscription_list_params.rbs @@ -9,7 +9,9 @@ module Orb cursor: String?, customer_id: ::Array[String]?, external_customer_id: ::Array[String]?, + external_plan_id: String?, limit: Integer, + plan_id: String?, status: Orb::Models::SubscriptionListParams::status? } & Orb::Internal::Type::request_parameters @@ -32,10 +34,14 @@ module Orb attr_accessor external_customer_id: ::Array[String]? + attr_accessor external_plan_id: String? + attr_reader limit: Integer? def limit=: (Integer) -> Integer + attr_accessor plan_id: String? + attr_accessor status: Orb::Models::SubscriptionListParams::status? def initialize: ( @@ -46,7 +52,9 @@ module Orb ?cursor: String?, ?customer_id: ::Array[String]?, ?external_customer_id: ::Array[String]?, + ?external_plan_id: String?, ?limit: Integer, + ?plan_id: String?, ?status: Orb::Models::SubscriptionListParams::status?, ?request_options: Orb::request_opts ) -> void @@ -59,7 +67,9 @@ module Orb cursor: String?, customer_id: ::Array[String]?, external_customer_id: ::Array[String]?, + external_plan_id: String?, limit: Integer, + plan_id: String?, status: Orb::Models::SubscriptionListParams::status?, request_options: Orb::RequestOptions } diff --git a/sig/orb/resources/subscriptions.rbs b/sig/orb/resources/subscriptions.rbs index 36d98d2d..50777bcc 100644 --- a/sig/orb/resources/subscriptions.rbs +++ b/sig/orb/resources/subscriptions.rbs @@ -56,7 +56,9 @@ module Orb ?cursor: String?, ?customer_id: ::Array[String]?, ?external_customer_id: ::Array[String]?, + ?external_plan_id: String?, ?limit: Integer, + ?plan_id: String?, ?status: Orb::Models::SubscriptionListParams::status?, ?request_options: Orb::request_opts ) -> Orb::Internal::Page[Orb::Subscription] From f8c9f2c57e94d09130d68b080b0adc5ae38bbd30 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 3 Oct 2025 18:31:09 +0000 Subject: [PATCH 22/24] feat(api): api update --- .stats.yml | 4 ++-- lib/orb/models/unit_config.rb | 10 +--------- rbi/orb/models/unit_config.rbi | 20 +++----------------- sig/orb/models/unit_config.rbs | 8 +++----- 4 files changed, 9 insertions(+), 33 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4975db47..05461dff 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 118 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-b6ec9a6bf40b74575d917ab145b2413bc61dcd6989bb9d1aa41624bf3437599e.yml -openapi_spec_hash: 53cf9363c3bd9649e0af5f713abdcba7 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-b330498c2bfb80605f4c406e8b228c0a4ece85247b21f62f93273a00abb53d35.yml +openapi_spec_hash: 16a82d0eb23b68218d584e385bee43da config_hash: 1f73a949b649ecfe6ec68ba1bb459dc2 diff --git a/lib/orb/models/unit_config.rb b/lib/orb/models/unit_config.rb index f9c7c4a5..c862ac2e 100644 --- a/lib/orb/models/unit_config.rb +++ b/lib/orb/models/unit_config.rb @@ -9,18 +9,10 @@ class UnitConfig < Orb::Internal::Type::BaseModel # @return [String] required :unit_amount, String - # @!attribute scaling_factor - # Multiplier to scale rated quantity by - # - # @return [Float, nil] - optional :scaling_factor, Float, nil?: true - - # @!method initialize(unit_amount:, scaling_factor: nil) + # @!method initialize(unit_amount:) # Configuration for unit pricing # # @param unit_amount [String] Rate per unit of usage - # - # @param scaling_factor [Float, nil] Multiplier to scale rated quantity by end end end diff --git a/rbi/orb/models/unit_config.rbi b/rbi/orb/models/unit_config.rbi index 01a32cdc..d79c5612 100644 --- a/rbi/orb/models/unit_config.rbi +++ b/rbi/orb/models/unit_config.rbi @@ -9,29 +9,15 @@ module Orb sig { returns(String) } attr_accessor :unit_amount - # Multiplier to scale rated quantity by - sig { returns(T.nilable(Float)) } - attr_accessor :scaling_factor - # Configuration for unit pricing - sig do - params(unit_amount: String, scaling_factor: T.nilable(Float)).returns( - T.attached_class - ) - end + sig { params(unit_amount: String).returns(T.attached_class) } def self.new( # Rate per unit of usage - unit_amount:, - # Multiplier to scale rated quantity by - scaling_factor: nil + unit_amount: ) end - sig do - override.returns( - { unit_amount: String, scaling_factor: T.nilable(Float) } - ) - end + sig { override.returns({ unit_amount: String }) } def to_hash end end diff --git a/sig/orb/models/unit_config.rbs b/sig/orb/models/unit_config.rbs index e2a6e9b7..52367a99 100644 --- a/sig/orb/models/unit_config.rbs +++ b/sig/orb/models/unit_config.rbs @@ -1,15 +1,13 @@ module Orb module Models - type unit_config = { unit_amount: String, scaling_factor: Float? } + type unit_config = { unit_amount: String } class UnitConfig < Orb::Internal::Type::BaseModel attr_accessor unit_amount: String - attr_accessor scaling_factor: Float? + def initialize: (unit_amount: String) -> void - def initialize: (unit_amount: String, ?scaling_factor: Float?) -> void - - def to_hash: -> { unit_amount: String, scaling_factor: Float? } + def to_hash: -> { unit_amount: String } end end end From f8b27927f181b45c2196de229a35b5eae6122f46 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 3 Oct 2025 22:31:28 +0000 Subject: [PATCH 23/24] feat(api): api update --- .stats.yml | 4 ++-- lib/orb/models/matrix_sub_line_item.rb | 10 +++++++++- rbi/orb/models/matrix_sub_line_item.rbi | 14 +++++++++++--- sig/orb/models/matrix_sub_line_item.rbs | 11 ++++++++--- 4 files changed, 30 insertions(+), 9 deletions(-) diff --git a/.stats.yml b/.stats.yml index 05461dff..fd40002f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 118 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-b330498c2bfb80605f4c406e8b228c0a4ece85247b21f62f93273a00abb53d35.yml -openapi_spec_hash: 16a82d0eb23b68218d584e385bee43da +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-26020bd285825dac04bf642a414ea07c786fc6e42ee6bbcf795e11f8db426519.yml +openapi_spec_hash: 897fedec83f0960539b3aa4ec0e3308d config_hash: 1f73a949b649ecfe6ec68ba1bb459dc2 diff --git a/lib/orb/models/matrix_sub_line_item.rb b/lib/orb/models/matrix_sub_line_item.rb index 154c80d6..cb9e01c1 100644 --- a/lib/orb/models/matrix_sub_line_item.rb +++ b/lib/orb/models/matrix_sub_line_item.rb @@ -34,7 +34,13 @@ class MatrixSubLineItem < Orb::Internal::Type::BaseModel # @return [Symbol, Orb::Models::MatrixSubLineItem::Type] required :type, enum: -> { Orb::MatrixSubLineItem::Type } - # @!method initialize(amount:, grouping:, matrix_config:, name:, quantity:, type:) + # @!attribute scaled_quantity + # The scaled quantity for this line item for specific pricing structures + # + # @return [Float, nil] + optional :scaled_quantity, Float, nil?: true + + # @!method initialize(amount:, grouping:, matrix_config:, name:, quantity:, type:, scaled_quantity: nil) # @param amount [String] The total amount for this sub line item. # # @param grouping [Orb::Models::SubLineItemGrouping, nil] @@ -46,6 +52,8 @@ class MatrixSubLineItem < Orb::Internal::Type::BaseModel # @param quantity [Float] # # @param type [Symbol, Orb::Models::MatrixSubLineItem::Type] + # + # @param scaled_quantity [Float, nil] The scaled quantity for this line item for specific pricing structures # @see Orb::Models::MatrixSubLineItem#type module Type diff --git a/rbi/orb/models/matrix_sub_line_item.rbi b/rbi/orb/models/matrix_sub_line_item.rbi index c3280331..46624828 100644 --- a/rbi/orb/models/matrix_sub_line_item.rbi +++ b/rbi/orb/models/matrix_sub_line_item.rbi @@ -31,6 +31,10 @@ module Orb sig { returns(Orb::MatrixSubLineItem::Type::TaggedSymbol) } attr_accessor :type + # The scaled quantity for this line item for specific pricing structures + sig { returns(T.nilable(Float)) } + attr_accessor :scaled_quantity + sig do params( amount: String, @@ -38,7 +42,8 @@ module Orb matrix_config: Orb::SubLineItemMatrixConfig::OrHash, name: String, quantity: Float, - type: Orb::MatrixSubLineItem::Type::OrSymbol + type: Orb::MatrixSubLineItem::Type::OrSymbol, + scaled_quantity: T.nilable(Float) ).returns(T.attached_class) end def self.new( @@ -48,7 +53,9 @@ module Orb matrix_config:, name:, quantity:, - type: + type:, + # The scaled quantity for this line item for specific pricing structures + scaled_quantity: nil ) end @@ -60,7 +67,8 @@ module Orb matrix_config: Orb::SubLineItemMatrixConfig, name: String, quantity: Float, - type: Orb::MatrixSubLineItem::Type::TaggedSymbol + type: Orb::MatrixSubLineItem::Type::TaggedSymbol, + scaled_quantity: T.nilable(Float) } ) end diff --git a/sig/orb/models/matrix_sub_line_item.rbs b/sig/orb/models/matrix_sub_line_item.rbs index 5d45f66c..929696e3 100644 --- a/sig/orb/models/matrix_sub_line_item.rbs +++ b/sig/orb/models/matrix_sub_line_item.rbs @@ -7,7 +7,8 @@ module Orb matrix_config: Orb::SubLineItemMatrixConfig, name: String, quantity: Float, - type: Orb::Models::MatrixSubLineItem::type_ + type: Orb::Models::MatrixSubLineItem::type_, + scaled_quantity: Float? } class MatrixSubLineItem < Orb::Internal::Type::BaseModel @@ -23,13 +24,16 @@ module Orb attr_accessor type: Orb::Models::MatrixSubLineItem::type_ + attr_accessor scaled_quantity: Float? + def initialize: ( amount: String, grouping: Orb::SubLineItemGrouping?, matrix_config: Orb::SubLineItemMatrixConfig, name: String, quantity: Float, - type: Orb::Models::MatrixSubLineItem::type_ + type: Orb::Models::MatrixSubLineItem::type_, + ?scaled_quantity: Float? ) -> void def to_hash: -> { @@ -38,7 +42,8 @@ module Orb matrix_config: Orb::SubLineItemMatrixConfig, name: String, quantity: Float, - type: Orb::Models::MatrixSubLineItem::type_ + type: Orb::Models::MatrixSubLineItem::type_, + scaled_quantity: Float? } type type_ = :matrix From a087299b023d389facdd92b585e9a195ad4fe62f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 3 Oct 2025 22:31:53 +0000 Subject: [PATCH 24/24] release: 1.12.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 45 +++++++++++++++++++++++++++++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/orb/version.rb | 2 +- 5 files changed, 49 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 3d1bf0ae..de0960ab 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.11.2" + ".": "1.12.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 5fc104bc..f608bb5e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,50 @@ # Changelog +## 1.12.0 (2025-10-03) + +Full Changelog: [v1.11.2...v1.12.0](https://github.com/orbcorp/orb-ruby/compare/v1.11.2...v1.12.0) + +### ⚠ BREAKING CHANGES + +* **api:** define shared model ConversionRateConfig + +### Features + +* **api:** api update ([f8b2792](https://github.com/orbcorp/orb-ruby/commit/f8b27927f181b45c2196de229a35b5eae6122f46)) +* **api:** api update ([f8c9f2c](https://github.com/orbcorp/orb-ruby/commit/f8c9f2c57e94d09130d68b080b0adc5ae38bbd30)) +* **api:** api update ([d1fc414](https://github.com/orbcorp/orb-ruby/commit/d1fc414cb976afe6bb19dc284dceb7ed7bfa38c2)) +* **api:** api update ([83a6ffd](https://github.com/orbcorp/orb-ruby/commit/83a6ffda9613b6571029f01235d673d179294c94)) +* **api:** api update ([343fa0b](https://github.com/orbcorp/orb-ruby/commit/343fa0b8a9a724b73f8abe5e9de34795f232e065)) +* **api:** api update ([b89ea6d](https://github.com/orbcorp/orb-ruby/commit/b89ea6d10a12909e77c76617d11068ade5cf6fc8)) +* **api:** api update ([be80854](https://github.com/orbcorp/orb-ruby/commit/be80854305b7dd24350c0a955de536d37233bc35)) +* **api:** api update ([8e3ac4b](https://github.com/orbcorp/orb-ruby/commit/8e3ac4b248b2aca6ac6d5360f34be8521b05bc83)) +* **api:** api update ([246283d](https://github.com/orbcorp/orb-ruby/commit/246283dc41fd3d9b128ac44ccd8550ae7b987578)) +* **api:** api update ([bc6c8f9](https://github.com/orbcorp/orb-ruby/commit/bc6c8f9914220783adeb80fa6a9eb87d009fa58d)) +* **api:** api update ([394af82](https://github.com/orbcorp/orb-ruby/commit/394af826a5ba3cd462447304c8ec659038e67617)) +* **api:** define shared model ConversionRateConfig ([aa669fe](https://github.com/orbcorp/orb-ruby/commit/aa669fef9079dbac856be83d56cabd826e3c47c0)) +* expose response headers for both streams and errors ([cafba93](https://github.com/orbcorp/orb-ruby/commit/cafba93f8798a84815c9c9d1183327e498cb6b95)) +* extract minimum composite to type ([3bd8a47](https://github.com/orbcorp/orb-ruby/commit/3bd8a47a7c0601ccb9c43b472131562319a59e51)) + + +### Bug Fixes + +* always send `filename=...` for multipart requests where a file is expected ([aefe58f](https://github.com/orbcorp/orb-ruby/commit/aefe58f92b1296aa30172ce8206f84723a3a326c)) +* coroutine leaks from connection pool ([a4faf55](https://github.com/orbcorp/orb-ruby/commit/a4faf55a381bcdaae01f0a22cd8922038af38f69)) +* **internal:** use null byte as file separator in the fast formatting script ([58f092f](https://github.com/orbcorp/orb-ruby/commit/58f092f32214ae8deb17db5e002f10fafd60378e)) +* shorten multipart boundary sep to less than RFC specificed max length ([984b6ad](https://github.com/orbcorp/orb-ruby/commit/984b6ad403302ab97275136e145dce322ce82e9b)) + + +### Performance Improvements + +* faster code formatting ([9538971](https://github.com/orbcorp/orb-ruby/commit/95389713d7c3b97ec3cf0963b86211d5fba72fe4)) + + +### Chores + +* allow fast-format to use bsd sed as well ([6566897](https://github.com/orbcorp/orb-ruby/commit/6566897b0797bdbad69e21ed05d97f4ce1509f07)) +* do not install brew dependencies in ./scripts/bootstrap by default ([c7d1331](https://github.com/orbcorp/orb-ruby/commit/c7d13317194914b406f35048eb198c715e3645da)) +* **internal:** codegen related update ([d7dd0b8](https://github.com/orbcorp/orb-ruby/commit/d7dd0b8380fd9ec066388c3327ed16fdba9f7fa6)) + ## 1.11.2 (2025-08-29) Full Changelog: [v1.11.1...v1.11.2](https://github.com/orbcorp/orb-ruby/compare/v1.11.1...v1.11.2) diff --git a/Gemfile.lock b/Gemfile.lock index 2e05053f..d0aaf930 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - orb-billing (1.11.2) + orb-billing (1.12.0) connection_pool GEM diff --git a/README.md b/README.md index d6d4dd76..af62afe5 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "orb-billing", "~> 1.11.2" +gem "orb-billing", "~> 1.12.0" ``` diff --git a/lib/orb/version.rb b/lib/orb/version.rb index 28305864..89c1fe80 100644 --- a/lib/orb/version.rb +++ b/lib/orb/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Orb - VERSION = "1.11.2" + VERSION = "1.12.0" end