oak-pay-business 2.5.7 → 2.5.9

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 (42) hide show
  1. package/es/components/accountOper/pure/List.pc.d.ts +1 -0
  2. package/es/components/offlineAccount/config/index.js +1 -0
  3. package/es/components/offlineAccount/config/web.pc.d.ts +2 -0
  4. package/es/components/offlineAccount/config/web.pc.js +1 -1
  5. package/es/components/offlineAccount/upsert/index.d.ts +1 -0
  6. package/es/components/order/list/index.d.ts +1 -0
  7. package/es/components/order/pay/index.d.ts +1 -1
  8. package/es/components/order/pay/info.d.ts +1 -0
  9. package/es/components/pay/channelPicker2/web.d.ts +1 -0
  10. package/es/components/pay/channelPicker2/web.pc.d.ts +1 -0
  11. package/es/components/pay/detail/index.js +1 -0
  12. package/es/components/pay/detail/web.d.ts +1 -0
  13. package/es/components/pay/detail/web.pc.d.ts +1 -0
  14. package/es/components/pay/detail/web.pc.js +1 -1
  15. package/es/components/pay/list/index.d.ts +1 -0
  16. package/es/components/pay/list/index.js +1 -0
  17. package/es/components/pay/list/web.pc.d.ts +1 -0
  18. package/es/components/payConfig/system/index.d.ts +1 -0
  19. package/es/components/payConfig/system/index.js +1 -0
  20. package/es/components/payConfig/system/web.pc.d.ts +1 -0
  21. package/es/components/refund/list/index.d.ts +1 -0
  22. package/es/components/refund/list/index.js +1 -0
  23. package/es/components/refund/list/web.pc.d.ts +1 -0
  24. package/es/components/sysAccount/transferList/index.d.ts +1 -0
  25. package/es/components/sysAccount/transferList/web.pc.js +1 -1
  26. package/es/components/withdraw/create/index.d.ts +1 -1
  27. package/es/components/withdraw/detail/index.d.ts +1 -0
  28. package/es/components/withdraw/display/index.d.ts +1 -1
  29. package/es/components/withdraw/display/web.d.ts +1 -0
  30. package/es/components/withdraw/display/web.pc.d.ts +1 -0
  31. package/es/components/withdrawAccount/list/index.js +1 -0
  32. package/es/components/withdrawAccount/list/web.d.ts +1 -0
  33. package/es/components/withdrawAccount/list/web.pc.d.ts +1 -0
  34. package/es/components/withdrawTransfer/list/index.d.ts +1 -0
  35. package/es/components/withdrawTransfer/list/index.js +1 -0
  36. package/es/components/withdrawTransfer/list/web.pc.d.ts +1 -0
  37. package/es/components/wpAccount/config/index.js +1 -0
  38. package/es/components/wpAccount/config/web.pc.d.ts +2 -0
  39. package/es/components/wpProduct/config/index.js +1 -0
  40. package/es/components/wpProduct/config/web.pc.d.ts +2 -0
  41. package/es/components/wpProduct/config/web.pc.js +1 -1
  42. package/package.json +4 -4
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { EntityDict } from "../../../oak-app-domain";
2
3
  export default function Render(props: {
3
4
  accountOpers: EntityDict['accountOper']['OpSchema'][];
@@ -42,6 +42,7 @@ export default OakComponent({
42
42
  };
43
43
  }),
44
44
  canCreate: legalActions?.includes('create'),
45
+ oakExecutable: this.tryExecute(),
45
46
  };
46
47
  },
47
48
  actions: ['create', 'update', 'remove'],
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { EntityDict } from "../../../oak-app-domain";
3
3
  import { RowWithActions, WebComponentProps } from "oak-frontend-base";
4
+ import { OakException } from 'oak-domain/lib/types';
4
5
  export declare function OfflineAccount(props: {
5
6
  data: RowWithActions<EntityDict, 'offlineAccount'> & {
6
7
  color: string;
@@ -16,4 +17,5 @@ export default function render(props: WebComponentProps<EntityDict, 'offlineAcco
16
17
  })[];
17
18
  systemId: string;
18
19
  canCreate?: boolean;
20
+ oakExecutable: boolean | OakException<EntityDict>;
19
21
  }>): React.JSX.Element;
@@ -90,7 +90,7 @@ export default function render(props) {
90
90
  </div>)}
91
91
  </div>
