[C#] Check in initial auto-generated C# bindings
[ldk-java] / c_sharp / src / org / ldk / enums / CreationError.cs
diff --git a/c_sharp/src/org/ldk/enums/CreationError.cs b/c_sharp/src/org/ldk/enums/CreationError.cs
new file mode 100644 (file)
index 0000000..1e1aec0
--- /dev/null
@@ -0,0 +1,28 @@
+namespace org { namespace ldk { namespace enums {/**
+ * Errors that may occur when constructing a new `RawInvoice` or `Invoice`
+ */
+public enum CreationError {
+       /**
+        * The supplied description string was longer than 639 __bytes__ (see [`Description::new(...)`](./struct.Description.html#method.new))
+        */
+       LDKCreationError_DescriptionTooLong,
+       /**
+        * The specified route has too many hops and can't be encoded
+        */
+       LDKCreationError_RouteTooLong,
+       /**
+        * The Unix timestamp of the supplied date is less than zero or greater than 35-bits
+        */
+       LDKCreationError_TimestampOutOfBounds,
+       /**
+        * The supplied millisatoshi amount was greater than the total bitcoin supply.
+        */
+       LDKCreationError_InvalidAmount,
+       /**
+        * Route hints were required for this invoice and were missing. Applies to
+        * [phantom invoices].
+        * 
+        * [phantom invoices]: crate::utils::create_phantom_invoice
+        */
+       LDKCreationError_MissingRouteHints,
+}} } }