Inttegro.Refunds.CancelRequest (inttegro v0.2.0)

Copy Markdown View Source

Parameters for Cancel Request in the Refunds API.

Build this struct with new!/1 and pass it to the corresponding function on Inttegro.Refunds. Required keys are enforced immediately; optional values left as nil are omitted from the request sent to Inttegro.

Returns funds from a paid order to its original payment method.

Refunds are asynchronous financial records. Creating a refund validates the requested line items and amount, while the returned status describes processing progress. Look up the refund until it reaches a terminal state and reconcile it through balance transactions.

Summary

Types

t()

A validated cancel request request.

Functions

Builds a Inttegro.Refunds.CancelRequest and raises KeyError when a required field is missing.

Types

t()

@type t() :: %Inttegro.Refunds.CancelRequest{
  refund_id: String.t(),
  request_meta: Inttegro.Refunds.RequestMetaInput.t() | nil
}

A validated cancel request request.

Functions

new!(attrs \\ %{})

@spec new!(map() | keyword()) :: t()

Builds a Inttegro.Refunds.CancelRequest and raises KeyError when a required field is missing.