131 lines
3.2 KiB
JavaScript
131 lines
3.2 KiB
JavaScript
const attrUpdateMatrix = {
|
|
pay: {
|
|
meta: {
|
|
actions: ['update', 'succeedPaying', 'close'],
|
|
filter: {
|
|
$or: [
|
|
{
|
|
entity: 'offlineAccount',
|
|
},
|
|
{
|
|
iState: {
|
|
$in: ['unpaid', 'paying'],
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
accountOper$entity: {
|
|
actions: ['startPaying'],
|
|
filter: {
|
|
depositId: {
|
|
$exists: true,
|
|
},
|
|
entity: 'account',
|
|
}
|
|
},
|
|
paid: {
|
|
actions: ['succeedPaying', 'continuePaying'],
|
|
},
|
|
refunded: {
|
|
actions: ['refundPartially', 'refundAll'],
|
|
},
|
|
refundable: {
|
|
actions: ['succeedPaying', 'closeRefund'],
|
|
},
|
|
forbidRefundAt: {
|
|
actions: ['succeedPaying'],
|
|
}
|
|
},
|
|
refund: {
|
|
externalId: {
|
|
actions: ['update'],
|
|
filter: {
|
|
iState: 'refunding',
|
|
},
|
|
},
|
|
reason: {
|
|
actions: ['failRefunding', 'makeAbnormal'],
|
|
}
|
|
},
|
|
withdraw: {
|
|
dealLoss: {
|
|
actions: ['succeed', 'fail', 'succeedPartially'],
|
|
},
|
|
dealPrice: {
|
|
actions: ['succeed', 'fail', 'succeedPartially'],
|
|
},
|
|
reason: {
|
|
actions: ['succeed', 'fail', 'succeedPartially'],
|
|
},
|
|
meta: {
|
|
actions: ['succeed', 'fail', 'succeedPartially'],
|
|
},
|
|
},
|
|
offlineAccount: {
|
|
name: {
|
|
actions: ['update'],
|
|
filter: {
|
|
// 只有从来没用过的才能改
|
|
sysAccountOper$entity: {
|
|
"#sqp": 'not in',
|
|
}
|
|
}
|
|
},
|
|
channel: {
|
|
actions: ['update'],
|
|
filter: {
|
|
// 只有从来没用过的才能改
|
|
sysAccountOper$entity: {
|
|
"#sqp": 'not in',
|
|
}
|
|
}
|
|
},
|
|
qrCode: {
|
|
actions: ['update'],
|
|
},
|
|
enabled: {
|
|
actions: ['update'],
|
|
},
|
|
price: {
|
|
actions: ['pay', 'refund', 'deposit', 'withdraw', 'tax'],
|
|
}
|
|
},
|
|
wpAccount: {
|
|
wechatPay: {
|
|
actions: ['update'],
|
|
},
|
|
taxlossRatio: {
|
|
actions: ['update'],
|
|
},
|
|
depositLossRatio: {
|
|
actions: ['update'],
|
|
},
|
|
refundGapDays: {
|
|
actions: ['update'],
|
|
},
|
|
refundLossRatio: {
|
|
actions: ['update'],
|
|
},
|
|
refundLossFloor: {
|
|
actions: ['update'],
|
|
},
|
|
publicKeyFilePath: {
|
|
actions: ['update'],
|
|
},
|
|
privateKeyFilePath: {
|
|
actions: ['update'],
|
|
},
|
|
apiV3Key: {
|
|
actions: ['update'],
|
|
},
|
|
enabled: {
|
|
actions: ['update'],
|
|
},
|
|
price: {
|
|
actions: ['pay', 'refund', 'deposit', 'withdraw', 'tax'],
|
|
}
|
|
},
|
|
};
|
|
export default attrUpdateMatrix;
|