mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Remove AwaitingConfirmation
This commit is contained in:
@@ -53,7 +53,6 @@ namespace BTCPayServer.Client.Models
|
|||||||
public enum PaymentStatus
|
public enum PaymentStatus
|
||||||
{
|
{
|
||||||
Invalid,
|
Invalid,
|
||||||
AwaitingConfirmation,
|
|
||||||
AwaitingCompletion,
|
AwaitingCompletion,
|
||||||
Complete
|
Complete
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -265,13 +265,10 @@ namespace BTCPayServer.Controllers.GreenField
|
|||||||
Id = data.GetPaymentId(),
|
Id = data.GetPaymentId(),
|
||||||
Status = !paymentEntity.Accounted
|
Status = !paymentEntity.Accounted
|
||||||
? InvoicePaymentMethodDataModel.Payment.PaymentStatus.Invalid
|
? InvoicePaymentMethodDataModel.Payment.PaymentStatus.Invalid
|
||||||
: data.PaymentCompleted(paymentEntity)
|
: data.PaymentConfirmed(paymentEntity, entity.SpeedPolicy) ||
|
||||||
|
data.PaymentCompleted(paymentEntity)
|
||||||
? InvoicePaymentMethodDataModel.Payment.PaymentStatus.Complete
|
? InvoicePaymentMethodDataModel.Payment.PaymentStatus.Complete
|
||||||
: data.PaymentConfirmed(paymentEntity, entity.SpeedPolicy)
|
: InvoicePaymentMethodDataModel.Payment.PaymentStatus.AwaitingCompletion,
|
||||||
? InvoicePaymentMethodDataModel.Payment.PaymentStatus
|
|
||||||
.AwaitingCompletion
|
|
||||||
: InvoicePaymentMethodDataModel.Payment.PaymentStatus
|
|
||||||
.AwaitingConfirmation,
|
|
||||||
Fee = paymentEntity.NetworkFee,
|
Fee = paymentEntity.NetworkFee,
|
||||||
Value = data.GetValue(),
|
Value = data.GetValue(),
|
||||||
ReceivedDate = paymentEntity.ReceivedTime.DateTime
|
ReceivedDate = paymentEntity.ReceivedTime.DateTime
|
||||||
|
|||||||
@@ -778,13 +778,11 @@
|
|||||||
"description": "",
|
"description": "",
|
||||||
"x-enumNames": [
|
"x-enumNames": [
|
||||||
"Invalid",
|
"Invalid",
|
||||||
"AwaitingConfirmation",
|
|
||||||
"AwaitingCompletion",
|
"AwaitingCompletion",
|
||||||
"Complete"
|
"Complete"
|
||||||
],
|
],
|
||||||
"enum": [
|
"enum": [
|
||||||
"Invalid",
|
"Invalid",
|
||||||
"AwaitingConfirmation",
|
|
||||||
"AwaitingCompletion",
|
"AwaitingCompletion",
|
||||||
"Complete"
|
"Complete"
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user