[C#] Update auto-generated files
[ldk-java] / c_sharp / src / org / ldk / enums / RetryableSendFailure.cs
diff --git a/c_sharp/src/org/ldk/enums/RetryableSendFailure.cs b/c_sharp/src/org/ldk/enums/RetryableSendFailure.cs
new file mode 100644 (file)
index 0000000..400a2ca
--- /dev/null
@@ -0,0 +1,30 @@
+namespace org { namespace ldk { namespace enums {/**
+ * Indicates an immediate error on [`ChannelManager::send_payment`]. Further errors may be
+ * surfaced later via [`Event::PaymentPathFailed`] and [`Event::PaymentFailed`].
+ * 
+ * [`ChannelManager::send_payment`]: crate::ln::channelmanager::ChannelManager::send_payment
+ * [`Event::PaymentPathFailed`]: crate::events::Event::PaymentPathFailed
+ * [`Event::PaymentFailed`]: crate::events::Event::PaymentFailed
+ */
+public enum RetryableSendFailure {
+       /**
+        * The provided [`PaymentParameters::expiry_time`] indicated that the payment has expired. Note
+        * that this error is *not* caused by [`Retry::Timeout`].
+        * 
+        * [`PaymentParameters::expiry_time`]: crate::routing::router::PaymentParameters::expiry_time
+        */
+       LDKRetryableSendFailure_PaymentExpired,
+       /**
+        * We were unable to find a route to the destination.
+        */
+       LDKRetryableSendFailure_RouteNotFound,
+       /**
+        * Indicates that a payment for the provided [`PaymentId`] is already in-flight and has not
+        * yet completed (i.e. generated an [`Event::PaymentSent`] or [`Event::PaymentFailed`]).
+        * 
+        * [`PaymentId`]: crate::ln::channelmanager::PaymentId
+        * [`Event::PaymentSent`]: crate::events::Event::PaymentSent
+        * [`Event::PaymentFailed`]: crate::events::Event::PaymentFailed
+        */
+       LDKRetryableSendFailure_DuplicatePayment,
+}} } }