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

59 lines
1.5 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", "consumeBack", "loan", "repay", "withdrawBack", "earn", "cutoffRefundable", "tax", "taxRefund", "refund", "refundFailure", "preSettle", "settle"]
},
totalPlus: {
notNull: true,
type: "money"
},
availPlus: {
notNull: true,
type: "money"
},
refundablePlus: {
type: "money"
},
total: {
notNull: true,
type: "money"
},
avail: {
notNull: true,
type: "money"
},
refundable: {
notNull: true,
type: "money"
},
entity: {
notNull: true,
type: "varchar",
params: {
length: 32
},
ref: ["deposit", "order", "pay", "refund", "settlement", "withdraw", "withdrawTransfer"]
},
entityId: {
notNull: true,
type: "varchar",
params: {
length: 64
}
}
},
actionType: "appendOnly",
actions: action_1.appendOnlyActions
};