29 lines
791 B
JavaScript
29 lines
791 B
JavaScript
import { PAY_CHANNEL_ACCOUNT_NAME, PAY_CHANNEL_OFFLINE_NAME } from '../types/PayConfig';
|
|
const attrUpdateMatrix = {
|
|
pay: {
|
|
meta: {
|
|
actions: ['update', 'succeedPaying'],
|
|
filter: {
|
|
$or: [
|
|
{
|
|
channel: PAY_CHANNEL_OFFLINE_NAME,
|
|
iState: {
|
|
$in: ['unpaid', 'paying'],
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
accountOper$entity: {
|
|
actions: ['succeedPaying'],
|
|
filter: {
|
|
accountId: {
|
|
$exists: true,
|
|
},
|
|
channel: PAY_CHANNEL_ACCOUNT_NAME,
|
|
}
|
|
}
|
|
}
|
|
};
|
|
export default attrUpdateMatrix;
|