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

81 lines
1.7 KiB
JavaScript

import { actions } from "./Action";
export const 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
};