|
1 | 1 | import type { CreditNote, Customer, Invoice, Subscription } from 'orb-billing/resources'; |
2 | 2 |
|
3 | 3 | export type OrbWebhookType = |
| 4 | + | 'billable_metric.edited' |
| 5 | + | 'credit_note.accounting_sync_failed' |
| 6 | + | 'credit_note.accounting_sync_succeeded' |
| 7 | + | 'credit_note.issued' |
| 8 | + | 'credit_note.marked_as_void' |
| 9 | + | 'customer.accounting_sync_failed' |
| 10 | + | 'customer.accounting_sync_succeeded' |
| 11 | + | 'customer.balance_transaction_created' |
4 | 12 | | 'customer.created' |
5 | 13 | | 'customer.credit_balance_depleted' |
6 | 14 | | 'customer.credit_balance_dropped' |
| 15 | + | 'customer.credit_balance_recovered' |
7 | 16 | | 'customer.edited' |
8 | | - | 'subscription.created' |
9 | | - | 'subscription.started' |
10 | | - | 'subscription.edited' |
11 | | - | 'subscription.fixed_fee_quantity_updated' |
12 | | - | 'subscription.ended' |
13 | | - | 'subscription.plan_changed' |
14 | | - | 'subscription.usage_exceeded' |
15 | | - | 'subscription.cost_exceeded' |
16 | | - | 'subscription.plan_version_change_scheduled' |
17 | | - | 'subscription.plan_version_changed' |
| 17 | + | 'data_exports.transfer_error' |
| 18 | + | 'data_exports.transfer_success' |
| 19 | + | 'invoice.accounting_sync_failed' |
| 20 | + | 'invoice.accounting_sync_succeeded' |
| 21 | + | 'invoice.edited' |
18 | 22 | | 'invoice.invoice_date_elapsed' |
19 | 23 | | 'invoice.issue_failed' |
20 | 24 | | 'invoice.issued' |
| 25 | + | 'invoice.manually_marked_as_paid' |
| 26 | + | 'invoice.manually_marked_as_void' |
21 | 27 | | 'invoice.payment_failed' |
22 | 28 | | 'invoice.payment_processing' |
23 | 29 | | 'invoice.payment_succeeded' |
24 | | - | 'invoice.edited' |
25 | | - | 'invoice.manually_marked_as_void' |
26 | | - | 'invoice.manually_marked_as_paid' |
27 | | - | 'invoice.undo_mark_as_paid' |
28 | | - | 'invoice.sync_succeded' |
29 | 30 | | 'invoice.sync_failed' |
30 | | - | 'credit_note.issued' |
31 | | - | 'credit_note.marked_as_void' |
| 31 | + | 'invoice.sync_succeded' |
| 32 | + | 'invoice.undo_mark_as_paid' |
32 | 33 | | 'resource_event.test' |
33 | | - | 'subscription.usage_exceeded' |
| 34 | + | 'subscription.cancellation_scheduled' |
| 35 | + | 'subscription.cancellation_unscheduled' |
34 | 36 | | 'subscription.cost_exceeded' |
35 | | - | 'data_exports.transfer_success' |
36 | | - | 'data_exports.transfer_error' |
37 | | - | 'customer.balance_transaction_created' |
38 | | - | 'billable_metric.edited'; |
| 37 | + | 'subscription.cost_exceeded' |
| 38 | + | 'subscription.created' |
| 39 | + | 'subscription.edited' |
| 40 | + | 'subscription.ended' |
| 41 | + | 'subscription.fixed_fee_quantity_updated' |
| 42 | + | 'subscription.plan_change_scheduled' |
| 43 | + | 'subscription.plan_changed' |
| 44 | + | 'subscription.plan_version_change_scheduled' |
| 45 | + | 'subscription.plan_version_changed' |
| 46 | + | 'subscription.started' |
| 47 | + | 'subscription.usage_exceeded' |
| 48 | + | 'subscription.usage_exceeded'; |
39 | 49 |
|
40 | 50 | export type OrbWebhook = { |
41 | 51 | // Unique to this WebhookEvent resource, and can be used for idempotency (process-once) purposes |
|
0 commit comments