UNPKG

lightningdevkit

Version:
65 lines (64 loc) 2.26 kB
import { LSPS1PaymentState } from '../enums/LSPS1PaymentState.mjs'; import { Bolt11Invoice } from '../structs/Bolt11Invoice.mjs'; import { LSPSDateTime } from '../structs/LSPSDateTime.mjs'; import { CommonBase } from './CommonBase.mjs'; /** * A Lightning payment using BOLT 11. */ export declare class LSPS1Bolt11PaymentInfo extends CommonBase { /** * Indicates the current state of the payment. */ get_state(): LSPS1PaymentState; /** * Indicates the current state of the payment. */ set_state(val: LSPS1PaymentState): void; /** * The datetime when the payment option expires. */ get_expires_at(): LSPSDateTime; /** * The datetime when the payment option expires. */ set_expires_at(val: LSPSDateTime): void; /** * The total fee the LSP will charge to open this channel in satoshi. */ get_fee_total_sat(): bigint; /** * The total fee the LSP will charge to open this channel in satoshi. */ set_fee_total_sat(val: bigint): void; /** * The amount the client needs to pay to have the requested channel openend. */ get_order_total_sat(): bigint; /** * The amount the client needs to pay to have the requested channel openend. */ set_order_total_sat(val: bigint): void; /** * A BOLT11 invoice the client can pay to have to channel opened. */ get_invoice(): Bolt11Invoice; /** * A BOLT11 invoice the client can pay to have to channel opened. */ set_invoice(val: Bolt11Invoice): void; /** * Constructs a new LSPS1Bolt11PaymentInfo given each field */ static constructor_new(state_arg: LSPS1PaymentState, expires_at_arg: LSPSDateTime, fee_total_sat_arg: bigint, order_total_sat_arg: bigint, invoice_arg: Bolt11Invoice): LSPS1Bolt11PaymentInfo; clone_ptr(): bigint; /** * Creates a copy of the LSPS1Bolt11PaymentInfo */ clone(): LSPS1Bolt11PaymentInfo; /** * Checks if two LSPS1Bolt11PaymentInfos contain equal inner contents. * This ignores pointers and is_owned flags and looks at the values in fields. * Two objects with NULL inner values will be considered "equal" here. */ eq(b: LSPS1Bolt11PaymentInfo): boolean; }