aboutsummaryrefslogtreecommitdiff
path: root/src/client/Model/View/PaymentView.elm
blob: 07bd2ec89921d60e4dbadc9bd69fe47df0fc8090 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module Model.View.PaymentView
  ( PaymentView
  , initPaymentView
  ) where

import Model.Payment exposing (Payments)
import Model.View.Payment.Add exposing (..)

type alias PaymentView =
  { userName : String
  , add : AddPayment
  , payments : Payments
  }

initPaymentView : String -> Payments -> PaymentView
initPaymentView userName payments =
  { userName = userName
  , add = initAddPayment
  , payments = payments
  }