Nombaone. Subscription
(Nomba One v0.1.0)
View Source
One customer's recurring relationship with one price. The engine bills it every cycle, retries failures through dunning, and reports every transition as a webhook event.
status is one of incomplete, incomplete_expired, trialing, active,
past_due, paused, canceled. Involuntary churn is status: "canceled"
with cancellation_reason: "involuntary" — there is no separate churned
status (there is a subscription.churned event).
Summary
Types
@type t() :: %Nombaone.Subscription{ __raw__: term(), cancel_at_period_end: term(), canceled_at: term(), cancellation_reason: term(), collection_method: term(), created_at: term(), currency: term(), current_period_end: term(), current_period_index: term(), current_period_start: term(), customer_id: term(), default_payment_method_id: term(), domain: term(), ended_at: term(), id: term(), items: term(), latest_invoice_id: term(), mode: term(), price_id: term(), status: term(), trial_end: term(), trial_start: term() }