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

44 lines
1.0 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: {
accountId: {
notNull: true,
type: "ref",
ref: "account"
},
type: {
notNull: true,
type: "enum",
enumeration: ["deposit", "withdraw", "consume", "loan", "repay", "withdrawBack"]
},
totalPlus: {
notNull: true,
type: "money"
},
availPlus: {
notNull: true,
type: "money"
},
entity: {
notNull: true,
type: "varchar",
params: {
length: 32
},
ref: ["pay", "withdraw"]
},
entityId: {
notNull: true,
type: "varchar",
params: {
length: 64
}
}
},
actionType: "appendOnly",
actions: action_1.appendOnlyActions
};