Nombaone. Subscriptions. Schedule
(Nomba One v0.1.0)
View Source
Scheduled (next-cycle) changes queued against a subscription — the safe way to switch billing intervals (mid-cycle interval proration is unsupported).
Summary
Functions
Queue a change for the next cycle boundary. :price_id is the price to switch
to; optional :quantity.
Raising variant of create/4.
Cancel the pending schedule before it applies.
Raising variant of release/3.
Retrieve the subscription's schedule. Common errors: 404 SUBSCRIPTION_SCHEDULE_NOT_FOUND.
Raising variant of retrieve/3.
Functions
@spec create(Nombaone.Client.t(), String.t(), map(), keyword()) :: {:ok, Nombaone.SubscriptionSchedule.t()} | {:error, Nombaone.Error.t()}
Queue a change for the next cycle boundary. :price_id is the price to switch
to; optional :quantity.
Common errors: 409 SUBSCRIPTION_SCHEDULE_CONFLICT.
@spec create!(Nombaone.Client.t(), String.t(), map(), keyword()) :: Nombaone.SubscriptionSchedule.t()
Raising variant of create/4.
@spec release(Nombaone.Client.t(), String.t(), keyword()) :: {:ok, Nombaone.SubscriptionSchedule.t()} | {:error, Nombaone.Error.t()}
Cancel the pending schedule before it applies.
@spec release!(Nombaone.Client.t(), String.t(), keyword()) :: Nombaone.SubscriptionSchedule.t()
Raising variant of release/3.
@spec retrieve(Nombaone.Client.t(), String.t(), keyword()) :: {:ok, Nombaone.SubscriptionSchedule.t()} | {:error, Nombaone.Error.t()}
Retrieve the subscription's schedule. Common errors: 404 SUBSCRIPTION_SCHEDULE_NOT_FOUND.
@spec retrieve!(Nombaone.Client.t(), String.t(), keyword()) :: Nombaone.SubscriptionSchedule.t()
Raising variant of retrieve/3.