[Java] Update auto-generated bindings to 0.0.115
[ldk-java] / src / main / java / org / ldk / enums / PaymentFailureReason.java
diff --git a/src/main/java/org/ldk/enums/PaymentFailureReason.java b/src/main/java/org/ldk/enums/PaymentFailureReason.java
new file mode 100644 (file)
index 0000000..1710fa7
--- /dev/null
@@ -0,0 +1,44 @@
+package org.ldk.enums;
+
+/**
+ * The reason the payment failed. Used in [`Event::PaymentFailed`].
+ */
+public enum PaymentFailureReason {
+       /**
+        * The intended recipient rejected our payment.
+        */
+       LDKPaymentFailureReason_RecipientRejected,
+       /**
+        * The user chose to abandon this payment by calling [`ChannelManager::abandon_payment`].
+        * 
+        * [`ChannelManager::abandon_payment`]: crate::ln::channelmanager::ChannelManager::abandon_payment
+        */
+       LDKPaymentFailureReason_UserAbandoned,
+       /**
+        * We exhausted all of our retry attempts while trying to send the payment, or we
+        * exhausted the [`Retry::Timeout`] if the user set one. If at any point a retry
+        * attempt failed while being forwarded along the path, an [`Event::PaymentPathFailed`] will
+        * have come before this.
+        * 
+        * [`Retry::Timeout`]: crate::ln::channelmanager::Retry::Timeout
+        */
+       LDKPaymentFailureReason_RetriesExhausted,
+       /**
+        * The payment expired while retrying, based on the provided
+        * [`PaymentParameters::expiry_time`].
+        * 
+        * [`PaymentParameters::expiry_time`]: crate::routing::router::PaymentParameters::expiry_time
+        */
+       LDKPaymentFailureReason_PaymentExpired,
+       /**
+        * We failed to find a route while retrying the payment.
+        */
+       LDKPaymentFailureReason_RouteNotFound,
+       /**
+        * This error should generally never happen. This likely means that there is a problem with
+        * your router.
+        */
+       LDKPaymentFailureReason_UnexpectedError,
+       ; static native void init();
+       static { init(); }
+}
\ No newline at end of file