livery_stripe_invoice (livery_stripe v0.1.0)
View SourceStripe Invoices API.
Summary
Functions
-spec create(livery_client:client(), map() | list()) -> {ok, map()} | {error, term()}.
Like create/2 with request options (idempotency_key, etc.).
-spec delete(livery_client:client(), binary()) -> {ok, map()} | {error, term()}.
Delete a draft invoice (only drafts can be deleted).
-spec finalize(livery_client:client(), binary()) -> {ok, map()} | {error, term()}.
Finalize a draft invoice so it is ready to pay.
-spec list(livery_client:client()) -> {ok, map()} | {error, term()}.
-spec list(livery_client:client(), map() | list()) -> {ok, map()} | {error, term()}.
-spec mark_uncollectible(livery_client:client(), binary()) -> {ok, map()} | {error, term()}.
-spec pay(livery_client:client(), binary()) -> {ok, map()} | {error, term()}.
-spec retrieve(livery_client:client(), binary()) -> {ok, map()} | {error, term()}.
-spec send(livery_client:client(), binary()) -> {ok, map()} | {error, term()}.
Send an invoice to the customer (out-of-band collection).
-spec upcoming(livery_client:client(), map() | list()) -> {ok, map()} | {error, term()}.
Preview the upcoming invoice for a customer or subscription.
-spec void(livery_client:client(), binary()) -> {ok, map()} | {error, term()}.