Packages

🚂 Complete Polar SDK for Elixir with 1:1 feature parity to the official JavaScript SDK. Full API coverage. Fully typed per-event modules. Modern stack: Finch HTTP/2, RustyJSON, connection pooling, automatic retries, OAuth, webhooks, telemetry, explicit client options, streaming pagination.

Current section

Files

Jump to
polar_express lib polar_express resources refunds.ex
Raw

lib/polar_express/resources/refunds.ex

# File generated from our OpenAPI spec
defmodule PolarExpress.Resources.Refunds do
@moduledoc """
Refunds
Refunds API operations.
"""
@typedoc """
* `amount`
* `created_at` - Creation timestamp of the object. Format: date-time.
* `currency`
* `customer_id` - Format: uuid4.
* `dispute`
* `id` - The ID of the object. Format: uuid4.
* `metadata`
* `modified_at` - Last modification timestamp of the object.
* `order_id` - Format: uuid4.
* `organization_id` - Format: uuid4.
* `reason`
* `revoke_benefits`
* `status`
* `subscription_id`
* `tax_amount`
"""
@type t :: %__MODULE__{}
defstruct [
:amount,
:created_at,
:currency,
:customer_id,
:dispute,
:id,
:metadata,
:modified_at,
:order_id,
:organization_id,
:reason,
:revoke_benefits,
:status,
:subscription_id,
:tax_amount
]
@object_name "refunds"
def object_name, do: @object_name
end