zova-module-a-pay 5.0.2 → 5.0.4

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.
@@ -2,14 +2,20 @@ 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
4
  /** PaymentSession_start */
5
- export declare const ApiApiPaymentSessionstartPath = "/api/payment-session/{id}/start";
6
- export type ApiApiPaymentSessionstartPath = '/api/payment-session/{id}/start';
5
+ export declare const ApiApiPaymentSessionstartPath = "/api/pay/payment-session/{id}/start";
6
+ export type ApiApiPaymentSessionstartPath = '/api/pay/payment-session/{id}/start';
7
7
  export type ApiApiPaymentSessionstartMethod = 'post';
8
8
  export type ApiApiPaymentSessionstartRequestParams = paths[ApiApiPaymentSessionstartPath][ApiApiPaymentSessionstartMethod]['parameters']['path'];
9
9
  export type ApiApiPaymentSessionstartResponseBody = paths[ApiApiPaymentSessionstartPath][ApiApiPaymentSessionstartMethod]['responses']['200']['content']['application/json']['data'];
10
+ /** PaymentSession_reconcile */
11
+ export declare const ApiApiPaymentSessionreconcilePath = "/api/pay/payment-session/{id}/reconcile";
12
+ export type ApiApiPaymentSessionreconcilePath = '/api/pay/payment-session/{id}/reconcile';
13
+ export type ApiApiPaymentSessionreconcileMethod = 'post';
14
+ export type ApiApiPaymentSessionreconcileRequestParams = paths[ApiApiPaymentSessionreconcilePath][ApiApiPaymentSessionreconcileMethod]['parameters']['path'];
15
+ export type ApiApiPaymentSessionreconcileResponseBody = paths[ApiApiPaymentSessionreconcilePath][ApiApiPaymentSessionreconcileMethod]['responses']['200']['content']['application/json']['data'];
10
16
  /** PaymentSession_view */
11
- export declare const ApiApiPaymentSessionviewPath = "/api/payment-session/{id}";
12
- export type ApiApiPaymentSessionviewPath = '/api/payment-session/{id}';
17
+ export declare const ApiApiPaymentSessionviewPath = "/api/pay/payment-session/{id}";
18
+ export type ApiApiPaymentSessionviewPath = '/api/pay/payment-session/{id}';
13
19
  export type ApiApiPaymentSessionviewMethod = 'get';
14
20
  export type ApiApiPaymentSessionviewRequestParams = paths[ApiApiPaymentSessionviewPath][ApiApiPaymentSessionviewMethod]['parameters']['path'];
15
21
  export type ApiApiPaymentSessionviewResponseBody = paths[ApiApiPaymentSessionviewPath][ApiApiPaymentSessionviewMethod]['responses']['200']['content']['application/json']['data'];
@@ -38,6 +44,30 @@ export declare class ApiPaymentSession extends BeanApiBase {
38
44
  amountMinor: number;
39
45
  currency: string;
40
46
  }>;
