oak-pay-business 2.2.0 → 2.2.2
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/withdraw.d.ts +4 -4
- package/es/checkers/order.js +39 -0
- package/es/components/account/detail/web.d.ts +1 -1
- package/es/components/account/detail/web.js +2 -2
- package/es/components/account/detail/web.pc.d.ts +1 -1
- package/es/components/account/detail/web.pc.js +2 -2
- package/es/components/account/detail/web.pc.module.less +68 -68
- package/es/components/accountOper/list/index.js +118 -6
- package/es/components/accountOper/list/index.json +10 -1
- package/es/components/accountOper/list/index.less +125 -0
- package/es/components/accountOper/list/index.xml +56 -0
- package/es/components/accountOper/list/locales/zh-CN.json +9 -1
- package/es/components/accountOper/list/mobile.module.less +48 -0
- package/es/components/accountOper/list/web.d.ts +12 -1
- package/es/components/accountOper/list/web.js +58 -24
- package/es/components/accountOper/list/web.module.less +27 -0
- package/es/components/accountOper/list/web.pc.d.ts +14 -2
- package/es/components/accountOper/list/web.pc.js +43 -8
- package/es/components/order/pay/index.js +1 -1
- package/es/components/order/pay/info.js +6 -6
- package/es/components/order/pay/info.module.less +24 -24
- package/es/components/order/pay/web.mobile.module.less +35 -35
- package/es/components/order/pay/web.pc.module.less +35 -35
- package/es/components/pay/detail/index.js +11 -0
- package/es/components/pay/detail/index.xml +10 -0
- package/es/components/pay/detail/locales/zh-CN.json +5 -1
- package/es/components/pay/detail/web.d.ts +1 -0
- package/es/components/pay/detail/web.js +12 -5
- package/es/components/pay/detail/web.pc.d.ts +1 -0
- package/es/components/pay/detail/web.pc.js +15 -5
- package/es/components/pay/list/web.pc.js +2 -0
- package/es/components/payConfig/upsert/offline/web.pc.module.less +4 -4
- package/es/components/payConfig/upsert/web.pc.module.less +10 -10
- package/es/components/withdraw/create/index.d.ts +1 -0
- package/es/components/withdraw/create/index.js +4 -0
- package/es/components/withdraw/create/index.xml +4 -0
- package/es/components/withdraw/create/locales/zh-CN.json +2 -1
- package/es/components/withdraw/create/web.d.ts +1 -0
- package/es/components/withdraw/create/web.js +6 -2
- package/es/components/withdraw/create/web.pc.d.ts +1 -0
- package/es/components/withdraw/create/web.pc.js +4 -1
- package/es/components/withdraw/display/web.pc.module.less +4 -2
- package/es/components/withdrawAccount/list/index.less +8 -0
- package/es/components/withdrawAccount/list/index.xml +6 -1
- package/es/configuration/attrUpdateMatrix.js +6 -1
- package/es/context/BackendRuntimeContext.d.ts +1 -1
- package/es/data/i18n.js +21 -3
- package/es/entities/Order.d.ts +4 -3
- package/es/entities/Order.js +1 -0
- package/es/locales/common/zh_CN.json +1 -0
- package/es/locales/error/zh-CN.json +4 -0
- package/es/oak-app-domain/AccountOper/locales/zh_CN.json +1 -1
- package/es/oak-app-domain/Order/Schema.d.ts +11 -5
- package/es/oak-app-domain/Order/Storage.js +4 -5
- package/es/oak-app-domain/Order/locales/zh_CN.json +1 -1
- package/es/oak-app-domain/System/Storage.js +1 -2
- package/es/utils/application.d.ts +1 -1
- package/es/utils/wpProductFrontend.js +1 -1
- package/lib/aspects/withdraw.d.ts +4 -4
- package/lib/checkers/order.js +39 -0
- package/lib/components/pay/detail/index.js +11 -0
- package/lib/configuration/attrUpdateMatrix.js +6 -1
- package/lib/context/BackendRuntimeContext.d.ts +1 -1
- package/lib/data/i18n.js +21 -3
- package/lib/entities/Order.d.ts +4 -3
- package/lib/entities/Order.js +1 -0
- package/lib/locales/common/zh_CN.json +1 -0
- package/lib/locales/error/zh-CN.json +4 -0
- package/lib/oak-app-domain/AccountOper/locales/zh_CN.json +1 -1
- package/lib/oak-app-domain/Order/Schema.d.ts +11 -5
- package/lib/oak-app-domain/Order/Storage.js +4 -5
- package/lib/oak-app-domain/Order/locales/zh_CN.json +1 -1
- package/lib/oak-app-domain/System/Storage.js +1 -2
- package/lib/utils/application.d.ts +1 -1
- package/lib/utils/wpProductFrontend.js +1 -1
- package/package.json +171 -200
- package/src/entities/Order.ts +4 -2
package/package.json
CHANGED
|
@@ -1,201 +1,172 @@
|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
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
"ts-node": "^10.9.1",
|
|
174
|
-
"tsc-alias": "^1.8.2",
|
|
175
|
-
"tslib": "^2.4.0",
|
|
176
|
-
"typescript": "^5.2.2",
|
|
177
|
-
"ui-extract-webpack-plugin": "^1.0.0",
|
|
178
|
-
"web-vitals": "^2.1.4",
|
|
179
|
-
"webpack": "^5.86.0",
|
|
180
|
-
"webpack-dev-server": "^4.15.1",
|
|
181
|
-
"webpack-manifest-plugin": "^4.0.2",
|
|
182
|
-
"workbox-webpack-plugin": "^6.4.1"
|
|
183
|
-
},
|
|
184
|
-
"browserslist": {
|
|
185
|
-
"production": [
|
|
186
|
-
">0.2%",
|
|
187
|
-
"not dead",
|
|
188
|
-
"not op_mini all"
|
|
189
|
-
],
|
|
190
|
-
"development": [
|
|
191
|
-
"last 1 chrome version",
|
|
192
|
-
"last 1 firefox version",
|
|
193
|
-
"last 1 safari version"
|
|
194
|
-
]
|
|
195
|
-
},
|
|
196
|
-
"copyWebpack": [],
|
|
197
|
-
"main": "lib/index",
|
|
198
|
-
"module": "es/index",
|
|
199
|
-
"types": "es/index.d.ts",
|
|
200
|
-
"typings": "es/index.d.ts"
|
|
201
|
-
}
|
|
2
|
+
"name": "oak-pay-business",
|
|
3
|
+
"version": "2.2.2",
|
|
4
|
+
"description": "",
|
|
5
|
+
"files": [
|
|
6
|
+
"lib/**/*",
|
|
7
|
+
"es/**/*",
|
|
8
|
+
"src/entities/*"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"make:locale": "oak-cli make:locale -a",
|
|
12
|
+
"make:domain": "cross-env COMPLING_AS_LIB=yes oak-cli make:domain",
|
|
13
|
+
"make:dep": "oak-cli make:dependency",
|
|
14
|
+
"clean": "rimraf lib/* && rimraf es/*",
|
|
15
|
+
"copy-js": "copyfiles -u 1 src/**/*.js es/",
|
|
16
|
+
"copy-svg": "copyfiles -u 1 src/**/*.svg es/ & copyfiles -u 1 src/**/*.png es/",
|
|
17
|
+
"copy-less": "copyfiles -u 1 src/**/*.less es/ & copyfiles -u 1 src/**/*.wxss es/ & copyfiles -u 1 src/**/*.css es/",
|
|
18
|
+
"copy-wxs": "copyfiles -u 1 src/**/*.wxs es/",
|
|
19
|
+
"copy-xml": "copyfiles -u 1 src/**/*.xml es/",
|
|
20
|
+
"copy-wxml": "copyfiles -u 1 src/**/*.wxml es/",
|
|
21
|
+
"prebuild": "npm run make:locale",
|
|
22
|
+
"build": "tsc -p tsconfig.lib.json && tsc -p tsconfig.es.json && tsc-alias -p tsconfig.lib.json && tsc-alias -p tsconfig.es.json && npm run copy-js && npm run copy-less && npm run copy-wxs && npm run copy-svg && npm run copy-xml && npm run copy-wxml",
|
|
23
|
+
"build:analyze": "tsc -p tsconfig.es.json --diagnostics",
|
|
24
|
+
"prepare": "rimraf node_modules/react & rimraf node_modules/react-native & rimraf node_modules/react-dom & rimraf node_modules/react-router & rimraf node_modules/react-router-dom"
|
|
25
|
+
},
|
|
26
|
+
"keywords": [],
|
|
27
|
+
"author": "",
|
|
28
|
+
"license": "",
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"classnames": "^2.3.1",
|
|
31
|
+
"dayjs": "^1.11.5",
|
|
32
|
+
"oak-domain": "~5.0.12",
|
|
33
|
+
"oak-frontend-base": "~5.2.4",
|
|
34
|
+
"oak-general-business": "~5.2.3",
|
|
35
|
+
"wechat-pay-nodejs": "^0.2.3"
|
|
36
|
+
},
|
|
37
|
+
"peerDependencies": {
|
|
38
|
+
"@ant-design/icons": ">=5.2.6",
|
|
39
|
+
"antd": ">=5.13.0",
|
|
40
|
+
"antd-mobile": ">=5.33.0",
|
|
41
|
+
"antd-mobile-icons": ">=0.3.0",
|
|
42
|
+
"react": "=18.2.0",
|
|
43
|
+
"react-dom": "=18.2.0",
|
|
44
|
+
"react-native": ">=0.72.0",
|
|
45
|
+
"react-router-dom": ">=6.3.0"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@babel/cli": "^7.12.13",
|
|
49
|
+
"@babel/core": "^7.12.13",
|
|
50
|
+
"@babel/plugin-proposal-class-properties": "^7.12.13",
|
|
51
|
+
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
52
|
+
"@babel/preset-env": "^7.12.13",
|
|
53
|
+
"@babel/preset-typescript": "^7.12.13",
|
|
54
|
+
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
|
|
55
|
+
"@react-native/metro-config": "^0.72.11",
|
|
56
|
+
"@svgr/webpack": "^5.5.0",
|
|
57
|
+
"@testing-library/jest-dom": "^5.16.4",
|
|
58
|
+
"@testing-library/react": "^13.3.0",
|
|
59
|
+
"@testing-library/user-event": "^13.5.0",
|
|
60
|
+
"@tsconfig/react-native": "^3.0.0",
|
|
61
|
+
"@types/assert": "^1.5.6",
|
|
62
|
+
"@types/crypto-js": "^4.1.1",
|
|
63
|
+
"@types/fs-extra": "^9.0.13",
|
|
64
|
+
"@types/isomorphic-fetch": "^0.0.36",
|
|
65
|
+
"@types/jest": "^27.5.2",
|
|
66
|
+
"@types/lodash": "^4.14.179",
|
|
67
|
+
"@types/luxon": "^2.3.2",
|
|
68
|
+
"@types/mocha": "^8.2.0",
|
|
69
|
+
"@types/node": "^20.10.2",
|
|
70
|
+
"@types/nprogress": "^0.2.0",
|
|
71
|
+
"@types/react": "^18.0.12",
|
|
72
|
+
"@types/react-dom": "^18.0.5",
|
|
73
|
+
"@types/react-image-gallery": "^1.2.0",
|
|
74
|
+
"@types/shelljs": "^0.8.11",
|
|
75
|
+
"@types/urlsafe-base64": "^1.0.28",
|
|
76
|
+
"@types/uuid": "^8.3.0",
|
|
77
|
+
"@types/wechat-miniprogram": "^3.4.0",
|
|
78
|
+
"assert": "^2.0.0",
|
|
79
|
+
"babel-jest": "^27.4.2",
|
|
80
|
+
"babel-loader": "^8.2.3",
|
|
81
|
+
"babel-plugin-module-resolver": "^5.0.0",
|
|
82
|
+
"babel-plugin-named-asset-import": "^0.3.8",
|
|
83
|
+
"babel-preset-react-app": "^10.0.1",
|
|
84
|
+
"bfj": "^7.0.2",
|
|
85
|
+
"browserify-zlib": "^0.2.0",
|
|
86
|
+
"browserslist": "^4.18.1",
|
|
87
|
+
"camelcase": "^6.2.1",
|
|
88
|
+
"case-sensitive-paths-webpack-plugin": "^2.4.0",
|
|
89
|
+
"chalk": "^4.1.2",
|
|
90
|
+
"clean-webpack-plugin": "^4.0.0",
|
|
91
|
+
"copy-webpack-plugin": "^10.2.4",
|
|
92
|
+
"copyfiles": "^2.4.1",
|
|
93
|
+
"cross-env": "^7.0.3",
|
|
94
|
+
"css-loader": "^6.6.0",
|
|
95
|
+
"css-minimizer-webpack-plugin": "^3.2.0",
|
|
96
|
+
"dotenv": "^10.0.0",
|
|
97
|
+
"dotenv-expand": "^5.1.0",
|
|
98
|
+
"dotenv-webpack": "^7.1.0",
|
|
99
|
+
"ensure-posix-path": "^1.1.1",
|
|
100
|
+
"eslint": "^8.3.0",
|
|
101
|
+
"eslint-config-react-app": "^7.0.1",
|
|
102
|
+
"eslint-webpack-plugin": "^3.1.1",
|
|
103
|
+
"file-loader": "^6.2.0",
|
|
104
|
+
"fs-extra": "^10.0.0",
|
|
105
|
+
"globby": "^11.1.0",
|
|
106
|
+
"html-webpack-plugin": "^5.5.0",
|
|
107
|
+
"identity-obj-proxy": "^3.0.0",
|
|
108
|
+
"jest": "^27.4.3",
|
|
109
|
+
"jest-resolve": "^27.4.2",
|
|
110
|
+
"jest-watch-typeahead": "^1.0.0",
|
|
111
|
+
"less": "^4.1.2",
|
|
112
|
+
"less-loader": "^10.2.0",
|
|
113
|
+
"metro-react-native-babel-preset": "0.76.8",
|
|
114
|
+
"mini-css-extract-plugin": "^2.5.3",
|
|
115
|
+
"miniprogram-api-typings": "^3.4.5",
|
|
116
|
+
"mocha": "^8.2.1",
|
|
117
|
+
"postcss": "^8.4.4",
|
|
118
|
+
"postcss-flexbugs-fixes": "^5.0.2",
|
|
119
|
+
"postcss-less": "^6.0.0",
|
|
120
|
+
"postcss-loader": "^6.2.1",
|
|
121
|
+
"postcss-normalize": "^10.0.1",
|
|
122
|
+
"postcss-preset-env": "^7.0.1",
|
|
123
|
+
"progress": "^2.0.3",
|
|
124
|
+
"progress-bar-webpack-plugin": "^2.1.0",
|
|
125
|
+
"prompts": "^2.4.2",
|
|
126
|
+
"react-app-polyfill": "^3.0.0",
|
|
127
|
+
"react-dev-utils": "^12.0.1",
|
|
128
|
+
"react-refresh": "^0.11.0",
|
|
129
|
+
"react-router-dom": "^6.23.1",
|
|
130
|
+
"required-path": "^1.0.1",
|
|
131
|
+
"resolve": "^1.20.0",
|
|
132
|
+
"resolve-url-loader": "^4.0.0",
|
|
133
|
+
"sass-loader": "^12.3.0",
|
|
134
|
+
"semver": "^7.3.5",
|
|
135
|
+
"shelljs": "^0.8.5",
|
|
136
|
+
"source-map-loader": "^3.0.0",
|
|
137
|
+
"style-loader": "^3.3.1",
|
|
138
|
+
"stylelint": "^14.4.0",
|
|
139
|
+
"stylelint-config-standard": "^25.0.0",
|
|
140
|
+
"stylelint-webpack-plugin": "^3.1.1",
|
|
141
|
+
"tailwindcss": "^3.0.2",
|
|
142
|
+
"terser-webpack-plugin": "^5.2.5",
|
|
143
|
+
"ts-loader": "^9.3.0",
|
|
144
|
+
"ts-node": "^10.9.1",
|
|
145
|
+
"tsc-alias": "^1.8.2",
|
|
146
|
+
"tslib": "^2.4.0",
|
|
147
|
+
"typescript": "^5.2.2",
|
|
148
|
+
"ui-extract-webpack-plugin": "^1.0.0",
|
|
149
|
+
"web-vitals": "^2.1.4",
|
|
150
|
+
"webpack": "^5.86.0",
|
|
151
|
+
"webpack-dev-server": "^4.15.1",
|
|
152
|
+
"webpack-manifest-plugin": "^4.0.2",
|
|
153
|
+
"workbox-webpack-plugin": "^6.4.1"
|
|
154
|
+
},
|
|
155
|
+
"browserslist": {
|
|
156
|
+
"production": [
|
|
157
|
+
">0.2%",
|
|
158
|
+
"not dead",
|
|
159
|
+
"not op_mini all"
|
|
160
|
+
],
|
|
161
|
+
"development": [
|
|
162
|
+
"last 1 chrome version",
|
|
163
|
+
"last 1 firefox version",
|
|
164
|
+
"last 1 safari version"
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
"copyWebpack": [],
|
|
168
|
+
"main": "lib/index",
|
|
169
|
+
"module": "es/index",
|
|
170
|
+
"types": "es/index.d.ts",
|
|
171
|
+
"typings": "es/index.d.ts"
|
|
172
|
+
}
|
package/src/entities/Order.ts
CHANGED
|
@@ -16,12 +16,13 @@ export interface Schema extends EntityShape {
|
|
|
16
16
|
paid: Price;
|
|
17
17
|
refunded: Price;
|
|
18
18
|
title: String<32>;
|
|
19
|
-
desc:
|
|
20
|
-
timeoutAt
|
|
19
|
+
desc: Text;
|
|
20
|
+
timeoutAt?: Datetime;
|
|
21
21
|
creator: User;
|
|
22
22
|
entity: String<32>;
|
|
23
23
|
entityId: String<64>;
|
|
24
24
|
settled: Boolean;
|
|
25
|
+
allowPartialPay?: Boolean;
|
|
25
26
|
system: System;
|
|
26
27
|
opers: AccountOper[];
|
|
27
28
|
};
|
|
@@ -89,6 +90,7 @@ export const entityDesc: EntityDesc<Schema, Action, '', {
|
|
|
89
90
|
title: '订单标题',
|
|
90
91
|
desc: "订单描述",
|
|
91
92
|
timeoutAt: '过期时间',
|
|
93
|
+
allowPartialPay: '允许部分支付',
|
|
92
94
|
creator: '创建者',
|
|
93
95
|
entity: '关联对象',
|
|
94
96
|
entityId: '关联对象Id',
|