X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FInvoiceFeatures.ts;fp=ts%2Fstructs%2FInvoiceFeatures.ts;h=0214501714b94f4eb8c19aac7566e50e61f6fff0;hb=0f5027835d5a668a9b296f6d9e0fe894d3a6956d;hp=ba5f0bf0dadc64b14db3a4c5d587aa705577fc3a;hpb=a77a2856c7cd010a7b478cce793f7c9f999284d8;p=ldk-java diff --git a/ts/structs/InvoiceFeatures.ts b/ts/structs/InvoiceFeatures.ts index ba5f0bf0..02145017 100644 --- a/ts/structs/InvoiceFeatures.ts +++ b/ts/structs/InvoiceFeatures.ts @@ -18,6 +18,12 @@ 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 InvoiceFeatures clone() { number ret = bindings.InvoiceFeatures_clone(this.ptr); const ret_hu_conv: InvoiceFeatures = new InvoiceFeatures(null, ret); @@ -39,6 +45,11 @@ import * as bindings from '../bindings' // TODO: figure out location return ret_hu_conv; } + 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;