PINXS.Refunds.Refund (pinxs v3.1.3) View Source

Provides functions for working with refunds

Link to this section Summary

Functions

Create a refund from a given charge

Retrieves a specific refunds

Get a paginated list of refunds

Gets a specific page of refunds

Gets refunds for a specific charge

Link to this section Types

Specs

t() :: %PINXS.Refunds.Refund{
  amount: integer(),
  charge: String.t(),
  created_at: String.t(),
  currency: String.t(),
  error_message: String.t(),
  status_message: String.t(),
  success: boolean(),
  token: String.t()
}

Link to this section Functions

Link to this function

create(charge, amount \\ %{}, config)

View Source

Create a refund from a given charge

Retrieves a specific refunds

Get a paginated list of refunds

Gets a specific page of refunds

Link to this function

get_all_for_charge(charge, config)

View Source

Gets refunds for a specific charge