oak-pay-business 2.2.1 → 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.
Files changed (169) hide show
  1. package/es/aspects/AspectDict.d.ts +3 -3
  2. package/es/aspects/index.d.ts +2 -1
  3. package/es/checkers/accountOper.js +4 -3
  4. package/es/checkers/offlineAccount.js +4 -1
  5. package/es/checkers/order.js +39 -0
  6. package/es/checkers/refund.js +1 -0
  7. package/es/components/AbstractComponents.d.ts +15 -10
  8. package/es/components/account/detail/web.pc.module.less +68 -68
  9. package/es/components/offlineAccount/upsert/web.pc.js +1 -1
  10. package/es/components/order/pay/index.js +1 -1
  11. package/es/components/order/pay/info.js +6 -6
  12. package/es/components/order/pay/info.module.less +24 -24
  13. package/es/components/order/pay/web.mobile.module.less +35 -35
  14. package/es/components/order/pay/web.pc.module.less +35 -35
  15. package/es/components/payConfig/upsert/offline/web.pc.module.less +4 -4
  16. package/es/components/payConfig/upsert/web.pc.module.less +10 -10
  17. package/es/components/sysAccount/survey/locales/zh-CN.json +3 -1
  18. package/es/components/sysAccount/survey/web.pc.js +69 -32
  19. package/es/components/sysAccount/survey/web.pc.module.less +3 -2
  20. package/es/components/sysAccount/transferList/index.d.ts +3 -0
  21. package/es/components/sysAccount/transferList/index.js +52 -0
  22. package/es/components/sysAccount/transferList/index.json +1 -0
  23. package/es/components/sysAccount/transferList/locales/zh-CN.json +6 -0
  24. package/es/components/sysAccount/transferList/web.pc.d.ts +12 -0
  25. package/es/components/sysAccount/transferList/web.pc.js +45 -0
  26. package/es/components/sysAccountMove/create/index.d.ts +7 -0
  27. package/es/components/sysAccountMove/create/index.js +145 -0
  28. package/es/components/sysAccountMove/create/index.json +1 -0
  29. package/es/components/sysAccountMove/create/locales/zh-CN.json +6 -0
  30. package/es/components/sysAccountMove/create/web.pc.d.ts +26 -0
  31. package/es/components/sysAccountMove/create/web.pc.js +68 -0
  32. package/es/components/sysAccountOper/list/index.d.ts +5 -0
  33. package/es/components/sysAccountOper/list/index.js +127 -0
  34. package/es/components/sysAccountOper/list/index.json +1 -0
  35. package/es/components/sysAccountOper/list/locales/zh-CN.json +5 -0
  36. package/es/components/sysAccountOper/list/web.module.less +42 -0
  37. package/es/components/sysAccountOper/list/web.pc.d.ts +25 -0
  38. package/es/components/sysAccountOper/list/web.pc.js +36 -0
  39. package/es/components/withdrawAccount/list/index.less +8 -0
  40. package/es/components/withdrawAccount/list/index.xml +6 -1
  41. package/es/components/withdrawTransfer/list/locales/zh-CN.json +1 -1
  42. package/es/components/wpAccount/upsert/web.pc.js +1 -1
  43. package/es/configuration/attrUpdateMatrix.js +2 -2
  44. package/es/data/actionAuth.js +7 -2
  45. package/es/data/i18n.js +53 -3
  46. package/es/data/path.js +2 -2
  47. package/es/entities/AccountOper.d.ts +1 -1
  48. package/es/entities/AccountOper.js +3 -1
  49. package/es/entities/OfflineAccount.d.ts +1 -1
  50. package/es/entities/OfflineAccount.js +8 -2
  51. package/es/entities/Order.d.ts +2 -1
  52. package/es/entities/Order.js +1 -0
  53. package/es/entities/SysAccountMove.d.ts +13 -0
  54. package/es/entities/SysAccountMove.js +18 -0
  55. package/es/entities/SysAccountOper.d.ts +4 -1
  56. package/es/entities/SysAccountOper.js +1 -0
  57. package/es/entities/WpAccount.d.ts +1 -1
  58. package/es/entities/WpAccount.js +8 -2
  59. package/es/locales/error/zh-CN.json +9 -0
  60. package/es/locales/offlineAccount/zh-CN.json +2 -1
  61. package/es/oak-app-domain/AccountOper/Schema.d.ts +1 -1
  62. package/es/oak-app-domain/AccountOper/Storage.js +1 -1
  63. package/es/oak-app-domain/AccountOper/Style.js +1 -0
  64. package/es/oak-app-domain/AccountOper/locales/zh_CN.json +1 -1
  65. package/es/oak-app-domain/EntityDict.d.ts +2 -0
  66. package/es/oak-app-domain/OfflineAccount/Action.d.ts +1 -1
  67. package/es/oak-app-domain/OfflineAccount/Action.js +1 -1
  68. package/es/oak-app-domain/OfflineAccount/Style.js +4 -1
  69. package/es/oak-app-domain/OfflineAccount/locales/zh_CN.json +1 -1
  70. package/es/oak-app-domain/Order/Schema.d.ts +8 -2
  71. package/es/oak-app-domain/Order/Storage.js +3 -1
  72. package/es/oak-app-domain/Order/locales/zh_CN.json +1 -1
  73. package/es/oak-app-domain/Path/Schema.d.ts +6 -0
  74. package/es/oak-app-domain/Path/Storage.js +6 -0
  75. package/es/oak-app-domain/Path/locales/zh_CN.json +1 -1
  76. package/es/oak-app-domain/Storage.js +2 -0
  77. package/es/oak-app-domain/SysAccountMove/Schema.d.ts +185 -0
  78. package/es/oak-app-domain/SysAccountMove/Schema.js +1 -0
  79. package/es/oak-app-domain/SysAccountMove/Storage.d.ts +3 -0
  80. package/es/oak-app-domain/SysAccountMove/Storage.js +31 -0
  81. package/es/oak-app-domain/SysAccountMove/locales/zh_CN.json +1 -0
  82. package/es/oak-app-domain/SysAccountOper/Schema.d.ts +34 -5
  83. package/es/oak-app-domain/SysAccountOper/Storage.js +4 -0
  84. package/es/oak-app-domain/SysAccountOper/locales/zh_CN.json +1 -1
  85. package/es/oak-app-domain/System/Schema.d.ts +12 -0
  86. package/es/oak-app-domain/User/Schema.d.ts +12 -0
  87. package/es/oak-app-domain/WpAccount/Action.d.ts +1 -1
  88. package/es/oak-app-domain/WpAccount/Action.js +1 -1
  89. package/es/oak-app-domain/WpAccount/Style.js +4 -1
  90. package/es/oak-app-domain/WpAccount/locales/zh_CN.json +1 -1
  91. package/es/oak-app-domain/_SubQuery.d.ts +12 -0
  92. package/es/triggers/pay.js +149 -46
  93. package/es/triggers/refund.js +3 -0
  94. package/es/triggers/withdraw.d.ts +1 -1
  95. package/es/types/RuntimeCxt.d.ts +1 -1
  96. package/es/types/sysAccountOper.d.ts +1 -0
  97. package/es/types/sysAccountOper.js +1 -0
  98. package/es/utils/payClazz/Account.js +3 -2
  99. package/es/utils/payClazz/WechatPay/index.d.ts +1 -1
  100. package/es/utils/wpProductFrontend.js +1 -1
  101. package/lib/aspects/AspectDict.d.ts +3 -3
  102. package/lib/aspects/index.d.ts +2 -1
  103. package/lib/aspects/withdraw.d.ts +8 -8
  104. package/lib/checkers/accountOper.js +4 -3
  105. package/lib/checkers/offlineAccount.js +4 -1
  106. package/lib/checkers/order.js +39 -0
  107. package/lib/checkers/refund.js +1 -0
  108. package/lib/configuration/attrUpdateMatrix.js +2 -2
  109. package/lib/data/actionAuth.js +7 -2
  110. package/lib/data/i18n.js +53 -3
  111. package/lib/data/path.js +2 -2
  112. package/lib/entities/AccountOper.d.ts +1 -1
  113. package/lib/entities/AccountOper.js +3 -1
  114. package/lib/entities/OfflineAccount.d.ts +1 -1
  115. package/lib/entities/OfflineAccount.js +8 -2
  116. package/lib/entities/Order.d.ts +2 -1
  117. package/lib/entities/Order.js +1 -0
  118. package/lib/entities/SysAccountMove.d.ts +13 -0
  119. package/lib/entities/SysAccountMove.js +21 -0
  120. package/lib/entities/SysAccountOper.d.ts +4 -1
  121. package/lib/entities/SysAccountOper.js +1 -0
  122. package/lib/entities/WpAccount.d.ts +1 -1
  123. package/lib/entities/WpAccount.js +8 -2
  124. package/lib/locales/error/zh-CN.json +9 -0
  125. package/lib/locales/offlineAccount/zh-CN.json +2 -1
  126. package/lib/oak-app-domain/AccountOper/Schema.d.ts +1 -1
  127. package/lib/oak-app-domain/AccountOper/Storage.js +1 -1
  128. package/lib/oak-app-domain/AccountOper/Style.js +1 -0
  129. package/lib/oak-app-domain/AccountOper/locales/zh_CN.json +1 -1
  130. package/lib/oak-app-domain/EntityDict.d.ts +2 -0
  131. package/lib/oak-app-domain/OfflineAccount/Action.d.ts +1 -1
  132. package/lib/oak-app-domain/OfflineAccount/Action.js +1 -1
  133. package/lib/oak-app-domain/OfflineAccount/Style.js +4 -1
  134. package/lib/oak-app-domain/OfflineAccount/locales/zh_CN.json +1 -1
  135. package/lib/oak-app-domain/Order/Schema.d.ts +8 -2
  136. package/lib/oak-app-domain/Order/Storage.js +3 -1
  137. package/lib/oak-app-domain/Order/locales/zh_CN.json +1 -1
  138. package/lib/oak-app-domain/Path/Schema.d.ts +6 -0
  139. package/lib/oak-app-domain/Storage.js +18 -16
  140. package/lib/oak-app-domain/SysAccountMove/Schema.d.ts +185 -0
  141. package/lib/oak-app-domain/SysAccountMove/Schema.js +2 -0
  142. package/lib/oak-app-domain/SysAccountMove/Storage.d.ts +3 -0
  143. package/lib/oak-app-domain/SysAccountMove/Storage.js +34 -0
  144. package/lib/oak-app-domain/SysAccountMove/locales/zh_CN.json +1 -0
  145. package/lib/oak-app-domain/SysAccountOper/Schema.d.ts +34 -5
  146. package/lib/oak-app-domain/SysAccountOper/Storage.js +4 -0
  147. package/lib/oak-app-domain/SysAccountOper/locales/zh_CN.json +1 -1
  148. package/lib/oak-app-domain/System/Schema.d.ts +12 -0
  149. package/lib/oak-app-domain/System/Storage.js +1 -2
  150. package/lib/oak-app-domain/User/Schema.d.ts +12 -0
  151. package/lib/oak-app-domain/WpAccount/Action.d.ts +1 -1
  152. package/lib/oak-app-domain/WpAccount/Action.js +1 -1
  153. package/lib/oak-app-domain/WpAccount/Style.js +4 -1
  154. package/lib/oak-app-domain/WpAccount/locales/zh_CN.json +1 -1
  155. package/lib/oak-app-domain/_SubQuery.d.ts +12 -0
  156. package/lib/triggers/pay.js +149 -46
  157. package/lib/triggers/refund.js +3 -0
  158. package/lib/types/RuntimeCxt.d.ts +1 -1
  159. package/lib/types/sysAccountOper.d.ts +1 -0
  160. package/lib/types/sysAccountOper.js +2 -0
  161. package/lib/utils/payClazz/Account.js +3 -2
  162. package/lib/utils/wpProductFrontend.js +1 -1
  163. package/package.json +171 -200
  164. package/src/entities/AccountOper.ts +4 -2
  165. package/src/entities/OfflineAccount.ts +12 -5
  166. package/src/entities/Order.ts +3 -1
  167. package/src/entities/SysAccountMove.ts +39 -0
  168. package/src/entities/SysAccountOper.ts +5 -1
  169. 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, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdraw" | "withdrawId">[]> | (import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdraw" | "withdrawId">>)[] | undefined;
