oak-pay-business/es/oak-app-domain/Pay/Action.js

17 lines
804 B
JavaScript

export const IActionDef = {
stm: {
startPaying: ['unpaid', 'paying'],
succeedPaying: [['unpaid', 'paying'], 'paid'],
close: [['unpaid', 'paying'], 'closed'],
startRefunding: [['paid', 'partiallyRefunded'], 'refunding'],
refundAll: [['paid', 'refunding', 'partiallyRefunded'], 'refunded'],
refundPartially: [['paid', 'refunding', 'partiallyRefunded'], 'partiallyRefunded'],
stopRefunding: ['refunding', 'paid'],
},
is: 'unpaid',
};
export const actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "startPaying", "succeedPaying", "close", "startRefunding", "refundAll", "refundPartially", "stopRefunding", "closeRefund", "continuePaying"];
export const actionDefDict = {
iState: IActionDef
};