Current section
Files
Jump to
Current section
Files
lib/polarex/schemas/subscription_create_customer.ex
defmodule Polarex.SubscriptionCreateCustomer do
@moduledoc """
Provides struct and type for a SubscriptionCreateCustomer
"""
@type t :: %__MODULE__{customer_id: String.t(), metadata: map | nil, product_id: String.t()}
defstruct [:customer_id, :metadata, :product_id]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[customer_id: {:string, "uuid4"}, metadata: :map, product_id: {:string, "uuid4"}]
end
end