Module: Orb::Models::PriceCreateParams::Body

Extended by:
Internal::Type::Union
Defined in:
lib/orb/models/price_create_params.rb,
sig/orb/models/price_create_params.rbs

Overview

New floating price request body params.

Defined Under Namespace

Classes: BulkWithFilters, CumulativeGroupedAllocation, DailyCreditAllowance, EventOutput, GroupedWithMinMaxThresholds, MatrixWithThresholdDiscounts, MeteredAllowance, Percent

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/orb/models/price_create_params.rb', line 332

.variantsArray(Orb::Models::NewFloatingUnitPrice, Orb::Models::NewFloatingTieredPrice, Orb::Models::NewFloatingBulkPrice, Orb::Models::PriceCreateParams::Body::BulkWithFilters, 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::PriceCreateParams::Body::MatrixWithThresholdDiscounts, Orb::Models::NewFloatingTieredWithProrationPrice, Orb::Models::NewFloatingUnitWithProrationPrice, Orb::Models::NewFloatingGroupedAllocationPrice, Orb::Models::NewFloatingBulkWithProrationPrice, Orb::Models::NewFloatingGroupedWithProratedMinimumPrice, Orb::Models::NewFloatingGroupedWithMeteredMinimumPrice, Orb::Models::PriceCreateParams::Body::GroupedWithMinMaxThresholds, Orb::Models::NewFloatingMatrixWithDisplayNamePrice, Orb::Models::NewFloatingGroupedTieredPackagePrice, Orb::Models::NewFloatingMaxGroupTieredPackagePrice, Orb::Models::NewFloatingScalableMatrixWithUnitPricingPrice, Orb::Models::NewFloatingScalableMatrixWithTieredPricingPrice, Orb::Models::NewFloatingCumulativeGroupedBulkPrice, Orb::Models::PriceCreateParams::Body::CumulativeGroupedAllocation, Orb::Models::PriceCreateParams::Body::DailyCreditAllowance, Orb::Models::PriceCreateParams::Body::MeteredAllowance, Orb::Models::NewFloatingMinimumCompositePrice, Orb::Models::PriceCreateParams::Body::Percent, Orb::Models::PriceCreateParams::Body::EventOutput)

Returns:



# File 'lib/orb/models/price_create_params.rb', line 1988

Instance Method Details

#initialize(percent:, maximum_amount: nil, minimum_amount: nil, prorated: nil) ⇒ Object

Some parameter documentations has been truncated, see Orb::Models::PriceCreateParams::Body::Percent::PercentConfig for more details.

Configuration for percent pricing

Parameters:

  • percent (Float)

    Fraction of the component subtotals to charge (0 < percent <= 1).

  • maximum_amount (String, nil) (defaults to: nil)

    Maximum amount to charge. If unset, the fee has no upper bound.

  • minimum_amount (String, nil) (defaults to: nil)

    Minimum amount to charge. If unset, the fee is bounded below by 0.

  • prorated (Boolean) (defaults to: nil)

    If true, the minimum_amount is prorated based on the service period. The maximum



# File 'lib/orb/models/price_create_params.rb', line 620

#self?.variants::Array[Orb::Models::PriceCreateParams::body]

Returns:

  • (::Array[Orb::Models::PriceCreateParams::body])


1390
# File 'sig/orb/models/price_create_params.rbs', line 1390

def self?.variants: -> ::Array[Orb::Models::PriceCreateParams::body]