Class: MethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::Update::AccountUpdate

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

Defined Under Namespace

Modules: Source, Status, Type Classes: AutoLoan, Bnpl, CreditCard, Error, Fintech, Mortgage, PersonalLoan, StudentLoan, StudentLoans

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(balance: nil, closed_at: nil, expected_payoff_date: nil, interest_rate_percentage: nil, interest_rate_source: nil, interest_rate_type: nil, last_payment_amount: nil, last_payment_date: nil, next_payment_due_date: nil, next_payment_minimum_amount: nil, opened_at: nil, original_loan_amount: nil, sub_type: nil, term_length: nil) ⇒ Object

Student loan update data. Present when ‘type` is `student_loan`.

Parameters:

  • balance (Integer, nil) (defaults to: nil)

    Current balance in cents.

  • closed_at (Date, nil) (defaults to: nil)
  • expected_payoff_date (Date, nil) (defaults to: nil)
  • interest_rate_percentage (Float, nil) (defaults to: nil)
  • interest_rate_source (String, nil) (defaults to: nil)
  • interest_rate_type (String, nil) (defaults to: nil)
  • last_payment_amount (Integer, nil) (defaults to: nil)

    Last payment amount in cents.

  • last_payment_date (Date, nil) (defaults to: nil)
  • next_payment_due_date (Date, nil) (defaults to: nil)
  • next_payment_minimum_amount (Integer, nil) (defaults to: nil)

    Minimum payment due in cents.

  • opened_at (Date, nil) (defaults to: nil)
  • original_loan_amount (Integer, nil) (defaults to: nil)

    Original loan amount in cents.

  • sub_type (String, nil) (defaults to: nil)
  • term_length (Integer, nil) (defaults to: nil)


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

Instance Attribute Details

#account_idString

The account this update belongs to.

Returns:

  • (String)


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

required :account_id, String

#auto_loanMethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::Update::AccountUpdate::AutoLoan?

Auto loan update data. Present when ‘type` is `auto_loan`.



9851
9852
9853
# File 'lib/method_ruby/models/account_create_response.rb', line 9851

optional :auto_loan,
-> { MethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::Update::AccountUpdate::AutoLoan },
nil?: true

#bnplMethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::Update::AccountUpdate::Bnpl?

Buy now pay later update data. Present when ‘type` is `bnpl`.



9859
9860
9861
# File 'lib/method_ruby/models/account_create_response.rb', line 9859

optional :bnpl,
-> { MethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::Update::AccountUpdate::Bnpl },
nil?: true

#created_atTime

Timestamp when the update was created.

Returns:

  • (Time)


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

required :created_at, Time

#credit_cardMethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::Update::AccountUpdate::CreditCard?

Credit card update data. Present when ‘type` is `credit_card`.



9867
9868
9869
# File 'lib/method_ruby/models/account_create_response.rb', line 9867

optional :credit_card,
-> { MethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::Update::AccountUpdate::CreditCard },
nil?: true

#data_as_ofTime?

The timestamp of the data used to complete this update.

Returns:

  • (Time, nil)


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

optional :data_as_of, Time, nil?: true

#errorMethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::Update::AccountUpdate::Error?

Error details when an account update fails.



9881
9882
9883
# File 'lib/method_ruby/models/account_create_response.rb', line 9881

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

#fintechMethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::Update::AccountUpdate::Fintech?

Fintech account update data. Present when ‘type` is `fintech`.



9889
9890
9891
# File 'lib/method_ruby/models/account_create_response.rb', line 9889

optional :fintech,
-> { MethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::Update::AccountUpdate::Fintech },
nil?: true

#idString

Unique identifier for the update.

Returns:

  • (String)


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

required :id, String

#mortgageMethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::Update::AccountUpdate::Mortgage?

Mortgage update data. Present when ‘type` is `mortgage`.



9897
9898
9899
# File 'lib/method_ruby/models/account_create_response.rb', line 9897

optional :mortgage,
-> { MethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::Update::AccountUpdate::Mortgage },
nil?: true

#personal_loanMethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::Update::AccountUpdate::PersonalLoan?

Personal loan update data. Present when ‘type` is `personal_loan`.



9905
9906
9907
# File 'lib/method_ruby/models/account_create_response.rb', line 9905

optional :personal_loan,
-> { MethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::Update::AccountUpdate::PersonalLoan },
nil?: true

#sourceSymbol, ...

The data source used for this update.



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

optional :source,
enum: -> { MethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::Update::AccountUpdate::Source }

#statusSymbol, MethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::Update::AccountUpdate::Status

Current status of the update.



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

required :status,
enum: -> { MethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::Update::AccountUpdate::Status }

#student_loanMethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::Update::AccountUpdate::StudentLoan?

Student loan update data. Present when ‘type` is `student_loan`.



9920
9921
9922
# File 'lib/method_ruby/models/account_create_response.rb', line 9920

optional :student_loan,
-> { MethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::Update::AccountUpdate::StudentLoan },
nil?: true

#student_loansMethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::Update::AccountUpdate::StudentLoans?

Student loans aggregate update data. Present when ‘type` is `student_loans`.



9928
9929
9930
# File 'lib/method_ruby/models/account_create_response.rb', line 9928

optional :student_loans,
-> { MethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::Update::AccountUpdate::StudentLoans },
nil?: true

#typeSymbol, MethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::Update::AccountUpdate::Type

The liability type of the account being updated.



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

required :type,
enum: -> { MethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::Update::AccountUpdate::Type }

#updated_atTime

Timestamp when the update was last updated.

Returns:

  • (Time)


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

required :updated_at, Time

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


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