livery_stripe_refund (livery_stripe v0.1.0)

View Source

Stripe Refunds API.

Summary

Functions

Cancel a refund still in the requires_action state.

Refund a charge or PaymentIntent (Params carries payment_intent or charge).

Like create/2 with request options (idempotency_key, etc.).

Functions

cancel(Client, Id)

-spec cancel(livery_client:client(), binary()) -> {ok, map()} | {error, term()}.

Cancel a refund still in the requires_action state.

create(Client, Params)

-spec create(livery_client:client(), map() | list()) -> {ok, map()} | {error, term()}.

Refund a charge or PaymentIntent (Params carries payment_intent or charge).

create(Client, Params, Opts)

-spec create(livery_client:client(), map() | list(), map()) -> {ok, map()} | {error, term()}.

Like create/2 with request options (idempotency_key, etc.).

list(Client)

-spec list(livery_client:client()) -> {ok, map()} | {error, term()}.

list(Client, Params)

-spec list(livery_client:client(), map() | list()) -> {ok, map()} | {error, term()}.

retrieve(Client, Id)

-spec retrieve(livery_client:client(), binary()) -> {ok, map()} | {error, term()}.

update(Client, Id, Params)

-spec update(livery_client:client(), binary(), map() | list()) -> {ok, map()} | {error, term()}.