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.
@@ -0,0 +1,74 @@
1
+ import type { IApiActionOptions } from 'zova-module-a-api';
2
+
3
+ import { Api, BeanApiBase } from 'zova-module-a-api';
4
+
5
+ import type { paths } from './openapi/index.js';
6
+
7
+ import { OpenApiBaseURL } from './openapi/index.js';
8
+
9
+ /** PayPaymentSession_start */
10
+ export const ApiApiPayPaymentSessionstartPath = '/api/pay/payment-session/{id}/start';
11
+ export type ApiApiPayPaymentSessionstartPath = '/api/pay/payment-session/{id}/start';
12
+ export type ApiApiPayPaymentSessionstartMethod = 'post';
13
+ export type ApiApiPayPaymentSessionstartRequestParams =
14
+ paths[ApiApiPayPaymentSessionstartPath][ApiApiPayPaymentSessionstartMethod]['parameters']['path'];
15
+ export type ApiApiPayPaymentSessionstartResponseBody =
16
+ paths[ApiApiPayPaymentSessionstartPath][ApiApiPayPaymentSessionstartMethod]['responses']['200']['content']['application/json']['data'];
17
+
18
+ /** PayPaymentSession_reconcile */
19
+ export const ApiApiPayPaymentSessionreconcilePath = '/api/pay/payment-session/{id}/reconcile';
20
+ export type ApiApiPayPaymentSessionreconcilePath = '/api/pay/payment-session/{id}/reconcile';
21
+ export type ApiApiPayPaymentSessionreconcileMethod = 'post';
22
+ export type ApiApiPayPaymentSessionreconcileRequestParams =
23
+ paths[ApiApiPayPaymentSessionreconcilePath][ApiApiPayPaymentSessionreconcileMethod]['parameters']['path'];
24
+ export type ApiApiPayPaymentSessionreconcileResponseBody =
25
+ paths[ApiApiPayPaymentSessionreconcilePath][ApiApiPayPaymentSessionreconcileMethod]['responses']['200']['content']['application/json']['data'];
26
+
27
+ /** PayPaymentSession_view */
28
+ export const ApiApiPayPaymentSessionviewPath = '/api/pay/payment-session/{id}';
29
+ export type ApiApiPayPaymentSessionviewPath = '/api/pay/payment-session/{id}';
30
+ export type ApiApiPayPaymentSessionviewMethod = 'get';
31
+ export type ApiApiPayPaymentSessionviewRequestParams =
32
+ paths[ApiApiPayPaymentSessionviewPath][ApiApiPayPaymentSessionviewMethod]['parameters']['path'];
33
+ export type ApiApiPayPaymentSessionviewResponseBody =
34
+ paths[ApiApiPayPaymentSessionviewPath][ApiApiPayPaymentSessionviewMethod]['responses']['200']['content']['application/json']['data'];
35
+
36
+ @Api()
37
+ export class ApiPayPaymentSession extends BeanApiBase {
38
+ start(
39
+ body: undefined,
40
+ options: {
41
+ params: ApiApiPayPaymentSessionstartRequestParams;
42
+ } & IApiActionOptions,
43
+ ) {
44
+ return this.$fetch.post<any, ApiApiPayPaymentSessionstartResponseBody>(
45
+ this.$pathTranslate(ApiApiPayPaymentSessionstartPath, options.params),
46
+ body,
47
+ this.$configPrepare(OpenApiBaseURL(this.sys), options, true),
48
+ );
49
+ }
50
+
51
+ reconcile(
52
+ body: undefined,
53
+ options: {
54
+ params: ApiApiPayPaymentSessionreconcileRequestParams;
55
+ } & IApiActionOptions,
56
+ ) {
57
+ return this.$fetch.post<any, ApiApiPayPaymentSessionreconcileResponseBody>(
58
+ this.$pathTranslate(ApiApiPayPaymentSessionreconcilePath, options.params),
59
+ body,
60
+ this.$configPrepare(OpenApiBaseURL(this.sys), options, true),
61
+ );
62
+ }
63
+
64
+ view(
65
+ options: {
66
+ params: ApiApiPayPaymentSessionviewRequestParams;
67
+ } & IApiActionOptions,
68
+ ) {
69
+ return this.$fetch.get<any, ApiApiPayPaymentSessionviewResponseBody>(
70
+ this.$pathTranslate(ApiApiPayPaymentSessionviewPath, options.params),
71
+ this.$configPrepare(OpenApiBaseURL(this.sys), options, true),
72
+ );
73
+ }
74
+ }
@@ -0,0 +1,25 @@
1
+ import type { IApiSchemaOptions } from 'zova-module-a-api';
2
+
3
+ import { BeanBase } from 'zova';
4
+ import { ApiSchema } from 'zova-module-a-api';
5
+
6
+ import {
7
+ ApiApiPayPaymentSessionstartPath,
8
+ ApiApiPayPaymentSessionreconcilePath,
9
+ ApiApiPayPaymentSessionviewPath,
10
+ } from '../api/payPaymentSession.js';
11
+
12
+ @ApiSchema()
13
+ export class ApiSchemaPayPaymentSession extends BeanBase {
14
+ start(options?: IApiSchemaOptions) {
15
+ return this.$sdk.createApiSchemas(ApiApiPayPaymentSessionstartPath, 'post', options);
16
+ }
17
+
18
+ reconcile(options?: IApiSchemaOptions) {
19
+ return this.$sdk.createApiSchemas(ApiApiPayPaymentSessionreconcilePath, 'post', options);
20
+ }
21
+
22
+ view(options?: IApiSchemaOptions) {
23
+ return this.$sdk.createApiSchemas(ApiApiPayPaymentSessionviewPath, 'get', options);
24
+ }
25
+ }
@@ -13,7 +13,7 @@ export class ModelPaymentSession extends BeanModelBase {
13
13
  return this.$useStateData({
14
14
  queryKey: ['view', id],
15
15
  queryFn: async () => {
16
- return await this.scope.api.paymentSession.view({ params: { id } });
16
+ return await this.scope.api.payPaymentSession.view({ params: { id } });
17
17
  },
18
18
  });
19
19
  }
