Preparing search index...
The search index is not available
node-debt-snowball - v2.5.0
node-debt-snowball
Snowball
Class Snowball
Index
Constructors
constructor
Properties
accounts
additional
Payment
balance
Start
current
Balance
snowball
Amount
strategy
Methods
create
Payment
Plan
get
Current
Balance
get
Sort
Key
And
Order
make
Payment
For
Account
make
Payments
For
Month
parse
Accounts
set
Accounts
sort
Accounts
Constructors
constructor
new
Snowball
(
accounts
,
additionalPayment
?
,
strategy
?
)
:
Snowball
Parameters
accounts
:
AccountObject
[]
additionalPayment
:
number
= 0
strategy
:
string
= REPAYMENT_STRATEGIES.AVALANCHE
Returns
Snowball
Properties
accounts
accounts
:
Account
[]
= []
additional
Payment
additional
Payment
:
number
balance
Start
balance
Start
:
number
current
Balance
current
Balance
:
number
snowball
Amount
snowball
Amount
:
number
strategy
strategy
:
string
Methods
create
Payment
Plan
create
Payment
Plan
(
)
:
Results
Generates a payment plan
Returns
Results
An array of payments
get
Current
Balance
get
Current
Balance
(
)
:
number
Returns
number
get
Sort
Key
And
Order
get
Sort
Key
And
Order
(
)
:
{
key
:
AccountObjectKeys
;
order
:
OrderDirection
;
}
Returns
{
key
:
AccountObjectKeys
;
order
:
OrderDirection
;
}
key
:
AccountObjectKeys
order
:
OrderDirection
make
Payment
For
Account
make
Payment
For
Account
(
account
)
:
{
accruedInterest
:
number
;
additionalPayment
:
number
;
balanceEnd
:
number
;
balanceStart
:
number
;
minPayment
:
number
;
name
:
string
;
paymentAmount
:
number
;
}
Parameters
account
:
Account
Returns
{
accruedInterest
:
number
;
additionalPayment
:
number
;
balanceEnd
:
number
;
balanceStart
:
number
;
minPayment
:
number
;
name
:
string
;
paymentAmount
:
number
;
}
accrued
Interest
:
number
additional
Payment
:
number
balance
End
:
number
balance
Start
:
number
min
Payment
:
number
name
:
string
payment
Amount
:
number
make
Payments
For
Month
make
Payments
For
Month
(
)
:
{
accounts
:
{
accruedInterest
:
number
;
additionalPayment
:
number
;
balanceEnd
:
number
;
balanceStart
:
number
;
minPayment
:
number
;
name
:
string
;
paymentAmount
:
number
;
}
[]
;
balance
:
number
;
}
Returns
{
accounts
:
{
accruedInterest
:
number
;
additionalPayment
:
number
;
balanceEnd
:
number
;
balanceStart
:
number
;
minPayment
:
number
;
name
:
string
;
paymentAmount
:
number
;
}
[]
;
balance
:
number
;
}
accounts
:
{
accruedInterest
:
number
;
additionalPayment
:
number
;
balanceEnd
:
number
;
balanceStart
:
number
;
minPayment
:
number
;
name
:
string
;
paymentAmount
:
number
;
}
[]
balance
:
number
parse
Accounts
parse
Accounts
(
accounts
)
:
{
balance
:
number
;
interest
:
number
;
minPayment
:
number
;
name
:
string
;
}
[]
Parameters
accounts
:
AccountObject
[]
Returns
{
balance
:
number
;
interest
:
number
;
minPayment
:
number
;
name
:
string
;
}
[]
set
Accounts
set
Accounts
(
accounts
)
:
Account
[]
Parameters
accounts
:
AccountObject
[]
Returns
Account
[]
sort
Accounts
sort
Accounts
(
accounts
,
key
?
,
order
?
)
:
AccountObject
[]
Parameters
accounts
:
AccountObject
[]
key
:
AccountObjectKeys
= AccountObjectKeys.interest
order
:
OrderDirection
= OrderDirection.descending
Returns
AccountObject
[]
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
accounts
additional
Payment
balance
Start
current
Balance
snowball
Amount
strategy
create
Payment
Plan
get
Current
Balance
get
Sort
Key
And
Order
make
Payment
For
Account
make
Payments
For
Month
parse
Accounts
set
Accounts
sort
Accounts
node-debt-snowball - v2.5.0
Loading...
Generates a payment plan