16
- withdrawTransfer$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdraw" | "withdrawId">[]> | (import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdraw" | "withdrawId">>)[] | undefined;
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, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdraw" | "withdrawId">[]> | (import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdraw" | "withdrawId">>)[] | undefined;
30
- withdrawTransfer$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdraw" | "withdrawId">[]> | (import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdraw" | "withdrawId">>)[] | undefined;
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, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdraw" | "withdrawId">[]> | (import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdraw" | "withdrawId">>)[] | undefined;
44
- withdrawTransfer$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdraw" | "withdrawId">[]> | (import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdraw" | "withdrawId">>)[] | undefined;
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, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdraw" | "withdrawId">[]> | (import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdraw" | "withdrawId">>)[] | undefined;
58
- withdrawTransfer$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdraw" | "withdrawId">[]> | (import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdraw" | "withdrawId">>)[] | undefined;
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'], 'accountOper为withdraw时,其totalPlus和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'], 'accountOper为withdraw时,其totalPlus和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
  {
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const assert_1 = tslib_1.__importDefault(require("assert"));
5
5
  const executor_1 = require("oak-domain/lib/utils/executor");
6
+ const types_1 = require("oak-domain/lib/types");
6
7
  const checkers = [
7
8
  {
8
9
  type: 'logical',
@@ -23,6 +24,44 @@ const checkers = [
23
24
  }
24
25
  }
25
26
  },
27
+ {
28
+ type: 'logicalData',
29
+ entity: 'order',
30
+ action: 'startPaying',
31
+ checker: (operation, context) => {
32
+ const { data, filter } = operation;
33
+ (0, assert_1.default)(typeof filter.id === 'string');
34
+ return (0, executor_1.pipeline)(() => context.select('order', {
35
+ data: {
36
+ id: 1,
37
+ price: 1,
38
+ paid: 1,
39
+ refunded: 1,
40
+ iState: 1,
41
+ },
42
+ filter: {
43
+ id: filter.id,
44
+ },
45
+ }, {}), (orders) => {
46
+ const [order] = orders;
47
+ const { price, paid, iState, allowPartialPay } = order;
48
+ (0, assert_1.default)(['unpaid', 'partiallyRefunded'].includes(iState) && paid === 0);
49
+ const { pay$order: pays } = data;
50
+ if (!(pays instanceof Array) || !pays.length) {
51
+ throw new types_1.OakInputIllegalException('order', ['pay$order'], 'error::order.nonePay');
52
+ }
53
+ let amount = 0;
54
+ pays.forEach(({ action, data }) => {
55
+ (0, assert_1.default)(action === 'create');
56
+ const { price } = data;
57
+ amount += price;
58
+ });
59
+ if (!allowPartialPay && amount !== price) {
60
+ throw new types_1.OakInputIllegalException('order', ['pay$order'], 'error::order.payAmountNotEnough');
61
+ }
62
+ });
63
+ }
64
+ },
26
65
  {
27
66
  // 订单结算,将收入分帐到相关的Account中
28
67
  type: 'logicalData',
@@ -17,6 +17,7 @@ const checkers = [
17
17
  },
18
18
  },
19
19
  action: 'create',
20
+ errMsg: 'error::refund.create.hasAnotherRefunding',
20
21
  },
