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

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