PaperTiger.Resources.SubscriptionSchedule (PaperTiger v1.1.1)

Copy Markdown View Source

Handles SubscriptionSchedule resource endpoints.

Subscription schedules are shape-sensitive: phases must be contiguous, each phase must have a concrete start/end window, and active schedules expose current_phase. PaperTiger models those Stripe-facing semantics deterministically while keeping billing side effects intentionally small.

Summary

Functions

Cancels a subscription schedule.

Creates a new subscription schedule.

Lists subscription schedules with Stripe-style filters.

Releases a subscription schedule.

Retrieves a subscription schedule by ID.

Updates a subscription schedule.

Functions

cancel(conn, id)

@spec cancel(Plug.Conn.t(), String.t()) :: Plug.Conn.t()

Cancels a subscription schedule.

create(conn)

@spec create(Plug.Conn.t()) :: Plug.Conn.t()

Creates a new subscription schedule.

list(conn)

@spec list(Plug.Conn.t()) :: Plug.Conn.t()

Lists subscription schedules with Stripe-style filters.

release(conn, id)

@spec release(Plug.Conn.t(), String.t()) :: Plug.Conn.t()

Releases a subscription schedule.

retrieve(conn, id)

@spec retrieve(Plug.Conn.t(), String.t()) :: Plug.Conn.t()

Retrieves a subscription schedule by ID.

update(conn, id)

@spec update(Plug.Conn.t(), String.t()) :: Plug.Conn.t()

Updates a subscription schedule.