mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 22:44:29 +01:00
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:
@@ -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
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user