Introduced new methods in `IWalletService` and `WalletService` to retrieve wallets with positive balances. Added `AutoPayout` and `RunAutoPayout` methods in `ToolsController` to automate payouts, including synchronization with MangoPay balances. Created `AutoPayoutVm` and `RunAutoPayoutVm` view models. Added Razor views `AutoPayout.cshtml` and `RunAutoPayout.cshtml` for managing and displaying payout processes. Updated `appsettings` files to reduce `MinPayoutAmmount` from 1000 to 1. Refactored `ToolsController` for better wallet handling, added error handling, and improved code formatting. Commented out KYC check logic in `ApiPaymentController` with a TODO for review.
46 lines
1.4 KiB
Plaintext
46 lines
1.4 KiB
Plaintext
@using gehGassi.Permissions
|
|
@using gehGassi.Web.Helper
|
|
@using Microsoft.AspNetCore.Mvc.Localization
|
|
@model List<gehGassi.Web.Models.RunAutoPayoutVm>;
|
|
@inject IViewLocalizer Localizer
|
|
@{
|
|
ViewData["Title"] = Localizer["Menu_Tools"];
|
|
}
|
|
@section pageTitle {
|
|
<a href="@Url.Action("Index", "Home")">@Localizer["Menu_Tools"]</a>
|
|
}
|
|
|
|
<section id="autoPayoutListContainer">
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>App user</th>
|
|
<th>Balance before</th>
|
|
<th>IBAN</th>
|
|
<th>BIC</th>
|
|
<th>Status</th>
|
|
<th>Ammount</th>
|
|
<th>Result code</th>
|
|
<th>Result message</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in Model)
|
|
{
|
|
<tr>
|
|
<td>@item.AppUser.FirstName @item.AppUser.LastName</td>
|
|
<td>€ @((item.Wallet.Balance / 100).ToString("N2"))</td>
|
|
<td>@item.PayoutDto.Iban</td>
|
|
<td>@item.PayoutDto.Bic</td>
|
|
<td>@item.PayoutDto.Status.ToString()</td>
|
|
<td>€ @((item.PayoutDto.Ammount / 100).ToString("N2"))</td>
|
|
<td>@item.PayoutDto.ResultCode</td>
|
|
<td>@item.PayoutDto.ResultMessage</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
|
|
</section> |