aboutsummaryrefslogtreecommitdiff
path: root/src/client/elm/LoggedIn/Action.elm
blob: ae72dea87fbbaeb05213d69db24f5ffcc72644d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module LoggedIn.Action
  ( Action(..)
  ) where

import Model.Payment exposing (Payment, PaymentId, PaymentFrequency)
import Model.Income exposing (IncomeId)

import LoggedIn.Home.Action as HomeAction

type Action =
  NoOp
  | HomeAction HomeAction.Action
  | AddPayment String String PaymentFrequency
  | ValidateAddPayment PaymentId String Int PaymentFrequency
  | DeletePayment Payment PaymentFrequency
  | ValidateDeletePayment Payment PaymentFrequency
  | UpdateIncome Int
  | ValidateUpdateIncome IncomeId Int