Skip to content

Commit

Permalink
chore: add payment_sent notification
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya committed Jun 12, 2024
1 parent f7a85c0 commit 070c426
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/NWCClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,15 @@ export type Nip47Transaction = {

export type Nip47NotificationType = Nip47Notification["notification_type"];

export type Nip47Notification = {
notification_type: "payment_received";
notification: Nip47Transaction;
}; /* | { notification_type: "other_type", notification: OtherTypeHere } */
export type Nip47Notification =
| {
notification_type: "payment_received";
notification: Nip47Transaction;
}
| {
notification_type: "payment_sent";
notification: Nip47Transaction;
};

export type Nip47PayInvoiceRequest = {
invoice: string;
Expand Down

0 comments on commit 070c426

Please sign in to comment.