Rename PaymentMethod => PaymentMethodId (#6198)

* Rename PaymentMethod => PaymentMethodId

* Rename DB Columns
This commit is contained in:
Nicolas Dorier
2024-09-06 13:24:33 +09:00
committed by GitHub
parent 99dda66bbc
commit c93497af10
28 changed files with 107 additions and 109 deletions

View File

@@ -403,7 +403,7 @@ namespace BTCPayServer.Controllers.Greenfield
}
PaymentPrompt? paymentPrompt = null;
PayoutMethodId? payoutMethodId = null;
if (request.PaymentMethod is not null && PayoutMethodId.TryParse(request.PaymentMethod, out payoutMethodId))
if (request.PayoutMethodId is not null && PayoutMethodId.TryParse(request.PayoutMethodId, out payoutMethodId))
{
var supported = _payoutHandlers.GetSupportedPayoutMethods(store);
if (supported.Contains(payoutMethodId))
@@ -414,7 +414,7 @@ namespace BTCPayServer.Controllers.Greenfield
}
if (paymentPrompt is null)
{
ModelState.AddModelError(nameof(request.PaymentMethod), "Please select one of the payment methods which were available for the original invoice");
ModelState.AddModelError(nameof(request.PayoutMethodId), "Please select one of the payment methods which were available for the original invoice");
}
if (request.RefundVariant is null)
ModelState.AddModelError(nameof(request.RefundVariant), "`refundVariant` is mandatory");