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 schemas customer_payment_method.ex
Raw

lib/polar_express/schemas/customer_payment_method.ex

# File generated from our OpenAPI spec
defmodule PolarExpress.Schemas.CustomerPaymentMethod do
@moduledoc "CustomerPaymentMethod union type."
@type t ::
PolarExpress.Schemas.PaymentMethodCard.t()
| PolarExpress.Schemas.PaymentMethodGeneric.t()
@schema_name "CustomerPaymentMethod"
def schema_name, do: @schema_name
def __variants__ do
[
PolarExpress.Schemas.PaymentMethodCard,
PolarExpress.Schemas.PaymentMethodGeneric
]
end
end