invoices: add missing String() cases

This commit is contained in:
Joost Jager
2020-01-21 13:55:14 +01:00
parent ad0a89b844
commit c7208ffb2c

View File

@@ -128,6 +128,9 @@ func (u ResolutionResult) String() string {
case ResultSettled: case ResultSettled:
return "settled" return "settled"
case ResultCanceled:
return "canceled"
case ResultInvoiceNotOpen: case ResultInvoiceNotOpen:
return "invoice no longer open" return "invoice no longer open"
@@ -137,6 +140,9 @@ func (u ResolutionResult) String() string {
case ResultMppInProgress: case ResultMppInProgress:
return "mpp reception in progress" return "mpp reception in progress"
case ResultMppTimeout:
return "mpp timeout"
case ResultAddressMismatch: case ResultAddressMismatch:
return "payment address mismatch" return "payment address mismatch"
@@ -152,6 +158,9 @@ func (u ResolutionResult) String() string {
case ResultKeySendError: case ResultKeySendError:
return "invalid keysend parameters" return "invalid keysend parameters"
case ResultInvoiceNotFound:
return "invoice not found"
default: default:
return "unknown" return "unknown"
} }