zova-module-a-pay 5.0.0

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.
Files changed (52) hide show
  1. package/cli/openapi.config.ts +9 -0
  2. package/dist/.metadata/component/paymentNextAction.d.ts +26 -0
  3. package/dist/.metadata/component/paymentNextAction.d.ts.map +1 -0
  4. package/dist/.metadata/index.d.ts +171 -0
  5. package/dist/.metadata/index.d.ts.map +1 -0
  6. package/dist/.metadata/this.d.ts +3 -0
  7. package/dist/.metadata/this.d.ts.map +1 -0
  8. package/dist/api/openapi/baseURL.d.ts +3 -0
  9. package/dist/api/openapi/baseURL.d.ts.map +1 -0
  10. package/dist/api/openapi/index.d.ts +4 -0
  11. package/dist/api/openapi/index.d.ts.map +1 -0
  12. package/dist/api/openapi/schemas.d.ts +328 -0
  13. package/dist/api/openapi/schemas.d.ts.map +1 -0
  14. package/dist/api/openapi/types.d.ts +9129 -0
  15. package/dist/api/openapi/types.d.ts.map +1 -0
  16. package/dist/api/paymentSession.d.ts +66 -0
  17. package/dist/api/paymentSession.d.ts.map +1 -0
  18. package/dist/apiSchema/paymentSession.d.ts +7 -0
  19. package/dist/apiSchema/paymentSession.d.ts.map +1 -0
  20. package/dist/component/paymentNextAction/controller.d.ts +15 -0
  21. package/dist/component/paymentNextAction/controller.d.ts.map +1 -0
  22. package/dist/index.d.ts +4 -0
  23. package/dist/index.d.ts.map +1 -0
  24. package/dist/index.js +153 -0
  25. package/dist/index.js.map +1 -0
  26. package/dist/lib/index.d.ts +2 -0
  27. package/dist/lib/index.d.ts.map +1 -0
  28. package/dist/model/paymentSession.d.ts +549 -0
  29. package/dist/model/paymentSession.d.ts.map +1 -0
  30. package/dist/service/paymentCoordinator.d.ts +6 -0
  31. package/dist/service/paymentCoordinator.d.ts.map +1 -0
  32. package/dist/types/index.d.ts +2 -0
  33. package/dist/types/index.d.ts.map +1 -0
  34. package/dist/types/payment.d.ts +24 -0
  35. package/dist/types/payment.d.ts.map +1 -0
  36. package/package.json +34 -0
  37. package/src/.metadata/component/paymentNextAction.ts +31 -0
  38. package/src/.metadata/index.ts +217 -0
  39. package/src/.metadata/this.ts +2 -0
  40. package/src/api/openapi/baseURL.ts +5 -0
  41. package/src/api/openapi/index.ts +3 -0
  42. package/src/api/openapi/schemas.ts +584 -0
  43. package/src/api/openapi/types.ts +9324 -0
  44. package/src/api/paymentSession.ts +52 -0
  45. package/src/apiSchema/paymentSession.ts +20 -0
  46. package/src/component/paymentNextAction/controller.tsx +76 -0
  47. package/src/index.ts +3 -0
  48. package/src/lib/index.ts +1 -0
  49. package/src/model/paymentSession.ts +32 -0
  50. package/src/service/paymentCoordinator.ts +13 -0
  51. package/src/types/index.ts +1 -0
  52. package/src/types/payment.ts +25 -0
