Files
caravel/backend/spec/billing.md
T
2026-04-01 16:01:10 -07:00

401 B

pub struct Billing

Billing encapsulates logic related to synchronizing state with Stripe.

Members:

  • nwc_url: String - a nostr wallet connect URL used to create bolt11 invoices
  • query: Query
  • command: Command
  • robot: Robot

pub fn new(query: Query, command: Command, robot: Robot) -> Self

  • Reads environment and populates members
  • Subscribes to command.notify.notified