livery_stripe_subscription (livery_stripe v0.1.0)
View SourceStripe Subscriptions API.
Summary
Functions
-spec cancel(livery_client:client(), binary()) -> {ok, map()} | {error, term()}.
Cancel a subscription immediately (Stripe DELETE).
-spec create(livery_client:client(), map() | list()) -> {ok, map()} | {error, term()}.
Like create/2 with request options (idempotency_key, etc.).
-spec delete_discount(livery_client:client(), binary()) -> {ok, map()} | {error, term()}.
Remove a subscription's active discount.
-spec list(livery_client:client()) -> {ok, map()} | {error, term()}.
-spec list(livery_client:client(), map() | list()) -> {ok, map()} | {error, term()}.
-spec pause(livery_client:client(), binary()) -> {ok, map()} | {error, term()}.
Pause collection on a subscription (voids invoices while paused).
-spec resume(livery_client:client(), binary()) -> {ok, map()} | {error, term()}.
Resume a paused subscription by clearing pause_collection.
-spec retrieve(livery_client:client(), binary()) -> {ok, map()} | {error, term()}.