@@ -0,0 +1,549 @@
1
+ import type { TableIdentity } from 'table-identity';
2
+ import type { IDecoratorModelOptions } from 'zova-module-a-model';
3
+ import { BeanModelBase } from 'zova-module-a-model';
4
+ export interface IModelOptionsPaymentSession extends IDecoratorModelOptions {
5
+ }
6
+ export declare class ModelPaymentSession extends BeanModelBase {
7
+ view(id: TableIdentity): {
8
+ data: {
9
+ id: number | string;
10
+ state: "created" | "starting" | "requires_action" | "processing" | "succeeded" | "failed" | "cancelled" | "expired";
11
+ providerName: string;
12
+ nextAction?: {
13
+ kind: "redirect";
14
+ url: string;
15
+ } | {
16
+ kind: "embedded";
17
+ clientToken: string;
18
+ publishableConfig?: {
19
+ [key: string]: string;
20
+ } | undefined;
21
+ } | {
22
+ kind: "pending";
23
+ retryAfterSeconds?: number | undefined;
24
+ } | {
25
+ kind: "completed";
26
+ } | undefined;
27
+ amountMinor: number;
28
+ currency: string;
29
+ };
30
+ error: Error;
31
+ isError: true;
32
+ isPending: false;
33
+ isLoading: false;
34
+ isLoadingError: false;
35
+ isRefetchError: true;
36
+ isSuccess: false;
37
+ isPlaceholderData: false;
38
+ status: "error";
39
+ dataUpdatedAt: number;
40
+ errorUpdatedAt: number;
41
+ failureCount: number;
42
+ failureReason: Error | null;
43
+ errorUpdateCount: number;
44
+ isFetched: boolean;
45
+ isFetchedAfterMount: boolean;
46
+ isFetching: boolean;
47
+ isInitialLoading: boolean;
48
+ isPaused: boolean;
49
+ isRefetching: boolean;
50
+ isStale: boolean;
51
+ isEnabled: boolean;
52
+ refetch: (options?: import("@tanstack/vue-query").RefetchOptions) => Promise<import("@tanstack/vue-query").QueryObserverResult<{
53
+ id: number | string;
54
+ state: "created" | "starting" | "requires_action" | "processing" | "succeeded" | "failed" | "cancelled" | "expired";
55
+ providerName: string;
56
+ nextAction?: {
57
+ kind: "redirect";
58
+ url: string;
59
+ } | {
60
+ kind: "embedded";
61
+ clientToken: string;
62
+ publishableConfig?: {
63
+ [key: string]: string;
64
+ } | undefined;
65
+ } | {
66
+ kind: "pending";
67
+ retryAfterSeconds?: number | undefined;
68
+ } | {
69
+ kind: "completed";
70
+ } | undefined;
71
+ amountMinor: number;
72
+ currency: string;
73
+ }, Error>>;
74
+ fetchStatus: import("@tanstack/vue-query").FetchStatus;
75
+ promise: Promise<{
76
+ id: number | string;
77
+ state: "created" | "starting" | "requires_action" | "processing" | "succeeded" | "failed" | "cancelled" | "expired";
78
+ providerName: string;
79
+ nextAction?: {
80
+ kind: "redirect";
81
+ url: string;
82
+ } | {
83
+ kind: "embedded";
84
+ clientToken: string;
85
+ publishableConfig?: {
86
+ [key: string]: string;
87
+ } | undefined;
88
+ } | {
89
+ kind: "pending";
90
+ retryAfterSeconds?: number | undefined;
91
+ } | {
92
+ kind: "completed";
93
+ } | undefined;
94
+ amountMinor: number;
95
+ currency: string;
96
+ }>;
97
+ suspense: () => Promise<import("@tanstack/vue-query").QueryObserverResult<{
98
+ id: number | string;
99
+ state: "created" | "starting" | "requires_action" | "processing" | "succeeded" | "failed" | "cancelled" | "expired";
100
+ providerName: string;
101
+ nextAction?: {
102
+ kind: "redirect";
103
+ url: string;
104
+ } | {
105
+ kind: "embedded";
106
+ clientToken: string;
107
+ publishableConfig?: {
108
+ [key: string]: string;
109
+ } | undefined;
110
+ } | {
111
+ kind: "pending";
112
+ retryAfterSeconds?: number | undefined;
113
+ } | {
114
+ kind: "completed";
115
+ } | undefined;
116
+ amountMinor: number;
117
+ currency: string;
118
+ }, Error>>;
119
+ } | {
120
+ data: {
121
+ id: number | string;
122
+ state: "created" | "starting" | "requires_action" | "processing" | "succeeded" | "failed" | "cancelled" | "expired";
123
+ providerName: string;
124
+ nextAction?: {
125
+ kind: "redirect";
126
+ url: string;
127
+ } | {
128
+ kind: "embedded";
129
+ clientToken: string;
130
+ publishableConfig?: {
131
+ [key: string]: string;
132
+ } | undefined;
133
+ } | {
134
+ kind: "pending";
135
+ retryAfterSeconds?: number | undefined;
136
+ } | {
137
+ kind: "completed";
138
+ } | undefined;
139
+ amountMinor: number;
140
+ currency: string;
141
+ };
142
+ error: null;
143
+ isError: false;
144
+ isPending: false;
145
+ isLoading: false;
146
+ isLoadingError: false;
147
+ isRefetchError: false;
148
+ isSuccess: true;
149
+ isPlaceholderData: false;
150
+ status: "success";
151
+ dataUpdatedAt: number;
152
+ errorUpdatedAt: number;
153
+ failureCount: number;
154
+ failureReason: Error | null;
155
+ errorUpdateCount: number;
156
+ isFetched: boolean;
157
+ isFetchedAfterMount: boolean;
158
+ isFetching: boolean;
159
+ isInitialLoading: boolean;
160
+ isPaused: boolean;
161
+ isRefetching: boolean;
162
+ isStale: boolean;
163
+ isEnabled: boolean;
164
+ refetch: (options?: import("@tanstack/vue-query").RefetchOptions) => Promise<import("@tanstack/vue-query").QueryObserverResult<{
165
+ id: number | string;
166
+ state: "created" | "starting" | "requires_action" | "processing" | "succeeded" | "failed" | "cancelled" | "expired";
167
+ providerName: string;
168
+ nextAction?: {
169
+ kind: "redirect";
170
+ url: string;
171
+ } | {
172
+ kind: "embedded";
173
+ clientToken: string;
174
+ publishableConfig?: {
175
+ [key: string]: string;
176
+ } | undefined;
177
+ } | {
178
+ kind: "pending";
179
+ retryAfterSeconds?: number | undefined;
180
+ } | {
181
+ kind: "completed";
182
+ } | undefined;
183
+ amountMinor: number;
184
+ currency: string;
185
+ }, Error>>;
186
+ fetchStatus: import("@tanstack/vue-query").FetchStatus;
187
+ promise: Promise<{
188
+ id: number | string;
189
+ state: "created" | "starting" | "requires_action" | "processing" | "succeeded" | "failed" | "cancelled" | "expired";
190
+ providerName: string;
191
+ nextAction?: {
192
+ kind: "redirect";
193
+ url: string;
194
+ } | {
195
+ kind: "embedded";
196
+ clientToken: string;
197
+ publishableConfig?: {
198
+ [key: string]: string;
199
+ } | undefined;
200
+ } | {
201
+ kind: "pending";
202
+ retryAfterSeconds?: number | undefined;
203
+ } | {
204
+ kind: "completed";
205
+ } | undefined;
206
+ amountMinor: number;
207
+ currency: string;
208
+ }>;
209
+ suspense: () => Promise<import("@tanstack/vue-query").QueryObserverResult<{
210
+ id: number | string;
211
+ state: "created" | "starting" | "requires_action" | "processing" | "succeeded" | "failed" | "cancelled" | "expired";
212
+ providerName: string;
213
+ nextAction?: {
214
+ kind: "redirect";
215
+ url: string;
216
+ } | {
217
+ kind: "embedded";
218
+ clientToken: string;
219
+ publishableConfig?: {
220
+ [key: string]: string;
221
+ } | undefined;
222
+ } | {
223
+ kind: "pending";
224
+ retryAfterSeconds?: number | undefined;
225
+ } | {
226
+ kind: "completed";
227
+ } | undefined;
228
+ amountMinor: number;
229
+ currency: string;
230
+ }, Error>>;
231
+ } | {
232
+ data: undefined;
233
+ error: Error;
234
+ isError: true;
235
+ isPending: false;
236
+ isLoading: false;
237
+ isLoadingError: true;
238
+ isRefetchError: false;
239
+ isSuccess: false;
240
+ isPlaceholderData: false;
241
+ status: "error";
242
+ dataUpdatedAt: number;
243
+ errorUpdatedAt: number;
244
+ failureCount: number;
245
+ failureReason: Error | null;
246
+ errorUpdateCount: number;
247
+ isFetched: boolean;
248
+ isFetchedAfterMount: boolean;
249
+ isFetching: boolean;
250
+ isInitialLoading: boolean;
251
+ isPaused: boolean;
252
+ isRefetching: boolean;
253
+ isStale: boolean;
254
+ isEnabled: boolean;
255
+ refetch: (options?: import("@tanstack/vue-query").RefetchOptions) => Promise<import("@tanstack/vue-query").QueryObserverResult<{
256
+ id: number | string;
257
+ state: "created" | "starting" | "requires_action" | "processing" | "succeeded" | "failed" | "cancelled" | "expired";
258
+ providerName: string;
259
+ nextAction?: {
260
+ kind: "redirect";
261
+ url: string;
262
+ } | {
263
+ kind: "embedded";
264
+ clientToken: string;
265
+ publishableConfig?: {
266
+ [key: string]: string;
267
+ } | undefined;
268
+ } | {
269
+ kind: "pending";
270
+ retryAfterSeconds?: number | undefined;
271
+ } | {
272
+ kind: "completed";
273
+ } | undefined;
274
+ amountMinor: number;
275
+ currency: string;
276
+ }, Error>>;
277
+ fetchStatus: import("@tanstack/vue-query").FetchStatus;
278
+ promise: Promise<{
279
+ id: number | string;
280
+ state: "created" | "starting" | "requires_action" | "processing" | "succeeded" | "failed" | "cancelled" | "expired";
281
+ providerName: string;
282
+ nextAction?: {
283
+ kind: "redirect";
284
+ url: string;
285
+ } | {
286
+ kind: "embedded";
287
+ clientToken: string;
288
+ publishableConfig?: {
289
+ [key: string]: string;
290
+ } | undefined;
291
+ } | {
292
+ kind: "pending";
293
+ retryAfterSeconds?: number | undefined;
294
+ } | {
295
+ kind: "completed";
296
+ } | undefined;
297
+ amountMinor: number;
298
+ currency: string;
299
+ }>;
300
+ suspense: () => Promise<import("@tanstack/vue-query").QueryObserverResult<{
301
+ id: number | string;
302
+ state: "created" | "starting" | "requires_action" | "processing" | "succeeded" | "failed" | "cancelled" | "expired";
303
+ providerName: string;
304
+ nextAction?: {
305
+ kind: "redirect";
306
+ url: string;
307
+ } | {
308
+ kind: "embedded";
309
+ clientToken: string;
310
+ publishableConfig?: {
311
+ [key: string]: string;
312
+ } | undefined;
313
+ } | {
314
+ kind: "pending";
315
+ retryAfterSeconds?: number | undefined;
316
+ } | {
317
+ kind: "completed";
318
+ } | undefined;
319
+ amountMinor: number;
320
+ currency: string;
321
+ }, Error>>;
322
+ } | {
323
+ data: undefined;
324
+ error: null;
325
+ isError: false;
326
+ isPending: true;
327
+ isLoadingError: false;
328
+ isRefetchError: false;
329
+ isSuccess: false;
330
+ isPlaceholderData: false;
331
+ status: "pending";
332
+ dataUpdatedAt: number;
333
+ errorUpdatedAt: number;
334
+ failureCount: number;
335
+ failureReason: Error | null;
336
+ errorUpdateCount: number;
337
+ isFetched: boolean;
338
+ isFetchedAfterMount: boolean;
339
+ isFetching: boolean;
340
+ isLoading: boolean;
341
+ isInitialLoading: boolean;
342
+ isPaused: boolean;
343
+ isRefetching: boolean;
344
+ isStale: boolean;
345
+ isEnabled: boolean;
346
+ refetch: (options?: import("@tanstack/vue-query").RefetchOptions) => Promise<import("@tanstack/vue-query").QueryObserverResult<{
347
+ id: number | string;
348
+ state: "created" | "starting" | "requires_action" | "processing" | "succeeded" | "failed" | "cancelled" | "expired";
349
+ providerName: string;
350
+ nextAction?: {
351
+ kind: "redirect";
352
+ url: string;
353
+ } | {
354
+ kind: "embedded";
355
+ clientToken: string;
356
+ publishableConfig?: {
357
+ [key: string]: string;
358
+ } | undefined;
359
+ } | {
360
+ kind: "pending";
361
+ retryAfterSeconds?: number | undefined;
362
+ } | {
363
+ kind: "completed";
364
+ } | undefined;
365
+ amountMinor: number;
366
+ currency: string;
367
+ }, Error>>;
368
+ fetchStatus: import("@tanstack/vue-query").FetchStatus;
369
+ promise: Promise<{
370
+ id: number | string;
371
+ state: "created" | "starting" | "requires_action" | "processing" | "succeeded" | "failed" | "cancelled" | "expired";
372
+ providerName: string;
373
+ nextAction?: {
374
+ kind: "redirect";
375
+ url: string;
376
+ } | {
377
+ kind: "embedded";
378
+ clientToken: string;
379
+ publishableConfig?: {
380
+ [key: string]: string;
381
+ } | undefined;
382
+ } | {
383
+ kind: "pending";
384
+ retryAfterSeconds?: number | undefined;
385
+ } | {
386
+ kind: "completed";
387
+ } | undefined;
388
+ amountMinor: number;
389
+ currency: string;
390
+ }>;
391
+ suspense: () => Promise<import("@tanstack/vue-query").QueryObserverResult<{
392
+ id: number | string;
393
+ state: "created" | "starting" | "requires_action" | "processing" | "succeeded" | "failed" | "cancelled" | "expired";
394
+ providerName: string;
395
+ nextAction?: {
396
+ kind: "redirect";
397
+ url: string;
398
+ } | {
399
+ kind: "embedded";
400
+ clientToken: string;
401
+ publishableConfig?: {
402
+ [key: string]: string;
403
+ } | undefined;
404
+ } | {
405
+ kind: "pending";
406
+ retryAfterSeconds?: number | undefined;
407
+ } | {
408
+ kind: "completed";
409
+ } | undefined;
410
+ amountMinor: number;
411
+ currency: string;
412
+ }, Error>>;
413
+ } | {
414
+ data: {
415
+ id: number | string;
416
+ state: "created" | "starting" | "requires_action" | "processing" | "succeeded" | "failed" | "cancelled" | "expired";
417
+ providerName: string;
418
+ nextAction?: {
419
+ kind: "redirect";
420
+ url: string;
421
+ } | {
422
+ kind: "embedded";
423
+ clientToken: string;
424
+ publishableConfig?: {
425
+ [key: string]: string;
426
+ } | undefined;
427
+ } | {
428
+ kind: "pending";
429
+ retryAfterSeconds?: number | undefined;
430
+ } | {
431
+ kind: "completed";
432
+ } | undefined;
433
+ amountMinor: number;
434
+ currency: string;
435
+ };
436
+ isError: false;
437
+ error: null;
438
+ isPending: false;
439
+ isLoading: false;
440
+ isLoadingError: false;
441
+ isRefetchError: false;
442
+ isSuccess: true;
443
+ isPlaceholderData: true;
444
+ status: "success";
445
+ dataUpdatedAt: number;
446
+ errorUpdatedAt: number;
447
+ failureCount: number;
448
+ failureReason: Error | null;
449
+ errorUpdateCount: number;
450
+ isFetched: boolean;
451
+ isFetchedAfterMount: boolean;
452
+ isFetching: boolean;
453
+ isInitialLoading: boolean;
454
+ isPaused: boolean;
455
+ isRefetching: boolean;
456
+ isStale: boolean;
457
+ isEnabled: boolean;
458
+ refetch: (options?: import("@tanstack/vue-query").RefetchOptions) => Promise<import("@tanstack/vue-query").QueryObserverResult<{
459
+ id: number | string;
460
+ state: "created" | "starting" | "requires_action" | "processing" | "succeeded" | "failed" | "cancelled" | "expired";
461
+ providerName: string;
462
+ nextAction?: {
463
+ kind: "redirect";
464
+ url: string;
465
+ } | {
466
+ kind: "embedded";
467
+ clientToken: string;
468
+ publishableConfig?: {
469
+ [key: string]: string;
470
+ } | undefined;
471
+ } | {
472
+ kind: "pending";
473
+ retryAfterSeconds?: number | undefined;
474
+ } | {
475
+ kind: "completed";
476
+ } | undefined;
477
+ amountMinor: number;
478
+ currency: string;
479
+ }, Error>>;
480
+ fetchStatus: import("@tanstack/vue-query").FetchStatus;
481
+ promise: Promise<{
482
+ id: number | string;
483
+ state: "created" | "starting" | "requires_action" | "processing" | "succeeded" | "failed" | "cancelled" | "expired";
484
+ providerName: string;
485
+ nextAction?: {
486
+ kind: "redirect";
487
+ url: string;
488
+ } | {
489
+ kind: "embedded";
490
+ clientToken: string;
491
+ publishableConfig?: {
492
+ [key: string]: string;
493
+ } | undefined;
494
+ } | {
495
+ kind: "pending";
496
+ retryAfterSeconds?: number | undefined;
497
+ } | {
498
+ kind: "completed";
499
+ } | undefined;
500
+ amountMinor: number;
501
+ currency: string;
502
+ }>;
503
+ suspense: () => Promise<import("@tanstack/vue-query").QueryObserverResult<{
504
+ id: number | string;
505
+ state: "created" | "starting" | "requires_action" | "processing" | "succeeded" | "failed" | "cancelled" | "expired";
506
+ providerName: string;
507
+ nextAction?: {
508
+ kind: "redirect";
509
+ url: string;
510
+ } | {
511
+ kind: "embedded";
512
+ clientToken: string;
513
+ publishableConfig?: {
514
+ [key: string]: string;
515
+ } | undefined;
516
+ } | {
517
+ kind: "pending";
518
+ retryAfterSeconds?: number | undefined;
519
+ } | {
520
+ kind: "completed";
521
+ } | undefined;
522
+ amountMinor: number;
523
+ currency: string;
524
+ }, Error>>;
525
+ } | undefined;
526
+ start(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>>;
548
+ }
549
+ //# sourceMappingURL=paymentSession.d.ts.map
@@ -0,0 +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;;;;;iCAA8N,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAAhO,CAAC;;;;;iCAA8N,CAAC;;;;;;;;;;;;;;;;;;iCAAhO,CAAC;;;;;iCAA8N,CAAC;;;;;;;;;;;;;;;;;iCAAhO,CAAC;;;;;iCAA8N,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAAhO,CAAC;;;;;iCAA8N,CAAC;;;;;;;;;;;;;;;;;;iCAAhO,CAAC;;;;;iCAA8N,CAAC;;;;;;;;;;;;;;;;;iCAAhO,CAAC;;;;;iCAA8N,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAAhO,CAAC;;;;;iCAA8N,CAAC;;;;;;;;;;;;;;;;;;iCAAhO,CAAC;;;;;iCAA8N,CAAC;;;;;;;;;;;;;;;;;iCAAhO,CAAC;;;;;iCAA8N,CAAC;;;;;;;;;;;;;;;;;;iCAAhO,CAAC;;;;;iCAA8N,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAAhO,CAAC;;;;;iCAA8N,CAAC;;;;;;;;;;;;;;;;;;iCAAhO,CAAC;;;;;iCAA8N,CAAC;;;;;;;;;;;;;;;;;iCAAhO,CAAC;;;;;iCAA8N,CAAC;;;;;;;;IAZ3t3C,KAAK,CAAC,EAAE,EAAE,aAAa;;;;;;;;;;6BAYo+2C,CAAC;;;;;6BAA8N,CAAC;;;;;;;CAD5t3C"}
@@ -0,0 +1,6 @@
1
+ import { BeanBase } from 'zova';
2
+ import type { TypePaymentNextAction } from '../types/payment.js';
3
+ export declare class ServicePaymentCoordinator extends BeanBase {
4
+ execute(action: TypePaymentNextAction): Promise<void>;
5
+ }
6
+ //# sourceMappingURL=paymentCoordinator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paymentCoordinator.d.ts","sourceRoot":"","sources":["../../src/service/paymentCoordinator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAGhC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAEjE,qBACa,yBAA0B,SAAQ,QAAQ;IAC/C,OAAO,CAAC,MAAM,EAAE,qBAAqB;CAK5C"}
@@ -0,0 +1,2 @@
1
+ export * from './payment.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
@@ -0,0 +1,24 @@
1
+ export type TypePaymentNextAction = {
2
+ kind: 'redirect';
3
+ url: string;
4
+ } | {
5
+ kind: 'embedded';
6
+ clientToken: string;
7
+ publishableConfig?: Record<string, string>;
8
+ } | {
9
+ kind: 'pending';
10
+ retryAfterSeconds?: number;
11
+ } | {
12
+ kind: 'completed';
13
+ };
14
+ export interface IPaymentSessionView {
15
+ id: string | number;
16
+ state: 'created' | 'starting' | 'requires_action' | 'processing' | 'succeeded' | 'failed' | 'cancelled' | 'expired';
17
+ providerName: string;
18
+ nextAction?: TypePaymentNextAction;
19
+ }
20
+ export interface IPayUiProvider {
21
+ supports(action: TypePaymentNextAction): boolean;
22
+ execute(action: TypePaymentNextAction): Promise<void>;
23
+ }
24
+ //# sourceMappingURL=payment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payment.d.ts","sourceRoot":"","sources":["../../src/types/payment.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,qBAAqB,GAC7B;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GACjC;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,GACrF;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAAE,GAC/C;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,CAAC;AAE1B,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,KAAK,EACD,SAAS,GACT,UAAU,GACV,iBAAiB,GACjB,YAAY,GACZ,WAAW,GACX,QAAQ,GACR,WAAW,GACX,SAAS,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,qBAAqB,CAAC;CACpC;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC;IACjD,OAAO,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACvD"}
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "zova-module-a-pay",
3
+ "version": "5.0.0",
4
+ "description": "",
5
+ "keywords": [
6
+ "Zova Module"
7
+ ],
8
+ "author": "",
9
+ "files": [
10
+ "mock",
11
+ "dist",
12
+ "src",
13
+ "icons",
14
+ "cli",
15
+ "assets"
16
+ ],
17
+ "type": "module",
18
+ "exports": {
19
+ ".": {
20
+ "types": "./dist/index.d.ts",
21
+ "default": "./dist/index.js"
22
+ },
23
+ "./*": "./*"
24
+ },
25
+ "scripts": {
26
+ "clean": "rimraf dist tsconfig.build.tsbuildinfo",
27
+ "tsc:publish": "npm run clean && node ../../../../../packages-cli/cli/src/bin/zova.ts :bin:buildModule --sourcemap && tsc -p tsconfig.build.json",
28
+ "prepublishOnly": "npm run tsc:publish",
29
+ "prepack": "clean-package",
30
+ "postpack": "clean-package restore"
31
+ },
32
+ "dependencies": {},
33
+ "title": "a-pay"
34
+ }
@@ -0,0 +1,31 @@
1
+ import type { TypeControllerInnerProps } from 'zova';
2
+
3
+ import { defineComponent } from 'vue';
4
+ import { prepareComponentOptions, useController } from 'zova';
5
+
6
+ import type { ControllerPaymentNextActionProps } from '../../component/paymentNextAction/controller.jsx';
7
+
8
+ import { ControllerPaymentNextAction } from '../../component/paymentNextAction/controller.jsx';
9
+ export type ZPaymentNextActionProps = {
10
+ controllerRef?: (ref: ControllerPaymentNextAction) => void;
11
+ } & ControllerPaymentNextActionProps;
12
+
13
+ type ControllerInnerProps = TypeControllerInnerProps<
14
+ ControllerPaymentNextActionProps,
15
+ keyof typeof ControllerPaymentNextAction.$propsDefault
16
+ >;
17
+ declare module 'zova-module-a-pay' {
18
+ export interface ControllerPaymentNextAction {
19
+ $props: ControllerInnerProps;
20
+ }
21
+ }
22
+
23
+ export const ZPaymentNextAction = defineComponent((_props: ZPaymentNextActionProps) => {
24
+ useController(ControllerPaymentNextAction, undefined, undefined);
25
+ return () => {};
26
+ }, prepareComponentOptions());
27
+ declare module 'zova-module-a-bean' {
28
+ export interface IVonaComponentRecord {
29
+ 'a-pay:paymentNextAction': ControllerPaymentNextActionProps;
30
+ }
31
+ }