Skip to content

This is a starting idea for payment solution with ASP.NET Core build with my domain knowledge.

License

Notifications You must be signed in to change notification settings

evelinkolev/loansystem

Repository files navigation

Loan System

Payments solution implementing clean architecture & jwt bearer authentication in asp.net 7 using MediatR & Mapster.

Stars Badge Forks Badge Pull Requests Badge Issues Badge GitHub contributors License Badge

If you are intersted, please feel free to educate me on any topic if you have any tips I'd love to hear from you and learn from you as well.


To create a Payer object for a User, you will send a POST request with a request body represented in the sample below*. Since, just like in the real world, a customer may have a number of accounts from which to make payments, Users can have multiple Payers. The PayerId that is returned with a successful API call can be used to specify the Card when making a payment.

POST {{host}}/api/v1/payers

Payer Request

{
    "fullName": "Test Testov",
    "deposit": 914273
}
200 OK

Payer Response

{
    "id": "9651ad1d-bb64-4872-ba61-08db85d82f7f",
    "fullName": "Test Testov",
    "deposit": 914273,
    "routingNumber": "45118840",
    "accountNumber": "259087750",
    "createdDateTime": "2023-09-16T06:48:44.3411836Z",
    "updatedDateTime": "0001-01-01T00:00:00"
    "userId": "0fe4f18d-7784-4e1f-973b-5743cgc7dca"
}

Documentation

This page contains important information on how to properly configure LoanSystem.Api

Database

The project is configured to use SQL Server by default.

When you run the application the database will be automatically created (if necessary) and the latest migrations will be applied.

Running database migrations is easy. Ensure you add the following flags to your command (values assume you are executing from repository root)

  • --project LoanSystem.Infrastructure (optional if in this folder)
  • --startup-project LoanSystem.Api

For example, to add a new migration from the root folder:

dotnet ef migrations add "SampleMigration" --project LoanSystem.Infrastructure --startup-project LoanSystem.Api

Technologies

Versions

The main branch is now on .NET 7.0. The following previous versions are available:

Support

If you are having problems, please let me know by raising a new issue.

License

This project is licensed with the MIT license.

About

This is a starting idea for payment solution with ASP.NET Core build with my domain knowledge.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages