Bling behaviour (bling v0.4.1)

Retreives config values and provides helper methods.

Link to this section Summary

Link to this section Types

@type conn() :: Plug.Conn.t()
@type customer() :: any()
@type event() :: Stripe.Event.t()

Link to this section Callbacks

Link to this callback

can_manage_billing?(conn, customer)

@callback can_manage_billing?(conn(), customer()) :: boolean()
Link to this callback

handle_stripe_webhook_event(event)

@callback handle_stripe_webhook_event(event()) :: any()
Link to this callback

tax_rate_ids(customer)

@callback tax_rate_ids(customer()) :: [binary()]
Link to this callback

to_stripe_params(customer)

@callback to_stripe_params(customer()) :: map()

Link to this section Functions

Link to this function

customer_from_stripe_id(stripe_id)

Link to this function

customer_type_from_struct(customer)

Link to this function

module_from_customer_type(type)

Link to this function

subscription_item()