21
22
  {
22
23
  entity: 'refund',
@@ -140,7 +140,7 @@ const attrUpdateMatrix = {
140
140
  actions: ['update'],
141
141
  },
142
142
  price: {
143
- actions: ['pay', 'refund', 'deposit', 'withdraw', 'tax'],
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', 'withdraw', 'tax'],
205
+ actions: ['pay', 'refund', 'deposit', 'withdrawTransfer', 'tax', 'moveOut', 'moveIn', 'compensate'],
206
206
  }
207
207
  },
208
208
  withdrawAccount: {
@@ -12,8 +12,13 @@ const actionAuths = [
12
12
  deActions: ['select', 'create']
13
13
  },
14
14
  {
15
- id: 'user-acc-pay',
16
- pathId: 'user-acc-pay',
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": "创建者",
@@ -751,6 +791,15 @@ const i18ns = [
751
791
  },
752
792
  "system": {
753
793
  "withdrawLossUnSet": "系统的提现规则尚未设置,请联系管理员"
794
+ },
795
+ "order": {
796
+ "payAmountNotEnough": "支付的额度总和不足",
797
+ "nonePay": "没有传入支付信息"
798
+ },
799
+ "refund": {
800
+ "create": {
801
+ "hasAnotherRefunding": "您有一笔退款正在进行中"
802
+ }
754
803
  }
755
804
  }
756
805
  },
