Inttegro.Refunds.Page (inttegro v0.2.0)

Copy Markdown View Source

Represents Page data in the Refunds API.

Inttegro decodes API responses into this struct. Required fields are always present; optional fields are nil when they do not apply or were not returned. Follow the linked types in t/0 for nested domain values.

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()

The decoded page value.

Functions

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

Types

t()

@type t() :: %Inttegro.Refunds.Page{
  number: integer(),
  refunds: [Inttegro.Refunds.Refund.t()],
  size: integer()
}

The decoded page value.

Functions

new!(attrs \\ %{})

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

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