Adding refunds
This commit is contained in:
@@ -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}]]}})
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user