Class: Increase::Models::Simulations::ProgramCreateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/increase/models/simulations/program_create_params.rb,
sig/increase/models/simulations/program_create_params.rbs

Overview

See Also:

  • Increase::Resources::Simulations::Programs#create

Defined Under Namespace

Modules: Bank

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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(name:, bank: nil, lending_maximum_extendable_credit: nil, loan_accounts_require_loan_offers: nil, reserve_account_id: nil, request_options: {}) ⇒ ProgramCreateParams

Returns a new instance of ProgramCreateParams.

Parameters:

  • name (String) —

    The name of the program being added.

  • bank (Symbol, Increase::Models::Simulations::ProgramCreateParams::Bank) (defaults to: nil) —

    The bank for the program's accounts, defaults to Increase Bank.

  • lending_maximum_extendable_credit (Integer) (defaults to: nil) —

    The maximum extendable credit of the program being added.

  • loan_accounts_require_loan_offers (Boolean) (defaults to: nil) —

    Whether opening a loan Account under this Program requires an accepted Loan Offer. Requires lending_maximum_extendable_credit. Defaults to false.

  • reserve_account_id (String) (defaults to: nil) —

    The identifier of the Account the Program should be added to.

  • request_options (Increase::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})
  • name: (String)
  • bank: (Increase::Models::Simulations::ProgramCreateParams::bank) (defaults to: nil)
  • lending_maximum_extendable_credit: (Integer) (defaults to: nil)
  • loan_accounts_require_loan_offers: (Boolean) (defaults to: nil)
  • reserve_account_id: (String) (defaults to: nil)
  • request_options: (Increase::request_opts) (defaults to: {})


# File 'lib/increase/models/simulations/program_create_params.rb', line 42

Instance Attribute Details

#bank ⇒ Symbol, ...

The bank for the program's accounts, defaults to Increase Bank.

Parameters:

  • (Increase::Models::Simulations::ProgramCreateParams::bank)

Returns:



21
# File 'lib/increase/models/simulations/program_create_params.rb', line 21

optional :bank, enum: -> { Increase::Simulations::ProgramCreateParams::Bank }

#lending_maximum_extendable_credit ⇒ Integer?

The maximum extendable credit of the program being added.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


27
# File 'lib/increase/models/simulations/program_create_params.rb', line 27

optional :lending_maximum_extendable_credit, Integer

#loan_accounts_require_loan_offers ⇒ Boolean?

Whether opening a loan Account under this Program requires an accepted Loan Offer. Requires lending_maximum_extendable_credit. Defaults to false.

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


34
# File 'lib/increase/models/simulations/program_create_params.rb', line 34

optional :loan_accounts_require_loan_offers, Increase::Internal::Type::Boolean

#name ⇒ String

The name of the program being added.

Parameters:

  • value (String)

Returns:

  • (String)


15
# File 'lib/increase/models/simulations/program_create_params.rb', line 15

required :name, String

#reserve_account_id ⇒ String?

The identifier of the Account the Program should be added to.

Parameters:

  • (String)

Returns:

  • (String, nil)


40
# File 'lib/increase/models/simulations/program_create_params.rb', line 40

optional :reserve_account_id, String

Instance Method Details

#to_hash ⇒ { name: String, bank: Increase::Models::Simulations::ProgramCreateParams::bank, lending_maximum_extendable_credit: Integer, loan_accounts_require_loan_offers: bool, reserve_account_id: String, request_options: Increase::RequestOptions }

Returns:

  • ({ name: String, bank: Increase::Models::Simulations::ProgramCreateParams::bank, lending_maximum_extendable_credit: Integer, loan_accounts_require_loan_offers: bool, reserve_account_id: String, request_options: Increase::RequestOptions })


47
48
49
50
51
52
53
54
# File 'sig/increase/models/simulations/program_create_params.rbs', line 47

def to_hash: -> {
  name: String,
  bank: Increase::Models::Simulations::ProgramCreateParams::bank,
  lending_maximum_extendable_credit: Integer,
  loan_accounts_require_loan_offers: bool,
  reserve_account_id: String,
  request_options: Increase::RequestOptions
}