+ /**
+ * Returns the Duration remaining until the invoice expires.
+ */
+ public long duration_until_expiry() {
+ long ret = bindings.Invoice_duration_until_expiry(this.ptr);
+ Reference.reachabilityFence(this);
+ return ret;
+ }
+
+ /**
+ * Returns the Duration remaining until the invoice expires given the current time.
+ * `time` is the timestamp as a duration since the Unix epoch.
+ */
+ public long expiration_remaining_from_epoch(long time) {
+ long ret = bindings.Invoice_expiration_remaining_from_epoch(this.ptr, time);
+ Reference.reachabilityFence(this);
+ Reference.reachabilityFence(time);
+ return ret;
+ }
+