Class: Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/stigg/models/v1/contract_create_params.rb,
sig/stigg/models/v1/contract_create_params.rbs

Defined Under Namespace

Modules: CreditGrantCadence, Currency Classes: CreditRate, Tier

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

Parameters:

  • amount (Float)

    The credit rate amount

  • currency_id (String)

    The custom currency refId for the credit rate

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

    A custom formula for calculating cost based on single event dimensions



# File 'lib/stigg/models/v1/contract_create_params.rb', line 1507

Instance Attribute Details

#addon_idString?

Addon identifier for the price override

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


1443
# File 'lib/stigg/models/v1/contract_create_params.rb', line 1443

optional :addon_id, String, api_name: :addonId, nil?: true

#amountFloat?

The price amount

Parameters:

  • (Float)

Returns:

  • (Float, nil)


1449
# File 'lib/stigg/models/v1/contract_create_params.rb', line 1449

optional :amount, Float

#base_chargeBoolean?

Whether this is a base charge override

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


1455
# File 'lib/stigg/models/v1/contract_create_params.rb', line 1455

optional :base_charge, Stigg::Internal::Type::Boolean, api_name: :baseCharge

#billing_country_codeString?

The billing country code of the price

Parameters:

  • (String)

Returns:

  • (String, nil)


1461
# File 'lib/stigg/models/v1/contract_create_params.rb', line 1461

optional :billing_country_code, String, api_name: :billingCountryCode

#block_sizeFloat?

Block size for pricing

Parameters:

  • (Float)

Returns:

  • (Float, nil)


1467
# File 'lib/stigg/models/v1/contract_create_params.rb', line 1467

optional :block_size, Float, api_name: :blockSize

#credit_grant_cadenceSymbol, ...



1472
1473
1474
1475
1476
# File 'lib/stigg/models/v1/contract_create_params.rb', line 1472

optional :credit_grant_cadence,
enum: -> {
  Stigg::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride::CreditGrantCadence
},
api_name: :creditGrantCadence

#credit_rateStigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride::CreditRate?



1481
1482
1483
1484
1485
# File 'lib/stigg/models/v1/contract_create_params.rb', line 1481

optional :credit_rate,
-> {
  Stigg::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride::CreditRate
},
api_name: :creditRate

#currencySymbol, ...

The price currency



1491
1492
# File 'lib/stigg/models/v1/contract_create_params.rb', line 1491

optional :currency,
enum: -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride::Currency }

#feature_idString?

Feature identifier for the price override

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


1498
# File 'lib/stigg/models/v1/contract_create_params.rb', line 1498

optional :feature_id, String, api_name: :featureId, nil?: true

#tiersArray<Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride::Tier>?

Pricing tiers configuration



1504
1505
# File 'lib/stigg/models/v1/contract_create_params.rb', line 1504

optional :tiers,
-> { Stigg::Internal::Type::ArrayOf[Stigg::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride::Tier] }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/stigg/models/v1/contract_create_params.rb', line 1535

Instance Method Details

#to_hash{

Returns:

  • ({)


1573
# File 'sig/stigg/models/v1/contract_create_params.rbs', line 1573

def to_hash: -> {