@@ -784,7 +833,8 @@ const i18ns = [
784
833
  "error": {
785
834
  "nameQrCodeBothNull": "账号名和二维码不能同时为空",
786
835
  "refundGapDaysNotNegative": "允许退款天数不能为负数或空",
787
- "refundCompensateIllegal": "退款补偿百分比必须在0到100之间"
836
+ "refundCompensateIllegal": "退款补偿百分比必须在0到100之间",
837
+ "withdrawTransferLossRatioNotNegative": "提现转账费率必须在0到100之间"
788
838
  }
789
839
  }
790
840
  },
package/lib/data/path.js CHANGED
@@ -9,10 +9,10 @@ const paths = [
9
9
  recursive: false,
10
10
  },
11
11
  {
12
- id: 'user-acc-pay',
12
+ id: 'user-dep-acc-pay',
13
13
  sourceEntity: 'user',
14
14
  destEntity: 'pay',
15
- value: 'account.user',
15
+ value: 'deposit.account.user',
16
16
  recursive: false,
17
17
  },
18
18
  {
@@ -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' | 'deposit' | 'withdraw' | 'tax';
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
  },
@@ -10,11 +10,12 @@ export interface Schema extends EntityShape {
10
10
  refunded: Price;
11
11
  title: String<32>;
12
12
  desc: Text;
13
- timeoutAt: Datetime;
13
+ timeoutAt?: Datetime;
14
14
  creator: User;
15
15
  entity: String<32>;
16
16
  entityId: String<64>;
17
17
  settled: Boolean;
18
+ allowPartialPay?: Boolean;
18
19
  system: System;
19
20
  opers: AccountOper[];
20
21
  }
