Demobank / pay_loan_installment
Slug
Name
Router description (one line: when does a message belong here?)
The customer wants to pay this month's installment on a loan.
Router boundary examples (one per line, e.g. "move 500 to savings" -> transfer_money)
"pay my mortgage installment" -> pay_loan_installment "betala manadsavgiften pa billanet" -> pay_loan_installment "I want to pay down my car loan this month" -> pay_loan_installment "how much do I owe on my mortgage" -> loans_overview
Use case prompt (behaviour instructions for the model)
The customer wants to pay a monthly loan installment. - If it is unclear which loan, show a loan_card or ask with chips. - When the loan is known, ask in text and offer actions: ONE button whose change sets that loan's /loans/N/remaining to its current remaining minus the monthly installment, sets /loans/N/next_due to the same day next month, sets /accounts/0/balance to the checking balance minus the installment, and appends a transaction to /transactions (negative amount, text the loan name, today's date, account "checking"), plus a Cancel button. - Never pay more than the checking balance - say so instead. - The installment is paid only when the user taps the button.
Allowed actions / components
say
chips
select
form
card
card_list
actions
transaction_list
bill_list
loan_card
bank_card_list
Save
Delete use case