[Java] Update auto-generated bindings to 0.0.115
[ldk-java] / src / main / java / org / ldk / structs / RawInvoice.java
index f65b3a403523c08380c95def85678d2ba7c62241..002ba01bec2ddd6589f7923f8e2bad713987c527 100644 (file)
@@ -9,11 +9,11 @@ import javax.annotation.Nullable;
 
 
 /**
- * Represents an syntactically correct Invoice for a payment on the lightning network,
+ * Represents an syntactically correct [`Invoice`] for a payment on the lightning network,
  * but without the signature information.
- * De- and encoding should not lead to information loss but may lead to different hashes.
+ * Decoding and encoding should not lead to information loss but may lead to different hashes.
  * 
- * For methods without docs see the corresponding methods in `Invoice`.
+ * For methods without docs see the corresponding methods in [`Invoice`].
  */
 @SuppressWarnings("unchecked") // We correctly assign various generic arrays
 public class RawInvoice extends CommonBase {
@@ -82,7 +82,7 @@ public class RawInvoice extends CommonBase {
        }
 
        /**
-        * Checks if two RawInvoices contain equal inner contents.
+        * Generates a non-cryptographic 64-bit hash of the RawInvoice.
         */
        public long hash() {
                long ret = bindings.RawInvoice_hash(this.ptr);
@@ -171,11 +171,11 @@ public class RawInvoice extends CommonBase {
         * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
         */
        @Nullable
-       public MinFinalCltvExpiry min_final_cltv_expiry() {
-               long ret = bindings.RawInvoice_min_final_cltv_expiry(this.ptr);
+       public MinFinalCltvExpiryDelta min_final_cltv_expiry_delta() {
+               long ret = bindings.RawInvoice_min_final_cltv_expiry_delta(this.ptr);
                Reference.reachabilityFence(this);
                if (ret >= 0 && ret <= 4096) { return null; }
-               org.ldk.structs.MinFinalCltvExpiry ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.MinFinalCltvExpiry(null, ret); }
+               org.ldk.structs.MinFinalCltvExpiryDelta ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.MinFinalCltvExpiryDelta(null, ret); }
                if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(this); };
                return ret_hu_conv;
        }
@@ -190,6 +190,15 @@ public class RawInvoice extends CommonBase {
                return ret;
        }
 
+       public Option_CVec_u8ZZ payment_metadata() {
+               long ret = bindings.RawInvoice_payment_metadata(this.ptr);
+               Reference.reachabilityFence(this);
+               if (ret >= 0 && ret <= 4096) { return null; }
+               org.ldk.structs.Option_CVec_u8ZZ ret_hu_conv = org.ldk.structs.Option_CVec_u8ZZ.constr_from_ptr(ret);
+               if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(this); };
+               return ret_hu_conv;
+       }
+
        /**
         * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
         */