oak-pay-business/lib/oak-app-domain/Order/Action.js

39 lines
1.8 KiB
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.actionDefDict = exports.actions = exports.GActionDef = exports.IActionDef = void 0;
exports.IActionDef = {
stm: {
startPaying: [['unpaid', 'partiallyPaid'], 'paying'],
payAll: [['unpaid', 'paying', 'partiallyPaid'], 'paid'],
payPartially: [['unpaid', 'paying'], 'partiallyPaid'],
payNone: ['paying', 'unpaid'],
timeout: ['unpaid', 'timeout'],
cancel: ['unpaid', 'cancelled'],
startRefunding: [['paid', 'partiallyPaid'], 'refunding'],
refundAll: [['paid', 'refunding', 'partiallyPaid', 'partiallyRefunded'], 'refunded'],
refundPartially: [['paid', 'refunding', 'partiallyPaid', 'partiallyRefunded'], 'partiallyRefunded'],
refundNone: ['refunding', 'paid'],
},
is: 'unpaid',
};
exports.GActionDef = {
stm: {
package: ['unshipped', 'packaged'],
send: ['packaged', 'shipping'],
receive: ['shipping', 'received'],
store: ['unshipped', 'staging'],
unship: [['packaged', 'staging'], 'unshipped'],
turnBack: ['shipping', 'unshipped'],
take: [['staging'], 'taken'],
startTaking: ['staging', 'taking'],
cancelTaking: ['taking', 'staging'],
completeTaking: ['taking', 'taken'],
},
is: 'unshipped',
};
exports.actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "startPaying", "payAll", "payPartially", "payNone", "timeout", "cancel", "startRefunding", "refundAll", "refundPartially", "refundNone", "package", "send", "receive", "store", "take", "startTaking", "cancelTaking", "completeTaking", "turnBack", "unship", "settle"];
exports.actionDefDict = {
iState: exports.IActionDef,
gState: exports.GActionDef
};