Packages

Add recurring billing to your Phoenix application

Current section

Files

Jump to
bling_paddle stubs receipt_schema.ex.stub
Raw

stubs/receipt_schema.ex.stub

defmodule <%= @module_name %>.Subscriptions.Receipt do
use Ecto.Schema
schema "receipts" do
field :customer_id, :integer
field :customer_type, :string
field :paddle_subscription_id, :integer
field :checkout_id, :string
field :order_id, :string
field :amount, :string
field :tax, :string
field :currency, :string
field :quantity, :integer
field :receipt_url, :string
field :paid_at, :utc_datetime
timestamps(type: :utc_datetime)
end
end