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

38 lines
864 B
JavaScript

import { genericActions as actions } from "oak-domain/lib/actions/action";
export const 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"
},
shipping: {
notNull: true,
type: "boolean"
}
},
actionType: "crud",
actions
};