@@ -22,7 +22,7 @@ export class ModelPaymentSession extends BeanModelBase {
22
22
  return this.$useMutationData({
23
23
  mutationKey: ['reconcile', id],
24
24
  mutationFn: async () => {
25
- return await this.scope.api.paymentSession.reconcile(undefined, { params: { id } });
25
+ return await this.scope.api.payPaymentSession.reconcile(undefined, { params: { id } });
26
26
  },
27
27
  onSuccess: async () => {
28
28
  await this.$invalidateQueries({ queryKey: ['view', id] });
@@ -34,7 +34,7 @@ export class ModelPaymentSession extends BeanModelBase {
34
34
  return this.$useMutationData({
35
35
  mutationKey: ['start', id],
36
36
  mutationFn: async () => {
37
- return await this.scope.api.paymentSession.start(undefined, { params: { id } });
37
+ return await this.scope.api.payPaymentSession.start(undefined, { params: { id } });
38
38
  },
39
39
  onSuccess: async () => {
40
40
  await this.$invalidateQueries({ queryKey: ['view', id] });
@@ -1 +0,0 @@
1
- {"version":3,"file":"paymentSession.d.ts","sourceRoot":"","sources":["../../src/api/paymentSession.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,i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AK,CAAC,4BAA4B,CAAC,CAAC,8BAA8B,CAAC,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAC5F,MAAM,MAAM,oCAAoC,GAC9C,KAAK,CAAC,4BAA4B,CAAC,CAAC,8BAA8B,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjI,qBACa,iBAAkB,SAAQ,WAAW;IAChD,KAAK,CACH,IAAI,EAAE,SAAS,EACf,OAAO,EAAE;QACP,MAAM,EAAE,sCAAsC,CAAC;KAChD,GAAG,iBAAiB;;;;;;;;;;6BAiC+n2C,CAAC;;;;;6BAA8N,CAAC;;;;;;;IAxBt32C,SAAS,CACP,IAAI,EAAE,SAAS,EACf,OAAO,EAAE;QACP,MAAM,EAAE,0CAA0C,CAAC;KACpD,GAAG,iBAAiB;;;;;;;;;;6BAoB+n2C,CAAC;;;;;6BAA8N,CAAC;;;;;;;IAXt32C,IAAI,CACF,OAAO,EAAE;QACP,MAAM,EAAE,qCAAqC,CAAC;KAC/C,GAAG,iBAAiB;;;;;;;;;;6BAQ+n2C,CAAC;;;;;6BAA8N,CAAC;;;;;;;CADv32C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"paymentSession.d.ts","sourceRoot":"","sources":["../../src/apiSchema/paymentSession.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE3D,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAShC,qBACa,uBAAwB,SAAQ,QAAQ;IACnD,KAAK,CAAC,OAAO,CAAC,EAAE,iBAAiB;IAIjC,SAAS,CAAC,OAAO,CAAC,EAAE,iBAAiB;IAIrC,IAAI,CAAC,OAAO,CAAC,EAAE,iBAAiB;CAGjC"}
@@ -1,74 +0,0 @@
1
- import type { IApiActionOptions } from 'zova-module-a-api';
2
-
3
- import { Api, BeanApiBase } from 'zova-module-a-api';
4
-
5
- import type { paths } from './openapi/index.js';
6
-
7
- import { OpenApiBaseURL } from './openapi/index.js';
8
-
9
- /** PaymentSession_start */
10
- export const ApiApiPaymentSessionstartPath = '/api/pay/payment-session/{id}/start';
11
- export type ApiApiPaymentSessionstartPath = '/api/pay/payment-session/{id}/start';
12
- export type ApiApiPaymentSessionstartMethod = 'post';
13
- export type ApiApiPaymentSessionstartRequestParams =
14
- paths[ApiApiPaymentSessionstartPath][ApiApiPaymentSessionstartMethod]['parameters']['path'];
15
- export type ApiApiPaymentSessionstartResponseBody =
16
- paths[ApiApiPaymentSessionstartPath][ApiApiPaymentSessionstartMethod]['responses']['200']['content']['application/json']['data'];
17
-
18
- /** PaymentSession_reconcile */
19
- export const ApiApiPaymentSessionreconcilePath = '/api/pay/payment-session/{id}/reconcile';
20
- export type ApiApiPaymentSessionreconcilePath = '/api/pay/payment-session/{id}/reconcile';
21
- export type ApiApiPaymentSessionreconcileMethod = 'post';
22
- export type ApiApiPaymentSessionreconcileRequestParams =
23
- paths[ApiApiPaymentSessionreconcilePath][ApiApiPaymentSessionreconcileMethod]['parameters']['path'];
24
- export type ApiApiPaymentSessionreconcileResponseBody =
25
- paths[ApiApiPaymentSessionreconcilePath][ApiApiPaymentSessionreconcileMethod]['responses']['200']['content']['application/json']['data'];
26
-
27
- /** PaymentSession_view */
28
- export const ApiApiPaymentSessionviewPath = '/api/pay/payment-session/{id}';
29
- export type ApiApiPaymentSessionviewPath = '/api/pay/payment-session/{id}';
30
- export type ApiApiPaymentSessionviewMethod = 'get';
31
- export type ApiApiPaymentSessionviewRequestParams =
32
- paths[ApiApiPaymentSessionviewPath][ApiApiPaymentSessionviewMethod]['parameters']['path'];
33
- export type ApiApiPaymentSessionviewResponseBody =
34
- paths[ApiApiPaymentSessionviewPath][ApiApiPaymentSessionviewMethod]['responses']['200']['content']['application/json']['data'];
35
-
36
- @Api()
37
- export class ApiPaymentSession extends BeanApiBase {
38
- start(
39
- body: undefined,
40
- options: {
41
- params: ApiApiPaymentSessionstartRequestParams;
42
- } & IApiActionOptions,
43
- ) {
44
- return this.$fetch.post<any, ApiApiPaymentSessionstartResponseBody>(
45
- this.$pathTranslate(ApiApiPaymentSessionstartPath, options.params),
46
- body,
47
- this.$configPrepare(OpenApiBaseURL(this.sys), options, true),
48
- );
49
- }
50
-
51
- reconcile(
52
- body: undefined,
53
- options: {
54
- params: ApiApiPaymentSessionreconcileRequestParams;
55
- } & IApiActionOptions,
56
- ) {
57
- return this.$fetch.post<any, ApiApiPaymentSessionreconcileResponseBody>(
58
- this.$pathTranslate(ApiApiPaymentSessionreconcilePath, options.params),
59
- body,
60
- this.$configPrepare(OpenApiBaseURL(this.sys), options, true),
61
- );
62
- }
63
-
64
- view(
65
- options: {
66
- params: ApiApiPaymentSessionviewRequestParams;
67
- } & IApiActionOptions,
68
- ) {
69
- return this.$fetch.get<any, ApiApiPaymentSessionviewResponseBody>(
70
- this.$pathTranslate(ApiApiPaymentSessionviewPath, options.params),
71
- this.$configPrepare(OpenApiBaseURL(this.sys), options, true),
72
- );
73
- }
74
- }
@@ -1,25 +0,0 @@
1
- import type { IApiSchemaOptions } from 'zova-module-a-api';
2
-
3
- import { BeanBase } from 'zova';
4
- import { ApiSchema } from 'zova-module-a-api';
5
-
6
- import {
7
- ApiApiPaymentSessionstartPath,
8
- ApiApiPaymentSessionreconcilePath,
9
- ApiApiPaymentSessionviewPath,
10
- } from '../api/paymentSession.js';
11
-
12
- @ApiSchema()
13
- export class ApiSchemaPaymentSession extends BeanBase {
14
- start(options?: IApiSchemaOptions) {
15
- return this.$sdk.createApiSchemas(ApiApiPaymentSessionstartPath, 'post', options);
16
- }
17
-
18
- reconcile(options?: IApiSchemaOptions) {
19
- return this.$sdk.createApiSchemas(ApiApiPaymentSessionreconcilePath, 'post', options);
20
- }
21
-
22
- view(options?: IApiSchemaOptions) {
23
- return this.$sdk.createApiSchemas(ApiApiPaymentSessionviewPath, 'get', options);
24
- }
25
- }