Class: ModernTreasury::Models::LedgerAccountBalanceMonitor::AlertCondition

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/modern_treasury/models/ledger_account_balance_monitor.rb

Overview

See Also:

Instance Attribute Summary collapse

Method Summary

Methods inherited from Internal::Type::BaseModel

#==, ==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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

This class inherits a constructor from ModernTreasury::Internal::Type::BaseModel

Instance Attribute Details

#fieldString

One of ‘available_balance_amount`, `pending_balance_amount`, `posted_balance_amount`, `ledger_account_lock_version`.

Returns:

  • (String)


105
# File 'lib/modern_treasury/models/ledger_account_balance_monitor.rb', line 105

required :field, String

#operatorString

A logical operator to compare the ‘field` against the `value`. One of `less_than`, `less_than_or_equals`, `equals`, `greater_than_or_equals`, `greater_than`.

Returns:

  • (String)


113
# File 'lib/modern_treasury/models/ledger_account_balance_monitor.rb', line 113

required :operator, String

#valueInteger

The monitor’s ‘current_ledger_account_balance_state.triggered` will be `true` when comparing the `field` to this integer value using the `operator` is logically true.

Returns:

  • (Integer)


121
# File 'lib/modern_treasury/models/ledger_account_balance_monitor.rb', line 121

required :value, Integer