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

54 lines
1.2 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: {
taxLossRatio: {
type: "decimal",
params: {
precision: 4,
scale: 2
}
},
refundGapDays: {
type: "int",
params: {
width: 4,
signed: true
}
},
refundCompensateRatio: {
type: "int",
params: {
width: 4,
signed: true
}
},
needReceiving: {
type: "boolean"
},
applicationId: {
notNull: true,
type: "ref",
ref: "application"
},
enabled: {
notNull: true,
type: "boolean"
},
wpAccountId: {
notNull: true,
type: "ref",
ref: "wpAccount"
},
type: {
notNull: true,
type: "enum",
enumeration: ["native", "mp", "jsapi", "h5", "app"]
}
},
actionType: "crud",
actions: action_1.genericActions
};