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

87 lines
1.9 KiB
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.desc = void 0;
const Action_1 = require("./Action");
exports.desc = {
attributes: {
taxLossRatio: {
type: "decimal",
params: {
precision: 4,
scale: 2
}
},
refundGapDays: {
type: "int",
params: {
width: 4,
signed: true
}
},
refundCompensateRatio: {
type: "int",
params: {
width: 4,
signed: true
}
},
allowWithdrawTransfer: {
notNull: true,
type: "boolean"
},
withdrawTransferLossRatio: {
type: "decimal",
params: {
precision: 4,
scale: 2
}
},
price: {
notNull: true,
type: "money"
},
needReceiving: {
type: "boolean"
},
systemId: {
notNull: true,
type: "ref",
ref: "system"
},
type: {
notNull: true,
type: "enum",
enumeration: ["bank", "alipay", "wechat", "shouqianba", "others"]
},
channel: {
type: "varchar",
params: {
length: 32
}
},
name: {
type: "varchar",
params: {
length: 64
}
},
qrCode: {
type: "text"
},
allowDeposit: {
notNull: true,
type: "boolean"
},
allowPay: {
notNull: true,
type: "boolean"
},
enabled: {
notNull: true,
type: "boolean"
}
},
actionType: "crud",
actions: Action_1.actions
};