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.
23 lines
522 B
C#
23 lines
522 B
C#
using gehGassi.Domain.Dogs;
|
|
using gehGassi.Domain.Payment;
|
|
using gehGassi.Dto.Payment;
|
|
|
|
namespace gehGassi.Web.Models
|
|
{
|
|
/// <summary>
|
|
/// Viewmodel für das Autopayout tool
|
|
/// </summary>
|
|
public class AutoPayoutVm
|
|
{
|
|
public Wallet Wallet { get; set; }
|
|
public AppUser AppUser { get; set; }
|
|
}
|
|
|
|
public class RunAutoPayoutVm
|
|
{
|
|
public Wallet Wallet { get; set; }
|
|
public AppUser AppUser { get; set; }
|
|
public PayoutDto PayoutDto { get; set; }
|
|
}
|
|
}
|