@abcpros/bitcore-wallet-service
Version:
A service for Mutisig HD Bitcoin Wallets
24 lines (22 loc) • 595 B
text/typescript
export interface IOrderInfoNoti {
orderId: string;
receivedTxId?: string;
pendingReason?: string;
error?: string;
}
export class OrderInfoNoti implements IOrderInfoNoti {
orderId: string;
receivedTxId?: string;
isNotifiedReceivingFundToTelegram?: boolean;
pendingReason?: string;
error?: string;
isNotifiedErrorToTelegram?: boolean;
static create(opts) {
const x = new OrderInfoNoti();
x.orderId = opts.orderId;
x.receivedTxId = opts.receivedTxId || null;
x.pendingReason = opts.pendingReason || null;
x.error = opts.error || null;
return x;
}
}