oak-pay-business/lib/oak-app-domain/SysAccountOper/Storage.js

51 lines
1.2 KiB
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.desc = void 0;
const action_1 = require("oak-domain/lib/actions/action");
exports.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: ["apAccount", "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"
},
sysAccountMoveId: {
type: "ref",
ref: "sysAccountMove"
}
},
actionType: "appendOnly",
actions: action_1.appendOnlyActions
};