92
92
  <div className={Styles.btnBar}>
93
- {canCreate && <Button type="primary" onClick={() => {
93
+ {canCreate && <Button type="primary" onClick={() => {
94
94
  const id = addItem({ systemId });
95
95
  setUpsertId(id);
96
96
  }}>
@@ -1,2 +1,3 @@
1
+ /// <reference types="wechat-miniprogram" />
1
2
  declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "offlineAccount", false, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
+ /// <reference types="wechat-miniprogram" />
1
2
  declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "order", true, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
2
3
  export default _default;
@@ -2,6 +2,6 @@ import { EntityDict } from "../../../oak-app-domain";
2
2
  declare const _default: (props: import("oak-frontend-base").ReactComponentProps<EntityDict, "order", false, {
3
3
  accountId: string;
4
4
  accountAvailMax: number;
5
- onSetPays: (pays: Partial<EntityDict["pay"]["CreateSingle"]["data"]>[]) => void;
5
+ onSetPays: (pays: Partial<EntityDict['pay']['CreateSingle']['data']>[]) => void;
6
6
  }>) => React.ReactElement;
7
7
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export default function Info(props: {
2
3
  price: number;
3
4
  t: (k: string) => string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PayChannelOption } from "../../../types/Pay";
2
3
  export default function Render(props: {
3
4
  data: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PayChannelOption } from "../../../types/Pay";
2
3
  export default function Render(props: {
3
4
  data: {
@@ -156,6 +156,7 @@ export default OakComponent({
156
156
  offlines,
157
157
  notSameApp: data && data.applicationId !== application.id && data.entity !== 'offlineAccount',
158
158
  priceStr: data?.price && CentToString(data.price, 2),
159
+ oakExecutable: this.tryExecute(),
159
160
  };
160
161
  },
161
162
  features: [{
@@ -22,6 +22,7 @@ export default function Render(props: WebComponentProps<EntityDict, 'pay', false
22
22
  type: string;
23
23
  offlines?: ColoredOffline[];
24
24
  offline?: ColoredOffline;
25
+ oakExecutable: boolean;
25
26
  }, {
26
27
  goBack: () => void;
27
28
  startPay: () => Promise<void>;
@@ -22,6 +22,7 @@ export default function Render(props: WebComponentProps<EntityDict, 'pay', false
22
22
  type: string;
23
23
  offlines?: ColoredOffline[];
24
24
  offline?: ColoredOffline;
25
+ oakExecutable: boolean;
25
26
  }, {
26
27
  goBack: () => void;
27
28
  startPay: () => Promise<void>;
@@ -25,7 +25,7 @@ export function RenderOffline(props) {
25
25
  </Tag>
26
26
  </Form.Item>,
27
27
  <Form.Item key="externalId" label={<span className={Styles.bold}>{t('externalId.label')}</span>}>
28
- <Input value={externalId || ''} onChange={({ currentTarget }) => {
28
+ <Input value={externalId || ''} onChange={({ currentTarget }) => {
29
29
  const { value } = currentTarget;
30
30
  updateExternalId(value);
31
31
  }} placeholder={t('externalId.help')} disabled={iState !== 'paying'}/>
@@ -1,2 +1,3 @@
1
+ /// <reference types="wechat-miniprogram" />
1
2
  declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "pay", true, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
2
3
  export default _default;
@@ -100,6 +100,7 @@ export default OakComponent({
100
100
  ...ele,
101
101
  };
102
102
  }),
103
+ oakExecutable: this.tryExecute(),
103
104
  };
104
105
  },
105
106
  getTotal: 100,
@@ -10,5 +10,6 @@ export default function Render(props: WebComponentProps<EntityDict, 'pay', false
10
10
  creatorMobile?: string;
11
11
  })[];
12
12
  offlines?: ColoredOffline[];
13
+ oakExecutable: boolean;
13
14
  }>): React.JSX.Element | null;
14
15
  export {};
@@ -1,2 +1,3 @@
1
+ /// <reference types="wechat-miniprogram" />
1
2
  declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "system", false, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
2
3
  export default _default;
@@ -23,6 +23,7 @@ export default OakComponent({
23
23
  operation: operation && operation[0].operation,
24
24
  system: data,
25
25
  canUpdate: !!data?.['#oakLegalActions']?.includes('update'),
26
+ oakExecutable: this.tryExecute(),
26
27
  };
27
28
  },
28
29
  actions: ['update'],
@@ -11,4 +11,5 @@ export default function render(props: WebComponentProps<EntityDict, 'system', fa
11
11
  operation?: EntityDict['system']['Update'];
12
12
  serverUrl?: string;
13
13
  canUpdate?: boolean;
14
+ oakExecutable: boolean;
14
15
  }>): React.JSX.Element | null;
@@ -1,2 +1,3 @@
1
+ /// <reference types="wechat-miniprogram" />
1
2
  declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "refund", true, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
2
3
  export default _default;
@@ -71,6 +71,7 @@ export default OakComponent({
71
71
  };
72
72
  }),
73
73
  amIRoot: features.token.isRoot(),
74
+ oakExecutable: this.tryExecute(),
74
75
  };
75
76
  }
76
77
  });
@@ -9,4 +9,5 @@ export default function Render(props: WebComponentProps<EntityDict, 'pay', false
9
9
  payChannel: string;
10
10
  })[];
11
11
  amIRoot?: boolean;
12
+ oakExecutable: boolean;
12
13
  }>): React.JSX.Element | null;
@@ -1,2 +1,3 @@
1
+ /// <reference types="wechat-miniprogram" />
1
2
  declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "withdrawTransfer", true, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
2
3
  export default _default;
@@ -3,7 +3,7 @@ import { Result, Alert } from 'antd';
3
3
  import ListPro from 'oak-frontend-base/es/components/listPro';
4
4
  import { ThousandCont, ToYuan } from 'oak-domain/lib/utils/money';
5
5
  export default function Render(props) {
6
- const { transfers, oakFullpath, oakExecutable } = props.data;
6
+ const { transfers, oakFullpath } = props.data;
7
7
  const { t } = props.methods;
8
8
  if (transfers?.length) {
9
9
  return (<ListPro entity="withdrawTransfer" data={transfers} title={<Alert type="info" message={t('tips')}/>} attributes={[
@@ -1,7 +1,7 @@
1
1
  import { EntityDict } from "../../../oak-app-domain";
2
2
  declare const _default: (props: import("oak-frontend-base").ReactComponentProps<EntityDict, keyof EntityDict, boolean, {
3
3
  accountId: string;
4
- withdrawAccountFilter: EntityDict["withdrawAccount"]["Selection"]["filter"];
4
+ withdrawAccountFilter: import("../../../oak-app-domain/WithdrawAccount/Schema").Filter | undefined;
5
5
  onNewWithdrawAccount: () => void;
6
6
  onCreateWithdraw: (id: string) => void;
7
7
  onGoToHistory: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="wechat-miniprogram" />
1
2
  import { EntityDict } from "../../../oak-app-domain";
2
3
  declare const _default: (props: import("oak-frontend-base").ReactComponentProps<EntityDict, "withdraw", false, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
3
4
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { EntityDict } from '../../../oak-app-domain';
2
2
  declare const _default: (props: import("oak-frontend-base").ReactComponentProps<EntityDict, keyof EntityDict, boolean, {
3
- withdraw: EntityDict["withdraw"]["Schema"];
3
+ withdraw: import("../../../oak-app-domain/Withdraw/Schema").Schema;
4
4
  create: boolean;
5
5
  }>) => React.ReactElement;
6
6
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { EntityDict } from '../../../oak-app-domain';
2
3
  export default function render(props: {
3
4
  data: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { EntityDict } from '../../../oak-app-domain';
2
3
  export default function render(props: {
3
4
  data: {
@@ -49,6 +49,7 @@ export default OakComponent({
49
49
  }),
50
50
  asPicker: !!this.props.onPick,
51
51
  allowCreate: legalActions?.includes('create'),
52
+ oakExecutable: this.tryExecute(),
52
53
  };
53
54
  },
54
55
  data: {
@@ -16,6 +16,7 @@ export default function render(props: WebComponentProps<EntityDict, 'withdrawAcc
16
16
  allowCreate?: boolean;
17
17
  selectedId?: string;
18
18
  onCancel?: () => void;
19
+ oakExecutable: boolean;
19
20
  }, {
20
21
  setUpsertId: (id: string) => void;
21
22
  doUpdate: () => Promise<void>;
@@ -16,6 +16,7 @@ export default function render(props: WebComponentProps<EntityDict, 'withdrawAcc
16
16
  allowCreate?: boolean;
17
17
  selectedId?: string;
18
18
  onCancel?: () => void;
19
+ oakExecutable: boolean;
19
20
  }, {
20
21
  setUpsertId: (id: string) => void;
21
22
  doUpdate: () => Promise<void>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="wechat-miniprogram" />
1
2
  import { EntityDict } from '../../../oak-app-domain';
2
3
  declare const _default: (props: import("oak-frontend-base").ReactComponentProps<EntityDict, "withdrawTransfer", true, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
3
4
  export default _default;
@@ -64,6 +64,7 @@ export default OakComponent({
64
64
  channel,
65
65
  };
66
66
  }),
67
+ oakExecutable: this.tryExecute(),
67
68
  };
68
69
  },
69
70
  data: {
@@ -11,6 +11,7 @@ export default function Render(props: WebComponentProps<EntityDict, 'pay', false
11
11
  })[];
12
12
  updateId: string;
13
13
  sysAccountAmount: number;
14
+ oakExecutable: boolean;
14
15
  }, {
15
16
  setUpdateId: (id: string, action: string) => void;
16
17
  }>): React.JSX.Element | null;
@@ -29,6 +29,7 @@ export default OakComponent({
29
29
  return {
30
30
  accounts: data,
31
31
  canCreate: legalActions?.includes('create') && !data?.find(ele => ele.enabled),
32
+ oakExecutable: this.tryExecute(),
32
33
  };
33
34
  },
34
35
  actions: ['create', 'update', 'remove'],
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { EntityDict } from "../../../oak-app-domain";
3
3
  import { RowWithActions, WebComponentProps } from "oak-frontend-base";
4
+ import { OakException } from 'oak-domain/lib/types';
4
5
  export declare function WpAccount(props: {
5
6
  data: RowWithActions<EntityDict, 'wpAccount'>;
6
7
  systemId: string;
@@ -12,4 +13,5 @@ export default function render(props: WebComponentProps<EntityDict, 'wpAccount',
12
13
  accounts?: (RowWithActions<EntityDict, 'wpAccount'> & {})[];
13
14
  systemId: string;
14
15
  canCreate?: boolean;
16
+ oakExecutable: boolean | OakException<EntityDict>;
15
17
  }>): React.JSX.Element;
@@ -31,6 +31,7 @@ export default OakComponent({
31
31
  return {
32
32
  wpProducts: data,
33
33
  canCreate: legalActions?.includes('create'),
34
+ oakExecutable: this.tryExecute(),
34
35
  };
35
36
  },
36
37
  actions: ['create', 'update', 'remove'],
@@ -1,9 +1,11 @@
1
1
  import React from 'react';
2
2
  import { EntityDict } from "../../../oak-app-domain";
3
3
  import { RowWithActions, WebComponentProps } from "oak-frontend-base";
4
+ import { OakException } from 'oak-domain/lib/types';
4
5
  export default function render(props: WebComponentProps<EntityDict, 'wpProduct', true, {
5
6
  wpProducts?: (RowWithActions<EntityDict, 'wpProduct'> & {})[];
6
7
  systemId: string;
7
8
  canCreate?: boolean;
8
9
  wpAccountId: string;
10
+ oakExecutable: boolean | OakException<EntityDict>;
9
11
  }>): React.JSX.Element;
@@ -82,7 +82,7 @@ export default function render(props) {
82
82
  }
83
83
  ]);
84
84
  }}/>
85
- </List.Item>)}/>
85
+ </List.Item>)}/>
86
86
  </div>);
87
87
  }
88
88
  return (<div className={Styles.container2}>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oak-pay-business",
3
- "version": "2.5.7",
3
+ "version": "2.5.9",
4
4
  "description": "",
5
5
  "files": [
6
6
  "lib/**/*",
@@ -30,9 +30,9 @@
30
30
  "dependencies": {
31
31
  "classnames": "^2.3.1",
32
32
  "dayjs": "^1.11.5",
33
- "oak-domain": "^5.1.11",
34
- "oak-frontend-base": "^5.3.20",
35
- "oak-general-business": "~5.5.8",
33
+ "oak-domain": "^5.1.14",
34
+ "oak-frontend-base": "^5.3.22",
35
+ "oak-general-business": "~5.5.9",
36
36
  "wechat-pay-nodejs": "^0.2.3"
37
37
  },
38
38
  "peerDependencies": {