# `PhoenixKit.Modules.Billing.Events`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.71/lib/modules/billing/events.ex#L1)

PubSub events for PhoenixKit Billing system.

Broadcasts billing-related events for real-time updates in LiveViews.
Uses `PhoenixKit.PubSub.Manager` for self-contained PubSub operations.

## Topics

- `phoenix_kit:billing:orders` - Order events (created, updated, confirmed, paid, cancelled)
- `phoenix_kit:billing:invoices` - Invoice events (created, sent, paid, voided)
- `phoenix_kit:billing:profiles` - Billing profile events (created, updated, deleted)
- `phoenix_kit:billing:transactions` - Transaction events (created, refunded)
- `phoenix_kit:billing:credit_notes` - Credit note events (sent, applied)

## Usage Examples

    # Subscribe to order events
    PhoenixKit.Modules.Billing.Events.subscribe_orders()

    # Handle in LiveView
    def handle_info({:order_created, order}, socket) do
      # Update UI
      {:noreply, socket}
    end

    # Broadcast order created
    PhoenixKit.Modules.Billing.Events.broadcast_order_created(order)

# `broadcast_credit_note_applied`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.71/lib/modules/billing/events.ex#L261)

Broadcasts credit note applied event.

# `broadcast_credit_note_sent`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.71/lib/modules/billing/events.ex#L254)

Broadcasts credit note sent event.

# `broadcast_invoice_created`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.71/lib/modules/billing/events.ex#L165)

Broadcasts invoice created event.

# `broadcast_invoice_paid`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.71/lib/modules/billing/events.ex#L181)

Broadcasts invoice paid event.

# `broadcast_invoice_sent`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.71/lib/modules/billing/events.ex#L173)

Broadcasts invoice sent event.

# `broadcast_invoice_voided`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.71/lib/modules/billing/events.ex#L189)

Broadcasts invoice voided event.

# `broadcast_order_cancelled`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.71/lib/modules/billing/events.ex#L153)

Broadcasts order cancelled event.

# `broadcast_order_confirmed`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.71/lib/modules/billing/events.ex#L137)

Broadcasts order confirmed event.

# `broadcast_order_created`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.71/lib/modules/billing/events.ex#L121)

Broadcasts order created event.

# `broadcast_order_paid`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.71/lib/modules/billing/events.ex#L145)

Broadcasts order paid event.

# `broadcast_order_updated`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.71/lib/modules/billing/events.ex#L129)

Broadcasts order updated event.

# `broadcast_profile_created`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.71/lib/modules/billing/events.ex#L201)

Broadcasts billing profile created event.

# `broadcast_profile_deleted`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.71/lib/modules/billing/events.ex#L215)

Broadcasts billing profile deleted event.

# `broadcast_profile_updated`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.71/lib/modules/billing/events.ex#L208)

Broadcasts billing profile updated event.

# `broadcast_subscription_cancelled`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.71/lib/modules/billing/events.ex#L284)

Broadcasts subscription cancelled event.

# `broadcast_subscription_created`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.71/lib/modules/billing/events.ex#L272)

Broadcasts subscription created event.

# `broadcast_subscription_renewed`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.71/lib/modules/billing/events.ex#L296)

Broadcasts subscription renewed event.

# `broadcast_subscription_status_changed`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.71/lib/modules/billing/events.ex#L323)

Broadcasts subscription status changed event.

# `broadcast_subscription_type_changed`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.71/lib/modules/billing/events.ex#L308)

Broadcasts subscription type changed event.

# `broadcast_transaction_created`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.71/lib/modules/billing/events.ex#L226)

Broadcasts transaction created event.

# `broadcast_transaction_refunded`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.71/lib/modules/billing/events.ex#L238)

Broadcasts transaction refunded event.

# `subscribe_credit_notes`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.71/lib/modules/billing/events.ex#L75)

Subscribes to credit note events.

# `subscribe_invoices`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.71/lib/modules/billing/events.ex#L54)

Subscribes to invoice events.

# `subscribe_orders`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.71/lib/modules/billing/events.ex#L47)

Subscribes to order events.

# `subscribe_profiles`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.71/lib/modules/billing/events.ex#L61)

Subscribes to billing profile events.

# `subscribe_subscriptions`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.71/lib/modules/billing/events.ex#L82)

Subscribes to subscription events.

# `subscribe_transactions`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.71/lib/modules/billing/events.ex#L68)

Subscribes to transaction events.

# `subscribe_user_invoices`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.71/lib/modules/billing/events.ex#L103)

Subscribes to invoice events for a specific user.

# `subscribe_user_orders`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.71/lib/modules/billing/events.ex#L96)

Subscribes to order events for a specific user.

# `subscribe_user_subscriptions`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.71/lib/modules/billing/events.ex#L89)

Subscribes to subscription events for a specific user.

# `subscribe_user_transactions`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.71/lib/modules/billing/events.ex#L110)

Subscribes to transaction events for a specific user.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
