payment: note that Stripe has instituted an additional 1% fee for non-US cards
[hcoop/portal.git] / balance.sig
CommitLineData
208e2cbc
AC
1signature BALANCE =
2sig
466c5944 3 type balance = {id : int, name : string, amount : real}
208e2cbc
AC
4
5 val addBalance : string -> int
6 val lookupBalance : int -> balance
7 val modBalance : balance -> unit
8 val deleteBalance : int -> unit
9 val listBalances : unit -> balance list
afc975d0 10 val listOwnedBalances : unit -> balance list
8ffa2c9e 11 val listUnownedBalances : unit -> balance list
208e2cbc 12 val listBalanceUsers : int -> Init.user list
711471a2 13 val listNegativeOwnedBalances : unit -> balance list
208e2cbc
AC
14
15 val validBalanceName : string -> bool
16 val balanceNameToId : string -> int option
8ffa2c9e
AC
17
18 val sumOwnedBalances : unit -> real
0dd4d4cb 19 val isNegative : balance -> bool
466c5944
AC
20
21 val depositAmount : int -> real
afc975d0 22end