oak-pay-business 2.3.1 → 2.3.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/components/AbstractComponents.d.ts +2 -2
- package/es/components/AbstractComponents.js +0 -4
- package/es/entities/Order.d.ts +1 -1
- package/es/oak-app-domain/ExtraFile/Schema.d.ts +2 -2
- package/es/oak-app-domain/ExtraFile/Storage.js +1 -1
- package/es/oak-app-domain/Order/Action.d.ts +1 -1
- package/es/oak-app-domain/Order/Storage.js +1 -1
- package/es/triggers/withdraw.d.ts +1 -1
- package/es/utils/payClazz/WechatPay/index.d.ts +1 -1
- package/lib/aspects/withdraw.d.ts +4 -4
- package/lib/context/BackendRuntimeContext.d.ts +1 -1
- package/lib/entities/Order.d.ts +1 -1
- package/lib/oak-app-domain/ExtraFile/Schema.d.ts +2 -2
- package/lib/oak-app-domain/ExtraFile/Storage.js +1 -1
- package/lib/oak-app-domain/Order/Action.d.ts +1 -1
- package/lib/oak-app-domain/Order/Storage.js +1 -1
- package/lib/utils/application.d.ts +1 -1
- package/lib/utils/payClazz/WechatPay/index.d.ts +1 -1
- package/package.json +4 -4
- package/src/entities/Order.ts +1 -1
|
@@ -21,7 +21,7 @@ declare const List: <T extends keyof EntityDict>(props: ReactComponentProps<Enti
|
|
|
21
21
|
rowSelection?: any;
|
|
22
22
|
hideHeader?: boolean | undefined;
|
|
23
23
|
disableSerialNumber?: boolean | undefined;
|
|
24
|
-
size?: "
|
|
24
|
+
size?: "large" | "middle" | "small" | undefined;
|
|
25
25
|
scroll?: any;
|
|
26
26
|
empty?: React.ReactNode;
|
|
27
27
|
opWidth?: number | undefined;
|
|
@@ -43,7 +43,7 @@ declare const ListPro: <T extends keyof EntityDict>(props: {
|
|
|
43
43
|
tablePagination?: any;
|
|
44
44
|
rowSelection?: any;
|
|
45
45
|
disableSerialNumber?: boolean | undefined;
|
|
46
|
-
size?: "
|
|
46
|
+
size?: "large" | "middle" | "small" | undefined;
|
|
47
47
|
scroll?: any;
|
|
48
48
|
empty?: any;
|
|
49
49
|
opWidth?: number | undefined;
|
package/es/entities/Order.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export interface Schema extends EntityShape {
|
|
|
20
20
|
opers: AccountOper[];
|
|
21
21
|
}
|
|
22
22
|
export type IAction = 'startPaying' | 'payAll' | 'payPartially' | 'payNone' | 'timeout' | 'cancel' | 'startRefunding' | 'refundAll' | 'refundPartially' | 'refundNone';
|
|
23
|
-
export type IState = '
|
|
23
|
+
export type IState = 'unpaid' | 'timeout' | 'cancelled' | 'paying' | 'partiallyPaid' | 'paid' | 'refunding' | 'partiallyRefunded' | 'refunded';
|
|
24
24
|
export declare const IActionDef: ActionDef<IAction, IState>;
|
|
25
25
|
export type Action = IAction | 'settle';
|
|
26
26
|
export declare const entityDesc: EntityDesc<Schema, Action, '', {
|
|
@@ -23,7 +23,7 @@ export type OpSchema = EntityShape & {
|
|
|
23
23
|
extra1?: Text | null;
|
|
24
24
|
extra2?: Object | null;
|
|
25
25
|
extension?: String<16> | null;
|
|
26
|
-
size?: Int<
|
|
26
|
+
size?: Int<8> | null;
|
|
27
27
|
sort?: Float<22, 10> | null;
|
|
28
28
|
fileType?: String<128> | null;
|
|
29
29
|
isBridge?: Boolean | null;
|
|
@@ -46,7 +46,7 @@ export type Schema = EntityShape & {
|
|
|
46
46
|
extra1?: Text | null;
|
|
47
47
|
extra2?: Object | null;
|
|
48
48
|
extension?: String<16> | null;
|
|
49
|
-
size?: Int<
|
|
49
|
+
size?: Int<8> | null;
|
|
50
50
|
sort?: Float<22, 10> | null;
|
|
51
51
|
fileType?: String<128> | null;
|
|
52
52
|
isBridge?: Boolean | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ActionDef } from "oak-domain/lib/types/Action";
|
|
2
2
|
import { GenericAction } from "oak-domain/lib/actions/action";
|
|
3
3
|
export type IAction = 'startPaying' | 'payAll' | 'payPartially' | 'payNone' | 'timeout' | 'cancel' | 'startRefunding' | 'refundAll' | 'refundPartially' | 'refundNone' | string;
|
|
4
|
-
export type IState = '
|
|
4
|
+
export type IState = 'unpaid' | 'timeout' | 'cancelled' | 'paying' | 'partiallyPaid' | 'paid' | 'refunding' | 'partiallyRefunded' | 'refunded' | string;
|
|
5
5
|
export declare const IActionDef: ActionDef<IAction, IState>;
|
|
6
6
|
export type ParticularAction = IAction | 'settle';
|
|
7
7
|
export declare const actions: string[];
|
|
@@ -60,7 +60,7 @@ export const desc = {
|
|
|
60
60
|
},
|
|
61
61
|
iState: {
|
|
62
62
|
type: "enum",
|
|
63
|
-
enumeration: ["
|
|
63
|
+
enumeration: ["unpaid", "timeout", "cancelled", "paying", "partiallyPaid", "paid", "refunding", "partiallyRefunded", "refunded"]
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
actionType: "crud",
|
|
@@ -6,6 +6,6 @@ import { BRC } from '../types/RuntimeCxt';
|
|
|
6
6
|
* @param context
|
|
7
7
|
* @param refunds
|
|
8
8
|
*/
|
|
9
|
-
export declare function updateWithdrawState(context: BRC, id: string): Promise<
|
|
9
|
+
export declare function updateWithdrawState(context: BRC, id: string): Promise<0 | 1>;
|
|
10
10
|
declare const triggers: Trigger<EntityDict, 'withdraw', BRC>[];
|
|
11
11
|
export default triggers;
|
|
@@ -3,7 +3,7 @@ export declare function getWithdrawCreateData(params: {
|
|
|
3
3
|
accountId: string;
|
|
4
4
|
price: number;
|
|
5
5
|
withdrawAccountId?: string;
|
|
6
|
-
}, context: BRC): Promise<(Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "
|
|
6
|
+
}, context: BRC): Promise<(Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "creatorId" | "accountId">> & {
|
|
7
7
|
id: string;
|
|
8
8
|
} & {
|
|
9
9
|
accountId: string;
|
|
@@ -17,7 +17,7 @@ export declare function getWithdrawCreateData(params: {
|
|
|
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;
|
|
20
|
-
}) | (Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "
|
|
20
|
+
}) | (Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "creatorId" | "accountId">> & {
|
|
21
21
|
id: string;
|
|
22
22
|
} & {
|
|
23
23
|
accountId: string;
|
|
@@ -31,7 +31,7 @@ export declare function getWithdrawCreateData(params: {
|
|
|
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;
|
|
34
|
-
}) | (Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "
|
|
34
|
+
}) | (Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "creatorId" | "accountId">> & {
|
|
35
35
|
id: string;
|
|
36
36
|
} & {
|
|
37
37
|
account?: undefined;
|
|
@@ -45,7 +45,7 @@ export declare function getWithdrawCreateData(params: {
|
|
|
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;
|
|
48
|
-
}) | (Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "
|
|
48
|
+
}) | (Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "creatorId" | "accountId">> & {
|
|
49
49
|
id: string;
|
|
50
50
|
} & {
|
|
51
51
|
account?: undefined;
|
|
@@ -15,7 +15,7 @@ export declare class BackendRuntimeContext<ED extends EntityDict & BaseEntityDic
|
|
|
15
15
|
type?: number | undefined;
|
|
16
16
|
systemId?: number | undefined;
|
|
17
17
|
system?: import("../oak-app-domain/System/Schema").Projection | undefined;
|
|
18
|
-
config?: number | import("oak-domain/lib/types").JsonProjection<import("../oak-app-domain/Application/Schema").
|
|
18
|
+
config?: number | import("oak-domain/lib/types").JsonProjection<import("../oak-app-domain/Application/Schema").WechatMpConfig | import("../oak-app-domain/Application/Schema").WebConfig | import("../oak-app-domain/Application/Schema").WechatPublicConfig | import("../oak-app-domain/Application/Schema").NativeConfig> | undefined;
|
|
19
19
|
style?: number | import("oak-domain/lib/types").JsonProjection<import("oak-general-business/lib/types/Style").Style> | undefined;
|
|
20
20
|
domainId?: number | undefined;
|
|
21
21
|
domain?: import("../oak-app-domain/Domain/Schema").Projection | undefined;
|
package/lib/entities/Order.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export interface Schema extends EntityShape {
|
|
|
20
20
|
opers: AccountOper[];
|
|
21
21
|
}
|
|
22
22
|
export type IAction = 'startPaying' | 'payAll' | 'payPartially' | 'payNone' | 'timeout' | 'cancel' | 'startRefunding' | 'refundAll' | 'refundPartially' | 'refundNone';
|
|
23
|
-
export type IState = '
|
|
23
|
+
export type IState = 'unpaid' | 'timeout' | 'cancelled' | 'paying' | 'partiallyPaid' | 'paid' | 'refunding' | 'partiallyRefunded' | 'refunded';
|
|
24
24
|
export declare const IActionDef: ActionDef<IAction, IState>;
|
|
25
25
|
export type Action = IAction | 'settle';
|
|
26
26
|
export declare const entityDesc: EntityDesc<Schema, Action, '', {
|
|
@@ -23,7 +23,7 @@ export type OpSchema = EntityShape & {
|
|
|
23
23
|
extra1?: Text | null;
|
|
24
24
|
extra2?: Object | null;
|
|
25
25
|
extension?: String<16> | null;
|
|
26
|
-
size?: Int<
|
|
26
|
+
size?: Int<8> | null;
|
|
27
27
|
sort?: Float<22, 10> | null;
|
|
28
28
|
fileType?: String<128> | null;
|
|
29
29
|
isBridge?: Boolean | null;
|
|
@@ -46,7 +46,7 @@ export type Schema = EntityShape & {
|
|
|
46
46
|
extra1?: Text | null;
|
|
47
47
|
extra2?: Object | null;
|
|
48
48
|
extension?: String<16> | null;
|
|
49
|
-
size?: Int<
|
|
49
|
+
size?: Int<8> | null;
|
|
50
50
|
sort?: Float<22, 10> | null;
|
|
51
51
|
fileType?: String<128> | null;
|
|
52
52
|
isBridge?: Boolean | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ActionDef } from "oak-domain/lib/types/Action";
|
|
2
2
|
import { GenericAction } from "oak-domain/lib/actions/action";
|
|
3
3
|
export type IAction = 'startPaying' | 'payAll' | 'payPartially' | 'payNone' | 'timeout' | 'cancel' | 'startRefunding' | 'refundAll' | 'refundPartially' | 'refundNone' | string;
|
|
4
|
-
export type IState = '
|
|
4
|
+
export type IState = 'unpaid' | 'timeout' | 'cancelled' | 'paying' | 'partiallyPaid' | 'paid' | 'refunding' | 'partiallyRefunded' | 'refunded' | string;
|
|
5
5
|
export declare const IActionDef: ActionDef<IAction, IState>;
|
|
6
6
|
export type ParticularAction = IAction | 'settle';
|
|
7
7
|
export declare const actions: string[];
|
|
@@ -63,7 +63,7 @@ exports.desc = {
|
|
|
63
63
|
},
|
|
64
64
|
iState: {
|
|
65
65
|
type: "enum",
|
|
66
|
-
enumeration: ["
|
|
66
|
+
enumeration: ["unpaid", "timeout", "cancelled", "paying", "partiallyPaid", "paid", "refunding", "partiallyRefunded", "refunded"]
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
actionType: "crud",
|
|
@@ -14,7 +14,7 @@ export declare const mergedProjection: {
|
|
|
14
14
|
type?: number | undefined;
|
|
15
15
|
systemId?: number | undefined;
|
|
16
16
|
system?: import("../oak-app-domain/System/Schema").Projection | undefined;
|
|
17
|
-
config?: number | import("oak-domain/lib/types").JsonProjection<import("../oak-app-domain/Application/Schema").
|
|
17
|
+
config?: number | import("oak-domain/lib/types").JsonProjection<import("../oak-app-domain/Application/Schema").WechatMpConfig | import("../oak-app-domain/Application/Schema").WebConfig | import("../oak-app-domain/Application/Schema").WechatPublicConfig | import("../oak-app-domain/Application/Schema").NativeConfig> | undefined;
|
|
18
18
|
style?: number | import("oak-domain/lib/types").JsonProjection<import("oak-general-business/lib/types/Style").Style> | undefined;
|
|
19
19
|
domainId?: number | undefined;
|
|
20
20
|
domain?: import("../oak-app-domain/Domain/Schema").Projection | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oak-pay-business",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"files": [
|
|
6
6
|
"lib/**/*",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"classnames": "^2.3.1",
|
|
31
31
|
"dayjs": "^1.11.5",
|
|
32
|
-
"oak-domain": "~5.0.
|
|
33
|
-
"oak-frontend-base": "~5.3.
|
|
34
|
-
"oak-general-business": "~5.2.
|
|
32
|
+
"oak-domain": "~5.0.19",
|
|
33
|
+
"oak-frontend-base": "~5.3.4",
|
|
34
|
+
"oak-general-business": "~5.2.11",
|
|
35
35
|
"wechat-pay-nodejs": "^0.2.3"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
package/src/entities/Order.ts
CHANGED
|
@@ -28,7 +28,7 @@ export interface Schema extends EntityShape {
|
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
export type IAction = 'startPaying' | 'payAll' | 'payPartially' | 'payNone' | 'timeout' | 'cancel' | 'startRefunding' | 'refundAll' | 'refundPartially' | 'refundNone';
|
|
31
|
-
export type IState = '
|
|
31
|
+
export type IState = 'unpaid' | 'timeout' | 'cancelled' | 'paying' | 'partiallyPaid' | 'paid' | 'refunding' | 'partiallyRefunded' | 'refunded';
|
|
32
32
|
|
|
33
33
|
export const IActionDef: ActionDef<IAction, IState> = {
|
|
34
34
|
stm: {
|