pretty good progress in being able to add/edit all bank accounts.
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
|
||||
(s/def ::checking-bank-account (s/and (s/keys :req-un [::code ::name ::bank-name ::bank-code ::routing ::number ::type])
|
||||
#(= (:type %) :check)))
|
||||
(s/def ::cash-account (s/and (s/keys :req-un [::type])
|
||||
(s/def ::cash-account (s/and (s/keys :req-un [::type ::code ::name])
|
||||
#(= (:type %) :cash)))
|
||||
(s/def ::bank-account (s/or :cash ::cash-account :checking ::checking-bank-account))
|
||||
(s/def ::bank-accounts (s/coll-of ::bank-account))
|
||||
|
||||
Reference in New Issue
Block a user