using Baya.Application.Models.Common;
using Mediator;

namespace Baya.Application.Features.Payouts.Commands.RetryFailedPayout;

/// <summary>Re-submits a single <c>failed</c> payout to the bank rail (holiday-aware — never on a bank-closed
/// day). On success it posts the payout ledger + nets clawbacks like the first execute and re-settles the batch;
/// idempotent on the same key so a retried retry never double-sends.</summary>
public record RetryFailedPayoutCommand(long PayoutId) : IRequest<OperationResult<bool>>;
