Erlbank Futuristic System
These are our interfaces.
Statements Service processes Account Creation Notifications (ACNs).
field name | data type | description |
---|---|---|
account_number |
number() |
Account number of Erlbank customer |
given_name |
binary() |
Given name of Erlbank customer |
surname |
binary() |
Surname of Erlbank customer |
amount |
number() |
Initial account balance |
person_id |
number() |
Initial Person ID |
Statements Service processes Transaction Success Notification (TSNs).
field name | data type | description |
---|---|---|
transaction_id |
number() |
Transaction ID (unique) |
from_account_number |
number() |
Account number of transaction sender |
to_account_number |
number() |
Account number of transaction receiver |
amount |
number() |
Amount of money transferred |
timestamp() |
timestamp() |
Timestamp of the transaction |
$ rebar3 compile
The service can be run locally including a REPL using
- Create Account: gen_server:cast(statements, {account_created,1,<<"Peter">>,<<"Lustig">>,2000,1}).
-
gen_server:cast(<PID>, {Function, AccountNr, Name, Surname, Amount, PersonID})
-
- Create Transaction: gen_server:cast(statements, {transaction_succeeded,1,1,2,1000,erlang:timestamp()}).
-
gen_server:cast(<PID>, {Function, TransactionID, Sender, Receiver, Amount, Timestamp})
-
$ rebar3 shell
The web-frontend is served at http://localhost:8002/