Skip to content

DaveMuirhead/banking_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BankingApp

Setup

This project was generated on 'https://phx.new/' with the following options:

mix phx.new banking_app --no-install --app banking_app --no-ecto --adapter bandit --no-gettext

Accounts Context Operations

  • Create Account
BankingApp.Accounts.create_account(1000)
  • List Accounts
BankingApp.Accounts.list_accounts()
  • Get Account
BankingApp.Accounts.get_account(1000)
  • Get Account Balance
BankingApp.Accounts.get_balance(1000)
  • Depost to Account
BankingApp.Accounts.deposit(1000, Money.new(500, :USD))
  • Withdraw from Account
BankingApp.Accounts.withdraw(1000, Money.new(50, :USD))
  • List Account Transactions
BankingApp.Accounts.list_transactions(1000)
  • Get Transaction by ID
BankingApp.Accounts.get_transaction(1000, "")
  • Schedule Recurring Transaction
BankingApp.Accounts.schedule_recurring_transaction(1000, Money.new(10, :USD), :withdrawal, 10)
  • List Recurring Transactions
BankingApp.Accounts.get_recurring_transactions(1000)
  • Cancel Recurring Transaction
BankingApp.Accounts.cancel_recurring_transaction(1000, "01975fe1-959e-746c-8963-cd49248fb94c")

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published