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

84 lines
1.8 KiB
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.desc = void 0;
const Action_1 = require("./Action");
exports.desc = {
attributes: {
taxLossRatio: {
notNull: true,
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"
},
wechatPayId: {
notNull: true,
type: "ref",
ref: "wechatPay"
},
mchId: {
notNull: true,
type: "varchar",
params: {
length: 128
}
},
publicKeyFilePath: {
notNull: true,
type: "text"
},
privateKeyFilePath: {
notNull: true,
type: "text"
},
apiV3Key: {
notNull: true,
type: "varchar",
params: {
length: 32
}
},
systemId: {
notNull: true,
type: "ref",
ref: "system"
},
enabled: {
notNull: true,
type: "boolean"
}
},
actionType: "crud",
actions: Action_1.actions
};