Class: MethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::Payoff::AccountPayoff

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/method_ruby/models/account_create_response.rb,
sig/method_ruby/models/account_create_response.rbs

Defined Under Namespace

Modules: Status Classes: Error

Instance Attribute Summary collapse

Class Method 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(id:, account_id:, amount:, created_at:, per_diem_amount:, status:, term:, updated_at:, error: nil) ⇒ Object

A payoff record for an account.

Parameters:



# File 'lib/method_ruby/models/account_create_response.rb', line 9476


Instance Attribute Details

#account_id ⇒ String

The account this payoff belongs to.

Parameters:

  • value (String)

Returns:

  • (String)


9429
# File 'lib/method_ruby/models/account_create_response.rb', line 9429

required :account_id, String

#amount ⇒ Float?

The payoff amount in cents.

Parameters:

  • value (Float, nil)

Returns:

  • (Float, nil)


9435
# File 'lib/method_ruby/models/account_create_response.rb', line 9435

required :amount, Float, nil?: true

#created_at ⇒ Time

Timestamp when the payoff was created.

Parameters:

  • value (Time)

Returns:

  • (Time)


9441
# File 'lib/method_ruby/models/account_create_response.rb', line 9441

required :created_at, Time

#error ⇒ MethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::Payoff::AccountPayoff::Error?

Error details when a payoff sync fails.



9472
9473
9474
# File 'lib/method_ruby/models/account_create_response.rb', line 9472

optional :error,
-> { MethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::Payoff::AccountPayoff::Error },
nil?: true

#id ⇒ String

Unique identifier for the payoff.

Parameters:

  • value (String)

Returns:

  • (String)


9423
# File 'lib/method_ruby/models/account_create_response.rb', line 9423

required :id, String

#per_diem_amount ⇒ Float?

Per diem interest amount in cents.

Parameters:

  • value (Float, nil)

Returns:

  • (Float, nil)


9447
# File 'lib/method_ruby/models/account_create_response.rb', line 9447

required :per_diem_amount, Float, nil?: true

#status ⇒ Symbol, MethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::Payoff::AccountPayoff::Status

Current status of the payoff request.

Parameters:

  • value (MethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::Payoff::AccountPayoff::status)

Returns:



9453
9454
# File 'lib/method_ruby/models/account_create_response.rb', line 9453

required :status,
enum: -> { MethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::Payoff::AccountPayoff::Status }

#term ⇒ Float?

Number of days the payoff amount is valid.

Parameters:

  • value (Float, nil)

Returns:

  • (Float, nil)


9460
# File 'lib/method_ruby/models/account_create_response.rb', line 9460

required :term, Float, nil?: true

#updated_at ⇒ Time

Timestamp when the payoff was last updated.

Parameters:

  • value (Time)

Returns:

  • (Time)


9466
# File 'lib/method_ruby/models/account_create_response.rb', line 9466

required :updated_at, Time

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/method_ruby/models/account_create_response.rb', line 9507


Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


7433
# File 'sig/method_ruby/models/account_create_response.rbs', line 7433

def to_hash: -> {