oak-pay-business 2.2.2 → 2.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/aspects/AspectDict.d.ts +3 -3
- package/es/aspects/index.d.ts +2 -1
- package/es/checkers/accountOper.js +4 -3
- package/es/checkers/offlineAccount.js +4 -1
- package/es/checkers/refund.js +1 -0
- package/es/components/offlineAccount/upsert/web.pc.js +1 -1
- package/es/components/sysAccount/survey/locales/zh-CN.json +3 -1
- package/es/components/sysAccount/survey/web.pc.js +69 -32
- package/es/components/sysAccount/survey/web.pc.module.less +3 -2
- package/es/components/sysAccount/transferList/index.d.ts +3 -0
- package/es/components/sysAccount/transferList/index.js +52 -0
- package/es/components/sysAccount/transferList/index.json +1 -0
- package/es/components/sysAccount/transferList/locales/zh-CN.json +6 -0
- package/es/components/sysAccount/transferList/web.pc.d.ts +12 -0
- package/es/components/sysAccount/transferList/web.pc.js +45 -0
- package/es/components/sysAccountMove/create/index.d.ts +7 -0
- package/es/components/sysAccountMove/create/index.js +145 -0
- package/es/components/sysAccountMove/create/index.json +1 -0
- package/es/components/sysAccountMove/create/locales/zh-CN.json +6 -0
- package/es/components/sysAccountMove/create/web.pc.d.ts +26 -0
- package/es/components/sysAccountMove/create/web.pc.js +68 -0
- package/es/components/sysAccountOper/list/index.d.ts +5 -0
- package/es/components/sysAccountOper/list/index.js +127 -0
- package/es/components/sysAccountOper/list/index.json +1 -0
- package/es/components/sysAccountOper/list/locales/zh-CN.json +5 -0
- package/es/components/sysAccountOper/list/web.module.less +42 -0
- package/es/components/sysAccountOper/list/web.pc.d.ts +25 -0
- package/es/components/sysAccountOper/list/web.pc.js +36 -0
- package/es/components/withdrawTransfer/list/locales/zh-CN.json +1 -1
- package/es/components/wpAccount/upsert/web.pc.js +1 -1
- package/es/configuration/attrUpdateMatrix.js +2 -2
- package/es/data/actionAuth.js +7 -2
- package/es/data/i18n.js +49 -3
- package/es/data/path.js +2 -2
- package/es/entities/AccountOper.d.ts +1 -1
- package/es/entities/AccountOper.js +3 -1
- package/es/entities/OfflineAccount.d.ts +1 -1
- package/es/entities/OfflineAccount.js +8 -2
- package/es/entities/SysAccountMove.d.ts +13 -0
- package/es/entities/SysAccountMove.js +18 -0
- package/es/entities/SysAccountOper.d.ts +4 -1
- package/es/entities/SysAccountOper.js +1 -0
- package/es/entities/WpAccount.d.ts +1 -1
- package/es/entities/WpAccount.js +8 -2
- package/es/locales/error/zh-CN.json +5 -0
- package/es/locales/offlineAccount/zh-CN.json +2 -1
- package/es/oak-app-domain/AccountOper/Schema.d.ts +1 -1
- package/es/oak-app-domain/AccountOper/Storage.js +1 -1
- package/es/oak-app-domain/AccountOper/Style.js +1 -0
- package/es/oak-app-domain/AccountOper/locales/zh_CN.json +1 -1
- package/es/oak-app-domain/EntityDict.d.ts +2 -0
- package/es/oak-app-domain/OfflineAccount/Action.d.ts +1 -1
- package/es/oak-app-domain/OfflineAccount/Action.js +1 -1
- package/es/oak-app-domain/OfflineAccount/Style.js +4 -1
- package/es/oak-app-domain/OfflineAccount/locales/zh_CN.json +1 -1
- package/es/oak-app-domain/Path/Schema.d.ts +6 -0
- package/es/oak-app-domain/Path/Storage.js +6 -0
- package/es/oak-app-domain/Path/locales/zh_CN.json +1 -1
- package/es/oak-app-domain/Storage.js +2 -0
- package/es/oak-app-domain/SysAccountMove/Schema.d.ts +185 -0
- package/es/oak-app-domain/SysAccountMove/Schema.js +1 -0
- package/es/oak-app-domain/SysAccountMove/Storage.d.ts +3 -0
- package/es/oak-app-domain/SysAccountMove/Storage.js +31 -0
- package/es/oak-app-domain/SysAccountMove/locales/zh_CN.json +1 -0
- package/es/oak-app-domain/SysAccountOper/Schema.d.ts +34 -5
- package/es/oak-app-domain/SysAccountOper/Storage.js +4 -0
- package/es/oak-app-domain/SysAccountOper/locales/zh_CN.json +1 -1
- package/es/oak-app-domain/System/Schema.d.ts +12 -0
- package/es/oak-app-domain/User/Schema.d.ts +12 -0
- package/es/oak-app-domain/WpAccount/Action.d.ts +1 -1
- package/es/oak-app-domain/WpAccount/Action.js +1 -1
- package/es/oak-app-domain/WpAccount/Style.js +4 -1
- package/es/oak-app-domain/WpAccount/locales/zh_CN.json +1 -1
- package/es/oak-app-domain/_SubQuery.d.ts +12 -0
- package/es/triggers/pay.js +149 -46
- package/es/triggers/refund.js +3 -0
- package/es/types/RuntimeCxt.d.ts +1 -1
- package/es/types/sysAccountOper.d.ts +1 -0
- package/es/types/sysAccountOper.js +1 -0
- package/es/utils/payClazz/Account.js +3 -2
- package/lib/aspects/AspectDict.d.ts +3 -3
- package/lib/aspects/index.d.ts +2 -1
- package/lib/checkers/accountOper.js +4 -3
- package/lib/checkers/offlineAccount.js +4 -1
- package/lib/checkers/refund.js +1 -0
- package/lib/configuration/attrUpdateMatrix.js +2 -2
- package/lib/data/actionAuth.js +7 -2
- package/lib/data/i18n.js +49 -3
- package/lib/data/path.js +2 -2
- package/lib/entities/AccountOper.d.ts +1 -1
- package/lib/entities/AccountOper.js +3 -1
- package/lib/entities/OfflineAccount.d.ts +1 -1
- package/lib/entities/OfflineAccount.js +8 -2
- package/lib/entities/SysAccountMove.d.ts +13 -0
- package/lib/entities/SysAccountMove.js +21 -0
- package/lib/entities/SysAccountOper.d.ts +4 -1
- package/lib/entities/SysAccountOper.js +1 -0
- package/lib/entities/WpAccount.d.ts +1 -1
- package/lib/entities/WpAccount.js +8 -2
- package/lib/locales/error/zh-CN.json +5 -0
- package/lib/locales/offlineAccount/zh-CN.json +2 -1
- package/lib/oak-app-domain/AccountOper/Schema.d.ts +1 -1
- package/lib/oak-app-domain/AccountOper/Storage.js +1 -1
- package/lib/oak-app-domain/AccountOper/Style.js +1 -0
- package/lib/oak-app-domain/AccountOper/locales/zh_CN.json +1 -1
- package/lib/oak-app-domain/EntityDict.d.ts +2 -0
- package/lib/oak-app-domain/OfflineAccount/Action.d.ts +1 -1
- package/lib/oak-app-domain/OfflineAccount/Action.js +1 -1
- package/lib/oak-app-domain/OfflineAccount/Style.js +4 -1
- package/lib/oak-app-domain/OfflineAccount/locales/zh_CN.json +1 -1
- package/lib/oak-app-domain/Path/Schema.d.ts +6 -0
- package/lib/oak-app-domain/Path/Storage.js +6 -0
- package/lib/oak-app-domain/Path/locales/zh_CN.json +1 -1
- package/lib/oak-app-domain/Storage.js +18 -16
- package/lib/oak-app-domain/SysAccountMove/Schema.d.ts +185 -0
- package/lib/oak-app-domain/SysAccountMove/Schema.js +2 -0
- package/lib/oak-app-domain/SysAccountMove/Storage.d.ts +3 -0
- package/lib/oak-app-domain/SysAccountMove/Storage.js +34 -0
- package/lib/oak-app-domain/SysAccountMove/locales/zh_CN.json +1 -0
- package/lib/oak-app-domain/SysAccountOper/Schema.d.ts +34 -5
- package/lib/oak-app-domain/SysAccountOper/Storage.js +4 -0
- package/lib/oak-app-domain/SysAccountOper/locales/zh_CN.json +1 -1
- package/lib/oak-app-domain/System/Schema.d.ts +12 -0
- package/lib/oak-app-domain/User/Schema.d.ts +12 -0
- package/lib/oak-app-domain/WpAccount/Action.d.ts +1 -1
- package/lib/oak-app-domain/WpAccount/Action.js +1 -1
- package/lib/oak-app-domain/WpAccount/Style.js +4 -1
- package/lib/oak-app-domain/WpAccount/locales/zh_CN.json +1 -1
- package/lib/oak-app-domain/_SubQuery.d.ts +12 -0
- package/lib/triggers/pay.js +149 -46
- package/lib/triggers/refund.js +3 -0
- package/lib/types/RuntimeCxt.d.ts +1 -1
- package/lib/types/sysAccountOper.d.ts +1 -0
- package/lib/types/sysAccountOper.js +2 -0
- package/lib/utils/payClazz/Account.js +3 -2
- package/package.json +4 -4
- package/src/entities/AccountOper.ts +4 -2
- package/src/entities/OfflineAccount.ts +12 -5
- package/src/entities/SysAccountMove.ts +39 -0
- package/src/entities/SysAccountOper.ts +7 -1
- package/src/entities/WpAccount.ts +11 -4
|
@@ -26,6 +26,7 @@ import * as Deposit from "../Deposit/Schema";
|
|
|
26
26
|
import * as Order from "../Order/Schema";
|
|
27
27
|
import * as Pay from "../Pay/Schema";
|
|
28
28
|
import * as Refund from "../Refund/Schema";
|
|
29
|
+
import * as SysAccountMove from "../SysAccountMove/Schema";
|
|
29
30
|
import * as Withdraw from "../Withdraw/Schema";
|
|
30
31
|
import * as WithdrawTransfer from "../WithdrawTransfer/Schema";
|
|
31
32
|
import * as ModiEntity from "../ModiEntity/Schema";
|
|
@@ -108,6 +109,8 @@ export type Schema = EntityShape & {
|
|
|
108
109
|
pay$creator$$aggr?: AggregationResult<Pay.Schema>;
|
|
109
110
|
refund$creator?: Array<Refund.Schema>;
|
|
110
111
|
refund$creator$$aggr?: AggregationResult<Refund.Schema>;
|
|
112
|
+
sysAccountMove$operator?: Array<SysAccountMove.Schema>;
|
|
113
|
+
sysAccountMove$operator$$aggr?: AggregationResult<SysAccountMove.Schema>;
|
|
111
114
|
withdraw$creator?: Array<Withdraw.Schema>;
|
|
112
115
|
withdraw$creator$$aggr?: AggregationResult<Withdraw.Schema>;
|
|
113
116
|
withdrawTransfer$operator?: Array<WithdrawTransfer.Schema>;
|
|
@@ -171,6 +174,7 @@ type AttrFilter = {
|
|
|
171
174
|
order$creator: Order.Filter & SubQueryPredicateMetadata;
|
|
172
175
|
pay$creator: Pay.Filter & SubQueryPredicateMetadata;
|
|
173
176
|
refund$creator: Refund.Filter & SubQueryPredicateMetadata;
|
|
177
|
+
sysAccountMove$operator: SysAccountMove.Filter & SubQueryPredicateMetadata;
|
|
174
178
|
withdraw$creator: Withdraw.Filter & SubQueryPredicateMetadata;
|
|
175
179
|
withdrawTransfer$operator: WithdrawTransfer.Filter & SubQueryPredicateMetadata;
|
|
176
180
|
withdrawTransfer$creator: WithdrawTransfer.Filter & SubQueryPredicateMetadata;
|
|
@@ -335,6 +339,12 @@ export type Projection = {
|
|
|
335
339
|
refund$creator$$aggr?: Refund.Aggregation & {
|
|
336
340
|
$entity: "refund";
|
|
337
341
|
};
|
|
342
|
+
sysAccountMove$operator?: SysAccountMove.Selection & {
|
|
343
|
+
$entity: "sysAccountMove";
|
|
344
|
+
};
|
|
345
|
+
sysAccountMove$operator$$aggr?: SysAccountMove.Aggregation & {
|
|
346
|
+
$entity: "sysAccountMove";
|
|
347
|
+
};
|
|
338
348
|
withdraw$creator?: Withdraw.Selection & {
|
|
339
349
|
$entity: "withdraw";
|
|
340
350
|
};
|
|
@@ -477,6 +487,7 @@ export type CreateOperationData = FormCreateData<Omit<OpSchema, "refId">> & (({
|
|
|
477
487
|
order$creator?: OakOperation<Order.UpdateOperation["action"], Omit<Order.UpdateOperationData, "creator" | "creatorId">, Omit<Order.Filter, "creator" | "creatorId">> | OakOperation<"create", Omit<Order.CreateOperationData, "creator" | "creatorId">[]> | Array<OakOperation<"create", Omit<Order.CreateOperationData, "creator" | "creatorId">> | OakOperation<Order.UpdateOperation["action"], Omit<Order.UpdateOperationData, "creator" | "creatorId">, Omit<Order.Filter, "creator" | "creatorId">>>;
|
|
478
488
|
pay$creator?: OakOperation<Pay.UpdateOperation["action"], Omit<Pay.UpdateOperationData, "creator" | "creatorId">, Omit<Pay.Filter, "creator" | "creatorId">> | OakOperation<"create", Omit<Pay.CreateOperationData, "creator" | "creatorId">[]> | Array<OakOperation<"create", Omit<Pay.CreateOperationData, "creator" | "creatorId">> | OakOperation<Pay.UpdateOperation["action"], Omit<Pay.UpdateOperationData, "creator" | "creatorId">, Omit<Pay.Filter, "creator" | "creatorId">>>;
|
|
479
489
|
refund$creator?: OakOperation<Refund.UpdateOperation["action"], Omit<Refund.UpdateOperationData, "creator" | "creatorId">, Omit<Refund.Filter, "creator" | "creatorId">> | OakOperation<"create", Omit<Refund.CreateOperationData, "creator" | "creatorId">[]> | Array<OakOperation<"create", Omit<Refund.CreateOperationData, "creator" | "creatorId">> | OakOperation<Refund.UpdateOperation["action"], Omit<Refund.UpdateOperationData, "creator" | "creatorId">, Omit<Refund.Filter, "creator" | "creatorId">>>;
|
|
490
|
+
sysAccountMove$operator?: OakOperation<"create", Omit<SysAccountMove.CreateOperationData, "operator" | "operatorId">[]> | Array<OakOperation<"create", Omit<SysAccountMove.CreateOperationData, "operator" | "operatorId">>>;
|
|
480
491
|
withdraw$creator?: OakOperation<Withdraw.UpdateOperation["action"], Omit<Withdraw.UpdateOperationData, "creator" | "creatorId">, Omit<Withdraw.Filter, "creator" | "creatorId">> | OakOperation<"create", Omit<Withdraw.CreateOperationData, "creator" | "creatorId">[]> | Array<OakOperation<"create", Omit<Withdraw.CreateOperationData, "creator" | "creatorId">> | OakOperation<Withdraw.UpdateOperation["action"], Omit<Withdraw.UpdateOperationData, "creator" | "creatorId">, Omit<Withdraw.Filter, "creator" | "creatorId">>>;
|
|
481
492
|
withdrawTransfer$operator?: OakOperation<WithdrawTransfer.UpdateOperation["action"], Omit<WithdrawTransfer.UpdateOperationData, "operator" | "operatorId">, Omit<WithdrawTransfer.Filter, "operator" | "operatorId">> | OakOperation<"create", Omit<WithdrawTransfer.CreateOperationData, "operator" | "operatorId">[]> | Array<OakOperation<"create", Omit<WithdrawTransfer.CreateOperationData, "operator" | "operatorId">> | OakOperation<WithdrawTransfer.UpdateOperation["action"], Omit<WithdrawTransfer.UpdateOperationData, "operator" | "operatorId">, Omit<WithdrawTransfer.Filter, "operator" | "operatorId">>>;
|
|
482
493
|
withdrawTransfer$creator?: OakOperation<WithdrawTransfer.UpdateOperation["action"], Omit<WithdrawTransfer.UpdateOperationData, "creator" | "creatorId">, Omit<WithdrawTransfer.Filter, "creator" | "creatorId">> | OakOperation<"create", Omit<WithdrawTransfer.CreateOperationData, "creator" | "creatorId">[]> | Array<OakOperation<"create", Omit<WithdrawTransfer.CreateOperationData, "creator" | "creatorId">> | OakOperation<WithdrawTransfer.UpdateOperation["action"], Omit<WithdrawTransfer.UpdateOperationData, "creator" | "creatorId">, Omit<WithdrawTransfer.Filter, "creator" | "creatorId">>>;
|
|
@@ -527,6 +538,7 @@ export type UpdateOperationData = FormUpdateData<Omit<OpSchema, "refId">> & (({
|
|
|
527
538
|
order$creator?: OakOperation<Order.UpdateOperation["action"], Omit<Order.UpdateOperationData, "creator" | "creatorId">, Omit<Order.Filter, "creator" | "creatorId">> | OakOperation<Order.RemoveOperation["action"], Omit<Order.RemoveOperationData, "creator" | "creatorId">, Omit<Order.Filter, "creator" | "creatorId">> | OakOperation<"create", Omit<Order.CreateOperationData, "creator" | "creatorId">[]> | Array<OakOperation<"create", Omit<Order.CreateOperationData, "creator" | "creatorId">> | OakOperation<Order.UpdateOperation["action"], Omit<Order.UpdateOperationData, "creator" | "creatorId">, Omit<Order.Filter, "creator" | "creatorId">> | OakOperation<Order.RemoveOperation["action"], Omit<Order.RemoveOperationData, "creator" | "creatorId">, Omit<Order.Filter, "creator" | "creatorId">>>;
|
|
528
539
|
pay$creator?: OakOperation<Pay.UpdateOperation["action"], Omit<Pay.UpdateOperationData, "creator" | "creatorId">, Omit<Pay.Filter, "creator" | "creatorId">> | OakOperation<Pay.RemoveOperation["action"], Omit<Pay.RemoveOperationData, "creator" | "creatorId">, Omit<Pay.Filter, "creator" | "creatorId">> | OakOperation<"create", Omit<Pay.CreateOperationData, "creator" | "creatorId">[]> | Array<OakOperation<"create", Omit<Pay.CreateOperationData, "creator" | "creatorId">> | OakOperation<Pay.UpdateOperation["action"], Omit<Pay.UpdateOperationData, "creator" | "creatorId">, Omit<Pay.Filter, "creator" | "creatorId">> | OakOperation<Pay.RemoveOperation["action"], Omit<Pay.RemoveOperationData, "creator" | "creatorId">, Omit<Pay.Filter, "creator" | "creatorId">>>;
|
|
529
540
|
refund$creator?: OakOperation<Refund.UpdateOperation["action"], Omit<Refund.UpdateOperationData, "creator" | "creatorId">, Omit<Refund.Filter, "creator" | "creatorId">> | OakOperation<Refund.RemoveOperation["action"], Omit<Refund.RemoveOperationData, "creator" | "creatorId">, Omit<Refund.Filter, "creator" | "creatorId">> | OakOperation<"create", Omit<Refund.CreateOperationData, "creator" | "creatorId">[]> | Array<OakOperation<"create", Omit<Refund.CreateOperationData, "creator" | "creatorId">> | OakOperation<Refund.UpdateOperation["action"], Omit<Refund.UpdateOperationData, "creator" | "creatorId">, Omit<Refund.Filter, "creator" | "creatorId">> | OakOperation<Refund.RemoveOperation["action"], Omit<Refund.RemoveOperationData, "creator" | "creatorId">, Omit<Refund.Filter, "creator" | "creatorId">>>;
|
|
541
|
+
sysAccountMove$operator?: OakOperation<"create", Omit<SysAccountMove.CreateOperationData, "operator" | "operatorId">[]> | Array<OakOperation<"create", Omit<SysAccountMove.CreateOperationData, "operator" | "operatorId">>>;
|
|
530
542
|
withdraw$creator?: OakOperation<Withdraw.UpdateOperation["action"], Omit<Withdraw.UpdateOperationData, "creator" | "creatorId">, Omit<Withdraw.Filter, "creator" | "creatorId">> | OakOperation<Withdraw.RemoveOperation["action"], Omit<Withdraw.RemoveOperationData, "creator" | "creatorId">, Omit<Withdraw.Filter, "creator" | "creatorId">> | OakOperation<"create", Omit<Withdraw.CreateOperationData, "creator" | "creatorId">[]> | Array<OakOperation<"create", Omit<Withdraw.CreateOperationData, "creator" | "creatorId">> | OakOperation<Withdraw.UpdateOperation["action"], Omit<Withdraw.UpdateOperationData, "creator" | "creatorId">, Omit<Withdraw.Filter, "creator" | "creatorId">> | OakOperation<Withdraw.RemoveOperation["action"], Omit<Withdraw.RemoveOperationData, "creator" | "creatorId">, Omit<Withdraw.Filter, "creator" | "creatorId">>>;
|
|
531
543
|
withdrawTransfer$operator?: OakOperation<WithdrawTransfer.UpdateOperation["action"], Omit<WithdrawTransfer.UpdateOperationData, "operator" | "operatorId">, Omit<WithdrawTransfer.Filter, "operator" | "operatorId">> | OakOperation<WithdrawTransfer.RemoveOperation["action"], Omit<WithdrawTransfer.RemoveOperationData, "operator" | "operatorId">, Omit<WithdrawTransfer.Filter, "operator" | "operatorId">> | OakOperation<"create", Omit<WithdrawTransfer.CreateOperationData, "operator" | "operatorId">[]> | Array<OakOperation<"create", Omit<WithdrawTransfer.CreateOperationData, "operator" | "operatorId">> | OakOperation<WithdrawTransfer.UpdateOperation["action"], Omit<WithdrawTransfer.UpdateOperationData, "operator" | "operatorId">, Omit<WithdrawTransfer.Filter, "operator" | "operatorId">> | OakOperation<WithdrawTransfer.RemoveOperation["action"], Omit<WithdrawTransfer.RemoveOperationData, "operator" | "operatorId">, Omit<WithdrawTransfer.Filter, "operator" | "operatorId">>>;
|
|
532
544
|
withdrawTransfer$creator?: OakOperation<WithdrawTransfer.UpdateOperation["action"], Omit<WithdrawTransfer.UpdateOperationData, "creator" | "creatorId">, Omit<WithdrawTransfer.Filter, "creator" | "creatorId">> | OakOperation<WithdrawTransfer.RemoveOperation["action"], Omit<WithdrawTransfer.RemoveOperationData, "creator" | "creatorId">, Omit<WithdrawTransfer.Filter, "creator" | "creatorId">> | OakOperation<"create", Omit<WithdrawTransfer.CreateOperationData, "creator" | "creatorId">[]> | Array<OakOperation<"create", Omit<WithdrawTransfer.CreateOperationData, "creator" | "creatorId">> | OakOperation<WithdrawTransfer.UpdateOperation["action"], Omit<WithdrawTransfer.UpdateOperationData, "creator" | "creatorId">, Omit<WithdrawTransfer.Filter, "creator" | "creatorId">> | OakOperation<WithdrawTransfer.RemoveOperation["action"], Omit<WithdrawTransfer.RemoveOperationData, "creator" | "creatorId">, Omit<WithdrawTransfer.Filter, "creator" | "creatorId">>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GenericAction } from "oak-domain/lib/actions/action";
|
|
2
|
-
export type ParticularAction = 'pay' | 'refund' | '
|
|
2
|
+
export type ParticularAction = 'pay' | 'refund' | 'withdrawTransfer' | 'compensate' | 'moveIn' | 'moveOut' | 'deposit' | 'tax';
|
|
3
3
|
export declare const actions: string[];
|
|
4
4
|
export type Action = GenericAction | ParticularAction | string;
|
|
5
5
|
export declare const actionDefDict: {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "pay", "refund", "
|
|
1
|
+
export const actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "pay", "refund", "withdrawTransfer", "compensate", "moveIn", "moveOut", "deposit", "tax"];
|
|
2
2
|
export const actionDefDict = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "name": "微信支付帐号", "attr": { "wechatPay": "微信支付", "taxLossRatio": "商户号手续费(百分比)", "refundCompensateRatio": "退款补偿百分比", "refundGapDays": "(支付后)允许退款的天数", "allowWithdrawTransfer": "允许提现转账", "withdrawTransferLossRatio": "提现转账费率(百分数)", "mchId": "商户号", "publicKeyFilePath": "公钥文件路径", "privateKeyFilePath": "私钥文件路径", "apiV3Key": "apiV3Key", "price": "余额", "system": "关联系统", "opers": "操作记录", "channels": "提现通道", "enabled": "是否启用" }, "action": { "pay": "支付", "refund": "退款", "
|
|
1
|
+
{ "name": "微信支付帐号", "attr": { "wechatPay": "微信支付", "taxLossRatio": "商户号手续费(百分比)", "refundCompensateRatio": "退款补偿百分比", "refundGapDays": "(支付后)允许退款的天数", "allowWithdrawTransfer": "允许提现转账", "withdrawTransferLossRatio": "提现转账费率(百分数)", "mchId": "商户号", "publicKeyFilePath": "公钥文件路径", "privateKeyFilePath": "私钥文件路径", "apiV3Key": "apiV3Key", "price": "余额", "system": "关联系统", "opers": "操作记录", "channels": "提现通道", "enabled": "是否启用" }, "action": { "pay": "支付", "refund": "退款", "withdrawTransfer": "提现转账", "compensate": "补偿", "moveIn": "转入", "moveOut": "转出", "deposit": "充值", "tax": "渠道费" } }
|
|
@@ -60,6 +60,7 @@ import * as OfflineAccount from "./OfflineAccount/Schema";
|
|
|
60
60
|
import * as Order from "./Order/Schema";
|
|
61
61
|
import * as Pay from "./Pay/Schema";
|
|
62
62
|
import * as Refund from "./Refund/Schema";
|
|
63
|
+
import * as SysAccountMove from "./SysAccountMove/Schema";
|
|
63
64
|
import * as SysAccountOper from "./SysAccountOper/Schema";
|
|
64
65
|
import * as WechatPay from "./WechatPay/Schema";
|
|
65
66
|
import * as Withdraw from "./Withdraw/Schema";
|
|
@@ -172,6 +173,8 @@ export type UserIdSubQuery = {
|
|
|
172
173
|
entity: "pay";
|
|
173
174
|
}) | (Refund.UserIdSubQuery & {
|
|
174
175
|
entity: "refund";
|
|
176
|
+
}) | (SysAccountMove.UserIdSubQuery & {
|
|
177
|
+
entity: "sysAccountMove";
|
|
175
178
|
}) | (Withdraw.UserIdSubQuery & {
|
|
176
179
|
entity: "withdraw";
|
|
177
180
|
}) | (WithdrawTransfer.UserIdSubQuery & {
|
|
@@ -448,6 +451,8 @@ export type SystemIdSubQuery = {
|
|
|
448
451
|
entity: "offlineAccount";
|
|
449
452
|
}) | (Order.SystemIdSubQuery & {
|
|
450
453
|
entity: "order";
|
|
454
|
+
}) | (SysAccountMove.SystemIdSubQuery & {
|
|
455
|
+
entity: "sysAccountMove";
|
|
451
456
|
}) | (WechatPay.SystemIdSubQuery & {
|
|
452
457
|
entity: "wechatPay";
|
|
453
458
|
}) | (WithdrawAccount.SystemIdSubQuery & {
|
|
@@ -610,6 +615,13 @@ export type RefundIdSubQuery = {
|
|
|
610
615
|
entity: "refund";
|
|
611
616
|
}) | any;
|
|
612
617
|
};
|
|
618
|
+
export type SysAccountMoveIdSubQuery = {
|
|
619
|
+
[K in "$in" | "$nin"]?: (SysAccountOper.SysAccountMoveIdSubQuery & {
|
|
620
|
+
entity: "sysAccountOper";
|
|
621
|
+
}) | (SysAccountMove.SysAccountMoveIdSubQuery & {
|
|
622
|
+
entity: "sysAccountMove";
|
|
623
|
+
}) | any;
|
|
624
|
+
};
|
|
613
625
|
export type SysAccountOperIdSubQuery = {
|
|
614
626
|
[K in "$in" | "$nin"]?: (SysAccountOper.SysAccountOperIdSubQuery & {
|
|
615
627
|
entity: "sysAccountOper";
|
package/es/triggers/pay.js
CHANGED
|
@@ -3,6 +3,7 @@ import assert from 'assert';
|
|
|
3
3
|
import { getPayClazz } from '../utils/payClazz';
|
|
4
4
|
import { fullPayProjection } from '../utils/pay';
|
|
5
5
|
import { DATA_SUBSCRIBER_KEYS } from '../config/constants';
|
|
6
|
+
import { getRelevantIds } from 'oak-domain/lib/store/filter';
|
|
6
7
|
async function changeOrderStateByPay(filter, context, option) {
|
|
7
8
|
const orders = await context.select('order', {
|
|
8
9
|
data: {
|
|
@@ -144,6 +145,96 @@ async function changeOrderStateByPay(filter, context, option) {
|
|
|
144
145
|
throw err;
|
|
145
146
|
}
|
|
146
147
|
}
|
|
148
|
+
/**
|
|
149
|
+
* 当订单上其它的支付全部完成/失败时,将对应的order上类型为account的pay处理掉
|
|
150
|
+
* 现在的逻辑是:account类型的pay必须等所有其它的pay都完成了,自己才能完成,如果其它都失败了,自己就也失败,钱返回付款的account
|
|
151
|
+
* @param payId
|
|
152
|
+
* @param context
|
|
153
|
+
*/
|
|
154
|
+
async function tryCompleteAccountPay(payId, context) {
|
|
155
|
+
const [pay] = await context.select('pay', {
|
|
156
|
+
data: {
|
|
157
|
+
id: 1,
|
|
158
|
+
paid: 1,
|
|
159
|
+
price: 1,
|
|
160
|
+
iState: 1,
|
|
161
|
+
order: {
|
|
162
|
+
iState: 1,
|
|
163
|
+
price: 1,
|
|
164
|
+
pay$order: {
|
|
165
|
+
$entity: 'pay',
|
|
166
|
+
data: {
|
|
167
|
+
id: 1,
|
|
168
|
+
iState: 1,
|
|
169
|
+
price: 1,
|
|
170
|
+
entity: 1,
|
|
171
|
+
paid: 1,
|
|
172
|
+
},
|
|
173
|
+
filter: {
|
|
174
|
+
iState: {
|
|
175
|
+
$in: ['paid', 'paying'],
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
filter: {
|
|
182
|
+
id: payId,
|
|
183
|
+
}
|
|
184
|
+
}, {});
|
|
185
|
+
const { order } = pay;
|
|
186
|
+
if (order) {
|
|
187
|
+
const { price, iState, pay$order: pays } = order;
|
|
188
|
+
assert(iState === 'paying');
|
|
189
|
+
const successfulPayIds = [];
|
|
190
|
+
const accountPayIds = [];
|
|
191
|
+
let totalPaid = 0;
|
|
192
|
+
pays?.forEach((pay) => {
|
|
193
|
+
const { iState, entity, paid, price } = pay;
|
|
194
|
+
if (iState === 'paid') {
|
|
195
|
+
assert(paid === price);
|
|
196
|
+
totalPaid += paid;
|
|
197
|
+
}
|
|
198
|
+
else if (entity === 'account') {
|
|
199
|
+
totalPaid += paid;
|
|
200
|
+
accountPayIds.push(pay.id);
|
|
201
|
+
if (price === paid) {
|
|
202
|
+
successfulPayIds.push(pay.id);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
});
|
|
206
|
+
if (totalPaid === price) {
|
|
207
|
+
for (const payId2 of successfulPayIds) {
|
|
208
|
+
await context.operate('pay', {
|
|
209
|
+
id: await generateNewIdAsync(),
|
|
210
|
+
action: 'succeedPaying',
|
|
211
|
+
data: {
|
|
212
|
+
successAt: Date.now(),
|
|
213
|
+
},
|
|
214
|
+
filter: {
|
|
215
|
+
id: payId2,
|
|
216
|
+
}
|
|
217
|
+
}, {});
|
|
218
|
+
}
|
|
219
|
+
return successfulPayIds.length;
|
|
220
|
+
}
|
|
221
|
+
else if (pay.iState === 'closed') {
|
|
222
|
+
// 本条支付关闭,则其它的account pay也跟随关闭
|
|
223
|
+
for (const payId2 of accountPayIds) {
|
|
224
|
+
await context.operate('pay', {
|
|
225
|
+
id: await generateNewIdAsync(),
|
|
226
|
+
action: 'close',
|
|
227
|
+
data: {},
|
|
228
|
+
filter: {
|
|
229
|
+
id: payId2,
|
|
230
|
+
}
|
|
231
|
+
}, {});
|
|
232
|
+
}
|
|
233
|
+
return accountPayIds.length;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
return 0;
|
|
237
|
+
}
|
|
147
238
|
const triggers = [
|
|
148
239
|
{
|
|
149
240
|
name: '当生成pay时,自动开始支付流程',
|
|
@@ -169,10 +260,11 @@ const triggers = [
|
|
|
169
260
|
{
|
|
170
261
|
name: '当pay的状态发生变化时,修改相应的order的状态或者deposit的状态,同时尝试向订阅者推送',
|
|
171
262
|
entity: 'pay',
|
|
172
|
-
action: ['startPaying', 'succeedPaying', 'continuePaying', '
|
|
263
|
+
action: ['startPaying', 'succeedPaying', 'continuePaying', 'close', 'startRefunding',
|
|
173
264
|
'refundAll', 'refundPartially'],
|
|
174
265
|
when: 'after',
|
|
175
266
|
asRoot: true,
|
|
267
|
+
priority: 99,
|
|
176
268
|
fn: async ({ operation }, context, option) => {
|
|
177
269
|
const { data, filter, action, id } = operation;
|
|
178
270
|
assert(typeof filter.id === 'string');
|
|
@@ -313,13 +405,14 @@ const triggers = [
|
|
|
313
405
|
},
|
|
314
406
|
},
|
|
315
407
|
{
|
|
316
|
-
name: '当pay完成支付时,计算相应的account以及
|
|
408
|
+
name: '当pay完成支付时,计算相应的account以及system account中的余额变化,使deposit完成',
|
|
317
409
|
entity: 'pay',
|
|
318
410
|
action: 'succeedPaying',
|
|
319
411
|
when: 'after',
|
|
320
412
|
asRoot: true,
|
|
321
413
|
fn: async ({ operation }, context) => {
|
|
322
414
|
const { data, filter } = operation;
|
|
415
|
+
assert(typeof filter.id === 'string');
|
|
323
416
|
const projection = {
|
|
324
417
|
id: 1,
|
|
325
418
|
paid: 1,
|
|
@@ -448,50 +541,6 @@ const triggers = [
|
|
|
448
541
|
return cnt;
|
|
449
542
|
},
|
|
450
543
|
},
|
|
451
|
-
{
|
|
452
|
-
name: '当account类型的pay的paid达到price,改为支付成功',
|
|
453
|
-
entity: 'pay',
|
|
454
|
-
asRoot: true,
|
|
455
|
-
action: ['startPaying', 'continuePaying'],
|
|
456
|
-
check(operation) {
|
|
457
|
-
return (!!operation.data.paid) && operation.data.paid > 0;
|
|
458
|
-
},
|
|
459
|
-
filter: {
|
|
460
|
-
entity: 'account',
|
|
461
|
-
},
|
|
462
|
-
when: 'commit',
|
|
463
|
-
fn: async ({ ids }, context) => {
|
|
464
|
-
for (const id of ids) {
|
|
465
|
-
const [row] = await context.select('pay', {
|
|
466
|
-
data: {
|
|
467
|
-
id: 1,
|
|
468
|
-
orderId: 1,
|
|
469
|
-
entity: 1,
|
|
470
|
-
price: 1,
|
|
471
|
-
paid: 1,
|
|
472
|
-
},
|
|
473
|
-
filter: {
|
|
474
|
-
id,
|
|
475
|
-
}
|
|
476
|
-
}, { dontCollect: true });
|
|
477
|
-
assert(row && row.entity === 'account');
|
|
478
|
-
if (row.paid && row.paid === row.price) {
|
|
479
|
-
const closeFn = context.openRootMode();
|
|
480
|
-
await context.operate('pay', {
|
|
481
|
-
id: await generateNewIdAsync(),
|
|
482
|
-
action: 'succeedPaying',
|
|
483
|
-
data: {
|
|
484
|
-
successAt: Date.now(),
|
|
485
|
-
},
|
|
486
|
-
filter: {
|
|
487
|
-
id,
|
|
488
|
-
}
|
|
489
|
-
}, {});
|
|
490
|
-
closeFn();
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
},
|
|
495
544
|
{
|
|
496
545
|
name: '当pay完成支付时,计算其refundable和forbidRefundAt',
|
|
497
546
|
entity: 'pay',
|
|
@@ -519,5 +568,59 @@ const triggers = [
|
|
|
519
568
|
return 1;
|
|
520
569
|
},
|
|
521
570
|
},
|
|
571
|
+
{
|
|
572
|
+
entity: 'pay',
|
|
573
|
+
name: '当有pay支付成功时,尝试将account类型的pay完成',
|
|
574
|
+
action: ['startPaying', 'continuePaying', 'succeedPaying'],
|
|
575
|
+
attributes: ['paid'],
|
|
576
|
+
when: 'after',
|
|
577
|
+
fn: async ({ operation }, context, option) => {
|
|
578
|
+
const { filter } = operation;
|
|
579
|
+
const ids = getRelevantIds(filter);
|
|
580
|
+
assert(ids.length === 1);
|
|
581
|
+
return tryCompleteAccountPay(ids[0], context);
|
|
582
|
+
}
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
entity: 'pay',
|
|
586
|
+
name: '当有pay关闭时,如果是account类型的,将金额还给account,否则检查会否测试相关Account pay是否需要关闭',
|
|
587
|
+
action: 'close',
|
|
588
|
+
when: 'after',
|
|
589
|
+
fn: async ({ operation }, context, option) => {
|
|
590
|
+
const { filter } = operation;
|
|
591
|
+
const ids = getRelevantIds(filter);
|
|
592
|
+
assert(ids.length === 1);
|
|
593
|
+
const [pay] = await context.select('pay', {
|
|
594
|
+
data: {
|
|
595
|
+
id: 1,
|
|
596
|
+
price: 1,
|
|
597
|
+
paid: 1,
|
|
598
|
+
entity: 1,
|
|
599
|
+
entityId: 1,
|
|
600
|
+
},
|
|
601
|
+
filter: {
|
|
602
|
+
id: ids[0],
|
|
603
|
+
},
|
|
604
|
+
}, {});
|
|
605
|
+
if (pay.entity === 'account') {
|
|
606
|
+
await context.operate('accountOper', {
|
|
607
|
+
id: await generateNewIdAsync(),
|
|
608
|
+
action: 'create',
|
|
609
|
+
data: {
|
|
610
|
+
id: await generateNewIdAsync(),
|
|
611
|
+
accountId: pay.entityId,
|
|
612
|
+
entity: 'pay',
|
|
613
|
+
entityId: ids[0],
|
|
614
|
+
type: 'consumeBack',
|
|
615
|
+
totalPlus: pay.paid,
|
|
616
|
+
availPlus: pay.paid,
|
|
617
|
+
},
|
|
618
|
+
}, {});
|
|
619
|
+
}
|
|
620
|
+
else {
|
|
621
|
+
return tryCompleteAccountPay(ids[0], context);
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
},
|
|
522
625
|
];
|
|
523
626
|
export default triggers;
|
package/es/triggers/refund.js
CHANGED
package/es/types/RuntimeCxt.d.ts
CHANGED
|
@@ -8,5 +8,5 @@ import { FeatureDict as Ogb0FeatureDict, AspectDict as Ogb0AspectDict } from "oa
|
|
|
8
8
|
export type BRC = BackendRuntimeContext<EntityDict>;
|
|
9
9
|
export type FRC = FrontendRuntimeContext<EntityDict>;
|
|
10
10
|
export type RuntimeCxt = FRC | BRC;
|
|
11
|
-
export type AAD = AspectDict & Ogb0AspectDict<EntityDict>;
|
|
11
|
+
export type AAD = AspectDict<EntityDict> & Ogb0AspectDict<EntityDict>;
|
|
12
12
|
export type AFD = FeatureDict<EntityDict> & BasicFeatures<EntityDict> & Ogb0FeatureDict<EntityDict>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type SysAccountOperType = 'pay' | 'refund' | 'withdrawTransfer' | 'compensate' | 'moveIn' | 'moveOut';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BackendRuntimeContext } from '../context/BackendRuntimeContext';
|
|
2
2
|
import { EntityDict } from '../oak-app-domain';
|
|
3
|
-
export type AspectDict = {
|
|
3
|
+
export type AspectDict<ED extends EntityDict> = {
|
|
4
4
|
getWithdrawCreateData: (params: {
|
|
5
5
|
accountId: string;
|
|
6
6
|
price: number;
|
|
7
7
|
withdrawAccountId?: string;
|
|
8
|
-
}, context:
|
|
8
|
+
}, context: BackendRuntimeContext<ED>) => Promise<EntityDict['withdraw']['CreateSingle']['data']>;
|
|
9
9
|
};
|
package/lib/aspects/index.d.ts
CHANGED
|
@@ -57,14 +57,15 @@ const checkers = [
|
|
|
57
57
|
case 'refund':
|
|
58
58
|
case 'withdraw': {
|
|
59
59
|
if (totalPlus >= 0 || availPlus >= 0 || totalPlus !== availPlus) {
|
|
60
|
-
throw new types_1.OakInputIllegalException('accountOper', ['availPlus'],
|
|
60
|
+
throw new types_1.OakInputIllegalException('accountOper', ['availPlus'], `accountOper为${type}时,其totalPlus和availPlus必须为不相等的负数`);
|
|
61
61
|
}
|
|
62
62
|
break;
|
|
63
63
|
}
|
|
64
64
|
case 'refundFailure':
|
|
65
|
-
case 'withdrawBack':
|
|
65
|
+
case 'withdrawBack':
|
|
66
|
+
case 'consumeBack': {
|
|
66
67
|
if (totalPlus <= 0 || availPlus <= 0 || totalPlus !== availPlus) {
|
|
67
|
-
throw new types_1.OakInputIllegalException('accountOper', ['availPlus'],
|
|
68
|
+
throw new types_1.OakInputIllegalException('accountOper', ['availPlus'], `accountOper为${type}时,其totalPlus和availPlus必须为不相等的正数`);
|
|
68
69
|
}
|
|
69
70
|
break;
|
|
70
71
|
}
|
|
@@ -30,13 +30,16 @@ function checkAttributes(data) {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
const { refundCompensateRatio, refundGapDays } = data;
|
|
33
|
+
const { refundCompensateRatio, refundGapDays, withdrawTransferLossRatio } = data;
|
|
34
34
|
if (typeof refundGapDays !== 'number' || refundGapDays < 0) {
|
|
35
35
|
throw new types_1.OakInputIllegalException('offlineAccount', ['refundGapDays'], 'offlineAccount::error.refundGapDaysNotNegative');
|
|
36
36
|
}
|
|
37
37
|
if (typeof refundCompensateRatio !== 'number' || refundCompensateRatio < 0 || refundCompensateRatio > 100) {
|
|
38
38
|
throw new types_1.OakInputIllegalException('offlineAccount', ['refundGapDays'], 'offlineAccount::error.refundCompensateIllegal');
|
|
39
39
|
}
|
|
40
|
+
if (typeof withdrawTransferLossRatio !== 'number' || withdrawTransferLossRatio < 0) {
|
|
41
|
+
throw new types_1.OakInputIllegalException('offlineAccount', ['withdrawTransferLossRatio'], 'offlineAccount::error.withdrawTransferLossRatioNotNegative');
|
|
42
|
+
}
|
|
40
43
|
}
|
|
41
44
|
const checkers = [
|
|
42
45
|
{
|
package/lib/checkers/refund.js
CHANGED
|
@@ -140,7 +140,7 @@ const attrUpdateMatrix = {
|
|
|
140
140
|
actions: ['update'],
|
|
141
141
|
},
|
|
142
142
|
price: {
|
|
143
|
-
actions: ['pay', 'refund', 'deposit', '
|
|
143
|
+
actions: ['pay', 'refund', 'deposit', 'withdrawTransfer', 'tax', 'moveOut', 'moveIn', 'compensate'],
|
|
144
144
|
},
|
|
145
145
|
allowDeposit: {
|
|
146
146
|
actions: ['update'],
|
|
@@ -202,7 +202,7 @@ const attrUpdateMatrix = {
|
|
|
202
202
|
actions: ['update'],
|
|
203
203
|
},
|
|
204
204
|
price: {
|
|
205
|
-
actions: ['pay', 'refund', 'deposit', '
|
|
205
|
+
actions: ['pay', 'refund', 'deposit', 'withdrawTransfer', 'tax', 'moveOut', 'moveIn', 'compensate'],
|
|
206
206
|
}
|
|
207
207
|
},
|
|
208
208
|
withdrawAccount: {
|
package/lib/data/actionAuth.js
CHANGED
|
@@ -12,8 +12,13 @@ const actionAuths = [
|
|
|
12
12
|
deActions: ['select', 'create']
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
|
-
id: '
|
|
16
|
-
pathId: '
|
|
15
|
+
id: 'creator-order-pay',
|
|
16
|
+
pathId: 'creator-order-pay',
|
|
17
|
+
deActions: ['select', 'create', 'startPaying', 'startRefunding', 'close']
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
id: 'user-dep-acc-pay',
|
|
21
|
+
pathId: 'user-dep-acc-pay',
|
|
17
22
|
deActions: ['select', 'update', 'startPaying', 'startRefunding', 'close']
|
|
18
23
|
},
|
|
19
24
|
{
|
package/lib/data/i18n.js
CHANGED
|
@@ -408,7 +408,47 @@ const i18ns = [
|
|
|
408
408
|
"orderPriceSum": "订单总额",
|
|
409
409
|
"orderManage": "订单管理",
|
|
410
410
|
"orderList": "订单列表",
|
|
411
|
-
"tips1": "总账户余额+退款总额+转账总额+订单总额应该等于系统账户总余额"
|
|
411
|
+
"tips1": "总账户余额+退款总额+转账总额+订单总额应该等于系统账户总余额",
|
|
412
|
+
"move": "移动资金",
|
|
413
|
+
"history": "账单"
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
id: "207fd2189d3697d15672176ae88f4175",
|
|
418
|
+
namespace: "oak-pay-business-c-sysAccount-transferList",
|
|
419
|
+
language: "zh-CN",
|
|
420
|
+
module: "oak-pay-business",
|
|
421
|
+
position: "src/components/sysAccount/transferList",
|
|
422
|
+
data: {
|
|
423
|
+
"label": {
|
|
424
|
+
"channel": "转账渠道"
|
|
425
|
+
},
|
|
426
|
+
"tips": "正在转账的金额不计入任何账户,请到\"提现转账管理\"菜单完成操作"
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
id: "17a11f164c9977d8eb5b59fbc78755d5",
|
|
431
|
+
namespace: "oak-pay-business-c-sysAccountMove-create",
|
|
432
|
+
language: "zh-CN",
|
|
433
|
+
module: "oak-pay-business",
|
|
434
|
+
position: "src/components/sysAccountMove/create",
|
|
435
|
+
data: {
|
|
436
|
+
"label": {
|
|
437
|
+
"from": "从账户",
|
|
438
|
+
"to": "到账户"
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
id: "f89e1a2d0e88d8e2b3f900cfe28a893e",
|
|
444
|
+
namespace: "oak-pay-business-c-sysAccountOper-list",
|
|
445
|
+
language: "zh-CN",
|
|
446
|
+
module: "oak-pay-business",
|
|
447
|
+
position: "src/components/sysAccountOper/list",
|
|
448
|
+
data: {
|
|
449
|
+
"history": "账户历史",
|
|
450
|
+
"chooseMonth": "选择月份",
|
|
451
|
+
"all": "全部"
|
|
412
452
|
}
|
|
413
453
|
},
|
|
414
454
|
{
|
|
@@ -585,7 +625,7 @@ const i18ns = [
|
|
|
585
625
|
position: "src/components/withdrawTransfer/list",
|
|
586
626
|
data: {
|
|
587
627
|
"label": {
|
|
588
|
-
"channel": "
|
|
628
|
+
"channel": "转账渠道",
|
|
589
629
|
"transferActualPrice": "实际转账金额",
|
|
590
630
|
"sysAccountAmount": "系统账户余额",
|
|
591
631
|
"cn": "创建者",
|
|
@@ -755,6 +795,11 @@ const i18ns = [
|
|
|
755
795
|
"order": {
|
|
756
796
|
"payAmountNotEnough": "支付的额度总和不足",
|
|
757
797
|
"nonePay": "没有传入支付信息"
|
|
798
|
+
},
|
|
799
|
+
"refund": {
|
|
800
|
+
"create": {
|
|
801
|
+
"hasAnotherRefunding": "您有一笔退款正在进行中"
|
|
802
|
+
}
|
|
758
803
|
}
|
|
759
804
|
}
|
|
760
805
|
},
|
|
@@ -788,7 +833,8 @@ const i18ns = [
|
|
|
788
833
|
"error": {
|
|
789
834
|
"nameQrCodeBothNull": "账号名和二维码不能同时为空",
|
|
790
835
|
"refundGapDaysNotNegative": "允许退款天数不能为负数或空",
|
|
791
|
-
"refundCompensateIllegal": "退款补偿百分比必须在0到100之间"
|
|
836
|
+
"refundCompensateIllegal": "退款补偿百分比必须在0到100之间",
|
|
837
|
+
"withdrawTransferLossRatioNotNegative": "提现转账费率必须在0到100之间"
|
|
792
838
|
}
|
|
793
839
|
}
|
|
794
840
|
},
|
package/lib/data/path.js
CHANGED
|
@@ -2,7 +2,7 @@ import { String, Price } from 'oak-domain/lib/types/DataType';
|
|
|
2
2
|
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
|
3
3
|
import { EntityDesc } from 'oak-domain/lib/types';
|
|
4
4
|
import { Schema as Account } from './Account';
|
|
5
|
-
type Type = 'deposit' | 'withdraw' | 'consume' | 'loan' | 'repay' | 'withdrawBack' | 'earn' | 'encash' | 'cutoffRefundable' | 'tax' | 'taxRefund' | 'refund' | 'refundFailure';
|
|
5
|
+
type Type = 'deposit' | 'withdraw' | 'consume' | 'consumeBack' | 'loan' | 'repay' | 'withdrawBack' | 'earn' | 'encash' | 'cutoffRefundable' | 'tax' | 'taxRefund' | 'refund' | 'refundFailure';
|
|
6
6
|
export interface Schema extends EntityShape {
|
|
7
7
|
account: Account;
|
|
8
8
|
type: Type;
|