PHP WebShell
Текущая директория: /opt/BitGoJS/modules/abstract-lightning/dist/src/codecs/api
Просмотр файла: payment.d.ts
import * as t from 'io-ts';
export declare const PaymentStatus: t.UnionC<[t.LiteralC<"in_flight">, t.LiteralC<"settled">, t.LiteralC<"failed">]>;
export type PaymentStatus = t.TypeOf<typeof PaymentStatus>;
export declare const PAYMENT_FAILURE_TIMEOUT = "TIMEOUT";
export declare const PAYMENT_FAILURE_NO_ROUTE = "NO_ROUTE";
/** A non-recoverable error */
export declare const PAYMENT_FAILURE_ERROR = "ERROR";
export declare const PAYMENT_FAILURE_INCORRECT_DETAILS = "INCORRECT_PAYMENT_DETAILS";
/** Insufficient channel outbound capacity */
export declare const PAYMENT_FAILURE_INSUFFICIENT_CHANNEL_BALANCE = "INSUFFICIENT_BALANCE";
/** Insufficient custodial lightning balance for the customer's wallet */
export declare const PAYMENT_FAILURE_INSUFFICIENT_WALLET_BALANCE = "INSUFFICIENT_WALLET_BALANCE";
/** Excess custodial lightning balance for the customer's wallet */
export declare const PAYMENT_FAILURE_EXCESS_WALLET_BALANCE = "EXCESS_WALLET_BALANCE";
export declare const PAYMENT_FAILURE_INVOICE_EXPIRED = "INVOICE_EXPIRED";
export declare const PAYMENT_FAILURE_CANCELED = "CANCELED";
export declare const PAYMENT_FAILURE_FORCE_FAILED = "FORCE_FAILED";
export declare const PaymentFailureReason: t.UnionC<[t.LiteralC<"TIMEOUT">, t.LiteralC<"NO_ROUTE">, t.LiteralC<"ERROR">, t.LiteralC<"INCORRECT_PAYMENT_DETAILS">, t.LiteralC<"INSUFFICIENT_BALANCE">, t.LiteralC<"INSUFFICIENT_WALLET_BALANCE">, t.LiteralC<"EXCESS_WALLET_BALANCE">, t.LiteralC<"INVOICE_EXPIRED">, t.LiteralC<"CANCELED">, t.LiteralC<"FORCE_FAILED">]>;
export type PaymentFailureReason = t.TypeOf<typeof PaymentFailureReason>;
/**
* Off-chain payment information
*/
export declare const PaymentInfo: t.IntersectionC<[t.TypeC<{
paymentHash: t.StringC;
walletId: t.StringC;
txRequestId: t.StringC;
status: t.UnionC<[t.LiteralC<"in_flight">, t.LiteralC<"settled">, t.LiteralC<"failed">]>;
invoice: t.StringC;
feeLimitMsat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
destination: t.StringC;
updatedAt: import("io-ts-types/DateFromISOString").DateFromISOStringC;
createdAt: import("io-ts-types/DateFromISOString").DateFromISOStringC;
amountMsat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
}>, t.PartialC<{
feeMsat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
failureReason: t.UnionC<[t.LiteralC<"TIMEOUT">, t.LiteralC<"NO_ROUTE">, t.LiteralC<"ERROR">, t.LiteralC<"INCORRECT_PAYMENT_DETAILS">, t.LiteralC<"INSUFFICIENT_BALANCE">, t.LiteralC<"INSUFFICIENT_WALLET_BALANCE">, t.LiteralC<"EXCESS_WALLET_BALANCE">, t.LiteralC<"INVOICE_EXPIRED">, t.LiteralC<"CANCELED">, t.LiteralC<"FORCE_FAILED">]>;
paymentPreimage: t.StringC;
}>]>;
export type PaymentInfo = t.TypeOf<typeof PaymentInfo>;
/**
* Payment query parameters
*/
export declare const PaymentQuery: t.PartialC<{
status: t.UnionC<[t.LiteralC<"in_flight">, t.LiteralC<"settled">, t.LiteralC<"failed">]>;
limit: import("io-ts-types/BigIntFromString").BigIntFromStringC;
startDate: import("io-ts-types/DateFromISOString").DateFromISOStringC;
endDate: import("io-ts-types/DateFromISOString").DateFromISOStringC;
}>;
export type PaymentQuery = t.TypeOf<typeof PaymentQuery>;
export declare const SubmitPaymentParams: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
invoice: t.StringC;
}>, t.PartialC<{
amountMsat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
feeLimitMsat: import("io-ts-types/BigIntFromString").BigIntFromStringC;
feeLimitRatio: t.NumberC;
}>]>, t.TypeC<{
passphrase: t.StringC;
}>, t.PartialC<{
sequenceId: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
comment: t.UnionC<[t.Type<string, string, unknown>, t.UndefinedC]>;
}>]>;
export type SubmitPaymentParams = t.TypeOf<typeof SubmitPaymentParams>;
export declare const LndCreatePaymentResponse: t.IntersectionC<[t.TypeC<{
status: t.UnionC<[t.LiteralC<"in_flight">, t.LiteralC<"settled">, t.LiteralC<"failed">]>;
paymentHash: t.StringC;
}>, t.PartialC<{
paymentPreimage: t.StringC;
amountMsat: t.StringC;
feeMsat: t.StringC;
failureReason: t.UnionC<[t.LiteralC<"TIMEOUT">, t.LiteralC<"NO_ROUTE">, t.LiteralC<"ERROR">, t.LiteralC<"INCORRECT_PAYMENT_DETAILS">, t.LiteralC<"INSUFFICIENT_BALANCE">, t.LiteralC<"INSUFFICIENT_WALLET_BALANCE">, t.LiteralC<"EXCESS_WALLET_BALANCE">, t.LiteralC<"INVOICE_EXPIRED">, t.LiteralC<"CANCELED">, t.LiteralC<"FORCE_FAILED">]>;
}>]>;
export type LndCreatePaymentResponse = t.TypeOf<typeof LndCreatePaymentResponse>;
//# sourceMappingURL=payment.d.ts.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!