blob: d6d82d005a0876a120a6540c6e4a8be4933abfe5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
module LoggedIn.Home.Action
( Action(..)
) where
import Model.Payment exposing (Payments, Payment, PaymentId, PaymentFrequency)
import LoggedIn.Home.Account.Action as AccountAction
import LoggedIn.Home.AddPayment.Action as AddPaymentAction
import LoggedIn.Home.Monthly.Action as MonthlyAction
type Action =
NoOp
| UpdateAdd AddPaymentAction.Action
| UpdatePayments Payments
| AddPayment String String PaymentFrequency
| ValidateAddPayment PaymentId String Int PaymentFrequency
| DeletePayment Payment PaymentFrequency
| ValidateDeletePayment Payment PaymentFrequency
| ToggleEdit PaymentId
| UpdatePage Int
| UpdateMonthly MonthlyAction.Action
| UpdateAccount AccountAction.Action
|