Current section

Files

Jump to
polarex lib polarex schemas subscription_create_external_customer.ex
Raw

lib/polarex/schemas/subscription_create_external_customer.ex

defmodule Polarex.SubscriptionCreateExternalCustomer do
@moduledoc """
Provides struct and type for a SubscriptionCreateExternalCustomer
"""
@type t :: %__MODULE__{
external_customer_id: String.t(),
metadata: map | nil,
product_id: String.t()
}
defstruct [:external_customer_id, :metadata, :product_id]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[external_customer_id: :string, metadata: :map, product_id: {:string, "uuid4"}]
end
end