oak-pay-business/es/entities/Refund.js

56 lines
1.6 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

;
export const IActionDef = {
stm: {
succeedRefunding: [['refunding', 'abnormal'], 'refunded'],
failRefunding: [['refunding', 'abnormal'], 'failed'],
makeAbnormal: ['refunding', 'abnormal'],
},
is: 'refunding',
};
export const entityDesc = {
locales: {
zh_CN: {
name: '帐户',
attr: {
pay: '关联支付',
price: '价格',
loss: '损耗',
entity: '关联对象',
entityId: '关联对象ID',
meta: 'metadata',
externalId: '外部ID',
iState: '状态',
creator: '创建者',
reason: '原因',
},
action: {
succeedRefunding: '退款成功',
failRefunding: '退款失败',
makeAbnormal: '退款异常', // 异常是指已经提交到支付通道但由于用户银行卡异常等原因退不了需要人工去处理并手动置success/failed
},
v: {
iState: {
refunding: '退款中',
refunded: '退款成功',
failed: '退款失败',
abnormal: '退款异常',
}
}
},
},
style: {
icon: {
succeedRefunding: '',
failRefunding: '',
},
color: {
iState: {
refunding: '#F5B041',
refunded: '#52BE80',
failed: '#E74C3C',
abnormal: '#283747',
}
}
}
};