Webhooks: Remove OverPaid property from invoice payment events

In addition to #5538 and #5496. This aligns it with [what we have in the docs](https://docs.btcpayserver.org/API/Greenfield/v1/#tag/Webhooks).
This commit is contained in:
Dennis Reimann
2023-12-06 14:48:34 +01:00
parent 3f344f2c0c
commit 379286c366
2 changed files with 0 additions and 2 deletions

View File

@@ -93,7 +93,6 @@ namespace BTCPayServer.Client.Models
public bool AfterExpiration { get; set; } public bool AfterExpiration { get; set; }
public string PaymentMethod { get; set; } public string PaymentMethod { get; set; }
public InvoicePaymentMethodDataModel.Payment Payment { get; set; } public InvoicePaymentMethodDataModel.Payment Payment { get; set; }
public bool OverPaid { get; set; }
} }
public class WebhookInvoicePaymentSettledEvent : WebhookInvoiceReceivedPaymentEvent public class WebhookInvoicePaymentSettledEvent : WebhookInvoiceReceivedPaymentEvent

View File

@@ -111,7 +111,6 @@ public class InvoiceWebhookProvider : WebhookProvider<InvoiceEvent>
invoiceEvent.Invoice.Status.ToModernStatus() == InvoiceStatus.Invalid, invoiceEvent.Invoice.Status.ToModernStatus() == InvoiceStatus.Invalid,
PaymentMethod = invoiceEvent.Payment.GetPaymentMethodId().ToStringNormalized(), PaymentMethod = invoiceEvent.Payment.GetPaymentMethodId().ToStringNormalized(),
Payment = GreenfieldInvoiceController.ToPaymentModel(invoiceEvent.Invoice, invoiceEvent.Payment), Payment = GreenfieldInvoiceController.ToPaymentModel(invoiceEvent.Invoice, invoiceEvent.Payment),
OverPaid = invoiceEvent.Invoice.ExceptionStatus == InvoiceExceptionStatus.PaidOver,
StoreId = invoiceEvent.Invoice.StoreId StoreId = invoiceEvent.Invoice.StoreId
}; };
default: default: