aboutsummaryrefslogtreecommitdiff
path: root/src/client/elm/Model/Action/LoggedInAction.elm
blob: 4538ec71c393bced386038c66bf078e1add0df45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
module Model.Action.LoggedInAction
  ( LoggedInAction(..)
  ) where

import Model.Payment exposing (Payments, Payment, PaymentId, PaymentFrequency)
import Model.Action.MonthlyAction exposing (MonthlyAction)
import Model.Action.AccountAction exposing (AccountAction)
import Model.Action.AddPaymentAction exposing (AddPaymentAction)

type LoggedInAction =
  NoOp
  | UpdateAdd AddPaymentAction
  | UpdatePayments Payments
  | AddPayment String String PaymentFrequency
  | ValidateAddPayment PaymentId String Int PaymentFrequency
  | DeletePayment Payment PaymentFrequency
  | ValidateDeletePayment Payment PaymentFrequency
  | ToggleEdit PaymentId
  | UpdatePage Int
  | UpdateMonthly MonthlyAction
  | UpdateAccount AccountAction