payment: note that Stripe has instituted an additional 1% fee for non-US cards
[hcoop/portal.git] / location.sig
CommitLineData
b340786b
AC
1signature LOCATION =
2sig
3 type location = {id : int, parent : int option, name : string}
4 type lives = {usr : int, loc : int}
5
6 val addLocation : int option * string -> int
7 val lookupLocation : int -> location
8 val modLocation : location -> unit
9 val deleteLocation : int -> unit
10
11 val locationTree : int option * int option -> location Util.flat_tree
12 val locationTreeWithUser : int option * int option * int -> (bool * location) Util.flat_tree
13 val locationTreeWithCounts : int option * int option -> (int * location) Util.flat_tree
14
15 val livesIn : int * int -> bool
16 val addToLocation : lives -> unit
17 val removeFromLocation : lives -> unit
18
19 val alreadyExists : int option * string -> bool
20
21 val residents : int -> Init.user list
22 val residentsOneLevel : int -> Init.user list
23 val userLocations : int -> location list
24 val subLocations : int option -> location list
25end