oak-pay-business 2.2.1 → 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.
Files changed (34) hide show
  1. package/es/checkers/order.js +39 -0
  2. package/es/components/account/detail/web.pc.module.less +68 -68
  3. package/es/components/order/pay/index.js +1 -1
  4. package/es/components/order/pay/info.js +6 -6
  5. package/es/components/order/pay/info.module.less +24 -24
  6. package/es/components/order/pay/web.mobile.module.less +35 -35
  7. package/es/components/order/pay/web.pc.module.less +35 -35
  8. package/es/components/payConfig/upsert/offline/web.pc.module.less +4 -4
  9. package/es/components/payConfig/upsert/web.pc.module.less +10 -10
  10. package/es/components/withdrawAccount/list/index.less +8 -0
  11. package/es/components/withdrawAccount/list/index.xml +6 -1
  12. package/es/context/BackendRuntimeContext.d.ts +1 -1
  13. package/es/data/i18n.js +4 -0
  14. package/es/entities/Order.d.ts +2 -1
  15. package/es/entities/Order.js +1 -0
  16. package/es/locales/error/zh-CN.json +4 -0
  17. package/es/oak-app-domain/Order/Schema.d.ts +8 -2
  18. package/es/oak-app-domain/Order/Storage.js +3 -1
  19. package/es/oak-app-domain/Order/locales/zh_CN.json +1 -1
  20. package/es/oak-app-domain/System/Storage.js +1 -2
  21. package/es/utils/application.d.ts +1 -1
  22. package/es/utils/wpProductFrontend.js +1 -1
  23. package/lib/checkers/order.js +39 -0
  24. package/lib/data/i18n.js +4 -0
  25. package/lib/entities/Order.d.ts +2 -1
  26. package/lib/entities/Order.js +1 -0
  27. package/lib/locales/error/zh-CN.json +4 -0
  28. package/lib/oak-app-domain/Order/Schema.d.ts +8 -2
  29. package/lib/oak-app-domain/Order/Storage.js +3 -1
  30. package/lib/oak-app-domain/Order/locales/zh_CN.json +1 -1
  31. package/lib/oak-app-domain/System/Storage.js +1 -2
  32. package/lib/utils/wpProductFrontend.js +1 -1
  33. package/package.json +171 -200
  34. package/src/entities/Order.ts +3 -1
@@ -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',
package/lib/data/i18n.js CHANGED
@@ -751,6 +751,10 @@ const i18ns = [
751
751
  },
752
752
  "system": {
753
753
  "withdrawLossUnSet": "系统的提现规则尚未设置,请联系管理员"
754
+ },
755
+ "order": {
756
+ "payAmountNotEnough": "支付的额度总和不足",
757
+ "nonePay": "没有传入支付信息"
754
758
  }
755
759
  }
756
760
  },
@@ -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',
@@ -12,5 +12,9 @@
12
12
  },
13
13
  "system": {
14
14
  "withdrawLossUnSet": "系统的提现规则尚未设置,请联系管理员"
15
+ },
16
+ "order": {
17
+ "payAmountNotEnough": "支付的额度总和不足",
18
+ "nonePay": "没有传入支付信息"
15
19
  }
16
20
  }
@@ -14,11 +14,12 @@ export type OpSchema = EntityShape & {
14
14
  refunded: Price;
15
15
  title: String<32>;
16
16
  desc: Text;
17
- timeoutAt: Datetime;
17
+ timeoutAt?: Datetime | null;
18
18
  creatorId: ForeignKey<"user">;
19
19
  entity: String<32>;
20
20
  entityId: String<64>;
21
21
  settled: Boolean;
22
+ allowPartialPay?: Boolean | null;
22
23
  systemId: ForeignKey<"system">;
23
24
  iState?: IState | null;
24
25
  };
