UNPKG

lightningdevkit

Version:
82 lines (81 loc) 2.87 kB
import { LSPS1OrderState } from '../enums/LSPS1OrderState.mjs'; import { LSPSDateTime } from '../structs/LSPSDateTime.mjs'; import { LSPS1OrderId } from '../structs/LSPS1OrderId.mjs'; import { LSPS1OrderParams } from '../structs/LSPS1OrderParams.mjs'; import { LSPS1PaymentInfo } from '../structs/LSPS1PaymentInfo.mjs'; import { LSPS1ChannelInfo } from '../structs/LSPS1ChannelInfo.mjs'; import { CommonBase } from './CommonBase.mjs'; /** * A response to a [`LSPS1CreateOrderRequest`]. */ export declare class LSPS1CreateOrderResponse extends CommonBase { /** * The id of the channel order. */ get_order_id(): LSPS1OrderId; /** * The id of the channel order. */ set_order_id(val: LSPS1OrderId): void; /** * The parameters of channel order. */ get_order(): LSPS1OrderParams; /** * The parameters of channel order. */ set_order(val: LSPS1OrderParams): void; /** * The datetime when the order was created */ get_created_at(): LSPSDateTime; /** * The datetime when the order was created */ set_created_at(val: LSPSDateTime): void; /** * The current state of the order. */ get_order_state(): LSPS1OrderState; /** * The current state of the order. */ set_order_state(val: LSPS1OrderState): void; /** * Contains details about how to pay for the order. */ get_payment(): LSPS1PaymentInfo; /** * Contains details about how to pay for the order. */ set_payment(val: LSPS1PaymentInfo): void; /** * Contains information about the channel state. * * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None */ get_channel(): LSPS1ChannelInfo; /** * Contains information about the channel state. * * Note that val (or a relevant inner pointer) may be NULL or all-0s to represent None */ set_channel(val: LSPS1ChannelInfo | null): void; /** * Constructs a new LSPS1CreateOrderResponse given each field * * Note that channel_arg (or a relevant inner pointer) may be NULL or all-0s to represent None */ static constructor_new(order_id_arg: LSPS1OrderId, order_arg: LSPS1OrderParams, created_at_arg: LSPSDateTime, order_state_arg: LSPS1OrderState, payment_arg: LSPS1PaymentInfo, channel_arg: LSPS1ChannelInfo | null): LSPS1CreateOrderResponse; clone_ptr(): bigint; /** * Creates a copy of the LSPS1CreateOrderResponse */ clone(): LSPS1CreateOrderResponse; /** * Checks if two LSPS1CreateOrderResponses 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: LSPS1CreateOrderResponse): boolean; }