[C#] Add marshaling logic for array C# -> C conversion
[ldk-java] / c_sharp / src / org / ldk / enums / SemanticError.cs
1 namespace org { namespace ldk { namespace enums {/**
2  * Errors that may occur when converting a `RawInvoice` to an `Invoice`. They relate to the
3  * requirements sections in BOLT #11
4  */
5 public enum SemanticError {
6         /**
7          * The invoice is missing the mandatory payment hash
8          */
9         LDKSemanticError_NoPaymentHash,
10         /**
11          * The invoice has multiple payment hashes which isn't allowed
12          */
13         LDKSemanticError_MultiplePaymentHashes,
14         /**
15          * No description or description hash are part of the invoice
16          */
17         LDKSemanticError_NoDescription,
18         /**
19          * The invoice contains multiple descriptions and/or description hashes which isn't allowed
20          */
21         LDKSemanticError_MultipleDescriptions,
22         /**
23          * The invoice is missing the mandatory payment secret, which all modern lightning nodes
24          * should provide.
25          */
26         LDKSemanticError_NoPaymentSecret,
27         /**
28          * The invoice contains multiple payment secrets
29          */
30         LDKSemanticError_MultiplePaymentSecrets,
31         /**
32          * The invoice's features are invalid
33          */
34         LDKSemanticError_InvalidFeatures,
35         /**
36          * The recovery id doesn't fit the signature/pub key
37          */
38         LDKSemanticError_InvalidRecoveryId,
39         /**
40          * The invoice's signature is invalid
41          */
42         LDKSemanticError_InvalidSignature,
43         /**
44          * The invoice's amount was not a whole number of millisatoshis
45          */
46         LDKSemanticError_ImpreciseAmount,
47 }} } }