Class: Stigg::Models::V1::SubscriptionUpdateParams::Budget

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

Instance Attribute 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

#initializeBudget

Returns a new instance of Budget.

Parameters:

  • has_soft_limit: (Boolean)
  • limit: (Float)


760
# File 'sig/stigg/models/v1/subscription_update_params.rbs', line 760

def initialize: (has_soft_limit: bool, limit: Float) -> void

Instance Attribute Details

#has_soft_limitBoolean

Whether the budget is a soft limit

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


644
# File 'lib/stigg/models/v1/subscription_update_params.rb', line 644

required :has_soft_limit, Stigg::Internal::Type::Boolean, api_name: :hasSoftLimit

#limitFloat

Maximum spending limit

Parameters:

  • value (Float)

Returns:

  • (Float)


650
# File 'lib/stigg/models/v1/subscription_update_params.rb', line 650

required :limit, Float

Instance Method Details

#to_hash{ has_soft_limit: bool, limit: Float }

Returns:

  • ({ has_soft_limit: bool, limit: Float })


762
# File 'sig/stigg/models/v1/subscription_update_params.rbs', line 762

def to_hash: -> { has_soft_limit: bool, limit: Float }