Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / PaymentSendFailure.java
index b329a41387c74fd6246b763791726c2e5b780230..4e9bb14976d3f4eb311dd718187d21dfa27a734f 100644 (file)
@@ -37,23 +37,66 @@ public class PaymentSendFailure extends CommonBase {
        }
 
        public final static class ParameterError extends PaymentSendFailure {
+               public final APIError parameter_error;
                private ParameterError(long ptr, bindings.LDKPaymentSendFailure.ParameterError obj) {
                        super(null, ptr);
+                       long parameter_error = obj.parameter_error;
+                       APIError parameter_error_hu_conv = APIError.constr_from_ptr(parameter_error);
+                       parameter_error_hu_conv.ptrs_to.add(this);
+                       this.parameter_error = parameter_error_hu_conv;
                }
        }
        public final static class PathParameterError extends PaymentSendFailure {
+               public final Result_NoneAPIErrorZ[] path_parameter_error;
                private PathParameterError(long ptr, bindings.LDKPaymentSendFailure.PathParameterError obj) {
                        super(null, ptr);
+                       long[] path_parameter_error = obj.path_parameter_error;
+                       Result_NoneAPIErrorZ[] path_parameter_error_conv_22_arr = new Result_NoneAPIErrorZ[path_parameter_error.length];
+                       for (int w = 0; w < path_parameter_error.length; w++) {
+                               long path_parameter_error_conv_22 = path_parameter_error[w];
+                               Result_NoneAPIErrorZ path_parameter_error_conv_22_hu_conv = Result_NoneAPIErrorZ.constr_from_ptr(path_parameter_error_conv_22);
+                               path_parameter_error_conv_22_arr[w] = path_parameter_error_conv_22_hu_conv;
+                       }
+                       this.path_parameter_error = path_parameter_error_conv_22_arr;
                }
        }
        public final static class AllFailedRetrySafe extends PaymentSendFailure {
+               public final APIError[] all_failed_retry_safe;
                private AllFailedRetrySafe(long ptr, bindings.LDKPaymentSendFailure.AllFailedRetrySafe obj) {
                        super(null, ptr);
+                       long[] all_failed_retry_safe = obj.all_failed_retry_safe;
+                       APIError[] all_failed_retry_safe_conv_10_arr = new APIError[all_failed_retry_safe.length];
+                       for (int k = 0; k < all_failed_retry_safe.length; k++) {
+                               long all_failed_retry_safe_conv_10 = all_failed_retry_safe[k];
+                               APIError all_failed_retry_safe_conv_10_hu_conv = APIError.constr_from_ptr(all_failed_retry_safe_conv_10);
+                               all_failed_retry_safe_conv_10_hu_conv.ptrs_to.add(this);
+                               all_failed_retry_safe_conv_10_arr[k] = all_failed_retry_safe_conv_10_hu_conv;
+                       }
+                       this.all_failed_retry_safe = all_failed_retry_safe_conv_10_arr;
                }
        }
        public final static class PartialFailure extends PaymentSendFailure {
+               public final Result_NoneAPIErrorZ[] partial_failure;
                private PartialFailure(long ptr, bindings.LDKPaymentSendFailure.PartialFailure obj) {
                        super(null, ptr);
+                       long[] partial_failure = obj.partial_failure;
+                       Result_NoneAPIErrorZ[] partial_failure_conv_22_arr = new Result_NoneAPIErrorZ[partial_failure.length];
+                       for (int w = 0; w < partial_failure.length; w++) {
+                               long partial_failure_conv_22 = partial_failure[w];
+                               Result_NoneAPIErrorZ partial_failure_conv_22_hu_conv = Result_NoneAPIErrorZ.constr_from_ptr(partial_failure_conv_22);
+                               partial_failure_conv_22_arr[w] = partial_failure_conv_22_hu_conv;
+                       }
+                       this.partial_failure = partial_failure_conv_22_arr;
                }
        }
+       /**
+        * Creates a copy of the PaymentSendFailure
+        */
+       public PaymentSendFailure clone() {
+               long ret = bindings.PaymentSendFailure_clone(this.ptr);
+               PaymentSendFailure ret_hu_conv = PaymentSendFailure.constr_from_ptr(ret);
+               ret_hu_conv.ptrs_to.add(this);
+               return ret_hu_conv;
+       }
+
 }