zova-module-a-pay 5.0.4 → 5.0.6
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/cli/openapi.config.ts +1 -1
- package/dist/.metadata/index.d.ts +16 -16
- package/dist/.metadata/index.d.ts.map +1 -1
- package/dist/api/openapi/schemas.d.ts +62 -36
- package/dist/api/openapi/schemas.d.ts.map +1 -1
- package/dist/api/openapi/types.d.ts +1368 -1056
- package/dist/api/openapi/types.d.ts.map +1 -1
- package/dist/api/{paymentSession.d.ts → payPaymentSession.d.ts} +23 -23
- package/dist/api/payPaymentSession.d.ts.map +1 -0
- package/dist/apiSchema/{paymentSession.d.ts → payPaymentSession.d.ts} +2 -2
- package/dist/apiSchema/payPaymentSession.d.ts.map +1 -0
- package/dist/index.js +14 -14
- package/dist/index.js.map +1 -1
- package/dist/model/paymentSession.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/.metadata/index.ts +43 -43
- package/src/api/openapi/schemas.ts +120 -69
- package/src/api/openapi/types.ts +1339 -1016
- package/src/api/payPaymentSession.ts +74 -0
- package/src/apiSchema/payPaymentSession.ts +25 -0
- package/src/model/paymentSession.ts +3 -3
- package/dist/api/paymentSession.d.ts.map +0 -1
- package/dist/apiSchema/paymentSession.d.ts.map +0 -1
- package/src/api/paymentSession.ts +0 -74
- package/src/apiSchema/paymentSession.ts +0 -25
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import type { IApiActionOptions } from 'zova-module-a-api';
|
|
2
2
|
import { BeanApiBase } from 'zova-module-a-api';
|
|
3
3
|
import type { paths } from './openapi/index.js';
|
|
4
|
-
/**
|
|
5
|
-
export declare const
|
|
6
|
-
export type
|
|
7
|
-
export type
|
|
8
|
-
export type
|
|
9
|
-
export type
|
|
10
|
-
/**
|
|
11
|
-
export declare const
|
|
12
|
-
export type
|
|
13
|
-
export type
|
|
14
|
-
export type
|
|
15
|
-
export type
|
|
16
|
-
/**
|
|
17
|
-
export declare const
|
|
18
|
-
export type
|
|
19
|
-
export type
|
|
20
|
-
export type
|
|
21
|
-
export type
|
|
22
|
-
export declare class
|
|
4
|
+
/** PayPaymentSession_start */
|
|
5
|
+
export declare const ApiApiPayPaymentSessionstartPath = "/api/pay/payment-session/{id}/start";
|
|
6
|
+
export type ApiApiPayPaymentSessionstartPath = '/api/pay/payment-session/{id}/start';
|
|
7
|
+
export type ApiApiPayPaymentSessionstartMethod = 'post';
|
|
8
|
+
export type ApiApiPayPaymentSessionstartRequestParams = paths[ApiApiPayPaymentSessionstartPath][ApiApiPayPaymentSessionstartMethod]['parameters']['path'];
|
|
9
|
+
export type ApiApiPayPaymentSessionstartResponseBody = paths[ApiApiPayPaymentSessionstartPath][ApiApiPayPaymentSessionstartMethod]['responses']['200']['content']['application/json']['data'];
|
|
10
|
+
/** PayPaymentSession_reconcile */
|
|
11
|
+
export declare const ApiApiPayPaymentSessionreconcilePath = "/api/pay/payment-session/{id}/reconcile";
|
|
12
|
+
export type ApiApiPayPaymentSessionreconcilePath = '/api/pay/payment-session/{id}/reconcile';
|
|
13
|
+
export type ApiApiPayPaymentSessionreconcileMethod = 'post';
|
|
14
|
+
export type ApiApiPayPaymentSessionreconcileRequestParams = paths[ApiApiPayPaymentSessionreconcilePath][ApiApiPayPaymentSessionreconcileMethod]['parameters']['path'];
|
|
15
|
+
export type ApiApiPayPaymentSessionreconcileResponseBody = paths[ApiApiPayPaymentSessionreconcilePath][ApiApiPayPaymentSessionreconcileMethod]['responses']['200']['content']['application/json']['data'];
|
|
16
|
+
/** PayPaymentSession_view */
|
|
17
|
+
export declare const ApiApiPayPaymentSessionviewPath = "/api/pay/payment-session/{id}";
|
|
18
|
+
export type ApiApiPayPaymentSessionviewPath = '/api/pay/payment-session/{id}';
|
|
19
|
+
export type ApiApiPayPaymentSessionviewMethod = 'get';
|
|
20
|
+
export type ApiApiPayPaymentSessionviewRequestParams = paths[ApiApiPayPaymentSessionviewPath][ApiApiPayPaymentSessionviewMethod]['parameters']['path'];
|
|
21
|
+
export type ApiApiPayPaymentSessionviewResponseBody = paths[ApiApiPayPaymentSessionviewPath][ApiApiPayPaymentSessionviewMethod]['responses']['200']['content']['application/json']['data'];
|
|
22
|
+
export declare class ApiPayPaymentSession extends BeanApiBase {
|
|
23
23
|
start(body: undefined, options: {
|
|
24
|
-
params:
|
|
24
|
+
params: ApiApiPayPaymentSessionstartRequestParams;
|
|
25
25
|
} & IApiActionOptions): Promise<{
|
|
26
26
|
id: number | string;
|
|
27
27
|
state: "created" | "starting" | "requires_action" | "processing" | "succeeded" | "failed" | "cancelled" | "expired";
|
|
@@ -45,7 +45,7 @@ export declare class ApiPaymentSession extends BeanApiBase {
|
|
|
45
45
|
currency: string;
|
|
46
46
|
}>;
|
|
47
47
|
reconcile(body: undefined, options: {
|
|
48
|
-
params:
|
|
48
|
+
params: ApiApiPayPaymentSessionreconcileRequestParams;
|
|
49
49
|
} & IApiActionOptions): Promise<{
|
|
50
50
|
id: number | string;
|
|
51
51
|
state: "created" | "starting" | "requires_action" | "processing" | "succeeded" | "failed" | "cancelled" | "expired";
|
|
@@ -69,7 +69,7 @@ export declare class ApiPaymentSession extends BeanApiBase {
|
|
|
69
69
|
currency: string;
|
|
70
70
|
}>;
|
|
71
71
|
view(options: {
|
|
72
|
-
params:
|
|
72
|
+
params: ApiApiPayPaymentSessionviewRequestParams;
|
|
73
73
|
} & IApiActionOptions): Promise<{
|
|
74
74
|
id: number | string;
|
|
75
75
|
state: "created" | "starting" | "requires_action" | "processing" | "succeeded" | "failed" | "cancelled" | "expired";
|
|
@@ -93,4 +93,4 @@ export declare class ApiPaymentSession extends BeanApiBase {
|
|
|
93
93
|
currency: string;
|
|
94
94
|
}>;
|
|
95
95
|
}
|
|
96
|
-
//# sourceMappingURL=
|
|
96
|
+
//# sourceMappingURL=payPaymentSession.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payPaymentSession.d.ts","sourceRoot":"","sources":["../../src/api/payPaymentSession.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,CAAC;AACtD,MAAM,MAAM,wCAAwC,GAClD,KAAK,CAAC,+BAA+B,CAAC,CAAC,iCAAiC,CAAC,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAClG,MAAM,MAAM,uCAAuC,GACjD,KAAK,CAAC,+BAA+B,CAAC,CAAC,iCAAiC,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvI,qBACa,oBAAqB,SAAQ,WAAW;IACnD,KAAK,CACH,IAAI,EAAE,SAAS,EACf,OAAO,EAAE;QACP,MAAM,EAAE,yCAAyC,CAAC;KACnD,GAAG,iBAAiB;;;;;;;;;;6BAiC0+6C,CAAC;;;;;6BAA8N,CAAC;;;;;;;IAxBju7C,SAAS,CACP,IAAI,EAAE,SAAS,EACf,OAAO,EAAE;QACP,MAAM,EAAE,6CAA6C,CAAC;KACvD,GAAG,iBAAiB;;;;;;;;;;6BAoB0+6C,CAAC;;;;;6BAA8N,CAAC;;;;;;;IAXju7C,IAAI,CACF,OAAO,EAAE;QACP,MAAM,EAAE,wCAAwC,CAAC;KAClD,GAAG,iBAAiB;;;;;;;;;;6BAQ0+6C,CAAC;;;;;6BAA8N,CAAC;;;;;;;CADlu7C"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { IApiSchemaOptions } from 'zova-module-a-api';
|
|
2
2
|
import { BeanBase } from 'zova';
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class ApiSchemaPayPaymentSession extends BeanBase {
|
|
4
4
|
start(options?: IApiSchemaOptions): import("zova-module-a-openapi").IOpenapiSchemas;
|
|
5
5
|
reconcile(options?: IApiSchemaOptions): import("zova-module-a-openapi").IOpenapiSchemas;
|
|
6
6
|
view(options?: IApiSchemaOptions): import("zova-module-a-openapi").IOpenapiSchemas;
|
|
7
7
|
}
|
|
8
|
-
//# sourceMappingURL=
|
|
8
|
+
//# sourceMappingURL=payPaymentSession.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payPaymentSession.d.ts","sourceRoot":"","sources":["../../src/apiSchema/payPaymentSession.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE3D,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAShC,qBACa,0BAA2B,SAAQ,QAAQ;IACtD,KAAK,CAAC,OAAO,CAAC,EAAE,iBAAiB;IAIjC,SAAS,CAAC,OAAO,CAAC,EAAE,iBAAiB;IAIrC,IAAI,CAAC,OAAO,CAAC,EAAE,iBAAiB;CAGjC"}
|
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@ var ModelPaymentSession = (_dec$5 = Model(), _dec2$5 = BeanInfo({ module: "a-pay
|
|
|
12
12
|
return this.$useStateData({
|
|
13
13
|
queryKey: ["view", id],
|
|
14
14
|
queryFn: async () => {
|
|
15
|
-
return await this.scope.api.
|
|
15
|
+
return await this.scope.api.payPaymentSession.view({ params: { id } });
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
}
|
|
@@ -20,7 +20,7 @@ var ModelPaymentSession = (_dec$5 = Model(), _dec2$5 = BeanInfo({ module: "a-pay
|
|
|
20
20
|
return this.$useMutationData({
|
|
21
21
|
mutationKey: ["reconcile", id],
|
|
22
22
|
mutationFn: async () => {
|
|
23
|
-
return await this.scope.api.
|
|
23
|
+
return await this.scope.api.payPaymentSession.reconcile(void 0, { params: { id } });
|
|
24
24
|
},
|
|
25
25
|
onSuccess: async () => {
|
|
26
26
|
await this.$invalidateQueries({ queryKey: ["view", id] });
|
|
@@ -31,7 +31,7 @@ var ModelPaymentSession = (_dec$5 = Model(), _dec2$5 = BeanInfo({ module: "a-pay
|
|
|
31
31
|
return this.$useMutationData({
|
|
32
32
|
mutationKey: ["start", id],
|
|
33
33
|
mutationFn: async () => {
|
|
34
|
-
return await this.scope.api.
|
|
34
|
+
return await this.scope.api.payPaymentSession.start(void 0, { params: { id } });
|
|
35
35
|
},
|
|
36
36
|
onSuccess: async () => {
|
|
37
37
|
await this.$invalidateQueries({ queryKey: ["view", id] });
|
|
@@ -45,15 +45,15 @@ var OpenApiBaseURL = (sys) => {
|
|
|
45
45
|
return sys.util.getOpenApiBaseURL("OPENAPI_BASE_URL_A_PAY");
|
|
46
46
|
};
|
|
47
47
|
//#endregion
|
|
48
|
-
//#region src/api/
|
|
48
|
+
//#region src/api/payPaymentSession.ts
|
|
49
49
|
var _dec$4, _dec2$4, _class$4;
|
|
50
|
-
/**
|
|
51
|
-
var
|
|
52
|
-
/**
|
|
53
|
-
var
|
|
54
|
-
/**
|
|
55
|
-
var
|
|
56
|
-
var
|
|
50
|
+
/** PayPaymentSession_start */
|
|
51
|
+
var ApiApiPayPaymentSessionstartPath = "/api/pay/payment-session/{id}/start";
|
|
52
|
+
/** PayPaymentSession_reconcile */
|
|
53
|
+
var ApiApiPayPaymentSessionreconcilePath = "/api/pay/payment-session/{id}/reconcile";
|
|
54
|
+
/** PayPaymentSession_view */
|
|
55
|
+
var ApiApiPayPaymentSessionviewPath = "/api/pay/payment-session/{id}";
|
|
56
|
+
var ApiPayPaymentSession = (_dec$4 = Api(), _dec2$4 = BeanInfo({ module: "a-pay" }), _dec$4(_class$4 = _dec2$4(_class$4 = class ApiPayPaymentSession extends BeanApiBase {
|
|
57
57
|
start(body, options) {
|
|
58
58
|
return this.$fetch.post(this.$pathTranslate("/api/pay/payment-session/{id}/start", options.params), body, this.$configPrepare(OpenApiBaseURL(this.sys), options, true));
|
|
59
59
|
}
|
|
@@ -65,9 +65,9 @@ var ApiPaymentSession = (_dec$4 = Api(), _dec2$4 = BeanInfo({ module: "a-pay" })
|
|
|
65
65
|
}
|
|
66
66
|
}) || _class$4) || _class$4);
|
|
67
67
|
//#endregion
|
|
68
|
-
//#region src/apiSchema/
|
|
68
|
+
//#region src/apiSchema/payPaymentSession.ts
|
|
69
69
|
var _dec$3, _dec2$3, _class$3;
|
|
70
|
-
var
|
|
70
|
+
var ApiSchemaPayPaymentSession = (_dec$3 = ApiSchema(), _dec2$3 = BeanInfo({ module: "a-pay" }), _dec$3(_class$3 = _dec2$3(_class$3 = class ApiSchemaPayPaymentSession extends BeanBase {
|
|
71
71
|
start(options) {
|
|
72
72
|
return this.$sdk.createApiSchemas("/api/pay/payment-session/{id}/start", "post", options);
|
|
73
73
|
}
|
|
@@ -167,6 +167,6 @@ var components = { "paymentNextAction": ZPaymentNextAction };
|
|
|
167
167
|
var ScopeModuleAPay = (_dec = Scope(), _dec2 = BeanInfo({ module: "a-pay" }), _dec(_class = _dec2(_class = class ScopeModuleAPay extends BeanScopeBase {}) || _class) || _class);
|
|
168
168
|
/** scope: end */
|
|
169
169
|
//#endregion
|
|
170
|
-
export {
|
|
170
|
+
export { ApiApiPayPaymentSessionreconcilePath, ApiApiPayPaymentSessionstartPath, ApiApiPayPaymentSessionviewPath, ApiPayPaymentSession, ApiSchemaPayPaymentSession, ControllerPaymentNextAction, ModelPaymentSession, OpenApiBaseURL, ScopeModuleAPay, ServicePaymentCoordinator, ZPaymentNextAction, components };
|
|
171
171
|
|
|
172
172
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["BeanControllerBase","Use","Controller","ServicePaymentCoordinator","ControllerPaymentNextAction","_dec","_dec2","__z_BeanInfo","module","_dec3","_dec4","Reflect","metadata","Object","_class","_class2","_ControllerPaymentNextAction","constructor","args","_initializerDefineProperty","_descriptor","continueRedirect","action","$props","kind","disabled","$$paymentCoordinator","execute","render","onRefresh","_createVNode","_createTextVNode","onClick","retryAfterSeconds","$propsDefault","_applyDecoratedDescriptor","prototype","configurable","enumerable","writable","initializer"],"sources":["../src/model/paymentSession.ts","../src/api/openapi/baseURL.ts","../src/api/paymentSession.ts","../src/apiSchema/paymentSession.ts","../src/service/paymentCoordinator.ts","../src/component/paymentNextAction/controller.tsx","../src/.metadata/component/paymentNextAction.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.paymentSession.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.paymentSession.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 return await this.scope.api.paymentSession.start(undefined, {\n params: {\n id\n }\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.js';\n\n/** PaymentSession_start */\nexport const ApiApiPaymentSessionstartPath = '/api/pay/payment-session/{id}/start';\n/** PaymentSession_reconcile */\nexport const ApiApiPaymentSessionreconcilePath = '/api/pay/payment-session/{id}/reconcile';\n/** PaymentSession_view */\nexport const ApiApiPaymentSessionviewPath = '/api/pay/payment-session/{id}';\nexport let ApiPaymentSession = (_dec = Api(), _dec2 = __z_BeanInfo({\n module: \"a-pay\"\n}), _dec(_class = _dec2(_class = class ApiPaymentSession extends BeanApiBase {\n start(body, options) {\n return this.$fetch.post(this.$pathTranslate(ApiApiPaymentSessionstartPath, options.params), body, this.$configPrepare(OpenApiBaseURL(this.sys), options, true));\n }\n reconcile(body, options) {\n return this.$fetch.post(this.$pathTranslate(ApiApiPaymentSessionreconcilePath, options.params), body, this.$configPrepare(OpenApiBaseURL(this.sys), options, true));\n }\n view(options) {\n return this.$fetch.get(this.$pathTranslate(ApiApiPaymentSessionviewPath, 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 { ApiApiPaymentSessionstartPath, ApiApiPaymentSessionreconcilePath, ApiApiPaymentSessionviewPath } from '../api/paymentSession.js';\nexport let ApiSchemaPaymentSession = (_dec = ApiSchema(), _dec2 = __z_BeanInfo({\n module: \"a-pay\"\n}), _dec(_class = _dec2(_class = class ApiSchemaPaymentSession extends BeanBase {\n start(options) {\n return this.$sdk.createApiSchemas(ApiApiPaymentSessionstartPath, 'post', options);\n }\n reconcile(options) {\n return this.$sdk.createApiSchemas(ApiApiPaymentSessionreconcilePath, 'post', options);\n }\n view(options) {\n return this.$sdk.createApiSchemas(ApiApiPaymentSessionviewPath, '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);","import { BeanControllerBase, Use } from 'zova';\nimport { Controller } from 'zova-module-a-bean';\n\nimport type { TypePaymentNextAction } from '../../types/payment.js';\n\nimport { ServicePaymentCoordinator } from '../../service/paymentCoordinator.js';\n\nexport interface ControllerPaymentNextActionProps {\n action?: TypePaymentNextAction;\n disabled?: boolean;\n onRefresh?: () => void | Promise<void>;\n}\n\n@Controller()\nexport class ControllerPaymentNextAction extends BeanControllerBase {\n static $propsDefault = {};\n\n @Use()\n $$paymentCoordinator: ServicePaymentCoordinator;\n\n async continueRedirect() {\n const action = this.$props.action;\n if (action?.kind !== 'redirect' || this.$props.disabled) return;\n await this.$$paymentCoordinator.execute(action);\n }\n\n protected render() {\n const { action, disabled, onRefresh } = this.$props as ControllerPaymentNextActionProps;\n if (!action) return null;\n if (action.kind === 'redirect') {\n return (\n <div class=\"mt-6 space-y-3\">\n <p class=\"text-base-content/70\">Continue to the payment provider to complete payment.</p>\n <button\n class=\"btn btn-primary\"\n disabled={disabled}\n onClick={() => this.continueRedirect()}\n >\n Continue to payment\n </button>\n </div>\n );\n }\n if (action.kind === 'pending') {\n return (\n <div class=\"mt-6 space-y-3\" aria-live=\"polite\">\n <p class=\"text-base-content/70\">\n Payment is being prepared\n {action.retryAfterSeconds\n ? `; retrying in about ${action.retryAfterSeconds} seconds`\n : ''}\n .\n </p>\n {onRefresh && (\n <button class=\"btn btn-outline\" disabled={disabled} onClick={() => onRefresh()}>\n Refresh payment status\n </button>\n )}\n </div>\n );\n }\n if (action.kind === 'completed') {\n return (\n <p class=\"mt-6 text-base-content/70\" aria-live=\"polite\">\n Payment is complete. Confirming the order…\n </p>\n );\n }\n return (\n <div class=\"mt-6\" aria-live=\"polite\">\n <p class=\"text-base-content/70\">\n Embedded checkout will be available when this payment provider is configured.\n </p>\n </div>\n );\n }\n}\n","import { defineComponent } from 'vue';\nimport { prepareComponentOptions, useController } from 'zova';\nimport { ControllerPaymentNextAction } from '../../component/paymentNextAction/controller.jsx';\nexport const ZPaymentNextAction = defineComponent(_props => {\n useController(ControllerPaymentNextAction, undefined, undefined);\n return () => {};\n}, prepareComponentOptions());","var _dec, _dec2, _class;\nimport { \"BeanInfo\" as __z_BeanInfo } from \"zova\";\n// eslint-disable\n/** model: begin */\nexport * from '../model/paymentSession.js';\nimport 'zova-module-a-model';\n/** model: end */\n/** model: begin */\nimport { ModelPaymentSession } from '../model/paymentSession.js';\nimport 'zova';\n/** model: end */\n/** api: begin */\nexport * from '../api/paymentSession.js';\nimport 'zova';\n/** api: end */\n/** api: begin */\nimport { ApiPaymentSession } from '../api/paymentSession.js';\n/** api: end */\n/** api: begin */\n\nimport 'zova';\n/** api: end */\n/** openapi: begin */\nexport * from '../api/openapi/index.js';\n/** openapi: end */\n/** apiSchema: begin */\nexport * from '../apiSchema/paymentSession.js';\nimport 'zova';\n/** apiSchema: end */\n/** apiSchema: begin */\nimport { ApiSchemaPaymentSession } from '../apiSchema/paymentSession.js';\n/** apiSchema: end */\n/** apiSchema: begin */\n\nimport 'zova';\n/** apiSchema: end */\n/** service: begin */\nexport * from '../service/paymentCoordinator.js';\nimport 'zova-module-a-bean';\n/** service: end */\n/** service: begin */\nimport { ServicePaymentCoordinator } from '../service/paymentCoordinator.js';\nimport 'zova';\n/** service: end */\n/** controller: begin */\nexport * from '../component/paymentNextAction/controller.jsx';\nimport 'zova';\n/** controller: end */\n/** controller: begin */\nimport { ControllerPaymentNextAction } from '../component/paymentNextAction/controller.jsx';\nimport 'zova';\n/** controller: end */\n\n/** components: begin */\nexport * from './component/paymentNextAction.js';\nimport { ZPaymentNextAction } from './component/paymentNextAction.js';\nexport const components = {\n 'paymentNextAction': ZPaymentNextAction\n};\nimport 'zova';\n/** components: 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":";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kBAAiB,YAC/C;GAAEF,gBAAA,GAAA;EAAA,CAAA,GAGPF,aAASC,YAAA,UAAA;GAAA,SAAA;GAAA,YACkCL;GAAQ,iBAAiBI,UAAU;EAAC,GAAA,CAAAE,gBAAA,wBAAA,CAAA,CAAA,CAG/E,CAAA;EAIP,IAAIT,OAAOE,SAAS,aAClB,OAAAM,YAAA,KAAA;GAAA,SAAA;GAAA,aAAA;EAAA,GAAA,CAAAC,gBAAA,4CAAA,CAAA,CAAA;EAMF,OAAAD,YAAA,OAAA;GAAA,SAAA;GAAA,aAAA;EAAA,GAAA,CAAAA,YAAA,KAAA,EAAA,SAAA,uBAAA,GAAA,CAAAC,gBAAA,+EAAA,CAAA,CAAA,CAAA,CAAA;CAOF;AACF,GAACf,6BA7DQkB,gBAAgB,CAAC,GAAClB,+BAAAI,cAAAe,0BAAApB,QAAAqB,WAAA,wBAAA,CAAA3B,OAAAC,KAAA,GAAA;CAAA2B,cAAA;CAAAC,YAAA;CAAAC,UAAA;CAAAC,aAAA;AAAA,CAAA,GAAAzB,QAAA,KAAAD,QAAA,KAAAA;;;ACZ3B,IAAa,qBAAqB,iBAAgB,WAAU;CAC1D,cAAc,6BAA6B,KAAA,GAAW,KAAA,CAAS;CAC/D,aAAa,CAAC;AAChB,GAAG,wBAAwB,CAAC;;;;;ACN5B,IAAI,MAAM,OAAO;AAwDjB,IAAa,aAAa,EACxB,qBAAqB,mBACvB;AAMA,IAAW,mBAAmB,OAAO,MAAM,GAAG,QAAQ,SAAa,EACjE,QAAQ,QACV,CAAC,GAAG,KAAK,SAAS,MAAM,SAAS,MAAM,wBAAwB,cAAc,CAAC,CAAC,KAAK,MAAM,KAAK"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["BeanControllerBase","Use","Controller","ServicePaymentCoordinator","ControllerPaymentNextAction","_dec","_dec2","__z_BeanInfo","module","_dec3","_dec4","Reflect","metadata","Object","_class","_class2","_ControllerPaymentNextAction","constructor","args","_initializerDefineProperty","_descriptor","continueRedirect","action","$props","kind","disabled","$$paymentCoordinator","execute","render","onRefresh","_createVNode","_createTextVNode","onClick","retryAfterSeconds","$propsDefault","_applyDecoratedDescriptor","prototype","configurable","enumerable","writable","initializer"],"sources":["../src/model/paymentSession.ts","../src/api/openapi/baseURL.ts","../src/api/payPaymentSession.ts","../src/apiSchema/payPaymentSession.ts","../src/service/paymentCoordinator.ts","../src/component/paymentNextAction/controller.tsx","../src/.metadata/component/paymentNextAction.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 return await this.scope.api.payPaymentSession.start(undefined, {\n params: {\n id\n }\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.js';\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.js';\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);","import { BeanControllerBase, Use } from 'zova';\nimport { Controller } from 'zova-module-a-bean';\n\nimport type { TypePaymentNextAction } from '../../types/payment.js';\n\nimport { ServicePaymentCoordinator } from '../../service/paymentCoordinator.js';\n\nexport interface ControllerPaymentNextActionProps {\n action?: TypePaymentNextAction;\n disabled?: boolean;\n onRefresh?: () => void | Promise<void>;\n}\n\n@Controller()\nexport class ControllerPaymentNextAction extends BeanControllerBase {\n static $propsDefault = {};\n\n @Use()\n $$paymentCoordinator: ServicePaymentCoordinator;\n\n async continueRedirect() {\n const action = this.$props.action;\n if (action?.kind !== 'redirect' || this.$props.disabled) return;\n await this.$$paymentCoordinator.execute(action);\n }\n\n protected render() {\n const { action, disabled, onRefresh } = this.$props as ControllerPaymentNextActionProps;\n if (!action) return null;\n if (action.kind === 'redirect') {\n return (\n <div class=\"mt-6 space-y-3\">\n <p class=\"text-base-content/70\">Continue to the payment provider to complete payment.</p>\n <button\n class=\"btn btn-primary\"\n disabled={disabled}\n onClick={() => this.continueRedirect()}\n >\n Continue to payment\n </button>\n </div>\n );\n }\n if (action.kind === 'pending') {\n return (\n <div class=\"mt-6 space-y-3\" aria-live=\"polite\">\n <p class=\"text-base-content/70\">\n Payment is being prepared\n {action.retryAfterSeconds\n ? `; retrying in about ${action.retryAfterSeconds} seconds`\n : ''}\n .\n </p>\n {onRefresh && (\n <button class=\"btn btn-outline\" disabled={disabled} onClick={() => onRefresh()}>\n Refresh payment status\n </button>\n )}\n </div>\n );\n }\n if (action.kind === 'completed') {\n return (\n <p class=\"mt-6 text-base-content/70\" aria-live=\"polite\">\n Payment is complete. Confirming the order…\n </p>\n );\n }\n return (\n <div class=\"mt-6\" aria-live=\"polite\">\n <p class=\"text-base-content/70\">\n Embedded checkout will be available when this payment provider is configured.\n </p>\n </div>\n );\n }\n}\n","import { defineComponent } from 'vue';\nimport { prepareComponentOptions, useController } from 'zova';\nimport { ControllerPaymentNextAction } from '../../component/paymentNextAction/controller.jsx';\nexport const ZPaymentNextAction = defineComponent(_props => {\n useController(ControllerPaymentNextAction, undefined, undefined);\n return () => {};\n}, prepareComponentOptions());","var _dec, _dec2, _class;\nimport { \"BeanInfo\" as __z_BeanInfo } from \"zova\";\n// eslint-disable\n/** model: begin */\nexport * from '../model/paymentSession.js';\nimport 'zova-module-a-model';\n/** model: end */\n/** model: begin */\nimport { ModelPaymentSession } from '../model/paymentSession.js';\nimport 'zova';\n/** model: end */\n/** api: begin */\nexport * from '../api/payPaymentSession.js';\nimport 'zova';\n/** api: end */\n/** api: begin */\nimport { ApiPayPaymentSession } from '../api/payPaymentSession.js';\n/** api: end */\n/** api: begin */\n\nimport 'zova';\n/** api: end */\n/** openapi: begin */\nexport * from '../api/openapi/index.js';\n/** openapi: end */\n/** apiSchema: begin */\nexport * from '../apiSchema/payPaymentSession.js';\nimport 'zova';\n/** apiSchema: end */\n/** apiSchema: begin */\nimport { ApiSchemaPayPaymentSession } from '../apiSchema/payPaymentSession.js';\n/** apiSchema: end */\n/** apiSchema: begin */\n\nimport 'zova';\n/** apiSchema: end */\n/** service: begin */\nexport * from '../service/paymentCoordinator.js';\nimport 'zova-module-a-bean';\n/** service: end */\n/** service: begin */\nimport { ServicePaymentCoordinator } from '../service/paymentCoordinator.js';\nimport 'zova';\n/** service: end */\n/** controller: begin */\nexport * from '../component/paymentNextAction/controller.jsx';\nimport 'zova';\n/** controller: end */\n/** controller: begin */\nimport { ControllerPaymentNextAction } from '../component/paymentNextAction/controller.jsx';\nimport 'zova';\n/** controller: end */\n\n/** components: begin */\nexport * from './component/paymentNextAction.js';\nimport { ZPaymentNextAction } from './component/paymentNextAction.js';\nexport const components = {\n 'paymentNextAction': ZPaymentNextAction\n};\nimport 'zova';\n/** components: 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,IAAI,QAAM,SAAO;AAGjB,IAAW,uBAAuB,SAAO,MAAM,GAAG,UAAQ,SAAa,EACrE,QAAQ,QACV,CAAC,GAAG,OAAK,WAAS,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,WAAW,YAAY;IACrB,MAAM,KAAK,mBAAmB,EAC5B,UAAU,CAAC,QAAQ,EAAE,EACvB,CAAC;GACH;EACF,CAAC;CACH;CACA,MAAM,IAAI;EACR,OAAO,KAAK,iBAAiB;GAC3B,aAAa,CAAC,SAAS,EAAE;GACzB,YAAY,YAAY;IACtB,OAAO,MAAM,KAAK,MAAM,IAAI,kBAAkB,MAAM,KAAA,GAAW,EAC7D,QAAQ,EACN,GACF,EACF,CAAC;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AAG,QAAQ,SAAa,EACjE,QAAQ,QACV,CAAC,GAAG,KAAK,SAAS,MAAM,SAAS,MAAM,wBAAwB,cAAc,CAAC,CAAC,KAAK,MAAM,KAAK"}
|
|
@@ -1 +1 @@
|
|
|
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;;;;;;;;;;;
|
|
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;;;;;;;;;;;iCAmC0z+C,CAAC;;;;;iCAA8N,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAAhO,CAAC;;;;;iCAA8N,CAAC;;;;;;;;;;;;;;;;;;iCAAhO,CAAC;;;;;iCAA8N,CAAC;;;;;;;;;;;;;;;;;iCAAhO,CAAC;;;;;iCAA8N,CAAC;;;;;;;;;;;;;;;;;;iCAAhO,CAAC;;;;;iCAA8N,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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},
|
|
33
33
|
"title": "a-pay",
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "277a0c97020b27f5640d268f0c3516f8c3b81ae2"
|
|
35
35
|
}
|
package/src/.metadata/index.ts
CHANGED
|
@@ -4,15 +4,15 @@ export * from '../model/paymentSession.js';
|
|
|
4
4
|
import { IModelOptionsPaymentSession } from '../model/paymentSession.js';
|
|
5
5
|
import 'zova-module-a-model';
|
|
6
6
|
declare module 'zova-module-a-model' {
|
|
7
|
-
|
|
7
|
+
|
|
8
8
|
export interface IModelRecord {
|
|
9
9
|
'a-pay:paymentSession': IModelOptionsPaymentSession;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
}
|
|
14
14
|
declare module 'zova-module-a-pay' {
|
|
15
|
-
|
|
15
|
+
|
|
16
16
|
export interface ModelPaymentSession {
|
|
17
17
|
/** @internal */
|
|
18
18
|
get scope(): ScopeModuleAPay;
|
|
@@ -22,7 +22,7 @@ declare module 'zova-module-a-pay' {
|
|
|
22
22
|
get $beanFullName(): 'a-pay.model.paymentSession';
|
|
23
23
|
get $onionName(): 'a-pay:paymentSession';
|
|
24
24
|
get $onionOptions(): IModelOptionsPaymentSession;
|
|
25
|
-
}
|
|
25
|
+
}
|
|
26
26
|
}
|
|
27
27
|
/** model: end */
|
|
28
28
|
/** model: begin */
|
|
@@ -35,31 +35,31 @@ declare module 'zova' {
|
|
|
35
35
|
}
|
|
36
36
|
/** model: end */
|
|
37
37
|
/** api: begin */
|
|
38
|
-
export * from '../api/
|
|
38
|
+
export * from '../api/payPaymentSession.js';
|
|
39
39
|
|
|
40
40
|
import 'zova';
|
|
41
41
|
declare module 'zova' {
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
|
|
43
|
+
|
|
44
44
|
}
|
|
45
45
|
declare module 'zova-module-a-pay' {
|
|
46
|
-
|
|
47
|
-
export interface
|
|
46
|
+
|
|
47
|
+
export interface ApiPayPaymentSession {
|
|
48
48
|
/** @internal */
|
|
49
49
|
get scope(): ScopeModuleAPay;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
export interface
|
|
53
|
-
get $beanFullName(): 'a-pay.api.
|
|
54
|
-
get $onionName(): 'a-pay:
|
|
55
|
-
|
|
56
|
-
}
|
|
52
|
+
export interface ApiPayPaymentSession {
|
|
53
|
+
get $beanFullName(): 'a-pay.api.payPaymentSession';
|
|
54
|
+
get $onionName(): 'a-pay:payPaymentSession';
|
|
55
|
+
|
|
56
|
+
}
|
|
57
57
|
}
|
|
58
58
|
/** api: end */
|
|
59
59
|
/** api: begin */
|
|
60
|
-
import {
|
|
60
|
+
import { ApiPayPaymentSession } from '../api/payPaymentSession.js';
|
|
61
61
|
export interface IModuleApi {
|
|
62
|
-
'
|
|
62
|
+
'payPaymentSession': ApiPayPaymentSession;
|
|
63
63
|
}
|
|
64
64
|
/** api: end */
|
|
65
65
|
/** api: begin */
|
|
@@ -67,7 +67,7 @@ export interface IModuleApi {
|
|
|
67
67
|
import 'zova';
|
|
68
68
|
declare module 'zova' {
|
|
69
69
|
export interface IBeanRecordGeneral {
|
|
70
|
-
'a-pay.api.
|
|
70
|
+
'a-pay.api.payPaymentSession': ApiPayPaymentSession;
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
/** api: end */
|
|
@@ -75,31 +75,31 @@ declare module 'zova' {
|
|
|
75
75
|
export * from '../api/openapi/index.js';
|
|
76
76
|
/** openapi: end */
|
|
77
77
|
/** apiSchema: begin */
|
|
78
|
-
export * from '../apiSchema/
|
|
78
|
+
export * from '../apiSchema/payPaymentSession.js';
|
|
79
79
|
|
|
80
80
|
import 'zova';
|
|
81
81
|
declare module 'zova' {
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
|
|
83
|
+
|
|
84
84
|
}
|
|
85
85
|
declare module 'zova-module-a-pay' {
|
|
86
|
-
|
|
87
|
-
export interface
|
|
86
|
+
|
|
87
|
+
export interface ApiSchemaPayPaymentSession {
|
|
88
88
|
/** @internal */
|
|
89
89
|
get scope(): ScopeModuleAPay;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
export interface
|
|
93
|
-
get $beanFullName(): 'a-pay.apiSchema.
|
|
94
|
-
get $onionName(): 'a-pay:
|
|
95
|
-
|
|
96
|
-
}
|
|
92
|
+
export interface ApiSchemaPayPaymentSession {
|
|
93
|
+
get $beanFullName(): 'a-pay.apiSchema.payPaymentSession';
|
|
94
|
+
get $onionName(): 'a-pay:payPaymentSession';
|
|
95
|
+
|
|
96
|
+
}
|
|
97
97
|
}
|
|
98
98
|
/** apiSchema: end */
|
|
99
99
|
/** apiSchema: begin */
|
|
100
|
-
import {
|
|
100
|
+
import { ApiSchemaPayPaymentSession } from '../apiSchema/payPaymentSession.js';
|
|
101
101
|
export interface IModuleApiSchema {
|
|
102
|
-
'
|
|
102
|
+
'payPaymentSession': ApiSchemaPayPaymentSession;
|
|
103
103
|
}
|
|
104
104
|
/** apiSchema: end */
|
|
105
105
|
/** apiSchema: begin */
|
|
@@ -107,7 +107,7 @@ export interface IModuleApiSchema {
|
|
|
107
107
|
import 'zova';
|
|
108
108
|
declare module 'zova' {
|
|
109
109
|
export interface IBeanRecordGeneral {
|
|
110
|
-
'a-pay.apiSchema.
|
|
110
|
+
'a-pay.apiSchema.payPaymentSession': ApiSchemaPayPaymentSession;
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
/** apiSchema: end */
|
|
@@ -116,15 +116,15 @@ export * from '../service/paymentCoordinator.js';
|
|
|
116
116
|
|
|
117
117
|
import 'zova-module-a-bean';
|
|
118
118
|
declare module 'zova-module-a-bean' {
|
|
119
|
-
|
|
119
|
+
|
|
120
120
|
export interface IServiceRecord {
|
|
121
121
|
'a-pay:paymentCoordinator': never;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
|
|
124
|
+
|
|
125
125
|
}
|
|
126
126
|
declare module 'zova-module-a-pay' {
|
|
127
|
-
|
|
127
|
+
|
|
128
128
|
export interface ServicePaymentCoordinator {
|
|
129
129
|
/** @internal */
|
|
130
130
|
get scope(): ScopeModuleAPay;
|
|
@@ -133,8 +133,8 @@ declare module 'zova-module-a-pay' {
|
|
|
133
133
|
export interface ServicePaymentCoordinator {
|
|
134
134
|
get $beanFullName(): 'a-pay.service.paymentCoordinator';
|
|
135
135
|
get $onionName(): 'a-pay:paymentCoordinator';
|
|
136
|
-
|
|
137
|
-
}
|
|
136
|
+
|
|
137
|
+
}
|
|
138
138
|
}
|
|
139
139
|
/** service: end */
|
|
140
140
|
/** service: begin */
|
|
@@ -151,15 +151,15 @@ export * from '../component/paymentNextAction/controller.jsx';
|
|
|
151
151
|
|
|
152
152
|
import 'zova';
|
|
153
153
|
declare module 'zova' {
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
|
|
155
|
+
|
|
156
156
|
}
|
|
157
157
|
declare module 'zova-module-a-pay' {
|
|
158
|
-
|
|
158
|
+
|
|
159
159
|
export interface ControllerPaymentNextAction {
|
|
160
160
|
/** @internal */
|
|
161
161
|
get scope(): ScopeModuleAPay;
|
|
162
|
-
}
|
|
162
|
+
}
|
|
163
163
|
}
|
|
164
164
|
/** controller: end */
|
|
165
165
|
/** controller: begin */
|
|
@@ -206,12 +206,12 @@ declare module 'zova' {
|
|
|
206
206
|
export interface IBeanScopeRecord {
|
|
207
207
|
'a-pay': ScopeModuleAPay;
|
|
208
208
|
}
|
|
209
|
-
|
|
210
|
-
|
|
211
209
|
|
|
212
|
-
|
|
213
210
|
|
|
214
|
-
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
/** scope: end */
|