44 lines
1.0 KiB
JavaScript
44 lines
1.0 KiB
JavaScript
import { appendOnlyActions as actions } from "oak-domain/lib/actions/action";
|
|
export const desc = {
|
|
attributes: {
|
|
delta: {
|
|
notNull: true,
|
|
type: "money"
|
|
},
|
|
type: {
|
|
notNull: true,
|
|
type: "enum",
|
|
enumeration: ["pay", "refund", "withdrawTransfer", "compensate", "moveIn", "moveOut"]
|
|
},
|
|
entity: {
|
|
notNull: true,
|
|
type: "varchar",
|
|
params: {
|
|
length: 32
|
|
},
|
|
ref: ["offlineAccount", "wpAccount"]
|
|
},
|
|
entityId: {
|
|
notNull: true,
|
|
type: "varchar",
|
|
params: {
|
|
length: 64
|
|
}
|
|
},
|
|
payId: {
|
|
type: "ref",
|
|
ref: "pay"
|
|
},
|
|
refundId: {
|
|
type: "ref",
|
|
ref: "refund"
|
|
},
|
|
withdrawTransferId: {
|
|
type: "ref",
|
|
ref: "withdrawTransfer"
|
|
}
|
|
},
|
|
actionType: "appendOnly",
|
|
actions
|
|
};
|