ash_double_entry/lib/transfer/transfer.ex

23 lines
466 B
Elixir
Raw Normal View History

2023-07-22 12:27:52 +12:00
defmodule AshDoubleEntry.Transfer do
@account %Spark.Dsl.Section{
name: :transfer,
schema: [
account_resource: [
type: Ash.OptionsHelpers.ash_resource(),
doc: "The resource to use for account balances",
required: true
]
]
}
@sections [@account]
@transformers [
AshDoubleEntry.Transfer.Transformers.AddStructure
]
use Spark.Dsl.Extension,
sections: @sections,
transformers: @transformers
end