X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FPaymentSendFailure.ts;h=10fc46c6bc702a640384883733496a4e0e5e3b42;hb=b3302d48f4dec85e9d23d9b6324d33b7c8619770;hp=36daa4ec969adc29aef2b3bb2a3e8e592f421c70;hpb=c45b91b3165ba0ff774d12d357188cae979574d3;p=ldk-java diff --git a/ts/structs/PaymentSendFailure.ts b/ts/structs/PaymentSendFailure.ts index 36daa4ec..10fc46c6 100644 --- a/ts/structs/PaymentSendFailure.ts +++ b/ts/structs/PaymentSendFailure.ts @@ -86,4 +86,32 @@ export class PartialFailure extends PaymentSendFailure { return ret_hu_conv; } + public static PaymentSendFailure constructor_parameter_error(APIError a) { + number ret = bindings.PaymentSendFailure_parameter_error(a.ptr); + PaymentSendFailure ret_hu_conv = PaymentSendFailure.constr_from_ptr(ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); + return ret_hu_conv; + } + + public static PaymentSendFailure constructor_path_parameter_error(Result_NoneAPIErrorZ[] a) { + number ret = bindings.PaymentSendFailure_path_parameter_error(a != null ? Arrays.stream(a).map(a_conv_22 -> a_conv_22 != null ? a_conv_22.ptr : 0).toArray(number[]::new) : null); + PaymentSendFailure ret_hu_conv = PaymentSendFailure.constr_from_ptr(ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); + return ret_hu_conv; + } + + public static PaymentSendFailure constructor_all_failed_retry_safe(APIError[] a) { + number ret = bindings.PaymentSendFailure_all_failed_retry_safe(a != null ? Arrays.stream(a).map(a_conv_10 -> a_conv_10.ptr).toArray(number[]::new) : null); + PaymentSendFailure ret_hu_conv = PaymentSendFailure.constr_from_ptr(ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); + return ret_hu_conv; + } + + public static PaymentSendFailure constructor_partial_failure(Result_NoneAPIErrorZ[] a) { + number ret = bindings.PaymentSendFailure_partial_failure(a != null ? Arrays.stream(a).map(a_conv_22 -> a_conv_22 != null ? a_conv_22.ptr : 0).toArray(number[]::new) : null); + PaymentSendFailure ret_hu_conv = PaymentSendFailure.constr_from_ptr(ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); + return ret_hu_conv; + } + }