aboutsummaryrefslogtreecommitdiff
path: root/src/client/elm/LoggedIn/Action.elm
blob: 719e534d919a8fb2524c3ddce48ff4918e6d99ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
module LoggedIn.Action
  ( Action(..)
  ) where

import Date exposing (Date)

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

import LoggedIn.Home.Action as HomeAction
import LoggedIn.User.Action as UserAction

type Action =
  NoOp
  | HomeAction HomeAction.Action
  | UserAction UserAction.Action

  | AddPayment String String Frequency
  | ValidateAddPayment PaymentId String Int Frequency

  | DeletePayment PaymentId
  | ValidateDeletePayment PaymentId

  | AddIncome Date Int
  | ValidateAddIncome IncomeId Date Int

  | DeleteIncome IncomeId
  | ValidateDeleteIncome IncomeId