zova-module-a-pay 5.0.9 → 5.0.11
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/dist/.metadata/index.d.ts +10 -10
- package/dist/.metadata/this.d.ts +1 -1
- package/dist/api/openapi/index.d.ts +3 -3
- package/dist/api/openapi/schemas.d.ts +1 -1
- package/dist/api/payPaymentSession.d.ts +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/dist/model/paymentSession.d.ts.map +1 -1
- package/dist/service/paymentCoordinator.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -2
- package/src/.metadata/index.ts +10 -10
- package/src/.metadata/this.ts +1 -1
- package/src/api/openapi/index.ts +3 -3
- package/src/api/openapi/schemas.ts +1 -1
- package/src/api/payPaymentSession.ts +2 -2
- package/src/apiSchema/payPaymentSession.ts +1 -1
- package/src/index.ts +3 -3
- package/src/model/paymentSession.ts +11 -1
- package/src/service/paymentCoordinator.ts +1 -1
- package/src/types/index.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** model: begin */
|
|
2
|
-
export * from '../model/paymentSession.
|
|
3
|
-
import { IModelOptionsPaymentSession } from '../model/paymentSession.
|
|
2
|
+
export * from '../model/paymentSession.ts';
|
|
3
|
+
import { IModelOptionsPaymentSession } from '../model/paymentSession.ts';
|
|
4
4
|
import 'zova-module-a-model';
|
|
5
5
|
declare module 'zova-module-a-model' {
|
|
6
6
|
interface IModelRecord {
|
|
@@ -18,7 +18,7 @@ declare module 'zova-module-a-pay' {
|
|
|
18
18
|
}
|
|
19
19
|
/** model: end */
|
|
20
20
|
/** model: begin */
|
|
21
|
-
import type { ModelPaymentSession } from '../model/paymentSession.
|
|
21
|
+
import type { ModelPaymentSession } from '../model/paymentSession.ts';
|
|
22
22
|
import 'zova';
|
|
23
23
|
declare module 'zova' {
|
|
24
24
|
interface IBeanRecordGeneral {
|
|
@@ -27,7 +27,7 @@ declare module 'zova' {
|
|
|
27
27
|
}
|
|
28
28
|
/** model: end */
|
|
29
29
|
/** api: begin */
|
|
30
|
-
export * from '../api/payPaymentSession.
|
|
30
|
+
export * from '../api/payPaymentSession.ts';
|
|
31
31
|
import 'zova';
|
|
32
32
|
declare module 'zova' {
|
|
33
33
|
}
|
|
@@ -41,7 +41,7 @@ declare module 'zova-module-a-pay' {
|
|
|
41
41
|
}
|
|
42
42
|
/** api: end */
|
|
43
43
|
/** api: begin */
|
|
44
|
-
import type { ApiPayPaymentSession } from '../api/payPaymentSession.
|
|
44
|
+
import type { ApiPayPaymentSession } from '../api/payPaymentSession.ts';
|
|
45
45
|
export interface IModuleApi {
|
|
46
46
|
'payPaymentSession': ApiPayPaymentSession;
|
|
47
47
|
}
|
|
@@ -55,10 +55,10 @@ declare module 'zova' {
|
|
|
55
55
|
}
|
|
56
56
|
/** api: end */
|
|
57
57
|
/** openapi: begin */
|
|
58
|
-
export * from '../api/openapi/index.
|
|
58
|
+
export * from '../api/openapi/index.ts';
|
|
59
59
|
/** openapi: end */
|
|
60
60
|
/** apiSchema: begin */
|
|
61
|
-
export * from '../apiSchema/payPaymentSession.
|
|
61
|
+
export * from '../apiSchema/payPaymentSession.ts';
|
|
62
62
|
import 'zova';
|
|
63
63
|
declare module 'zova' {
|
|
64
64
|
}
|
|
@@ -72,7 +72,7 @@ declare module 'zova-module-a-pay' {
|
|
|
72
72
|
}
|
|
73
73
|
/** apiSchema: end */
|
|
74
74
|
/** apiSchema: begin */
|
|
75
|
-
import type { ApiSchemaPayPaymentSession } from '../apiSchema/payPaymentSession.
|
|
75
|
+
import type { ApiSchemaPayPaymentSession } from '../apiSchema/payPaymentSession.ts';
|
|
76
76
|
export interface IModuleApiSchema {
|
|
77
77
|
'payPaymentSession': ApiSchemaPayPaymentSession;
|
|
78
78
|
}
|
|
@@ -86,7 +86,7 @@ declare module 'zova' {
|
|
|
86
86
|
}
|
|
87
87
|
/** apiSchema: end */
|
|
88
88
|
/** service: begin */
|
|
89
|
-
export * from '../service/paymentCoordinator.
|
|
89
|
+
export * from '../service/paymentCoordinator.ts';
|
|
90
90
|
import 'zova-module-a-bean';
|
|
91
91
|
declare module 'zova-module-a-bean' {
|
|
92
92
|
interface IServiceRecord {
|
|
@@ -103,7 +103,7 @@ declare module 'zova-module-a-pay' {
|
|
|
103
103
|
}
|
|
104
104
|
/** service: end */
|
|
105
105
|
/** service: begin */
|
|
106
|
-
import type { ServicePaymentCoordinator } from '../service/paymentCoordinator.
|
|
106
|
+
import type { ServicePaymentCoordinator } from '../service/paymentCoordinator.ts';
|
|
107
107
|
import 'zova';
|
|
108
108
|
declare module 'zova' {
|
|
109
109
|
interface IBeanRecordGeneral {
|
package/dist/.metadata/this.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './baseURL.
|
|
2
|
-
export * from './schemas.
|
|
3
|
-
export * from './types.
|
|
1
|
+
export * from './baseURL.ts';
|
|
2
|
+
export * from './schemas.ts';
|
|
3
|
+
export * from './types.ts';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { components } from './types.
|
|
1
|
+
import type { components } from './types.ts';
|
|
2
2
|
export type ApiSchemaTestVonaDtoPostCreate = components['schemas']['test-vona.dto.postCreate'];
|
|
3
3
|
export type ApiSchemaTestVonaDtoPostCreatePartial = Partial<ApiSchemaTestVonaDtoPostCreate>;
|
|
4
4
|
export type ApiSchemaTestVonaDtoUserCreate = components['schemas']['test-vona.dto.userCreate'];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IApiActionOptions } from 'zova-module-a-api';
|
|
2
2
|
import { BeanApiBase } from 'zova-module-a-api';
|
|
3
|
-
import type { paths } from './openapi/index.
|
|
3
|
+
import type { paths } from './openapi/index.ts';
|
|
4
4
|
/** PayPaymentSession_start */
|
|
5
5
|
export declare const ApiApiPayPaymentSessionstartPath = "/api/pay/payment-session/{id}/start";
|
|
6
6
|
export type ApiApiPayPaymentSessionstartPath = '/api/pay/payment-session/{id}/start';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './lib/index.
|
|
2
|
-
export * from './types/index.
|
|
3
|
-
export * from './.metadata/index.
|
|
1
|
+
export * from './lib/index.ts';
|
|
2
|
+
export * from './types/index.ts';
|
|
3
|
+
export * from './.metadata/index.ts';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -32,7 +32,15 @@ var ModelPaymentSession = (_dec$4 = Model(), _dec2$4 = BeanInfo({ module: "a-pay
|
|
|
32
32
|
return this.$useMutationData({
|
|
33
33
|
mutationKey: ["start", id],
|
|
34
34
|
mutationFn: async () => {
|
|
35
|
-
|
|
35
|
+
this.$logger.debug("payment.session.start.request started");
|
|
36
|
+
try {
|
|
37
|
+
const session = await this.scope.api.payPaymentSession.start(void 0, { params: { id } });
|
|
38
|
+
this.$logger.debug("payment.session.start.request completed");
|
|
39
|
+
return session;
|
|
40
|
+
} catch (error) {
|
|
41
|
+
this.$logger.debug("payment.session.start.request failed");
|
|
42
|
+
throw error;
|
|
43
|
+
}
|
|
36
44
|
},
|
|
37
45
|
onSuccess: async () => {
|
|
38
46
|
await this.$invalidateQueries({ queryKey: ["view", id] });
|
|
@@ -97,8 +105,6 @@ var ServicePaymentCoordinator = (_dec$1 = Service(), _dec2$1 = BeanInfo({ module
|
|
|
97
105
|
}) || _class$1) || _class$1);
|
|
98
106
|
//#endregion
|
|
99
107
|
//#region src/.metadata/index.ts
|
|
100
|
-
/** service: end */
|
|
101
|
-
/** scope: begin */
|
|
102
108
|
var _dec;
|
|
103
109
|
var _dec2;
|
|
104
110
|
var _class;
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../src/model/paymentSession.ts","../src/api/openapi/baseURL.ts","../src/api/payPaymentSession.ts","../src/apiSchema/payPaymentSession.ts","../src/service/paymentCoordinator.ts","../src/.metadata/index.ts"],"sourcesContent":["var _dec, _dec2, _class;\nimport { \"BeanInfo\" as __z_BeanInfo } from \"zova\";\nimport { BeanModelBase, Model } from 'zova-module-a-model';\nexport let ModelPaymentSession = (_dec = Model(), _dec2 = __z_BeanInfo({\n module: \"a-pay\"\n}), _dec(_class = _dec2(_class = class ModelPaymentSession extends BeanModelBase {\n view(id) {\n if (this.$ssr.cookieDisabledOnServer) return;\n if (!this.$passport.isAuthenticated) return;\n return this.$useStateData({\n queryKey: ['view', id],\n queryFn: async () => {\n return await this.scope.api.payPaymentSession.view({\n params: {\n id\n }\n });\n }\n });\n }\n reconcile(id) {\n return this.$useMutationData({\n mutationKey: ['reconcile', id],\n mutationFn: async () => {\n return await this.scope.api.payPaymentSession.reconcile(undefined, {\n params: {\n id\n }\n });\n },\n onSuccess: async () => {\n await this.$invalidateQueries({\n queryKey: ['view', id]\n });\n }\n });\n }\n start(id) {\n return this.$useMutationData({\n mutationKey: ['start', id],\n mutationFn: async () => {\n
|
|
1
|
+
{"version":3,"file":"index.js","names":["_dec","_dec2","_class","__z_BeanInfo","_dec","_dec2","_class","__z_BeanInfo","_dec","_dec2","_class","__z_BeanInfo","_dec","_dec2","_class","__z_BeanInfo","__z_BeanInfo"],"sources":["../src/model/paymentSession.ts","../src/api/openapi/baseURL.ts","../src/api/payPaymentSession.ts","../src/apiSchema/payPaymentSession.ts","../src/service/paymentCoordinator.ts","../src/.metadata/index.ts"],"sourcesContent":["var _dec, _dec2, _class;\nimport { \"BeanInfo\" as __z_BeanInfo } from \"zova\";\nimport { BeanModelBase, Model } from 'zova-module-a-model';\nexport let ModelPaymentSession = (_dec = Model(), _dec2 = __z_BeanInfo({\n module: \"a-pay\"\n}), _dec(_class = _dec2(_class = class ModelPaymentSession extends BeanModelBase {\n view(id) {\n if (this.$ssr.cookieDisabledOnServer) return;\n if (!this.$passport.isAuthenticated) return;\n return this.$useStateData({\n queryKey: ['view', id],\n queryFn: async () => {\n return await this.scope.api.payPaymentSession.view({\n params: {\n id\n }\n });\n }\n });\n }\n reconcile(id) {\n return this.$useMutationData({\n mutationKey: ['reconcile', id],\n mutationFn: async () => {\n return await this.scope.api.payPaymentSession.reconcile(undefined, {\n params: {\n id\n }\n });\n },\n onSuccess: async () => {\n await this.$invalidateQueries({\n queryKey: ['view', id]\n });\n }\n });\n }\n start(id) {\n return this.$useMutationData({\n mutationKey: ['start', id],\n mutationFn: async () => {\n this.$logger.debug('payment.session.start.request started');\n try {\n const session = await this.scope.api.payPaymentSession.start(undefined, {\n params: {\n id\n }\n });\n this.$logger.debug('payment.session.start.request completed');\n return session;\n } catch (error) {\n this.$logger.debug('payment.session.start.request failed');\n throw error;\n }\n },\n onSuccess: async () => {\n await this.$invalidateQueries({\n queryKey: ['view', id]\n });\n }\n });\n }\n}) || _class) || _class);","export const OpenApiBaseURL = sys => {\n return sys.util.getOpenApiBaseURL('OPENAPI_BASE_URL_A_PAY');\n};","var _dec, _dec2, _class;\nimport { \"BeanInfo\" as __z_BeanInfo } from \"zova\";\nimport { Api, BeanApiBase } from 'zova-module-a-api';\nimport { OpenApiBaseURL } from './openapi/index.ts';\n\n/** PayPaymentSession_start */\nexport const ApiApiPayPaymentSessionstartPath = '/api/pay/payment-session/{id}/start';\n/** PayPaymentSession_reconcile */\nexport const ApiApiPayPaymentSessionreconcilePath = '/api/pay/payment-session/{id}/reconcile';\n/** PayPaymentSession_view */\nexport const ApiApiPayPaymentSessionviewPath = '/api/pay/payment-session/{id}';\nexport let ApiPayPaymentSession = (_dec = Api(), _dec2 = __z_BeanInfo({\n module: \"a-pay\"\n}), _dec(_class = _dec2(_class = class ApiPayPaymentSession extends BeanApiBase {\n start(body, options) {\n return this.$fetch.post(this.$pathTranslate(ApiApiPayPaymentSessionstartPath, options.params), body, this.$configPrepare(OpenApiBaseURL(this.sys), options, true));\n }\n reconcile(body, options) {\n return this.$fetch.post(this.$pathTranslate(ApiApiPayPaymentSessionreconcilePath, options.params), body, this.$configPrepare(OpenApiBaseURL(this.sys), options, true));\n }\n view(options) {\n return this.$fetch.get(this.$pathTranslate(ApiApiPayPaymentSessionviewPath, options.params), this.$configPrepare(OpenApiBaseURL(this.sys), options, true));\n }\n}) || _class) || _class);","var _dec, _dec2, _class;\nimport { \"BeanInfo\" as __z_BeanInfo } from \"zova\";\nimport { BeanBase } from 'zova';\nimport { ApiSchema } from 'zova-module-a-api';\nimport { ApiApiPayPaymentSessionstartPath, ApiApiPayPaymentSessionreconcilePath, ApiApiPayPaymentSessionviewPath } from '../api/payPaymentSession.ts';\nexport let ApiSchemaPayPaymentSession = (_dec = ApiSchema(), _dec2 = __z_BeanInfo({\n module: \"a-pay\"\n}), _dec(_class = _dec2(_class = class ApiSchemaPayPaymentSession extends BeanBase {\n start(options) {\n return this.$sdk.createApiSchemas(ApiApiPayPaymentSessionstartPath, 'post', options);\n }\n reconcile(options) {\n return this.$sdk.createApiSchemas(ApiApiPayPaymentSessionreconcilePath, 'post', options);\n }\n view(options) {\n return this.$sdk.createApiSchemas(ApiApiPayPaymentSessionviewPath, 'get', options);\n }\n}) || _class) || _class);","var _dec, _dec2, _class;\nimport { \"BeanInfo\" as __z_BeanInfo } from \"zova\";\nimport { BeanBase } from 'zova';\nimport { Service } from 'zova-module-a-bean';\nexport let ServicePaymentCoordinator = (_dec = Service(), _dec2 = __z_BeanInfo({\n module: \"a-pay\"\n}), _dec(_class = _dec2(_class = class ServicePaymentCoordinator extends BeanBase {\n async execute(action) {\n if (action.kind !== 'redirect') return;\n if (!process.env.CLIENT) return;\n window.location.assign(action.url);\n }\n}) || _class) || _class);","var _dec, _dec2, _class;\nimport { \"BeanInfo\" as __z_BeanInfo } from \"zova\";\n// eslint-disable\n/** model: begin */\nexport * from '../model/paymentSession.ts';\nimport 'zova-module-a-model';\n/** model: end */\n/** model: begin */\n\nimport 'zova';\n/** model: end */\n/** api: begin */\nexport * from '../api/payPaymentSession.ts';\nimport 'zova';\n\n/** api: end */\n/** api: begin */\n\n/** api: end */\n/** api: begin */\n\nimport 'zova';\n/** api: end */\n/** openapi: begin */\nexport * from '../api/openapi/index.ts';\n/** openapi: end */\n/** apiSchema: begin */\nexport * from '../apiSchema/payPaymentSession.ts';\nimport 'zova';\n\n/** apiSchema: end */\n/** apiSchema: begin */\n\n/** apiSchema: end */\n/** apiSchema: begin */\n\nimport 'zova';\n/** apiSchema: end */\n/** service: begin */\nexport * from '../service/paymentCoordinator.ts';\nimport 'zova-module-a-bean';\n/** service: end */\n/** service: begin */\n\nimport 'zova';\n/** service: end */\n/** scope: begin */\nimport { BeanScopeBase } from 'zova';\nimport { Scope } from 'zova-module-a-bean';\nexport let ScopeModuleAPay = (_dec = Scope(), _dec2 = __z_BeanInfo({\n module: \"a-pay\"\n}), _dec(_class = _dec2(_class = class ScopeModuleAPay extends BeanScopeBase {}) || _class) || _class);\nimport 'zova';\n\n/** scope: end */"],"mappings":";;;;;AAAA,IAAIA;AAAMC,IAAAA;AAAOC,IAAAA;AAGjB,IAAW,uBAAuB,SAAO,MAAM,GAAG,UAAQC,SAAa,EACrE,QAAQ,QACV,CAAC,GAAGH,OAAK,WAASC,QAAM,WAAS,MAAM,4BAA4B,cAAc;CAC/E,KAAK,IAAI;EACP,IAAI,KAAK,KAAK,wBAAwB;EACtC,IAAI,CAAC,KAAK,UAAU,iBAAiB;EACrC,OAAO,KAAK,cAAc;GACxB,UAAU,CAAC,QAAQ,EAAE;GACrB,SAAS,YAAY;IACnB,OAAO,MAAM,KAAK,MAAM,IAAI,kBAAkB,KAAK,EACjD,QAAQ,EACN,GACF,EACF,CAAC;GACH;EACF,CAAC;CACH;CACA,UAAU,IAAI;EACZ,OAAO,KAAK,iBAAiB;GAC3B,aAAa,CAAC,aAAa,EAAE;GAC7B,YAAY,YAAY;IACtB,OAAO,MAAM,KAAK,MAAM,IAAI,kBAAkB,UAAU,KAAA,GAAW,EACjE,QAAQ,EACN,GACF,EACF,CAAC;GACH;GACA,WA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":"","sources":["../../src/model/paymentSession.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAElE,OAAO,EAAE,aAAa,EAAS,MAAM,qBAAqB,CAAC;AAE3D,MAAM,WAAW,2BAA4B,SAAQ,sBAAsB;CAAG;AAE9E,qBACa,mBAAoB,SAAQ,aAAa;IACpD,IAAI,CAAC,EAAE,EAAE,aAAa;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"paymentSession.d.ts","sourceRoot":"","sources":["../../src/model/paymentSession.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAElE,OAAO,EAAE,aAAa,EAAS,MAAM,qBAAqB,CAAC;AAE3D,MAAM,WAAW,2BAA4B,SAAQ,sBAAsB;CAAG;AAE9E,qBACa,mBAAoB,SAAQ,aAAa;IACpD,IAAI,CAAC,EAAE,EAAE,aAAa;;;;;;;;;;6BA6Ci+9C,CAAC;;;;;6BAA8N,CAAC;;;;;;;IAlCvt+C,SAAS,CAAC,EAAE,EAAE,aAAa;;;;;;;;;;6BAkC499C,CAAC;;;;;6BAA8N,CAAC;;;;;;;IAtBvt+C,KAAK,CAAC,EAAE,EAAE,aAAa;;;;;;;;;;6BAsBg+9C,CAAC;;;;;6BAA8N,CAAC;;;;;;;CADxt+C"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BeanBase } from 'zova';
|
|
2
|
-
import type { TypePaymentNextAction } from '../types/payment.
|
|
2
|
+
import type { TypePaymentNextAction } from '../types/payment.ts';
|
|
3
3
|
export declare class ServicePaymentCoordinator extends BeanBase {
|
|
4
4
|
execute(action: TypePaymentNextAction): Promise<void>;
|
|
5
5
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './payment.
|
|
1
|
+
export * from './payment.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zova-module-a-pay",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.11",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Zova Module"
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {},
|
|
33
33
|
"title": "a-pay",
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "c94b659a5ab1819ad7714ddacb6875c4f8cbc022"
|
|
35
35
|
}
|
package/src/.metadata/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// eslint-disable
|
|
2
2
|
/** model: begin */
|
|
3
|
-
export * from '../model/paymentSession.
|
|
4
|
-
import { IModelOptionsPaymentSession } from '../model/paymentSession.
|
|
3
|
+
export * from '../model/paymentSession.ts';
|
|
4
|
+
import { IModelOptionsPaymentSession } from '../model/paymentSession.ts';
|
|
5
5
|
import 'zova-module-a-model';
|
|
6
6
|
declare module 'zova-module-a-model' {
|
|
7
7
|
|
|
@@ -26,7 +26,7 @@ declare module 'zova-module-a-pay' {
|
|
|
26
26
|
}
|
|
27
27
|
/** model: end */
|
|
28
28
|
/** model: begin */
|
|
29
|
-
import type { ModelPaymentSession } from '../model/paymentSession.
|
|
29
|
+
import type { ModelPaymentSession } from '../model/paymentSession.ts';
|
|
30
30
|
import 'zova';
|
|
31
31
|
declare module 'zova' {
|
|
32
32
|
export interface IBeanRecordGeneral {
|
|
@@ -35,7 +35,7 @@ declare module 'zova' {
|
|
|
35
35
|
}
|
|
36
36
|
/** model: end */
|
|
37
37
|
/** api: begin */
|
|
38
|
-
export * from '../api/payPaymentSession.
|
|
38
|
+
export * from '../api/payPaymentSession.ts';
|
|
39
39
|
|
|
40
40
|
import 'zova';
|
|
41
41
|
declare module 'zova' {
|
|
@@ -57,7 +57,7 @@ declare module 'zova-module-a-pay' {
|
|
|
57
57
|
}
|
|
58
58
|
/** api: end */
|
|
59
59
|
/** api: begin */
|
|
60
|
-
import type { ApiPayPaymentSession } from '../api/payPaymentSession.
|
|
60
|
+
import type { ApiPayPaymentSession } from '../api/payPaymentSession.ts';
|
|
61
61
|
export interface IModuleApi {
|
|
62
62
|
'payPaymentSession': ApiPayPaymentSession;
|
|
63
63
|
}
|
|
@@ -72,10 +72,10 @@ declare module 'zova' {
|
|
|
72
72
|
}
|
|
73
73
|
/** api: end */
|
|
74
74
|
/** openapi: begin */
|
|
75
|
-
export * from '../api/openapi/index.
|
|
75
|
+
export * from '../api/openapi/index.ts';
|
|
76
76
|
/** openapi: end */
|
|
77
77
|
/** apiSchema: begin */
|
|
78
|
-
export * from '../apiSchema/payPaymentSession.
|
|
78
|
+
export * from '../apiSchema/payPaymentSession.ts';
|
|
79
79
|
|
|
80
80
|
import 'zova';
|
|
81
81
|
declare module 'zova' {
|
|
@@ -97,7 +97,7 @@ declare module 'zova-module-a-pay' {
|
|
|
97
97
|
}
|
|
98
98
|
/** apiSchema: end */
|
|
99
99
|
/** apiSchema: begin */
|
|
100
|
-
import type { ApiSchemaPayPaymentSession } from '../apiSchema/payPaymentSession.
|
|
100
|
+
import type { ApiSchemaPayPaymentSession } from '../apiSchema/payPaymentSession.ts';
|
|
101
101
|
export interface IModuleApiSchema {
|
|
102
102
|
'payPaymentSession': ApiSchemaPayPaymentSession;
|
|
103
103
|
}
|
|
@@ -112,7 +112,7 @@ declare module 'zova' {
|
|
|
112
112
|
}
|
|
113
113
|
/** apiSchema: end */
|
|
114
114
|
/** service: begin */
|
|
115
|
-
export * from '../service/paymentCoordinator.
|
|
115
|
+
export * from '../service/paymentCoordinator.ts';
|
|
116
116
|
|
|
117
117
|
import 'zova-module-a-bean';
|
|
118
118
|
declare module 'zova-module-a-bean' {
|
|
@@ -138,7 +138,7 @@ declare module 'zova-module-a-pay' {
|
|
|
138
138
|
}
|
|
139
139
|
/** service: end */
|
|
140
140
|
/** service: begin */
|
|
141
|
-
import type { ServicePaymentCoordinator } from '../service/paymentCoordinator.
|
|
141
|
+
import type { ServicePaymentCoordinator } from '../service/paymentCoordinator.ts';
|
|
142
142
|
import 'zova';
|
|
143
143
|
declare module 'zova' {
|
|
144
144
|
export interface IBeanRecordGeneral {
|
package/src/.metadata/this.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const __ThisModule__ = 'a-pay';
|
|
2
|
-
export { ScopeModuleAPay as ScopeModule } from './index.
|
|
2
|
+
export { ScopeModuleAPay as ScopeModule } from './index.ts';
|
package/src/api/openapi/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './baseURL.
|
|
2
|
-
export * from './schemas.
|
|
3
|
-
export * from './types.
|
|
1
|
+
export * from './baseURL.ts';
|
|
2
|
+
export * from './schemas.ts';
|
|
3
|
+
export * from './types.ts';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// eslint-disable
|
|
2
|
-
import type { components } from './types.
|
|
2
|
+
import type { components } from './types.ts';
|
|
3
3
|
export type ApiSchemaTestVonaDtoPostCreate = components['schemas']['test-vona.dto.postCreate'];
|
|
4
4
|
export type ApiSchemaTestVonaDtoPostCreatePartial = Partial<ApiSchemaTestVonaDtoPostCreate>;
|
|
5
5
|
export type ApiSchemaTestVonaDtoUserCreate = components['schemas']['test-vona.dto.userCreate'];
|
|
@@ -2,9 +2,9 @@ import type { IApiActionOptions } from 'zova-module-a-api';
|
|
|
2
2
|
|
|
3
3
|
import { Api, BeanApiBase } from 'zova-module-a-api';
|
|
4
4
|
|
|
5
|
-
import type { paths } from './openapi/index.
|
|
5
|
+
import type { paths } from './openapi/index.ts';
|
|
6
6
|
|
|
7
|
-
import { OpenApiBaseURL } from './openapi/index.
|
|
7
|
+
import { OpenApiBaseURL } from './openapi/index.ts';
|
|
8
8
|
|
|
9
9
|
/** PayPaymentSession_start */
|
|
10
10
|
export const ApiApiPayPaymentSessionstartPath = '/api/pay/payment-session/{id}/start';
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
ApiApiPayPaymentSessionstartPath,
|
|
8
8
|
ApiApiPayPaymentSessionreconcilePath,
|
|
9
9
|
ApiApiPayPaymentSessionviewPath,
|
|
10
|
-
} from '../api/payPaymentSession.
|
|
10
|
+
} from '../api/payPaymentSession.ts';
|
|
11
11
|
|
|
12
12
|
@ApiSchema()
|
|
13
13
|
export class ApiSchemaPayPaymentSession extends BeanBase {
|
package/src/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './lib/index.
|
|
2
|
-
export * from './types/index.
|
|
3
|
-
export * from './.metadata/index.
|
|
1
|
+
export * from './lib/index.ts';
|
|
2
|
+
export * from './types/index.ts';
|
|
3
|
+
export * from './.metadata/index.ts';
|
|
@@ -34,7 +34,17 @@ export class ModelPaymentSession extends BeanModelBase {
|
|
|
34
34
|
return this.$useMutationData({
|
|
35
35
|
mutationKey: ['start', id],
|
|
36
36
|
mutationFn: async () => {
|
|
37
|
-
|
|
37
|
+
this.$logger.debug('payment.session.start.request started');
|
|
38
|
+
try {
|
|
39
|
+
const session = await this.scope.api.payPaymentSession.start(undefined, {
|
|
40
|
+
params: { id },
|
|
41
|
+
});
|
|
42
|
+
this.$logger.debug('payment.session.start.request completed');
|
|
43
|
+
return session;
|
|
44
|
+
} catch (error) {
|
|
45
|
+
this.$logger.debug('payment.session.start.request failed');
|
|
46
|
+
throw error;
|
|
47
|
+
}
|
|
38
48
|
},
|
|
39
49
|
onSuccess: async () => {
|
|
40
50
|
await this.$invalidateQueries({ queryKey: ['view', id] });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BeanBase } from 'zova';
|
|
2
2
|
import { Service } from 'zova-module-a-bean';
|
|
3
3
|
|
|
4
|
-
import type { TypePaymentNextAction } from '../types/payment.
|
|
4
|
+
import type { TypePaymentNextAction } from '../types/payment.ts';
|
|
5
5
|
|
|
6
6
|
@Service()
|
|
7
7
|
export class ServicePaymentCoordinator extends BeanBase {
|
package/src/types/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './payment.
|
|
1
|
+
export * from './payment.ts';
|