47
+ reconcile(body: undefined, options: {
48
+ params: ApiApiPaymentSessionreconcileRequestParams;
49
+ } & IApiActionOptions): Promise<{
50
+ id: number | string;
51
+ state: "created" | "starting" | "requires_action" | "processing" | "succeeded" | "failed" | "cancelled" | "expired";
52
+ providerName: string;
53
+ nextAction?: {
54
+ kind: "redirect";
55
+ url: string;
56
+ } | {
57
+ kind: "embedded";
58
+ clientToken: string;
59
+ publishableConfig?: {
60
+ [key: string]: string;
61
+ } | undefined;
62
+ } | {
63
+ kind: "pending";
64
+ retryAfterSeconds?: number | undefined;
65
+ } | {
66
+ kind: "completed";
67
+ } | undefined;
68
+ amountMinor: number;
69
+ currency: string;
70
+ }>;
41
71
  view(options: {
42
72
  params: ApiApiPaymentSessionviewRequestParams;
43
73
  } & IApiActionOptions): Promise<{
@@ -1 +1 @@
1
- {"version":3,"file":"paymentSession.d.ts","sourceRoot":"","sources":["../../src/api/paymentSession.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE3D,OAAO,EAAO,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAIhD,2BAA2B;AAC3B,eAAO,MAAM,6BAA6B,oCAAoC,CAAC;AAC/E,MAAM,MAAM,6BAA6B,GAAG,iCAAiC,CAAC;AAC9E,MAAM,MAAM,+BAA+B,GA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B,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"}
@@ -2,6 +2,7 @@ import type { IApiSchemaOptions } from 'zova-module-a-api';
2
2
  import { BeanBase } from 'zova';
3
3
  export declare class ApiSchemaPaymentSession extends BeanBase {
4
4
  start(options?: IApiSchemaOptions): import("zova-module-a-openapi").IOpenapiSchemas;
5
+ reconcile(options?: IApiSchemaOptions): import("zova-module-a-openapi").IOpenapiSchemas;
5
6
  view(options?: IApiSchemaOptions): import("zova-module-a-openapi").IOpenapiSchemas;
6
7
  }
7
8
  //# sourceMappingURL=paymentSession.d.ts.map
@@ -1 +1 @@
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;AAQhC,qBACa,uBAAwB,SAAQ,QAAQ;IACnD,KAAK,CAAC,OAAO,CAAC,EAAE,iBAAiB;IAIjC,IAAI,CAAC,OAAO,CAAC,EAAE,iBAAiB;CAGjC"}
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,6 +1,6 @@
1
1
  import { BeanControllerBase } from 'zova';
2
- import type { ServicePaymentCoordinator } from '../../service/paymentCoordinator.js';
3
2
  import type { TypePaymentNextAction } from '../../types/payment.js';
3
+ import { ServicePaymentCoordinator } from '../../service/paymentCoordinator.js';
4
4
  export interface ControllerPaymentNextActionProps {
5
5
  action?: TypePaymentNextAction;
6
6
  disabled?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../src/component/paymentNextAction/controller.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAO,MAAM,MAAM,CAAC;AAG/C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAEpE,MAAM,WAAW,gCAAgC;IAC/C,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACxC;AAED,qBACa,2BAA4B,SAAQ,kBAAkB;IACjE,MAAM,CAAC,aAAa,KAAM;IAG1B,oBAAoB,EAAE,yBAAyB,CAAC;IAE1C,gBAAgB;IAMtB,SAAS,CAAC,MAAM;CAkDjB"}
1
+ {"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../src/component/paymentNextAction/controller.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAO,MAAM,MAAM,CAAC;AAG/C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAEpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAEhF,MAAM,WAAW,gCAAgC;IAC/C,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACxC;AAED,qBACa,2BAA4B,SAAQ,kBAAkB;IACjE,MAAM,CAAC,aAAa,KAAM;IAG1B,oBAAoB,EAAE,yBAAyB,CAAC;IAE1C,gBAAgB;IAMtB,SAAS,CAAC,MAAM;CAkDjB"}
package/dist/index.js CHANGED
@@ -7,13 +7,24 @@ import { createTextVNode, createVNode, defineComponent } from "vue";
7
7
  var _dec$5, _dec2$5, _class$5;
8
8
  var ModelPaymentSession = (_dec$5 = Model(), _dec2$5 = BeanInfo({ module: "a-pay" }), _dec$5(_class$5 = _dec2$5(_class$5 = class ModelPaymentSession extends BeanModelBase {
9
9
  view(id) {
10
- if (!process.env.CLIENT || !this.$passport.isAuthenticated) return;
10
+ if (this.$ssr.cookieDisabledOnServer) return;
11
+ if (!this.$passport.isAuthenticated) return;
11
12
  return this.$useStateData({
12
13
  queryKey: ["view", id],
13
14
  queryFn: async () => {
14
15
  return await this.scope.api.paymentSession.view({ params: { id } });
16
+ }
17
+ });
18
+ }
19
+ reconcile(id) {
20
+ return this.$useMutationData({
21
+ mutationKey: ["reconcile", id],
22
+ mutationFn: async () => {
23
+ return await this.scope.api.paymentSession.reconcile(void 0, { params: { id } });
15
24
  },
16
- meta: { disableSuspenseOnInit: true }
25
+ onSuccess: async () => {
26
+ await this.$invalidateQueries({ queryKey: ["view", id] });
27
+ }
17
28
  });
18
29
  }
19
30
  start(id) {
@@ -37,15 +48,20 @@ var OpenApiBaseURL = (sys) => {
37
48
  //#region src/api/paymentSession.ts
38
49
  var _dec$4, _dec2$4, _class$4;
39
50
  /** PaymentSession_start */
40
- var ApiApiPaymentSessionstartPath = "/api/payment-session/{id}/start";
51
+ var ApiApiPaymentSessionstartPath = "/api/pay/payment-session/{id}/start";
52
+ /** PaymentSession_reconcile */
53
+ var ApiApiPaymentSessionreconcilePath = "/api/pay/payment-session/{id}/reconcile";
41
54
  /** PaymentSession_view */
42
- var ApiApiPaymentSessionviewPath = "/api/payment-session/{id}";
55
+ var ApiApiPaymentSessionviewPath = "/api/pay/payment-session/{id}";
43
56
  var ApiPaymentSession = (_dec$4 = Api(), _dec2$4 = BeanInfo({ module: "a-pay" }), _dec$4(_class$4 = _dec2$4(_class$4 = class ApiPaymentSession extends BeanApiBase {
44
57
  start(body, options) {
45
- return this.$fetch.post(this.$pathTranslate("/api/payment-session/{id}/start", options.params), body, this.$configPrepare(OpenApiBaseURL(this.sys), options, true));
58
+ return this.$fetch.post(this.$pathTranslate("/api/pay/payment-session/{id}/start", options.params), body, this.$configPrepare(OpenApiBaseURL(this.sys), options, true));
59
+ }
60
+ reconcile(body, options) {
61
+ return this.$fetch.post(this.$pathTranslate("/api/pay/payment-session/{id}/reconcile", options.params), body, this.$configPrepare(OpenApiBaseURL(this.sys), options, true));
46
62
  }
47
63
  view(options) {
48
- return this.$fetch.get(this.$pathTranslate("/api/payment-session/{id}", options.params), this.$configPrepare(OpenApiBaseURL(this.sys), options, true));
64
+ return this.$fetch.get(this.$pathTranslate("/api/pay/payment-session/{id}", options.params), this.$configPrepare(OpenApiBaseURL(this.sys), options, true));
49
65
  }
50
66
  }) || _class$4) || _class$4);
51
67
  //#endregion
@@ -53,16 +69,19 @@ var ApiPaymentSession = (_dec$4 = Api(), _dec2$4 = BeanInfo({ module: "a-pay" })
53
69
  var _dec$3, _dec2$3, _class$3;
54
70
  var ApiSchemaPaymentSession = (_dec$3 = ApiSchema(), _dec2$3 = BeanInfo({ module: "a-pay" }), _dec$3(_class$3 = _dec2$3(_class$3 = class ApiSchemaPaymentSession extends BeanBase {
55
71
  start(options) {
56
- return this.$sdk.createApiSchemas("/api/payment-session/{id}/start", "post", options);
72
+ return this.$sdk.createApiSchemas("/api/pay/payment-session/{id}/start", "post", options);
73
+ }
74
+ reconcile(options) {
75
+ return this.$sdk.createApiSchemas("/api/pay/payment-session/{id}/reconcile", "post", options);
57
76
  }
58
77
  view(options) {
59
- return this.$sdk.createApiSchemas("/api/payment-session/{id}", "get", options);
78
+ return this.$sdk.createApiSchemas("/api/pay/payment-session/{id}", "get", options);
60
79
  }
61
80
  }) || _class$3) || _class$3);
62
81
  //#endregion
63
82
  //#region src/service/paymentCoordinator.ts
64
83
  var _dec$2, _dec2$2, _class$2;
65
- var ServicePaymentCoordinator$1 = (_dec$2 = Service(), _dec2$2 = BeanInfo({ module: "a-pay" }), _dec$2(_class$2 = _dec2$2(_class$2 = class ServicePaymentCoordinator extends BeanBase {
84
+ var ServicePaymentCoordinator = (_dec$2 = Service(), _dec2$2 = BeanInfo({ module: "a-pay" }), _dec$2(_class$2 = _dec2$2(_class$2 = class ServicePaymentCoordinator extends BeanBase {
66
85
  async execute(action) {
67
86
  if (action.kind !== "redirect") return;
68
87
  if (!process.env.CLIENT) return;
@@ -148,6 +167,6 @@ var components = { "paymentNextAction": ZPaymentNextAction };
148
167
  var ScopeModuleAPay = (_dec = Scope(), _dec2 = BeanInfo({ module: "a-pay" }), _dec(_class = _dec2(_class = class ScopeModuleAPay extends BeanScopeBase {}) || _class) || _class);
149
168
  /** scope: end */
150
169
  //#endregion
151
- export { ApiApiPaymentSessionstartPath, ApiApiPaymentSessionviewPath, ApiPaymentSession, ApiSchemaPaymentSession, ControllerPaymentNextAction, ModelPaymentSession, OpenApiBaseURL, ScopeModuleAPay, ServicePaymentCoordinator$1 as ServicePaymentCoordinator, ZPaymentNextAction, components };
170
+ export { ApiApiPaymentSessionreconcilePath, ApiApiPaymentSessionstartPath, ApiApiPaymentSessionviewPath, ApiPaymentSession, ApiSchemaPaymentSession, ControllerPaymentNextAction, ModelPaymentSession, OpenApiBaseURL, ScopeModuleAPay, ServicePaymentCoordinator, ZPaymentNextAction, components };
152
171
 
153
172
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["BeanControllerBase","Use","Controller","ControllerPaymentNextAction","_dec","_dec2","__z_BeanInfo","module","_dec3","_dec4","Reflect","metadata","ServicePaymentCoordinator","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 (!process.env.CLIENT || !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 meta: {\n disableSuspenseOnInit: true\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/payment-session/{id}/start';\n/** PaymentSession_view */\nexport const ApiApiPaymentSessionviewPath = '/api/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 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, 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 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 { ServicePaymentCoordinator } from '../../service/paymentCoordinator.js';\nimport type { TypePaymentNextAction } from '../../types/payment.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":";;;;;;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,CAAC,QAAQ,IAAI,UAAU,CAAC,KAAK,UAAU,iBAAiB;EAC5D,OAAO,KAAK,cAAc;GACxB,UAAU,CAAC,QAAQ,EAAE;GACrB,SAAS,YAAY;IACnB,OAAO,MAAM,KAAK,MAAM,IAAI,eAAe,KAAK,EAC9C,QAAQ,EACN,GACF,EACF,CAAC;GACH;GACA,MAAM,EACJ,uBAAuB,KACzB;EACF,CAAC;CACH;CACA,MAAM,IAAI;EACR,OAAO,KAAK,iBAAiB;GAC3B,aAAa,CAAC,SAAS,EAAE;GACzB,YAAY,YAAY;IACtB,OAAO,MAAM,KAAK,MAAM,IAAI,eAAe,MAAM,KAAA,GAAW,EAC1D,QAAQ,EACN,GACF,EACF,CAAC;GACH;GACA,WAAW,YAAY;IACrB,MAAM,KAAK,mBAAmB,EAC5B,UAAU,CAAC,QAAQ,EAAE,EACvB,CAAC;GACH;EACF,CAAC;CACH;AACF,CAAC,KAAK,QAAM,KAAK;;;ACvCjB,IAAa,kBAAiB,QAAO;CACnC,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AAC,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,CAAA5B,OAAAC,KAAA,GAAA;CAAA4B,cAAA;CAAAC,YAAA;CAAAC,UAAA;CAAAC,aAAA;AAAA,CAAA,GAAAzB,QAAA,KAAAD,QAAA,KAAAA;;;ACX3B,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/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":";;;;;;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,eAAe,KAAK,EAC9C,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,eAAe,UAAU,KAAA,GAAW,EAC9D,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,eAAe,MAAM,KAAA,GAAW,EAC1D,QAAQ,EACN,GACF,EACF,CAAC;GACH;GACA,WAAW,YAAY;IACrB,MAAM,KAAK,mBAAmB,EAC5B,UAAU,CAAC,QAAQ,EAAE,EACvB,CAAC;GACH;EACF,CAAC;CACH;AACF,CAAC,KAAK,QAAM,KAAK;;;ACtDjB,IAAa,kBAAiB,QAAO;CACnC,OAAO,IAAI,KAAK,kBAAkB,wBAA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} | undefined;
526
+ reconcile(id: TableIdentity): import("vue").UnwrapNestedRefs<import("@tanstack/vue-query").UseMutationReturnType<{
527
+ id: number | string;
528
+ state: "created" | "starting" | "requires_action" | "processing" | "succeeded" | "failed" | "cancelled" | "expired";
529
+ providerName: string;
530
+ nextAction?: {
531
+ kind: "redirect";
532
+ url: string;
533
+ } | {
534
+ kind: "embedded";
535
+ clientToken: string;
536
+ publishableConfig?: {
537
+ [key: string]: string;
538
+ } | undefined;
539
+ } | {
540
+ kind: "pending";
541
+ retryAfterSeconds?: number | undefined;
542
+ } | {
543
+ kind: "completed";
544
+ } | undefined;
545
+ amountMinor: number;
546
+ currency: string;
547
+ }, Error, void, unknown>>;
526
548
  start(id: TableIdentity): import("vue").UnwrapNestedRefs<import("@tanstack/vue-query").UseMutationReturnType<{
527
549
  id: number | string;
528
550
  state: "created" | "starting" | "requires_action" | "processing" | "succeeded" | "failed" | "cancelled" | "expired";
@@ -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;;;;;;;;;;;iCAuBq+2C,CAAC;;;;;iCAA8N,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAAhO,CAAC;;;;;iCAA8N,CAAC;;;;;;;;;;;;;;;;;;iCAAhO,CAAC;;;;;iCAA8N,CAAC;;;;;;;;;;;;;;;;;iCAAhO,CAAC;;;;;iCAA8N,CAAC;;;;;;;;;;;;;;;;;;iCAAhO,CAAC;;;;;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AAC;;;;;6BAA8N,CAAC;;;;;;;IAZtl6C,KAAK,CAAC,EAAE,EAAE,aAAa;;;;;;;;;;6BAY+15C,CAAC;;;;;6BAA8N,CAAC;;;;;;;CADvl6C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zova-module-a-pay",
3
- "version": "5.0.2",
3
+ "version": "5.0.4",
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": "5afd89dc6f19a6b284b48002636d4b7dd20b662a"
34
+ "gitHead": "f56eaba77347037643b625c8e6c5af408ff2d495"
35
35
  }
@@ -95,10 +95,10 @@ export type ApiSchemaCommercePromotionDtoCouponTemplateSelectResItem =
95
95
  components['schemas']['commerce-promotion.dto.couponTemplateSelectResItem'];
96
96
  export type ApiSchemaCommercePromotionDtoCouponTemplateSelectResItemPartial =
97
97
  Partial<ApiSchemaCommercePromotionDtoCouponTemplateSelectResItem>;
98
- export type ApiSchemaCommercePromotionDtoCouponTemplateView_2d063d28bc7243bed02ebd8bddf1212a93c6305b_425dbecccd52e19e24888f99e1b1670233afa875 =
99
- components['schemas']['commerce-promotion.dto.couponTemplateView_2d063d28bc7243bed02ebd8bddf1212a93c6305b_425dbecccd52e19e24888f99e1b1670233afa875'];
100
- export type ApiSchemaCommercePromotionDtoCouponTemplateView_2d063d28bc7243bed02ebd8bddf1212a93c6305b_425dbecccd52e19e24888f99e1b1670233afa875Partial =
101
- Partial<ApiSchemaCommercePromotionDtoCouponTemplateView_2d063d28bc7243bed02ebd8bddf1212a93c6305b_425dbecccd52e19e24888f99e1b1670233afa875>;
98
+ export type ApiSchemaCommercePromotionDtoCouponTemplateView_2d063d28bc7243bed02ebd8bddf1212a93c6305b_91abd8df366c0c4d47021b38af2a356349ee178b =
99
+ components['schemas']['commerce-promotion.dto.couponTemplateView_2d063d28bc7243bed02ebd8bddf1212a93c6305b_91abd8df366c0c4d47021b38af2a356349ee178b'];
100
+ export type ApiSchemaCommercePromotionDtoCouponTemplateView_2d063d28bc7243bed02ebd8bddf1212a93c6305b_91abd8df366c0c4d47021b38af2a356349ee178bPartial =
101
+ Partial<ApiSchemaCommercePromotionDtoCouponTemplateView_2d063d28bc7243bed02ebd8bddf1212a93c6305b_91abd8df366c0c4d47021b38af2a356349ee178b>;
102
102
  export type ApiSchemaCommercePromotionDtoCouponTemplateUpdate =
103
103
  components['schemas']['commerce-promotion.dto.couponTemplateUpdate'];
104
104
  export type ApiSchemaCommercePromotionDtoCouponTemplateUpdatePartial =
@@ -117,6 +117,14 @@ export type ApiSchemaCommerceTradeDtoCartUpdateItem =
117
117
  components['schemas']['commerce-trade.dto.cartUpdateItem'];
118
118
  export type ApiSchemaCommerceTradeDtoCartUpdateItemPartial =
119
119
  Partial<ApiSchemaCommerceTradeDtoCartUpdateItem>;
120
+ export type ApiSchemaCommerceTradeDtoCheckoutPaymentMethods =
121
+ components['schemas']['commerce-trade.dto.checkoutPaymentMethods'];
122
+ export type ApiSchemaCommerceTradeDtoCheckoutPaymentMethodsPartial =
123
+ Partial<ApiSchemaCommerceTradeDtoCheckoutPaymentMethods>;
124
+ export type ApiSchemaCommerceTradeDtoCheckoutPaymentMethod =
125
+ components['schemas']['commerce-trade.dto.checkoutPaymentMethod'];
126
+ export type ApiSchemaCommerceTradeDtoCheckoutPaymentMethodPartial =
127
+ Partial<ApiSchemaCommerceTradeDtoCheckoutPaymentMethod>;
120
128
  export type ApiSchemaCommerceTradeDtoCheckoutResult =
121
129
  components['schemas']['commerce-trade.dto.checkoutResult'];
122
130
  export type ApiSchemaCommerceTradeDtoCheckoutResultPartial =
@@ -165,10 +173,6 @@ export type ApiSchemaCommerceTradeDtoRefundReview =
165
173
  components['schemas']['commerce-trade.dto.refundReview'];
166
174
  export type ApiSchemaCommerceTradeDtoRefundReviewPartial =
167
175
  Partial<ApiSchemaCommerceTradeDtoRefundReview>;
168
- export type ApiSchemaCommerceTradeDtoRefundOutcomeCreate =
169
- components['schemas']['commerce-trade.dto.refundOutcomeCreate'];
170
- export type ApiSchemaCommerceTradeDtoRefundOutcomeCreatePartial =
171
- Partial<ApiSchemaCommerceTradeDtoRefundOutcomeCreate>;
172
176
  export type ApiSchemaCommerceTradeDtoShipmentView =
173
177
  components['schemas']['commerce-trade.dto.shipmentView'];
174
178
  export type ApiSchemaCommerceTradeDtoShipmentViewPartial =
@@ -461,6 +465,14 @@ export type ApiSchemaPayMockDtoMockPaymentComplete =
461
465
  components['schemas']['pay-mock.dto.mockPaymentComplete'];
462
466
  export type ApiSchemaPayMockDtoMockPaymentCompletePartial =
463
467
  Partial<ApiSchemaPayMockDtoMockPaymentComplete>;
468
+ export type ApiSchemaPayMockDtoMockRefundReceipt =
469
+ components['schemas']['pay-mock.dto.mockRefundReceipt'];
470
+ export type ApiSchemaPayMockDtoMockRefundReceiptPartial =
471
+ Partial<ApiSchemaPayMockDtoMockRefundReceipt>;
472
+ export type ApiSchemaPayMockDtoMockRefundComplete =
473
+ components['schemas']['pay-mock.dto.mockRefundComplete'];
474
+ export type ApiSchemaPayMockDtoMockRefundCompletePartial =
475
+ Partial<ApiSchemaPayMockDtoMockRefundComplete>;
464
476
  export type ApiSchemaAPaypalEntityPaypalRecord =
465
477
  components['schemas']['a-paypal.entity.paypalRecord'];
466
478
  export type ApiSchemaAPaypalEntityPaypalRecordPartial = Partial<ApiSchemaAPaypalEntityPaypalRecord>;