module Model.View.PaymentView ( PaymentView , initPaymentView ) where import Model.Payment exposing (Payments) import Model.Payers exposing (Payers) import Model.View.Payment.Add exposing (..) import Model.View.Payment.Edition exposing (..) type alias PaymentView = { userName : String , add : AddPayment , payments : Payments , paymentsCount : Int , payers : Payers , edition : Maybe Edition , currentPage : Int } initPaymentView : String -> Payments -> Int -> Payers -> PaymentView initPaymentView userName payments paymentsCount payers = { userName = userName , add = initAddPayment , payments = payments , paymentsCount = paymentsCount , payers = payers , edition = Nothing , currentPage = 1 }