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

49 lines
992 B
JavaScript

import { actions } from "./Action";
export const desc = {
attributes: {
withdrawId: {
type: "ref",
ref: "withdraw"
},
loss: {
notNull: true,
type: "money"
},
payId: {
notNull: true,
type: "ref",
ref: "pay"
},
meta: {
type: "object"
},
externalId: {
type: "varchar",
params: {
length: 128
}
},
price: {
notNull: true,
type: "money"
},
creatorId: {
notNull: true,
type: "ref",
ref: "user"
},
reason: {
type: "text"
},
successAt: {
type: "datetime"
},
iState: {
type: "enum",
enumeration: ["refunding", "successful", "failed"]
}
},
actionType: "crud",
actions
};