@@ -29,11 +30,12 @@ export type Schema = EntityShape & {
29
30
  refunded: Price;
30
31
  title: String<32>;
31
32
  desc: Text;
32
- timeoutAt: Datetime;
33
+ timeoutAt?: Datetime | null;
33
34
  creatorId: ForeignKey<"user">;
34
35
  entity: String<32>;
35
36
  entityId: String<64>;
36
37
  settled: Boolean;
38
+ allowPartialPay?: Boolean | null;
37
39
  systemId: ForeignKey<"system">;
38
40
  iState?: IState | null;
39
41
  creator: User.Schema;
@@ -61,6 +63,7 @@ type AttrFilter = {
61
63
  entity: Q_StringValue;
62
64
  entityId: Q_StringValue;
63
65
  settled: Q_BooleanValue;
66
+ allowPartialPay: Q_BooleanValue;
64
67
  systemId: Q_StringValue;
65
68
  system: System.Filter;
66
69
  iState: Q_EnumValue<IState>;
@@ -86,6 +89,7 @@ export type Projection = {
86
89
  entity?: number;
87
90
  entityId?: number;
88
91
  settled?: number;
92
+ allowPartialPay?: number;
89
93
  systemId?: number;
90
94
  system?: System.Projection;
91
95
  iState?: number;
@@ -141,6 +145,8 @@ export type SortAttr = {
141
145
  entityId: number;
142
146
  } | {
143
147
  settled: number;
148
+ } | {
149
+ allowPartialPay: number;
144
150
  } | {
145
151
  systemId: number;
146
152
  } | {
@@ -28,7 +28,6 @@ exports.desc = {
28
28
  type: "text"
29
29
  },
30
30
  timeoutAt: {
31
- notNull: true,
32
31
  type: "datetime"
33
32
  },
34
33
  creatorId: {
@@ -54,6 +53,9 @@ exports.desc = {
54
53
  notNull: true,
55
54
  type: "boolean"
56
55
  },
56
+ allowPartialPay: {
57
+ type: "boolean"
58
+ },
57
59
  systemId: {
58
60
  notNull: true,
59
61
  type: "ref",
@@ -1 +1 @@
1
- { "name": "订单", "attr": { "price": "订单金额", "paid": "已支付金额", "refunded": "已退款金额", "iState": "订单状态", "title": "订单标题", "desc": "订单描述", "timeoutAt": "过期时间", "creator": "创建者", "entity": "关联对象", "entityId": "关联对象Id", "settled": "是否结算", "opers": "相关帐户操作", "system": "所属系统" }, "action": { "startPaying": "开始支付", "payAll": "全部支付", "payPartially": "部分支付", "payNone": "支付失败", "timeout": "过期", "cancel": "放弃", "startRefunding": "开始退款", "refundAll": "完全退款", "refundNone": "退款失败", "refundPartially": "部分退款", "settle": "结算" }, "v": { "iState": { "paid": "已付款", "partiallyPaid": "部分支付", "paying": "支付中", "unpaid": "待付款", "timeout": "已超时", "cancelled": "已取消", "refunded": "已退款", "partiallyRefunded": "已部分退款", "refunding": "退款中" } } }
1
+ { "name": "订单", "attr": { "price": "订单金额", "paid": "已支付金额", "refunded": "已退款金额", "iState": "订单状态", "title": "订单标题", "desc": "订单描述", "timeoutAt": "过期时间", "allowPartialPay": "允许部分支付", "creator": "创建者", "entity": "关联对象", "entityId": "关联对象Id", "settled": "是否结算", "opers": "相关帐户操作", "system": "所属系统" }, "action": { "startPaying": "开始支付", "payAll": "全部支付", "payPartially": "部分支付", "payNone": "支付失败", "timeout": "过期", "cancel": "放弃", "startRefunding": "开始退款", "refundAll": "完全退款", "refundNone": "退款失败", "refundPartially": "部分退款", "settle": "结算" }, "v": { "iState": { "paid": "已付款", "partiallyPaid": "部分支付", "paying": "支付中", "unpaid": "待付款", "timeout": "已超时", "cancelled": "已取消", "refunded": "已退款", "partiallyRefunded": "已部分退款", "refunding": "退款中" } } }
@@ -37,8 +37,7 @@ exports.desc = {
37
37
  : {
38
38
  type: "object"
39
39
  },
40
- entity // 如果为true,则按照渠道taxLossRatio和refundCompensateRatio进行扣取(如果因为depositLossRatio已经大于taxLossRatio,则全额退款)
41
- : {
40
+ entity: {
42
41
  type: "varchar",
43
42
  params: {
44
43
  length: 32
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.canStartPay = exports.getWpProductTypeFromEnv = void 0;
4
- const utils_1 = require("oak-frontend-base/lib/utils/utils");
4
+ const utils_1 = require("oak-frontend-base/es/utils/utils");
5
5
  function getWpProductTypeFromEnv() {
6
6
  switch (process.env.OAK_PLATFORM) {
7
7
  case 'web': {
package/package.json CHANGED
@@ -1,201 +1,172 @@
1
1
  {
2
- "name": "oak-pay-business",
3
- "version": "2.2.1",
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
- },
25
- "keywords": [],
26
- "author": "",
27
- "license": "",
28
- "dependencies": {
29
- "@ant-design/cssinjs": "^1.16.2",
30
- "@ant-design/icons": "^5.2.6",
31
- "@react-native-async-storage/async-storage": "^1.19.8",
32
- "@react-native-masked-view/masked-view": "^0.3.0",
33
- "@react-navigation/bottom-tabs": "^6.5.11",
34
- "@react-navigation/native": "^6.1.9",
35
- "@react-navigation/stack": "^6.3.20",
36
- "@wangeditor/basic-modules": "^1.1.3",
37
- "@wangeditor/editor": "^5.1.14",
38
- "@wangeditor/editor-for-react": "^1.0.4",
39
- "antd": "^5.8.3",
40
- "antd-mobile": "^5.32.0",
41
- "antd-mobile-icons": "^0.3.0",
42
- "classnames": "^2.3.1",
43
- "crypto-browserify": "^3.12.0",
44
- "crypto-js": "^4.1.1",
45
- "dayjs": "^1.11.5",
46
- "echarts": "^5.3.0",
47
- "echarts-for-react": "^3.0.2",
48
- "history": "^5.3.0",
49
- "hmacsha1": "^1.0.0",
50
- "js-base64": "^3.7.2",
51
- "lodash": "^4.17.21",
52
- "nprogress": "^0.2.0",
53
- "oak-domain": "~5.0.11",
54
- "oak-frontend-base": "~5.2.2",
55
- "oak-general-business": "~5.2.3",
56
- "react": "~18.2.0",
57
- "react-dom": "~18.2.0",
58
- "react-image-gallery": "^1.2.11",
59
- "react-native": "~0.72.7",
60
- "react-native-exception-handler": "^2.10.10",
61
- "react-native-gesture-handler": "^2.14.0",
62
- "react-native-localize": "^3.0.4",
63
- "react-native-quick-base64": "^2.0.7",
64
- "react-native-quick-crypto": "^0.6.1",
65
- "react-native-reanimated": "^3.5.4",
66
- "react-native-safe-area-context": "^4.7.4",
67
- "react-native-screens": "^3.27.0",
68
- "react-native-url-polyfill": "^2.0.0",
69
- "react-responsive": "^9.0.0-beta.10",
70
- "react-router-dom": "^6.4.0",
71
- "react-slick": "^0.29.0",
72
- "rmc-pull-to-refresh": "^1.0.13",
73
- "slick-carousel": "^1.8.1",
74
- "uuid": "^8.3.2",
75
- "wechat-pay-nodejs": "^0.2.3"
76
- },
77
- "devDependencies": {
78
- "@babel/cli": "^7.12.13",
79
- "@babel/core": "^7.12.13",
80
- "@babel/plugin-proposal-class-properties": "^7.12.13",
81
- "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
82
- "@babel/preset-env": "^7.12.13",
83
- "@babel/preset-typescript": "^7.12.13",
84
- "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
85
- "@react-native/metro-config": "^0.72.11",
86
- "@svgr/webpack": "^5.5.0",
87
- "@testing-library/jest-dom": "^5.16.4",
88
- "@testing-library/react": "^13.3.0",
89
- "@testing-library/user-event": "^13.5.0",
90
- "@tsconfig/react-native": "^3.0.0",
91
- "@types/assert": "^1.5.6",
92
- "@types/crypto-js": "^4.1.1",
93
- "@types/fs-extra": "^9.0.13",
94
- "@types/isomorphic-fetch": "^0.0.36",
95
- "@types/jest": "^27.5.2",
96
- "@types/lodash": "^4.14.179",
97
- "@types/luxon": "^2.3.2",
98
- "@types/mocha": "^8.2.0",
99
- "@types/node": "^20.10.2",
100
- "@types/nprogress": "^0.2.0",
101
- "@types/react": "^18.0.12",
102
- "@types/react-dom": "^18.0.5",
103
- "@types/react-image-gallery": "^1.2.0",
104
- "@types/shelljs": "^0.8.11",
105
- "@types/urlsafe-base64": "^1.0.28",
106
- "@types/uuid": "^8.3.0",
107
- "@types/wechat-miniprogram": "^3.4.0",
108
- "assert": "^2.0.0",
109
- "babel-jest": "^27.4.2",
110
- "babel-loader": "^8.2.3",
111
- "babel-plugin-module-resolver": "^5.0.0",
112
- "babel-plugin-named-asset-import": "^0.3.8",
113
- "babel-preset-react-app": "^10.0.1",
114
- "bfj": "^7.0.2",
115
- "browserify-zlib": "^0.2.0",
116
- "browserslist": "^4.18.1",
117
- "camelcase": "^6.2.1",
118
- "case-sensitive-paths-webpack-plugin": "^2.4.0",
119
- "chalk": "^4.1.2",
120
- "clean-webpack-plugin": "^4.0.0",
121
- "copy-webpack-plugin": "^10.2.4",
122
- "copyfiles": "^2.4.1",
123
- "cross-env": "^7.0.3",
124
- "css-loader": "^6.6.0",
125
- "css-minimizer-webpack-plugin": "^3.2.0",
126
- "dotenv": "^10.0.0",
127
- "dotenv-expand": "^5.1.0",
128
- "dotenv-webpack": "^7.1.0",
129
- "ensure-posix-path": "^1.1.1",
130
- "eslint": "^8.3.0",
131
- "eslint-config-react-app": "^7.0.1",
132
- "eslint-webpack-plugin": "^3.1.1",
133
- "file-loader": "^6.2.0",
134
- "fs-extra": "^10.0.0",
135
- "globby": "^11.1.0",
136
- "html-webpack-plugin": "^5.5.0",
137
- "identity-obj-proxy": "^3.0.0",
138
- "jest": "^27.4.3",
139
- "jest-resolve": "^27.4.2",
140
- "jest-watch-typeahead": "^1.0.0",
141
- "less": "^4.1.2",
142
- "less-loader": "^10.2.0",
143
- "metro-react-native-babel-preset": "0.76.8",
144
- "mini-css-extract-plugin": "^2.5.3",
145
- "miniprogram-api-typings": "^3.4.5",
146
- "mocha": "^8.2.1",
147
- "postcss": "^8.4.4",
148
- "postcss-flexbugs-fixes": "^5.0.2",
149
- "postcss-less": "^6.0.0",
150
- "postcss-loader": "^6.2.1",
151
- "postcss-normalize": "^10.0.1",
152
- "postcss-preset-env": "^7.0.1",
153
- "progress": "^2.0.3",
154
- "progress-bar-webpack-plugin": "^2.1.0",
155
- "prompts": "^2.4.2",
156
- "react-app-polyfill": "^3.0.0",
157
- "react-dev-utils": "^12.0.1",
158
- "react-refresh": "^0.11.0",
159
- "required-path": "^1.0.1",
160
- "resolve": "^1.20.0",
161
- "resolve-url-loader": "^4.0.0",
162
- "sass-loader": "^12.3.0",
163
- "semver": "^7.3.5",
164
- "shelljs": "^0.8.5",
165
- "source-map-loader": "^3.0.0",
166
- "style-loader": "^3.3.1",
167
- "stylelint": "^14.4.0",
168
- "stylelint-config-standard": "^25.0.0",
169
- "stylelint-webpack-plugin": "^3.1.1",
170
- "tailwindcss": "^3.0.2",
171
- "terser-webpack-plugin": "^5.2.5",
172
- "ts-loader": "^9.3.0",
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
+ }
@@ -17,11 +17,12 @@ export interface Schema extends EntityShape {
17
17
  refunded: Price;
18
18
  title: String<32>;
19
19
  desc: Text;
20
- timeoutAt: Datetime;
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',