31 lines
857 B
JavaScript
31 lines
857 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const PayConfig_1 = require("../types/PayConfig");
|
|
const attrUpdateMatrix = {
|
|
pay: {
|
|
meta: {
|
|
actions: ['update', 'succeedPaying'],
|
|
filter: {
|
|
$or: [
|
|
{
|
|
channel: PayConfig_1.PAY_CHANNEL_OFFLINE_NAME,
|
|
iState: {
|
|
$in: ['unpaid', 'paying'],
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
accountOper$entity: {
|
|
actions: ['succeedPaying'],
|
|
filter: {
|
|
accountId: {
|
|
$exists: true,
|
|
},
|
|
channel: PayConfig_1.PAY_CHANNEL_ACCOUNT_NAME,
|
|
}
|
|
}
|
|
}
|
|
};
|
|
exports.default = attrUpdateMatrix;
|