Class: Orb::Models::NewFloatingGroupedTieredPackagePrice
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Orb::Models::NewFloatingGroupedTieredPackagePrice
- Defined in:
- lib/orb/models/new_floating_grouped_tiered_package_price.rb
Defined Under Namespace
Modules: Cadence, ConversionRateConfig, ModelType
Instance Attribute Summary collapse
-
#billable_metric_id ⇒ String?
The id of the billable metric for the price.
-
#billed_in_advance ⇒ Boolean?
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.
-
#billing_cycle_configuration ⇒ Orb::Models::NewBillingCycleConfiguration?
For custom cadence: specifies the duration of the billing period in days or months.
-
#cadence ⇒ Symbol, Orb::Models::NewFloatingGroupedTieredPackagePrice::Cadence
The cadence to bill for this price on.
-
#conversion_rate ⇒ Float?
The per unit conversion rate of the price currency to the invoicing currency.
-
#conversion_rate_config ⇒ Orb::Models::UnitConversionRateConfig, ...
The configuration for the rate of the price currency to the invoicing currency.
-
#currency ⇒ String
An ISO 4217 currency string for which this price is billed in.
-
#dimensional_price_configuration ⇒ Orb::Models::NewDimensionalPriceConfiguration?
For dimensional price: specifies a price group and dimension values.
-
#external_price_id ⇒ String?
An alias for the price.
-
#fixed_price_quantity ⇒ Float?
If the Price represents a fixed cost, this represents the quantity of units applied.
- #grouped_tiered_package_config ⇒ Hash{Symbol=>Object}
-
#invoice_grouping_key ⇒ String?
The property used to group this price on an invoice.
-
#invoicing_cycle_configuration ⇒ Orb::Models::NewBillingCycleConfiguration?
Within each billing cycle, specifies the cadence at which invoices are produced.
-
#item_id ⇒ String
The id of the item the price will be associated with.
-
#metadata ⇒ Hash{Symbol=>String, nil}?
User-specified key/value pairs for the resource.
- #model_type ⇒ Symbol, Orb::Models::NewFloatingGroupedTieredPackagePrice::ModelType
-
#name ⇒ String
The name of the price.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cadence: , currency: , grouped_tiered_package_config: , 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) ⇒ Object
constructor
Some parameter documentations has been truncated, see NewFloatingGroupedTieredPackagePrice for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(cadence: , currency: , grouped_tiered_package_config: , 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) ⇒ Object
Some parameter documentations has been truncated, see Orb::Models::NewFloatingGroupedTieredPackagePrice for more details.
|
|
# File 'lib/orb/models/new_floating_grouped_tiered_package_price.rb', line 115
|
Instance Attribute Details
#billable_metric_id ⇒ String?
The id of the billable metric for the price. Only needed if the price is usage-based.
45 |
# File 'lib/orb/models/new_floating_grouped_tiered_package_price.rb', line 45 optional :billable_metric_id, String, nil?: true |
#billed_in_advance ⇒ Boolean?
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.
52 |
# File 'lib/orb/models/new_floating_grouped_tiered_package_price.rb', line 52 optional :billed_in_advance, Orb::Internal::Type::Boolean, nil?: true |
#billing_cycle_configuration ⇒ Orb::Models::NewBillingCycleConfiguration?
For custom cadence: specifies the duration of the billing period in days or months.
59 |
# File 'lib/orb/models/new_floating_grouped_tiered_package_price.rb', line 59 optional :billing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true |
#cadence ⇒ Symbol, Orb::Models::NewFloatingGroupedTieredPackagePrice::Cadence
The cadence to bill for this price on.
10 |
# File 'lib/orb/models/new_floating_grouped_tiered_package_price.rb', line 10 required :cadence, enum: -> { Orb::NewFloatingGroupedTieredPackagePrice::Cadence } |
#conversion_rate ⇒ Float?
The per unit conversion rate of the price currency to the invoicing currency.
65 |
# File 'lib/orb/models/new_floating_grouped_tiered_package_price.rb', line 65 optional :conversion_rate, Float, nil?: true |
#conversion_rate_config ⇒ Orb::Models::UnitConversionRateConfig, ...
The configuration for the rate of the price currency to the invoicing currency.
71 72 73 |
# File 'lib/orb/models/new_floating_grouped_tiered_package_price.rb', line 71 optional :conversion_rate_config, union: -> { Orb::NewFloatingGroupedTieredPackagePrice::ConversionRateConfig }, nil?: true |
#currency ⇒ String
An ISO 4217 currency string for which this price is billed in.
16 |
# File 'lib/orb/models/new_floating_grouped_tiered_package_price.rb', line 16 required :currency, String |
#dimensional_price_configuration ⇒ Orb::Models::NewDimensionalPriceConfiguration?
For dimensional price: specifies a price group and dimension values
79 |
# File 'lib/orb/models/new_floating_grouped_tiered_package_price.rb', line 79 optional :dimensional_price_configuration, -> { Orb::NewDimensionalPriceConfiguration }, nil?: true |
#external_price_id ⇒ String?
An alias for the price.
85 |
# File 'lib/orb/models/new_floating_grouped_tiered_package_price.rb', line 85 optional :external_price_id, String, nil?: true |
#fixed_price_quantity ⇒ Float?
If the Price represents a fixed cost, this represents the quantity of units applied.
92 |
# File 'lib/orb/models/new_floating_grouped_tiered_package_price.rb', line 92 optional :fixed_price_quantity, Float, nil?: true |
#grouped_tiered_package_config ⇒ Hash{Symbol=>Object}
21 |
# File 'lib/orb/models/new_floating_grouped_tiered_package_price.rb', line 21 required :grouped_tiered_package_config, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown] |
#invoice_grouping_key ⇒ String?
The property used to group this price on an invoice
98 |
# File 'lib/orb/models/new_floating_grouped_tiered_package_price.rb', line 98 optional :invoice_grouping_key, String, nil?: true |
#invoicing_cycle_configuration ⇒ Orb::Models::NewBillingCycleConfiguration?
Within each billing cycle, specifies the cadence at which invoices are produced. If unspecified, a single invoice is produced per billing cycle.
105 |
# File 'lib/orb/models/new_floating_grouped_tiered_package_price.rb', line 105 optional :invoicing_cycle_configuration, -> { Orb::NewBillingCycleConfiguration }, nil?: true |
#item_id ⇒ String
The id of the item the price will be associated with.
27 |
# File 'lib/orb/models/new_floating_grouped_tiered_package_price.rb', line 27 required :item_id, String |
#metadata ⇒ Hash{Symbol=>String, 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`.
113 |
# File 'lib/orb/models/new_floating_grouped_tiered_package_price.rb', line 113 optional :metadata, Orb::Internal::Type::HashOf[String, nil?: true], nil?: true |
#model_type ⇒ Symbol, Orb::Models::NewFloatingGroupedTieredPackagePrice::ModelType
32 |
# File 'lib/orb/models/new_floating_grouped_tiered_package_price.rb', line 32 required :model_type, enum: -> { Orb::NewFloatingGroupedTieredPackagePrice::ModelType } |
#name ⇒ String
The name of the price.
38 |
# File 'lib/orb/models/new_floating_grouped_tiered_package_price.rb', line 38 required :name, String |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/orb/models/new_floating_grouped_tiered_package_price.rb', line 166
|