Class: Straddle::Models::PaykeyCreatedV1WebhookEvent::Data::Balance

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/straddle/models/paykey_created_v1_webhook_event.rb,
sig/straddle/models/paykey_created_v1_webhook_event.rbs

Overview

See Also:

  • Straddle::Models::PaykeyCreatedV1WebhookEvent::Data#balance

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 ⇒ Object



157
# File 'sig/straddle/models/paykey_created_v1_webhook_event.rbs', line 157

def initialize: (

Instance Attribute Details

#account_balance ⇒ Float?

Most recently retrieved account balance in dollars.

Parameters:

  • value (Float, nil)

Returns:

  • (Float, nil)


174
# File 'lib/straddle/models/paykey_created_v1_webhook_event.rb', line 174

optional :account_balance, Float, nil?: true

#status ⇒ Symbol, Straddle::Models::PaykeyBalanceRefreshStatus

Parameters:

  • value (Straddle::Models::paykey_balance_refresh_status)

Returns:



168
# File 'lib/straddle/models/paykey_created_v1_webhook_event.rb', line 168

required :status, enum: -> { Straddle::PaykeyBalanceRefreshStatus }

#updated_at ⇒ Time?

Timestamp of the most recent account balance update.

Parameters:

  • value (Time, nil)

Returns:

  • (Time, nil)


180
# File 'lib/straddle/models/paykey_created_v1_webhook_event.rb', line 180

optional :updated_at, Time, nil?: true

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


163
# File 'sig/straddle/models/paykey_created_v1_webhook_event.rbs', line 163

def to_hash: -> {