1.0.0-alpha.56 • Published 2 years ago

sqrtledger-core v1.0.0-alpha.56

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Contributors Forks Stargazers Issues MIT License LinkedIn

About The Project

Illustration of a Wallet

There are many great README templates available on GitHub; however, I didn't find one that really suited my needs so I created this enhanced one. I want to create a README template so amazing that it'll be the last one you ever need -- I think this is it.

Here's why:

  • Your time should be focused on creating something amazing. A project that solves a problem and helps others
  • You shouldn't be doing the same tasks over and over like creating a README from scratch
  • You should implement DRY principles to the rest of your life :smile:

Of course, no one template will serve all projects since your needs may be different. So I'll be adding more in the near future. You may also suggest changes by forking this repo and creating a pull request or opening an issue. Thanks to all the people have contributed to expanding this template!

Use the BLANK_README.md to get started.

Built With

Getting Started

Installation

Use npm to install Sqrt Ledger Core:

  • npm
    npm install sqrtledger-core@latest -- save

Usage

import {
  MongoDbAccountRepository,
  MongoDbTransactionRepository,
  TransactionService,
  IAccountRepository,
} from 'sqrtledger-core';

const accountRepository: IAccountRepository = new MongoDbAccountRepository(null);
const transactionRepository: ITransactionRepository = new MongoDbTransactionRepository(null);

const transactionService: TransactionService = new TransactionService(
  accountRepository,
  transactionRepository
);

Models

Account View

{
  "label": "All In One Current Account",
  "metadata": {
    "issuer": "Banco Santander"
  },
  "name": "Current Account",
  "reference": "EVoiVSfB"
}

Account

{
  "availableBalance": 10000,
  "balance": 10000,
  "label": "All In One Current Account",
  "metadata": {
    "issuer": "Banco Santander"
  },
  "name": "Current Account",
  "reference": "EVoiVSfB",
  "settings": {
    "allowTransactions": true,
    "allowCreditTransactions": true,
    "allowDebitTransactions": true
  },
  "status": "active"
}

Card

{
  "authorizationCode": "AUTH_gltaab334m",
  "bankIdentificationNumber": "408408",
  "expirationMonth": "12",
  "expirationYear": "2030",
  "last4Digits": "4081"
}

Roadmap

  • Account Service
    • Implement create Function
    • Implement delete Function
    • Implement find Function
  • Customer Service
    • Implement create Function
    • Implement createOrUpdate Function
    • Implement find Function
    • Implement findAll Function
  • Transaction Service
    • Implement complete Function
    • Implement create Function
    • Implement createProcessComplete Function
    • Implement createProcessCompleteMultiple Function
    • Implement fail Function
    • Implement find Function
    • Implement findAll Function
    • Implement process Function
  • Account Repository using MongoDB
    • Implement create Function
    • Implement delete Function
    • Implement find Function
    • Implement updateAvailableBalance Function
    • Implement updateBalance Function
  • Account Repository using Redis
    • Implement create Function
    • Implement delete Function
    • Implement find Function
    • Implement updateAvailableBalance Function
    • Implement updateBalance Function

See the open issues for a full list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/amazing-feature)
  3. Commit your Changes (git commit -m 'Add amazing feature')
  4. Push to the Branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Barend Erasmus - @hirebarend - hirebarend@gmail.com

1.0.0-alpha.56

2 years ago

1.0.0-alpha.52

2 years ago

1.0.0-alpha.51

2 years ago

1.0.0-alpha.54

2 years ago

1.0.0-alpha.53

2 years ago

1.0.0-alpha.50

2 years ago

1.0.0-alpha.55

2 years ago

1.0.0-alpha.41

2 years ago

1.0.0-alpha.43

2 years ago

1.0.0-alpha.42

2 years ago

1.0.0-alpha.49

2 years ago

1.0.0-alpha.48

2 years ago

1.0.0-alpha.45

2 years ago

1.0.0-alpha.44

2 years ago

1.0.0-alpha.47

2 years ago

1.0.0-alpha.46

2 years ago

1.0.0-alpha.30

2 years ago

1.0.0-alpha.32

2 years ago

1.0.0-alpha.31

2 years ago

1.0.0-alpha.38

2 years ago

1.0.0-alpha.37

2 years ago

1.0.0-alpha.39

2 years ago

1.0.0-alpha.34

2 years ago

1.0.0-alpha.33

2 years ago

1.0.0-alpha.35

2 years ago

1.0.0-alpha.40

2 years ago

1.0.0-alpha.27

3 years ago

1.0.0-alpha.29

2 years ago

1.0.0-alpha.28

3 years ago

1.0.0-alpha.26

3 years ago

1.0.0-alpha.25

3 years ago

1.0.0-alpha.24

3 years ago

1.0.0-alpha.21

3 years ago

1.0.0-alpha.20

3 years ago

1.0.0-alpha.23

3 years ago

1.0.0-alpha.22

3 years ago

1.0.0-alpha.19

3 years ago

1.0.0-alpha.18

3 years ago

1.0.0-alpha.17

3 years ago

1.0.0-alpha.16

3 years ago

1.0.0-alpha.15

3 years ago

1.0.0-alpha.14

3 years ago

1.0.0-alpha.13

3 years ago

1.0.0-alpha.11

3 years ago

1.0.0-alpha.10

3 years ago

1.0.0-alpha.9

3 years ago

1.0.0-alpha.8

3 years ago

1.0.0-alpha.5

3 years ago

1.0.0-alpha.4

3 years ago

1.0.0-alpha.3

3 years ago

1.0.0-alpha.2

3 years ago

1.0.0-alpha.1

3 years ago

1.0.0-alpha.0

3 years ago