HookSniff.Billing (hooksniff v1.2.0)
Billing and subscription management.
Summary
Functions
Cancel subscription
Get invoices
Get current subscription
Get billing usage
Open billing portal
Upgrade plan
Functions
@spec cancel_subscription(HookSniff.t()) :: {:ok, map()} | {:error, term()}
Cancel subscription
@spec get_invoices(HookSniff.t()) :: {:ok, map()} | {:error, term()}
Get invoices
@spec get_subscription(HookSniff.t()) :: {:ok, map()} | {:error, term()}
Get current subscription
@spec get_usage(HookSniff.t()) :: {:ok, map()} | {:error, term()}
Get billing usage
@spec open_portal(HookSniff.t()) :: {:ok, map()} | {:error, term()}
Open billing portal
@spec upgrade(HookSniff.t(), map()) :: {:ok, map()} | {:error, term()}
Upgrade plan