Skip to content

Commit 35edbfd

Browse files
authored
feat: support additional invoice events (#109)
1 parent ee12463 commit 35edbfd

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,15 @@ This server synchronizes your Stripe account to a Postgres database. It can be a
5858
- [x] `invoice.deleted` 🟢
5959
- [x] `invoice.finalized` 🟢
6060
- [x] `invoice.finalization_failed` 🟢
61+
- [x] `invoice.marked_uncollectible` 🟢
6162
- [x] `invoice.paid` 🟢
6263
- [x] `invoice.payment_action_required` 🟢
6364
- [x] `invoice.payment_failed` 🟢
6465
- [x] `invoice.payment_succeeded` 🟢
66+
- [x] `invoice.sent` 🟢
6567
- [x] `invoice.upcoming` 🟢
6668
- [x] `invoice.updated` 🟢
69+
- [x] `invoice.voided` 🟢
6770
- [ ] `issuing_authorization.request`
6871
- [ ] `issuing_card.created`
6972
- [ ] `issuing_cardholder.created`

src/routes/webhooks.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ export default async function routes(fastify: FastifyInstance) {
7171
case 'invoice.payment_failed':
7272
case 'invoice.payment_succeeded':
7373
case 'invoice.upcoming':
74+
case 'invoice.sent':
75+
case 'invoice.voided':
76+
case 'invoice.marked_uncollectible':
7477
case 'invoice.updated': {
7578
const invoice = event.data.object as Stripe.Invoice
7679
await upsertInvoices([invoice])

0 commit comments

Comments
 (0)