f858b153eb1cdbcd7971795d49acb892036b4be3
[ldk-java] / src / main / java / org / ldk / enums / Bolt11SemanticError.java
1 package org.ldk.enums;
2
3 /**
4  * Errors that may occur when converting a [`RawBolt11Invoice`] to a [`Bolt11Invoice`]. They relate to
5  * the requirements sections in BOLT #11
6  */
7 public enum Bolt11SemanticError {
8         /**
9          * The invoice is missing the mandatory payment hash
10          */
11         LDKBolt11SemanticError_NoPaymentHash,
12         /**
13          * The invoice has multiple payment hashes which isn't allowed
14          */
15         LDKBolt11SemanticError_MultiplePaymentHashes,
16         /**
17          * No description or description hash are part of the invoice
18          */
19         LDKBolt11SemanticError_NoDescription,
20         /**
21          * The invoice contains multiple descriptions and/or description hashes which isn't allowed
22          */
23         LDKBolt11SemanticError_MultipleDescriptions,
24         /**
25          * The invoice is missing the mandatory payment secret, which all modern lightning nodes
26          * should provide.
27          */
28         LDKBolt11SemanticError_NoPaymentSecret,
29         /**
30          * The invoice contains multiple payment secrets
31          */
32         LDKBolt11SemanticError_MultiplePaymentSecrets,
33         /**
34          * The invoice's features are invalid
35          */
36         LDKBolt11SemanticError_InvalidFeatures,
37         /**
38          * The recovery id doesn't fit the signature/pub key
39          */
40         LDKBolt11SemanticError_InvalidRecoveryId,
41         /**
42          * The invoice's signature is invalid
43          */
44         LDKBolt11SemanticError_InvalidSignature,
45         /**
46          * The invoice's amount was not a whole number of millisatoshis
47          */
48         LDKBolt11SemanticError_ImpreciseAmount,
49         ; static native void init();
50         static { init(); }
51 }