mirror of
https://github.com/ash-project/ash_double_entry.git
synced 2024-09-20 21:43:16 +12:00
23 lines
466 B
Elixir
23 lines
466 B
Elixir
|
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
|