oak-pay-business 2.2.2 → 2.2.3
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/AbstractComponents.d.ts +15 -10
- 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/context/BackendRuntimeContext.d.ts +1 -1
- 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/System/Storage.js +2 -1
- 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/triggers/withdraw.d.ts +1 -1
- 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/application.d.ts +1 -1
- package/es/utils/payClazz/Account.js +3 -2
- package/es/utils/payClazz/WechatPay/index.d.ts +1 -1
- package/lib/aspects/AspectDict.d.ts +3 -3
- package/lib/aspects/index.d.ts +2 -1
- package/lib/aspects/withdraw.d.ts +8 -8
- 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/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 +5 -1
- package/src/entities/WpAccount.ts +11 -4
|
@@ -12,8 +12,8 @@ export declare function getWithdrawCreateData(params: {
|
|
|
12
12
|
creatorId: string;
|
|
13
13
|
creator?: import("../oak-app-domain/User/Schema").UpdateOperation | undefined;
|
|
14
14
|
} & {
|
|
15
|
-
refund$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "
|
|
16
|
-
withdrawTransfer$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "
|
|
15
|
+
refund$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "withdrawId" | "withdraw">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdrawId" | "withdraw">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdrawId" | "withdraw">[]> | (import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "withdrawId" | "withdraw">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdrawId" | "withdraw">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdrawId" | "withdraw">>)[] | undefined;
|
|
16
|
+
withdrawTransfer$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdrawId" | "withdraw">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdrawId" | "withdraw">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdrawId" | "withdraw">[]> | (import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdrawId" | "withdraw">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdrawId" | "withdraw">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdrawId" | "withdraw">>)[] | undefined;
|
|
17
17
|
modiEntity$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/ModiEntity/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/ModiEntity/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
|
|
18
18
|
operEntity$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/OperEntity/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/OperEntity/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
|
|
19
19
|
accountOper$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/AccountOper/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/AccountOper/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
|
|
@@ -26,8 +26,8 @@ export declare function getWithdrawCreateData(params: {
|
|
|
26
26
|
creator?: undefined;
|
|
27
27
|
creatorId: string;
|
|
28
28
|
} & {
|
|
29
|
-
refund$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "
|
|
30
|
-
withdrawTransfer$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "
|
|
29
|
+
refund$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "withdrawId" | "withdraw">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdrawId" | "withdraw">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdrawId" | "withdraw">[]> | (import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "withdrawId" | "withdraw">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdrawId" | "withdraw">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdrawId" | "withdraw">>)[] | undefined;
|
|
30
|
+
withdrawTransfer$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdrawId" | "withdraw">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdrawId" | "withdraw">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdrawId" | "withdraw">[]> | (import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdrawId" | "withdraw">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdrawId" | "withdraw">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdrawId" | "withdraw">>)[] | undefined;
|
|
31
31
|
modiEntity$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/ModiEntity/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/ModiEntity/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
|
|
32
32
|
operEntity$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/OperEntity/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/OperEntity/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
|
|
33
33
|
accountOper$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/AccountOper/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/AccountOper/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
|
|
@@ -40,8 +40,8 @@ export declare function getWithdrawCreateData(params: {
|
|
|
40
40
|
creatorId: string;
|
|
41
41
|
creator?: import("../oak-app-domain/User/Schema").UpdateOperation | undefined;
|
|
42
42
|
} & {
|
|
43
|
-
refund$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "
|
|
44
|
-
withdrawTransfer$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "
|
|
43
|
+
refund$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "withdrawId" | "withdraw">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdrawId" | "withdraw">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdrawId" | "withdraw">[]> | (import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "withdrawId" | "withdraw">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdrawId" | "withdraw">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdrawId" | "withdraw">>)[] | undefined;
|
|
44
|
+
withdrawTransfer$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdrawId" | "withdraw">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdrawId" | "withdraw">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdrawId" | "withdraw">[]> | (import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdrawId" | "withdraw">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdrawId" | "withdraw">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdrawId" | "withdraw">>)[] | undefined;
|
|
45
45
|
modiEntity$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/ModiEntity/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/ModiEntity/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
|
|
46
46
|
operEntity$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/OperEntity/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/OperEntity/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
|
|
47
47
|
accountOper$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/AccountOper/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/AccountOper/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
|
|
@@ -54,8 +54,8 @@ export declare function getWithdrawCreateData(params: {
|
|
|
54
54
|
creator?: undefined;
|
|
55
55
|
creatorId: string;
|
|
56
56
|
} & {
|
|
57
|
-
refund$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "
|
|
58
|
-
withdrawTransfer$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "
|
|
57
|
+
refund$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "withdrawId" | "withdraw">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdrawId" | "withdraw">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdrawId" | "withdraw">[]> | (import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "withdrawId" | "withdraw">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdrawId" | "withdraw">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdrawId" | "withdraw">>)[] | undefined;
|
|
58
|
+
withdrawTransfer$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdrawId" | "withdraw">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdrawId" | "withdraw">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdrawId" | "withdraw">[]> | (import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdrawId" | "withdraw">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdrawId" | "withdraw">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdrawId" | "withdraw">>)[] | undefined;
|
|
59
59
|
modiEntity$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/ModiEntity/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/ModiEntity/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
|
|
60
60
|
operEntity$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/OperEntity/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/OperEntity/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
|
|
61
61
|
accountOper$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/AccountOper/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/AccountOper/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
|
|
@@ -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;
|
|
@@ -23,9 +23,10 @@ exports.entityDesc = {
|
|
|
23
23
|
deposit: '充值',
|
|
24
24
|
withdraw: '提现',
|
|
25
25
|
consume: '消费',
|
|
26
|
+
consumeBack: '消费退还',
|
|
26
27
|
loan: '抵押',
|
|
27
28
|
repay: '偿还',
|
|
28
|
-
withdrawBack: '
|
|
29
|
+
withdrawBack: '提现退还',
|
|
29
30
|
earn: '赚取',
|
|
30
31
|
encash: '兑现',
|
|
31
32
|
tax: '渠道费',
|
|
@@ -44,6 +45,7 @@ exports.entityDesc = {
|
|
|
44
45
|
withdraw: '#F7DC6F',
|
|
45
46
|
withdrawBack: '#F7DC6F',
|
|
46
47
|
consume: '#A569BD',
|
|
48
|
+
consumeBack: '#009933',
|
|
47
49
|
loan: '#CD6155',
|
|
48
50
|
repay: '#82E0AA',
|
|
49
51
|
earn: '#FF3333',
|
|
@@ -19,7 +19,7 @@ export interface Schema extends AbstractAccount {
|
|
|
19
19
|
channels: WithdrawChannel[];
|
|
20
20
|
enabled: Boolean;
|
|
21
21
|
}
|
|
22
|
-
export type Action = 'pay' | 'refund' | '
|
|
22
|
+
export type Action = 'pay' | 'refund' | 'withdrawTransfer' | 'compensate' | 'moveIn' | 'moveOut' | 'deposit' | 'tax';
|
|
23
23
|
export declare const entityDesc: EntityDesc<Schema, Action, '', {
|
|
24
24
|
type: Schema['type'];
|
|
25
25
|
}>;
|
|
@@ -37,8 +37,11 @@ exports.entityDesc = {
|
|
|
37
37
|
action: {
|
|
38
38
|
pay: '支付',
|
|
39
39
|
refund: '退款',
|
|
40
|
+
withdrawTransfer: '提现转账',
|
|
41
|
+
compensate: '补偿',
|
|
42
|
+
moveIn: '转入',
|
|
43
|
+
moveOut: '转出',
|
|
40
44
|
deposit: '充值',
|
|
41
|
-
withdraw: '提现',
|
|
42
45
|
tax: '渠道费',
|
|
43
46
|
}
|
|
44
47
|
},
|
|
@@ -56,8 +59,11 @@ exports.entityDesc = {
|
|
|
56
59
|
icon: {
|
|
57
60
|
pay: '',
|
|
58
61
|
refund: '',
|
|
62
|
+
withdrawTransfer: '',
|
|
63
|
+
compensate: '',
|
|
64
|
+
moveIn: '',
|
|
65
|
+
moveOut: '',
|
|
59
66
|
deposit: '',
|
|
60
|
-
withdraw: '',
|
|
61
67
|
tax: '',
|
|
62
68
|
}
|
|
63
69
|
},
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { String, Text, Price } from 'oak-domain/lib/types/DataType';
|
|
2
|
+
import { EntityShape } from 'oak-domain/lib/types/Entity';
|
|
3
|
+
import { EntityDesc } from 'oak-domain/lib/types';
|
|
4
|
+
import { Schema as User } from './User';
|
|
5
|
+
import { Schema as System } from './System';
|
|
6
|
+
export interface Schema extends EntityShape {
|
|
7
|
+
price: Price;
|
|
8
|
+
externalId: String<64>;
|
|
9
|
+
operator: User;
|
|
10
|
+
remark?: Text;
|
|
11
|
+
system: System;
|
|
12
|
+
}
|
|
13
|
+
export declare const entityDesc: EntityDesc<Schema>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.entityDesc = void 0;
|
|
4
|
+
;
|
|
5
|
+
exports.entityDesc = {
|
|
6
|
+
locales: {
|
|
7
|
+
zh_CN: {
|
|
8
|
+
name: '系统资金移动',
|
|
9
|
+
attr: {
|
|
10
|
+
price: '金额',
|
|
11
|
+
externalId: '外部流水号',
|
|
12
|
+
operator: '操作者',
|
|
13
|
+
remark: '备注',
|
|
14
|
+
system: '所属系统'
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
configuration: {
|
|
19
|
+
actionType: 'appendOnly',
|
|
20
|
+
}
|
|
21
|
+
};
|
|
@@ -4,14 +4,17 @@ import { EntityDesc } from 'oak-domain/lib/types';
|
|
|
4
4
|
import { Schema as Pay } from './Pay';
|
|
5
5
|
import { Schema as Refund } from './Refund';
|
|
6
6
|
import { Schema as WithdrawTransfer } from './WithdrawTransfer';
|
|
7
|
+
import { Schema as SysAccountMove } from './SysAccountMove';
|
|
8
|
+
import { SysAccountOperType } from '../types/sysAccountOper';
|
|
7
9
|
export interface Schema extends EntityShape {
|
|
8
10
|
delta: Price;
|
|
9
|
-
type:
|
|
11
|
+
type: SysAccountOperType;
|
|
10
12
|
entity: String<32>;
|
|
11
13
|
entityId: String<64>;
|
|
12
14
|
pay?: Pay;
|
|
13
15
|
refund?: Refund;
|
|
14
16
|
withdrawTransfer?: WithdrawTransfer;
|
|
17
|
+
sysAccountMove?: SysAccountMove;
|
|
15
18
|
}
|
|
16
19
|
export declare const entityDesc: EntityDesc<Schema, '', '', {
|
|
17
20
|
type: Schema['type'];
|
|
@@ -17,5 +17,5 @@ export interface Schema extends AbstractAccount {
|
|
|
17
17
|
channels: WithdrawChannel[];
|
|
18
18
|
enabled: Boolean;
|
|
19
19
|
}
|
|
20
|
-
export type Action = 'pay' | 'refund' | '
|
|
20
|
+
export type Action = 'pay' | 'refund' | 'withdrawTransfer' | 'compensate' | 'moveIn' | 'moveOut' | 'deposit' | 'tax';
|
|
21
21
|
export declare const entityDesc: EntityDesc<Schema, Action>;
|
|
@@ -26,8 +26,11 @@ exports.entityDesc = {
|
|
|
26
26
|
action: {
|
|
27
27
|
pay: '支付',
|
|
28
28
|
refund: '退款',
|
|
29
|
+
withdrawTransfer: '提现转账',
|
|
30
|
+
compensate: '补偿',
|
|
31
|
+
moveIn: '转入',
|
|
32
|
+
moveOut: '转出',
|
|
29
33
|
deposit: '充值',
|
|
30
|
-
withdraw: '提现',
|
|
31
34
|
tax: '渠道费',
|
|
32
35
|
}
|
|
33
36
|
},
|
|
@@ -36,8 +39,11 @@ exports.entityDesc = {
|
|
|
36
39
|
icon: {
|
|
37
40
|
pay: '',
|
|
38
41
|
refund: '',
|
|
42
|
+
withdrawTransfer: '',
|
|
43
|
+
compensate: '',
|
|
44
|
+
moveIn: '',
|
|
45
|
+
moveOut: '',
|
|
39
46
|
deposit: '',
|
|
40
|
-
withdraw: '',
|
|
41
47
|
tax: '',
|
|
42
48
|
}
|
|
43
49
|
}
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"error": {
|
|
23
23
|
"nameQrCodeBothNull": "账号名和二维码不能同时为空",
|
|
24
24
|
"refundGapDaysNotNegative": "允许退款天数不能为负数或空",
|
|
25
|
-
"refundCompensateIllegal": "退款补偿百分比必须在0到100之间"
|
|
25
|
+
"refundCompensateIllegal": "退款补偿百分比必须在0到100之间",
|
|
26
|
+
"withdrawTransferLossRatioNotNegative": "提现转账费率必须在0到100之间"
|
|
26
27
|
}
|
|
27
28
|
}
|
|
@@ -11,7 +11,7 @@ import * as Pay from "../Pay/Schema";
|
|
|
11
11
|
import * as Refund from "../Refund/Schema";
|
|
12
12
|
import * as Withdraw from "../Withdraw/Schema";
|
|
13
13
|
import * as WithdrawTransfer from "../WithdrawTransfer/Schema";
|
|
14
|
-
type Type = "deposit" | "withdraw" | "consume" | "loan" | "repay" | "withdrawBack" | "earn" | "encash" | "cutoffRefundable" | "tax" | "taxRefund" | "refund" | "refundFailure";
|
|
14
|
+
type Type = "deposit" | "withdraw" | "consume" | "consumeBack" | "loan" | "repay" | "withdrawBack" | "earn" | "encash" | "cutoffRefundable" | "tax" | "taxRefund" | "refund" | "refundFailure";
|
|
15
15
|
export type OpSchema = EntityShape & {
|
|
16
16
|
accountId: ForeignKey<"account">;
|
|
17
17
|
type: Type;
|
|
@@ -12,7 +12,7 @@ exports.desc = {
|
|
|
12
12
|
type: {
|
|
13
13
|
notNull: true,
|
|
14
14
|
type: "enum",
|
|
15
|
-
enumeration: ["deposit", "withdraw", "consume", "loan", "repay", "withdrawBack", "earn", "encash", "cutoffRefundable", "tax", "taxRefund", "refund", "refundFailure"]
|
|
15
|
+
enumeration: ["deposit", "withdraw", "consume", "consumeBack", "loan", "repay", "withdrawBack", "earn", "encash", "cutoffRefundable", "tax", "taxRefund", "refund", "refundFailure"]
|
|
16
16
|
},
|
|
17
17
|
totalPlus: {
|
|
18
18
|
notNull: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "name": "帐号操作", "attr": { "account": "帐号", "type": "类型", "totalPlus": "余额变化", "availPlus": "可用余额变化", "refundablePlus": "可退款余额变化", "total": "操作后余额", "avail": "操作后可用余额", "refundable": "操作后可退款余额", "entity": "关联对象", "entityId": "关联对象Id" }, "v": { "type": { "deposit": "充值", "withdraw": "提现", "consume": "消费", "loan": "抵押", "repay": "偿还", "withdrawBack": "
|
|
1
|
+
{ "name": "帐号操作", "attr": { "account": "帐号", "type": "类型", "totalPlus": "余额变化", "availPlus": "可用余额变化", "refundablePlus": "可退款余额变化", "total": "操作后余额", "avail": "操作后可用余额", "refundable": "操作后可退款余额", "entity": "关联对象", "entityId": "关联对象Id" }, "v": { "type": { "deposit": "充值", "withdraw": "提现", "consume": "消费", "consumeBack": "消费退还", "loan": "抵押", "repay": "偿还", "withdrawBack": "提现退还", "earn": "赚取", "encash": "兑现", "tax": "渠道费", "taxRefund": "渠道费用退还", "cutoffRefundable": "削减可自由退额度", "refund": "退款", "refundFailure": "退款失败" } } }
|
|
@@ -60,6 +60,7 @@ import { EntityDef as OfflineAccount } from "./OfflineAccount/Schema";
|
|
|
60
60
|
import { EntityDef as Order } from "./Order/Schema";
|
|
61
61
|
import { EntityDef as Pay } from "./Pay/Schema";
|
|
62
62
|
import { EntityDef as Refund } from "./Refund/Schema";
|
|
63
|
+
import { EntityDef as SysAccountMove } from "./SysAccountMove/Schema";
|
|
63
64
|
import { EntityDef as SysAccountOper } from "./SysAccountOper/Schema";
|
|
64
65
|
import { EntityDef as WechatPay } from "./WechatPay/Schema";
|
|
65
66
|
import { EntityDef as Withdraw } from "./Withdraw/Schema";
|
|
@@ -131,6 +132,7 @@ export type EntityDict = {
|
|
|
131
132
|
order: Order;
|
|
132
133
|
pay: Pay;
|
|
133
134
|
refund: Refund;
|
|
135
|
+
sysAccountMove: SysAccountMove;
|
|
134
136
|
sysAccountOper: SysAccountOper;
|
|
135
137
|
wechatPay: WechatPay;
|
|
136
138
|
withdraw: Withdraw;
|
|
@@ -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,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.actionDefDict = exports.actions = void 0;
|
|
4
|
-
exports.actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "pay", "refund", "
|
|
4
|
+
exports.actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "pay", "refund", "withdrawTransfer", "compensate", "moveIn", "moveOut", "deposit", "tax"];
|
|
5
5
|
exports.actionDefDict = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "name": "线下账户", "attr": { "type": "类型", "channel": "通道", "name": "用户/帐号", "qrCode": "收款二维码", "taxLossRatio": "商户号手续费(百分比)", "refundCompensateRatio": "退款补偿百分比", "refundGapDays": "(支付后)允许退款的天数", "allowWithdrawTransfer": "允许提现转账", "withdrawTransferLossRatio": "提现转账费率(百分数)", "allowDeposit": "允许主动充值", "allowPay": "允许主动支付", "system": "所属系统", "price": "余额", "pays": "支付", "opers": "操作记录", "channels": "提现通道", "enabled": "是否启用" }, "v": { "type": { "bank": "银行", "alipay": "支付宝", "wechat": "微信", "shouqianba": "收钱吧", "others": "其它" } }, "action": { "pay": "支付", "refund": "退款", "
|
|
1
|
+
{ "name": "线下账户", "attr": { "type": "类型", "channel": "通道", "name": "用户/帐号", "qrCode": "收款二维码", "taxLossRatio": "商户号手续费(百分比)", "refundCompensateRatio": "退款补偿百分比", "refundGapDays": "(支付后)允许退款的天数", "allowWithdrawTransfer": "允许提现转账", "withdrawTransferLossRatio": "提现转账费率(百分数)", "allowDeposit": "允许主动充值", "allowPay": "允许主动支付", "system": "所属系统", "price": "余额", "pays": "支付", "opers": "操作记录", "channels": "提现通道", "enabled": "是否启用" }, "v": { "type": { "bank": "银行", "alipay": "支付宝", "wechat": "微信", "shouqianba": "收钱吧", "others": "其它" } }, "action": { "pay": "支付", "refund": "退款", "withdrawTransfer": "提现转账", "compensate": "补偿", "moveIn": "转入", "moveOut": "转出", "deposit": "充值", "tax": "渠道费" } }
|
|
@@ -10,6 +10,7 @@ export type OpSchema = EntityShape & {
|
|
|
10
10
|
value: String<256>;
|
|
11
11
|
recursive: Boolean;
|
|
12
12
|
sourceEntity: String<32>;
|
|
13
|
+
desc?: String<256> | null;
|
|
13
14
|
};
|
|
14
15
|
export type OpAttr = keyof OpSchema;
|
|
15
16
|
export type Schema = EntityShape & {
|
|
@@ -17,6 +18,7 @@ export type Schema = EntityShape & {
|
|
|
17
18
|
value: String<256>;
|
|
18
19
|
recursive: Boolean;
|
|
19
20
|
sourceEntity: String<32>;
|
|
21
|
+
desc?: String<256> | null;
|
|
20
22
|
actionAuth$path?: Array<ActionAuth.Schema>;
|
|
21
23
|
actionAuth$path$$aggr?: AggregationResult<ActionAuth.Schema>;
|
|
22
24
|
relationAuth$path?: Array<RelationAuth.Schema>;
|
|
@@ -33,6 +35,7 @@ type AttrFilter = {
|
|
|
33
35
|
value: Q_StringValue;
|
|
34
36
|
recursive: Q_BooleanValue;
|
|
35
37
|
sourceEntity: Q_StringValue;
|
|
38
|
+
desc: Q_StringValue;
|
|
36
39
|
actionAuth$path: ActionAuth.Filter & SubQueryPredicateMetadata;
|
|
37
40
|
relationAuth$path: RelationAuth.Filter & SubQueryPredicateMetadata;
|
|
38
41
|
};
|
|
@@ -48,6 +51,7 @@ export type Projection = {
|
|
|
48
51
|
value?: number;
|
|
49
52
|
recursive?: number;
|
|
50
53
|
sourceEntity?: number;
|
|
54
|
+
desc?: number;
|
|
51
55
|
actionAuth$path?: ActionAuth.Selection & {
|
|
52
56
|
$entity: "actionAuth";
|
|
53
57
|
};
|
|
@@ -80,6 +84,8 @@ export type SortAttr = {
|
|
|
80
84
|
recursive: number;
|
|
81
85
|
} | {
|
|
82
86
|
sourceEntity: number;
|
|
87
|
+
} | {
|
|
88
|
+
desc: number;
|
|
83
89
|
} | {
|
|
84
90
|
[k: string]: any;
|
|
85
91
|
} | OneOf<ExprOp<OpAttr | string>>;
|