Adding refunds

This commit is contained in:
2021-06-12 07:08:36 -07:00
parent eb3fd17db8
commit ef049de347
3 changed files with 84 additions and 4 deletions

View File

@@ -161,7 +161,38 @@
{:db/ident :charge/processor
:db/doc "Which food app processed this order"
:db/valueType :db.type/ref
:db/cardinality :db.cardinality/one}]]}})
:db/cardinality :db.cardinality/one}]]}
:add-refunds {:txes [[{:db/ident :sales-refund/external-id
:db/doc "The external id for the refund"
:db/valueType :db.type/string
:db/cardinality :db.cardinality/one
:db/unique :db.unique/identity}
{:db/ident :sales-refund/client
:db/doc "The client for the refund"
:db/valueType :db.type/ref
:db/cardinality :db.cardinality/one}
{:db/ident :sales-refund/location
:db/doc "The location of the refund"
:db/valueType :db.type/string
:db/cardinality :db.cardinality/one}
{:db/ident :sales-refund/date
:db/doc "The date the refund was initiated"
:db/valueType :db.type/instant
:db/cardinality :db.cardinality/one}
{:db/ident :sales-refund/total
:db/doc "The total amount on the deposit"
:db/valueType :db.type/double
:db/cardinality :db.cardinality/one}
{:db/ident :sales-refund/fee
:db/doc "The total fee on the refund"
:db/valueType :db.type/double
:db/cardinality :db.cardinality/one}]]}})