Class: Lithic::Models::FinancialAccounts::OpenToBuySummary

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/lithic/models/financial_accounts/open_to_buy_summary.rb,
sig/lithic/models/financial_accounts/open_to_buy_summary.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(security:, settled_funds:, total_outstanding_spend:) ⇒ Object

Some parameter documentations has been truncated, see Lithic::Models::FinancialAccounts::OpenToBuySummary for more details.

Open to Buy Summary

Parameters:

  • security (Integer) —

    Available balance of the Security Account backing card spend, in the currency's

  • settled_funds (Integer, nil) —

    Funding that has moved out of the Security Account to cover card spend Lithic ha

  • total_outstanding_spend (Integer) —

    Customer card spend that has not yet been collected, in the currency's



# File 'lib/lithic/models/financial_accounts/open_to_buy_summary.rb', line 32

Instance Attribute Details

#security ⇒ Integer

Available balance of the Security Account backing card spend, in the currency's smallest unit (e.g., cents for USD)

Parameters:

  • value (Integer)

Returns:

  • (Integer)


12
# File 'lib/lithic/models/financial_accounts/open_to_buy_summary.rb', line 12

required :security, Integer

#settled_funds ⇒ Integer?

Funding that has moved out of the Security Account to cover card spend Lithic has already paid out to the networks, in the currency's smallest unit (e.g., cents for USD). Open to buy counts it alongside security, and it clears once collected from your business clients. Only Commercial Charge tracks this separately, so this is null for every other program setup

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


22
# File 'lib/lithic/models/financial_accounts/open_to_buy_summary.rb', line 22

required :settled_funds, Integer, nil?: true

#total_outstanding_spend ⇒ Integer

Customer card spend that has not yet been collected, in the currency's smallest unit (e.g., cents for USD). Reported as a negative amount, because it reduces open to buy

Parameters:

  • value (Integer)

Returns:

  • (Integer)


30
# File 'lib/lithic/models/financial_accounts/open_to_buy_summary.rb', line 30

required :total_outstanding_spend, Integer

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


24
# File 'sig/lithic/models/financial_accounts/open_to_buy_summary.rbs', line 24

def to_hash: -> {