55 lines
1.1 KiB
JavaScript
55 lines
1.1 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.desc = void 0;
|
|
const Action_1 = require("./Action");
|
|
exports.desc = {
|
|
attributes: {
|
|
withdrawId: {
|
|
type: "ref",
|
|
ref: "withdraw"
|
|
},
|
|
loss: {
|
|
notNull: true,
|
|
type: "money"
|
|
},
|
|
payId: {
|
|
notNull: true,
|
|
type: "ref",
|
|
ref: "pay"
|
|
},
|
|
meta: {
|
|
type: "object"
|
|
},
|
|
externalMeta: {
|
|
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: Action_1.actions
|
|
};
|