X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FInvoiceFeatures.ts;h=109957b1841cee1d5b34b842c47f62a6593b11f7;hb=f3e670e9341decac613d33fc52febf19cea32f20;hp=ba5f0bf0dadc64b14db3a4c5d587aa705577fc3a;hpb=f8c25e52ce878136043ddc4dbfac6c6640f1d4f6;p=ldk-java diff --git a/ts/structs/InvoiceFeatures.ts b/ts/structs/InvoiceFeatures.ts index ba5f0bf0..109957b1 100644 --- a/ts/structs/InvoiceFeatures.ts +++ b/ts/structs/InvoiceFeatures.ts @@ -18,6 +18,17 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.InvoiceFeatures_free(this.ptr); } } + public boolean eq(InvoiceFeatures b) { + boolean ret = bindings.InvoiceFeatures_eq(this.ptr, b == null ? 0 : b.ptr & ~1); + this.ptrs_to.add(b); + return ret; + } + + public number clone_ptr() { + number ret = bindings.InvoiceFeatures_clone_ptr(this.ptr); + return ret; + } + public InvoiceFeatures clone() { number ret = bindings.InvoiceFeatures_clone(this.ptr); const ret_hu_conv: InvoiceFeatures = new InvoiceFeatures(null, ret); @@ -39,6 +50,16 @@ import * as bindings from '../bindings' // TODO: figure out location return ret_hu_conv; } + public boolean requires_unknown_bits() { + boolean ret = bindings.InvoiceFeatures_requires_unknown_bits(this.ptr); + return ret; + } + + public boolean supports_payment_secret() { + boolean ret = bindings.InvoiceFeatures_supports_payment_secret(this.ptr); + return ret; + } + public Uint8Array write() { Uint8Array ret = bindings.InvoiceFeatures_write(this.ptr); return ret;