+ /**
+ * Set this feature as optional.
+ */
+ public set_variable_length_onion_optional(): void {
+ bindings.InvoiceFeatures_set_variable_length_onion_optional(this.ptr);
+ }
+
+ /**
+ * Set this feature as required.
+ */
+ public set_variable_length_onion_required(): void {
+ bindings.InvoiceFeatures_set_variable_length_onion_required(this.ptr);
+ }
+
+ /**
+ * Checks if this feature is supported.
+ */
+ public supports_variable_length_onion(): boolean {
+ const ret: boolean = bindings.InvoiceFeatures_supports_variable_length_onion(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Checks if this feature is required.
+ */
+ public requires_variable_length_onion(): boolean {
+ const ret: boolean = bindings.InvoiceFeatures_requires_variable_length_onion(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Set this feature as optional.
+ */
+ public set_payment_secret_optional(): void {
+ bindings.InvoiceFeatures_set_payment_secret_optional(this.ptr);
+ }
+
+ /**
+ * Set this feature as required.
+ */
+ public set_payment_secret_required(): void {
+ bindings.InvoiceFeatures_set_payment_secret_required(this.ptr);
+ }
+
+ /**
+ * Checks if this feature is supported.
+ */
+ public supports_payment_secret(): boolean {
+ const ret: boolean = bindings.InvoiceFeatures_supports_payment_secret(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Checks if this feature is required.
+ */
+ public requires_payment_secret(): boolean {
+ const ret: boolean = bindings.InvoiceFeatures_requires_payment_secret(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Set this feature as optional.
+ */
+ public set_basic_mpp_optional(): void {
+ bindings.InvoiceFeatures_set_basic_mpp_optional(this.ptr);
+ }
+
+ /**
+ * Set this feature as required.
+ */
+ public set_basic_mpp_required(): void {
+ bindings.InvoiceFeatures_set_basic_mpp_required(this.ptr);
+ }
+
+ /**
+ * Checks if this feature is supported.
+ */
+ public supports_basic_mpp(): boolean {
+ const ret: boolean = bindings.InvoiceFeatures_supports_basic_mpp(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Checks if this feature is required.
+ */
+ public requires_basic_mpp(): boolean {
+ const ret: boolean = bindings.InvoiceFeatures_requires_basic_mpp(this.ptr);
+ return ret;
+ }
+