Class: Stigg::Models::V1::AddonUpdateParams::Charges::OveragePricingModel::PricePeriod
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Stigg::Models::V1::AddonUpdateParams::Charges::OveragePricingModel::PricePeriod
- Defined in:
- lib/stigg/models/v1/addon_update_params.rb
Defined Under Namespace
Modules: BillingPeriod, CreditGrantCadence Classes: CreditRate, Price, Tier
Instance Attribute Summary collapse
-
#billing_country_code ⇒ String?
ISO country code for localized pricing.
-
#billing_period ⇒ Symbol, Stigg::Models::V1::AddonUpdateParams::Charges::OveragePricingModel::PricePeriod::BillingPeriod
The billing period (MONTHLY or ANNUALLY).
-
#block_size ⇒ Float?
Block size for usage-based pricing.
-
#credit_grant_cadence ⇒ Symbol, ...
When credits are granted.
-
#credit_rate ⇒ Stigg::Models::V1::AddonUpdateParams::Charges::OveragePricingModel::PricePeriod::CreditRate?
Credit rate configuration for credit-based pricing.
-
#price ⇒ Stigg::Models::V1::AddonUpdateParams::Charges::OveragePricingModel::PricePeriod::Price?
The price amount and currency.
-
#tiers ⇒ Array<Stigg::Models::V1::AddonUpdateParams::Charges::OveragePricingModel::PricePeriod::Tier>?
Tiered pricing configuration.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(amount:, currency_id:, cost_formula: nil) ⇒ Object
constructor
Credit rate configuration for credit-based pricing.
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(amount:, currency_id:, cost_formula: nil) ⇒ Object
Credit rate configuration for credit-based pricing
|
|
# File 'lib/stigg/models/v1/addon_update_params.rb', line 494
|
Instance Attribute Details
#billing_country_code ⇒ String?
ISO country code for localized pricing
453 |
# File 'lib/stigg/models/v1/addon_update_params.rb', line 453 optional :billing_country_code, String, api_name: :billingCountryCode |
#billing_period ⇒ Symbol, Stigg::Models::V1::AddonUpdateParams::Charges::OveragePricingModel::PricePeriod::BillingPeriod
The billing period (MONTHLY or ANNUALLY)
443 444 445 446 447 |
# File 'lib/stigg/models/v1/addon_update_params.rb', line 443 required :billing_period, enum: -> { Stigg::V1::AddonUpdateParams::Charges::OveragePricingModel::PricePeriod::BillingPeriod }, api_name: :billingPeriod |
#block_size ⇒ Float?
Block size for usage-based pricing
459 |
# File 'lib/stigg/models/v1/addon_update_params.rb', line 459 optional :block_size, Float, api_name: :blockSize |
#credit_grant_cadence ⇒ Symbol, ...
When credits are granted
465 466 467 468 469 |
# File 'lib/stigg/models/v1/addon_update_params.rb', line 465 optional :credit_grant_cadence, enum: -> { Stigg::V1::AddonUpdateParams::Charges::OveragePricingModel::PricePeriod::CreditGrantCadence }, api_name: :creditGrantCadence |
#credit_rate ⇒ Stigg::Models::V1::AddonUpdateParams::Charges::OveragePricingModel::PricePeriod::CreditRate?
Credit rate configuration for credit-based pricing
475 476 477 478 479 |
# File 'lib/stigg/models/v1/addon_update_params.rb', line 475 optional :credit_rate, -> { Stigg::V1::AddonUpdateParams::Charges::OveragePricingModel::PricePeriod::CreditRate }, api_name: :creditRate |
#price ⇒ Stigg::Models::V1::AddonUpdateParams::Charges::OveragePricingModel::PricePeriod::Price?
The price amount and currency
485 |
# File 'lib/stigg/models/v1/addon_update_params.rb', line 485 optional :price, -> { Stigg::V1::AddonUpdateParams::Charges::OveragePricingModel::PricePeriod::Price } |
#tiers ⇒ Array<Stigg::Models::V1::AddonUpdateParams::Charges::OveragePricingModel::PricePeriod::Tier>?
Tiered pricing configuration
491 492 |
# File 'lib/stigg/models/v1/addon_update_params.rb', line 491 optional :tiers, -> { Stigg::Internal::Type::ArrayOf[Stigg::V1::AddonUpdateParams::Charges::OveragePricingModel::PricePeriod::Tier] } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/stigg/models/v1/addon_update_params.rb', line 520
|