@@ -58,6 +58,7 @@ exports.entityDesc = {
58
58
  title: '订单标题',
59
59
  desc: "订单描述",
60
60
  timeoutAt: '过期时间',
61
+ allowPartialPay: '允许部分支付',
61
62
  creator: '创建者',
62
63
  entity: '关联对象',
63
64
  entityId: '关联对象Id',
@@ -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: 'pay' | 'refund' | 'withdrawTransfer' | 'compensate' | 'moveIn' | 'moveOut';
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'];
@@ -14,6 +14,7 @@ exports.entityDesc = {
14
14
  pay: '关联支付',
15
15
  refund: '关联退款',
16
16
  withdrawTransfer: '关联转账提现',
17
+ sysAccountMove: '系统资金移动',
17
18
  },
18
19
  v: {
19
20
  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' | 'deposit' | 'withdraw' | 'tax';
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
  }
@@ -12,5 +12,14 @@
12
12
  },
13
13
  "system": {
14
14
  "withdrawLossUnSet": "系统的提现规则尚未设置,请联系管理员"
15
+ },
16
+ "order": {
17
+ "payAmountNotEnough": "支付的额度总和不足",
18
+ "nonePay": "没有传入支付信息"
19
+ },
20
+ "refund": {
21
+ "create": {
22
+ "hasAnotherRefunding": "您有一笔退款正在进行中"
23
+ }
15
24
  }
16
25
  }
@@ -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,
@@ -8,6 +8,7 @@ exports.style = {
8
8
  withdraw: '#F7DC6F',
9
9
  withdrawBack: '#F7DC6F',
10
10
  consume: '#A569BD',
11
+ consumeBack: '#009933',
11
12
  loan: '#CD6155',
12
13
  repay: '#82E0AA',
13
14
  earn: '#FF3333',
@@ -1 +1 @@
1
- { "name": "帐号操作", "attr": { "account": "帐号", "type": "类型", "totalPlus": "余额变化", "availPlus": "可用余额变化", "refundablePlus": "可退款余额变化", "total": "操作后余额", "avail": "操作后可用余额", "refundable": "操作后可退款余额", "entity": "关联对象", "entityId": "关联对象Id" }, "v": { "type": { "deposit": "充值", "withdraw": "提现", "consume": "消费", "loan": "抵押", "repay": "偿还", "withdrawBack": "提现未遂", "earn": "赚取", "encash": "兑现", "tax": "渠道费", "taxRefund": "渠道费用退还", "cutoffRefundable": "削减可自由退额度", "refund": "退款", "refundFailure": "退款失败" } } }
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' | 'deposit' | 'withdraw' | 'tax';
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", "deposit", "withdraw", "tax"];
4
+ exports.actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "pay", "refund", "withdrawTransfer", "compensate", "moveIn", "moveOut", "deposit", "tax"];
5
5
  exports.actionDefDict = {};