Class: Orb::Models::CustomerCreditBalanceDroppedWebhookEvent::Properties::AlertConfiguration::BalanceAlertStatus

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/orb/models/customer_credit_balance_dropped_webhook_event.rb,
sig/orb/models/customer_credit_balance_dropped_webhook_event.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

#initialize ⇒ BalanceAlertStatus

Returns a new instance of BalanceAlertStatus.

Parameters:

  • in_alert: (Boolean)
  • threshold_value: (String)


234
# File 'sig/orb/models/customer_credit_balance_dropped_webhook_event.rbs', line 234

def initialize: (in_alert: bool, threshold_value: String) -> void

Instance Attribute Details

#in_alert ⇒ Boolean

Whether the alert is currently in-alert or not.

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


370
# File 'lib/orb/models/customer_credit_balance_dropped_webhook_event.rb', line 370

required :in_alert, Orb::Internal::Type::Boolean

#threshold_value ⇒ String

The value of the threshold that defines the alert status.

Parameters:

  • value (String)

Returns:

  • (String)


376
# File 'lib/orb/models/customer_credit_balance_dropped_webhook_event.rb', line 376

required :threshold_value, String

Instance Method Details

#to_hash ⇒ { in_alert: bool, threshold_value: String }

Returns:

  • ({ in_alert: bool, threshold_value: String })


236
# File 'sig/orb/models/customer_credit_balance_dropped_webhook_event.rbs', line 236

def to_hash: -> { in_alert: bool, threshold_value: String }