cabloy 5.1.126 → 5.1.128
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/.cabloy-version +1 -1
- package/CHANGELOG.md +37 -0
- package/cabloy-docs/backend/error-guide.md +17 -0
- package/cabloy-docs/backend/i18n-guide.md +86 -7
- package/e2e/specs/a-commerce/commerce.spec.ts +222 -6
- package/package.json +1 -1
- package/vona/env/.env +2 -0
- package/vona/env/.env.prod +6 -2
- package/vona/packages-cli/cabloy-cli/package.json +1 -1
- package/vona/packages-cli/cli/package.json +1 -1
- package/vona/packages-cli/cli-set-api/package.json +1 -1
- package/vona/packages-utils/module-glob/package.json +1 -1
- package/vona/packages-utils/utils/package.json +1 -1
- package/vona/packages-utils/utils/src/vona.ts +8 -1
- package/vona/packages-vona/vona/package.json +1 -1
- package/vona/packages-vona/vona-core/package.json +1 -1
- package/vona/packages-vona/vona-core/src/lib/bean/resource/error/errorClass.ts +21 -4
- package/vona/packages-vona/vona-core/src/lib/bean/resource/error/errorObject.ts +1 -0
- package/vona/packages-vona/vona-core/src/lib/bean/type.ts +3 -1
- package/vona/packages-vona/vona-core/src/types/interface/module.ts +6 -1
- package/vona/packages-vona/vona-mock/package.json +1 -1
- package/vona/pnpm-lock.yaml +15 -44
- package/vona/src/suite/a-commerce/modules/commerce-catalog/src/.metadata/index.ts +37 -2
- package/vona/src/suite/a-commerce/modules/commerce-catalog/src/config/locale/en-us.ts +1 -0
- package/vona/src/suite/a-commerce/modules/commerce-catalog/src/config/locale/zh-cn.ts +1 -0
- package/vona/src/suite/a-commerce/modules/commerce-catalog/src/dto/categorySelectResItem.tsx +3 -1
- package/vona/src/suite/a-commerce/modules/commerce-catalog/src/dto/categoryView.tsx +3 -1
- package/vona/src/suite/a-commerce/modules/commerce-catalog/src/dto/productSelectResItem.tsx +3 -1
- package/vona/src/suite/a-commerce/modules/commerce-catalog/src/dto/productView.tsx +3 -1
- package/vona/src/suite/a-commerce/modules/commerce-catalog/src/entity/category.tsx +21 -2
- package/vona/src/suite/a-commerce/modules/commerce-catalog/src/entity/product.tsx +23 -3
- package/vona/src/suite/a-commerce/modules/commerce-catalog/src/model/category.ts +11 -1
- package/vona/src/suite/a-commerce/modules/commerce-catalog/src/model/product.ts +1 -0
- package/vona/src/suite/a-commerce/modules/commerce-catalog/src/service/category.ts +7 -2
- package/vona/src/suite/a-commerce/modules/commerce-catalog/src/service/product.ts +7 -2
- package/vona/src/suite/a-commerce/modules/commerce-catalog/test/categoryPresentation.test.ts +218 -0
- package/vona/src/suite/a-commerce/modules/commerce-catalog/test/productPresentation.test.ts +214 -0
- package/vona/src/suite/a-commerce/modules/commerce-payment/src/bean/payScene.commerceOrder.ts +39 -3
- package/vona/src/suite/a-commerce/modules/commerce-payment/src/service/commercePayScene.ts +14 -1
- package/vona/src/suite/a-commerce/modules/commerce-payment/src/service/paymentAttempt.ts +5 -1
- package/vona/src/suite/a-commerce/modules/commerce-trade/src/.metadata/index.ts +17 -0
- package/vona/src/suite/a-commerce/modules/commerce-trade/src/controller/checkout.ts +18 -0
- package/vona/src/suite/a-commerce/modules/commerce-trade/src/dto/checkoutCreate.tsx +3 -0
- package/vona/src/suite/a-commerce/modules/commerce-trade/src/dto/checkoutPaymentMethod.tsx +19 -0
- package/vona/src/suite/a-commerce/modules/commerce-trade/src/dto/checkoutPaymentMethods.tsx +17 -0
- package/vona/src/suite/a-commerce/modules/commerce-trade/src/dto/refundResult.tsx +3 -0
- package/vona/src/suite/a-commerce/modules/commerce-trade/src/service/order.ts +53 -1
- package/vona/src/suite/a-commerce/modules/commerce-trade/test/paymentOutcome.test.ts +2 -1
- package/vona/src/suite/a-commerce/modules/commerce-trade/test/refundLifecycle.test.ts +111 -3
- package/vona/src/suite-vendor/a-pay/modules/a-pay/package.json +1 -1
- package/vona/src/suite-vendor/a-pay/modules/a-pay/src/.metadata/index.ts +94 -55
- package/vona/src/suite-vendor/a-pay/modules/a-pay/src/bean/bean.payScene.ts +65 -1
- package/vona/src/suite-vendor/a-pay/modules/a-pay/src/bean/meta.redlock.ts +2 -0
- package/vona/src/suite-vendor/a-pay/modules/a-pay/src/controller/paymentCallback.ts +32 -0
- package/vona/src/suite-vendor/a-pay/modules/a-pay/src/controller/paymentSession.ts +26 -8
- package/vona/src/suite-vendor/a-pay/modules/a-pay/src/service/paymentCallback.ts +99 -0
- package/vona/src/suite-vendor/a-pay/modules/a-pay/src/service/paymentSession.ts +26 -3
- package/vona/src/suite-vendor/a-pay/modules/a-pay/src/service/providerOperation.ts +214 -82
- package/vona/src/suite-vendor/a-pay/modules/a-pay/src/service/refundOperation.ts +27 -2
- package/vona/src/suite-vendor/a-pay/modules/a-pay/src/types/payScene.ts +9 -0
- package/vona/src/suite-vendor/a-pay/modules/a-pay/src/types/payment.ts +5 -0
- package/vona/src/suite-vendor/a-pay/modules/pay-mock/package.json +1 -1
- package/vona/src/suite-vendor/a-pay/modules/pay-mock/src/bean/payProvider.mock.ts +7 -0
- package/vona/src/suite-vendor/a-pay/modules/pay-paypal/package.json +1 -1
- package/vona/src/suite-vendor/a-pay/modules/pay-paypal/src/bean/payProvider.paypal.ts +395 -84
- package/vona/src/suite-vendor/a-pay/modules/pay-paypal/src/lib/index.ts +1 -1
- package/vona/src/suite-vendor/a-pay/modules/pay-paypal/src/lib/paypalGateway.ts +129 -0
- package/vona/src/suite-vendor/a-pay/modules/pay-paypal/src/types/index.ts +2 -0
- package/vona/src/suite-vendor/a-pay/modules/pay-stripe/package.json +1 -1
- package/vona/src/suite-vendor/a-pay/modules/pay-stripe/src/bean/payProvider.stripe.ts +7 -0
- package/vona/src/suite-vendor/a-pay/package.json +5 -5
- package/vona/src/suite-vendor/a-vona/modules/a-core/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/package.json +1 -1
- package/zova/packages-cli/cli/package.json +3 -3
- package/zova/packages-cli/cli-set-front/package.json +4 -4
- package/zova/packages-utils/zova-jsx/package.json +3 -3
- package/zova/packages-utils/zova-vite/package.json +2 -2
- package/zova/packages-zova/zova/package.json +3 -3
- package/zova/packages-zova/zova-core/package.json +2 -2
- package/zova/src/suite/a-commerce/modules/commerce-member/src/api/openapi/schemas.ts +16 -4
- package/zova/src/suite/a-commerce/modules/commerce-member/src/api/openapi/types.ts +240 -19
- package/zova/src/suite/a-commerce/modules/commerce-trade/cli/openapi.config.ts +1 -0
- package/zova/src/suite/a-commerce/modules/commerce-trade/src/api/commerceTradeCheckout.ts +16 -0
- package/zova/src/suite/a-commerce/modules/commerce-trade/src/api/openapi/schemas.ts +8 -0
- package/zova/src/suite/a-commerce/modules/commerce-trade/src/api/openapi/types.ts +184 -8
- package/zova/src/suite/a-commerce/modules/commerce-trade/src/apiSchema/commerceTradeCheckout.ts +12 -1
- package/zova/src/suite/a-commerce/modules/commerce-trade/src/model/cart.ts +11 -0
- package/zova/src/suite/a-commerce/modules/commerce-trade/src/page/checkout/controller.tsx +25 -1
- package/zova/src/suite/a-commerce/modules/commerce-trade/src/page/payment/controller.tsx +27 -4
- package/zova/src/suite/cabloy-basic/modules/basic-select/src/bean/tableCell.select.tsx +12 -6
- package/zova/src/suite/cabloy-basic/modules/basic-select/src/component/formFieldSelect/controller.tsx +6 -3
- package/zova/src/suite-vendor/a-pay/modules/a-pay/cli/openapi.config.ts +1 -1
- package/zova/src/suite-vendor/a-pay/modules/a-pay/package.json +1 -1
- package/zova/src/suite-vendor/a-pay/modules/a-pay/src/api/openapi/schemas.ts +20 -8
- package/zova/src/suite-vendor/a-pay/modules/a-pay/src/api/openapi/types.ts +292 -32
- package/zova/src/suite-vendor/a-pay/modules/a-pay/src/api/paymentSession.ts +26 -4
- package/zova/src/suite-vendor/a-pay/modules/a-pay/src/apiSchema/paymentSession.ts +5 -0
- package/zova/src/suite-vendor/a-pay/modules/a-pay/src/component/paymentNextAction/controller.tsx +2 -1
- package/zova/src/suite-vendor/a-pay/modules/a-pay/src/model/paymentSession.ts +12 -0
- package/zova/src/suite-vendor/a-pay/package.json +2 -2
- package/zova/src/suite-vendor/a-zova/modules/a-zova/package.json +4 -4
- package/zova/src/suite-vendor/a-zova/package.json +2 -2
|
@@ -95,6 +95,38 @@ export interface paths {
|
|
|
95
95
|
patch?: never;
|
|
96
96
|
trace?: never;
|
|
97
97
|
};
|
|
98
|
+
'/api/payment-callback/return': {
|
|
99
|
+
parameters: {
|
|
100
|
+
query?: never;
|
|
101
|
+
header?: never;
|
|
102
|
+
path?: never;
|
|
103
|
+
cookie?: never;
|
|
104
|
+
};
|
|
105
|
+
get: operations['PaymentCallback_returned'];
|
|
106
|
+
put?: never;
|
|
107
|
+
post?: never;
|
|
108
|
+
delete?: never;
|
|
109
|
+
options?: never;
|
|
110
|
+
head?: never;
|
|
111
|
+
patch?: never;
|
|
112
|
+
trace?: never;
|
|
113
|
+
};
|
|
114
|
+
'/api/payment-callback/cancel': {
|
|
115
|
+
parameters: {
|
|
116
|
+
query?: never;
|
|
117
|
+
header?: never;
|
|
118
|
+
path?: never;
|
|
119
|
+
cookie?: never;
|
|
120
|
+
};
|
|
121
|
+
get: operations['PaymentCallback_cancelled'];
|
|
122
|
+
put?: never;
|
|
123
|
+
post?: never;
|
|
124
|
+
delete?: never;
|
|
125
|
+
options?: never;
|
|
126
|
+
head?: never;
|
|
127
|
+
patch?: never;
|
|
128
|
+
trace?: never;
|
|
129
|
+
};
|
|
98
130
|
'/api/payment-session/{id}/start': {
|
|
99
131
|
parameters: {
|
|
100
132
|
query?: never;
|
|
@@ -111,6 +143,22 @@ export interface paths {
|
|
|
111
143
|
patch?: never;
|
|
112
144
|
trace?: never;
|
|
113
145
|
};
|
|
146
|
+
'/api/payment-session/{id}/reconcile': {
|
|
147
|
+
parameters: {
|
|
148
|
+
query?: never;
|
|
149
|
+
header?: never;
|
|
150
|
+
path?: never;
|
|
151
|
+
cookie?: never;
|
|
152
|
+
};
|
|
153
|
+
get?: never;
|
|
154
|
+
put?: never;
|
|
155
|
+
post: operations['PaymentSession_reconcile'];
|
|
156
|
+
delete?: never;
|
|
157
|
+
options?: never;
|
|
158
|
+
head?: never;
|
|
159
|
+
patch?: never;
|
|
160
|
+
trace?: never;
|
|
161
|
+
};
|
|
114
162
|
'/api/payment-session/{id}': {
|
|
115
163
|
parameters: {
|
|
116
164
|
query?: never;
|
|
@@ -527,6 +575,22 @@ export interface paths {
|
|
|
527
575
|
patch: operations['CommerceTradeCart_updateItem'];
|
|
528
576
|
trace?: never;
|
|
529
577
|
};
|
|
578
|
+
'/api/commerce/trade/checkout/payment-methods': {
|
|
579
|
+
parameters: {
|
|
580
|
+
query?: never;
|
|
581
|
+
header?: never;
|
|
582
|
+
path?: never;
|
|
583
|
+
cookie?: never;
|
|
584
|
+
};
|
|
585
|
+
get: operations['CommerceTradeCheckout_paymentMethods'];
|
|
586
|
+
put?: never;
|
|
587
|
+
post?: never;
|
|
588
|
+
delete?: never;
|
|
589
|
+
options?: never;
|
|
590
|
+
head?: never;
|
|
591
|
+
patch?: never;
|
|
592
|
+
trace?: never;
|
|
593
|
+
};
|
|
530
594
|
'/api/commerce/trade/checkout': {
|
|
531
595
|
parameters: {
|
|
532
596
|
query?: never;
|
|
@@ -623,7 +687,7 @@ export interface paths {
|
|
|
623
687
|
patch?: never;
|
|
624
688
|
trace?: never;
|
|
625
689
|
};
|
|
626
|
-
'/api/commerce/trade/order/{id}/
|
|
690
|
+
'/api/commerce/trade/order/{id}/executeRefund': {
|
|
627
691
|
parameters: {
|
|
628
692
|
query?: never;
|
|
629
693
|
header?: never;
|
|
@@ -632,7 +696,7 @@ export interface paths {
|
|
|
632
696
|
};
|
|
633
697
|
get?: never;
|
|
634
698
|
put?: never;
|
|
635
|
-
post: operations['
|
|
699
|
+
post: operations['CommerceTradeOrder_executeRefund'];
|
|
636
700
|
delete?: never;
|
|
637
701
|
options?: never;
|
|
638
702
|
head?: never;
|
|
@@ -1264,6 +1328,22 @@ export interface paths {
|
|
|
1264
1328
|
patch?: never;
|
|
1265
1329
|
trace?: never;
|
|
1266
1330
|
};
|
|
1331
|
+
'/api/pay/mock/payment-session/refund-operation/{id}/complete': {
|
|
1332
|
+
parameters: {
|
|
1333
|
+
query?: never;
|
|
1334
|
+
header?: never;
|
|
1335
|
+
path?: never;
|
|
1336
|
+
cookie?: never;
|
|
1337
|
+
};
|
|
1338
|
+
get?: never;
|
|
1339
|
+
put?: never;
|
|
1340
|
+
post: operations['PayMockPayment_completeRefund'];
|
|
1341
|
+
delete?: never;
|
|
1342
|
+
options?: never;
|
|
1343
|
+
head?: never;
|
|
1344
|
+
patch?: never;
|
|
1345
|
+
trace?: never;
|
|
1346
|
+
};
|
|
1267
1347
|
'/api/paypal/getRecord/{recordId}': {
|
|
1268
1348
|
parameters: {
|
|
1269
1349
|
query?: never;
|
|
@@ -2446,9 +2526,9 @@ export interface components {
|
|
|
2446
2526
|
* @enum {string}
|
|
2447
2527
|
*/
|
|
2448
2528
|
currency: 'USD';
|
|
2449
|
-
/** @description Fixed Discount
|
|
2529
|
+
/** @description Fixed Discount */
|
|
2450
2530
|
discountCents: number;
|
|
2451
|
-
/** @description Minimum Spend
|
|
2531
|
+
/** @description Minimum Spend */
|
|
2452
2532
|
minSpendCents: number;
|
|
2453
2533
|
/**
|
|
2454
2534
|
* Format: date-time
|
|
@@ -2511,9 +2591,9 @@ export interface components {
|
|
|
2511
2591
|
* @enum {string}
|
|
2512
2592
|
*/
|
|
2513
2593
|
currency: 'USD';
|
|
2514
|
-
/** @description Fixed Discount
|
|
2594
|
+
/** @description Fixed Discount */
|
|
2515
2595
|
discountCents: number;
|
|
2516
|
-
/** @description Minimum Spend
|
|
2596
|
+
/** @description Minimum Spend */
|
|
2517
2597
|
minSpendCents: number;
|
|
2518
2598
|
/**
|
|
2519
2599
|
* Format: date-time
|
|
@@ -2576,9 +2656,9 @@ export interface components {
|
|
|
2576
2656
|
* @enum {string}
|
|
2577
2657
|
*/
|
|
2578
2658
|
currency: 'USD';
|
|
2579
|
-
/** @description Fixed Discount
|
|
2659
|
+
/** @description Fixed Discount */
|
|
2580
2660
|
discountCents: number;
|
|
2581
|
-
/** @description Minimum Spend
|
|
2661
|
+
/** @description Minimum Spend */
|
|
2582
2662
|
minSpendCents: number;
|
|
2583
2663
|
/**
|
|
2584
2664
|
* Format: date-time
|
|
@@ -2636,6 +2716,16 @@ export interface components {
|
|
|
2636
2716
|
/** @description Quantity */
|
|
2637
2717
|
quantity: number;
|
|
2638
2718
|
};
|
|
2719
|
+
'commerce-trade.dto.checkoutPaymentMethods': {
|
|
2720
|
+
items: components['schemas']['commerce-trade.dto.checkoutPaymentMethod'][];
|
|
2721
|
+
defaultKey: string;
|
|
2722
|
+
};
|
|
2723
|
+
'commerce-trade.dto.checkoutPaymentMethod': {
|
|
2724
|
+
key: string;
|
|
2725
|
+
label: string;
|
|
2726
|
+
/** @enum {string} */
|
|
2727
|
+
interaction: 'redirect' | 'embedded';
|
|
2728
|
+
};
|
|
2639
2729
|
'commerce-trade.dto.checkoutResult': {
|
|
2640
2730
|
orderId: number | string;
|
|
2641
2731
|
paymentAttemptId: number | string;
|
|
@@ -2654,6 +2744,7 @@ export interface components {
|
|
|
2654
2744
|
addressId: number | string;
|
|
2655
2745
|
couponGrantId?: number | string | undefined;
|
|
2656
2746
|
correlationId: string;
|
|
2747
|
+
providerCandidateKey?: string | undefined;
|
|
2657
2748
|
};
|
|
2658
2749
|
'commerce-trade.dto.orderMineRes': {
|
|
2659
2750
|
list: components['schemas']['commerce-trade.dto.orderSummary'][];
|
|
@@ -2761,6 +2852,7 @@ export interface components {
|
|
|
2761
2852
|
orderId: number | string;
|
|
2762
2853
|
refundRequestId: number | string;
|
|
2763
2854
|
refundAttemptId?: number | string | undefined;
|
|
2855
|
+
refundOperationId?: number | string | undefined;
|
|
2764
2856
|
/** @enum {string} */
|
|
2765
2857
|
orderState: 'paid' | 'refund_requested' | 'refund_approved' | 'refund_rejected' | 'refunded';
|
|
2766
2858
|
/** @enum {string} */
|
|
@@ -2779,11 +2871,6 @@ export interface components {
|
|
|
2779
2871
|
reason: string;
|
|
2780
2872
|
idempotencyKey: string;
|
|
2781
2873
|
};
|
|
2782
|
-
'commerce-trade.dto.refundOutcomeCreate': {
|
|
2783
|
-
/** @enum {string} */
|
|
2784
|
-
outcome: 'succeeded' | 'failed';
|
|
2785
|
-
idempotencyKey: string;
|
|
2786
|
-
};
|
|
2787
2874
|
'commerce-trade.dto.shipmentView': {
|
|
2788
2875
|
/** @description ID */
|
|
2789
2876
|
id: number | string;
|
|
@@ -4483,6 +4570,14 @@ export interface components {
|
|
|
4483
4570
|
/** @enum {string} */
|
|
4484
4571
|
outcome: 'succeeded' | 'failed' | 'cancelled';
|
|
4485
4572
|
};
|
|
4573
|
+
'pay-mock.dto.mockRefundReceipt': {
|
|
4574
|
+
refundOperationId: number | string;
|
|
4575
|
+
accepted: boolean;
|
|
4576
|
+
};
|
|
4577
|
+
'pay-mock.dto.mockRefundComplete': {
|
|
4578
|
+
/** @enum {string} */
|
|
4579
|
+
outcome: 'succeeded' | 'failed' | 'cancelled';
|
|
4580
|
+
};
|
|
4486
4581
|
'a-paypal.entity.paypalRecord': {
|
|
4487
4582
|
/**
|
|
4488
4583
|
* Format: date-time
|
|
@@ -5199,6 +5294,56 @@ export interface operations {
|
|
|
5199
5294
|
};
|
|
5200
5295
|
};
|
|
5201
5296
|
};
|
|
5297
|
+
PaymentCallback_returned: {
|
|
5298
|
+
parameters: {
|
|
5299
|
+
query: {
|
|
5300
|
+
state: string;
|
|
5301
|
+
};
|
|
5302
|
+
header?: never;
|
|
5303
|
+
path?: never;
|
|
5304
|
+
cookie?: never;
|
|
5305
|
+
};
|
|
5306
|
+
requestBody?: never;
|
|
5307
|
+
responses: {
|
|
5308
|
+
200: {
|
|
5309
|
+
headers: {
|
|
5310
|
+
[name: string]: unknown;
|
|
5311
|
+
};
|
|
5312
|
+
content: {
|
|
5313
|
+
'application/json': {
|
|
5314
|
+
code: string;
|
|
5315
|
+
message: string;
|
|
5316
|
+
data?: unknown;
|
|
5317
|
+
};
|
|
5318
|
+
};
|
|
5319
|
+
};
|
|
5320
|
+
};
|
|
5321
|
+
};
|
|
5322
|
+
PaymentCallback_cancelled: {
|
|
5323
|
+
parameters: {
|
|
5324
|
+
query: {
|
|
5325
|
+
state: string;
|
|
5326
|
+
};
|
|
5327
|
+
header?: never;
|
|
5328
|
+
path?: never;
|
|
5329
|
+
cookie?: never;
|
|
5330
|
+
};
|
|
5331
|
+
requestBody?: never;
|
|
5332
|
+
responses: {
|
|
5333
|
+
200: {
|
|
5334
|
+
headers: {
|
|
5335
|
+
[name: string]: unknown;
|
|
5336
|
+
};
|
|
5337
|
+
content: {
|
|
5338
|
+
'application/json': {
|
|
5339
|
+
code: string;
|
|
5340
|
+
message: string;
|
|
5341
|
+
data?: unknown;
|
|
5342
|
+
};
|
|
5343
|
+
};
|
|
5344
|
+
};
|
|
5345
|
+
};
|
|
5346
|
+
};
|
|
5202
5347
|
PaymentSession_start: {
|
|
5203
5348
|
parameters: {
|
|
5204
5349
|
query?: never;
|
|
@@ -5225,6 +5370,32 @@ export interface operations {
|
|
|
5225
5370
|
};
|
|
5226
5371
|
authToken: true;
|
|
5227
5372
|
};
|
|
5373
|
+
PaymentSession_reconcile: {
|
|
5374
|
+
parameters: {
|
|
5375
|
+
query?: never;
|
|
5376
|
+
header?: never;
|
|
5377
|
+
path: {
|
|
5378
|
+
id: number | string;
|
|
5379
|
+
};
|
|
5380
|
+
cookie?: never;
|
|
5381
|
+
};
|
|
5382
|
+
requestBody?: never;
|
|
5383
|
+
responses: {
|
|
5384
|
+
200: {
|
|
5385
|
+
headers: {
|
|
5386
|
+
[name: string]: unknown;
|
|
5387
|
+
};
|
|
5388
|
+
content: {
|
|
5389
|
+
'application/json': {
|
|
5390
|
+
code: string;
|
|
5391
|
+
message: string;
|
|
5392
|
+
data: components['schemas']['a-pay.dto.paymentSessionView'];
|
|
5393
|
+
};
|
|
5394
|
+
};
|
|
5395
|
+
};
|
|
5396
|
+
};
|
|
5397
|
+
authToken: true;
|
|
5398
|
+
};
|
|
5228
5399
|
PaymentSession_view: {
|
|
5229
5400
|
parameters: {
|
|
5230
5401
|
query?: never;
|
|
@@ -6086,6 +6257,30 @@ export interface operations {
|
|
|
6086
6257
|
};
|
|
6087
6258
|
authToken: true;
|
|
6088
6259
|
};
|
|
6260
|
+
CommerceTradeCheckout_paymentMethods: {
|
|
6261
|
+
parameters: {
|
|
6262
|
+
query?: never;
|
|
6263
|
+
header?: never;
|
|
6264
|
+
path?: never;
|
|
6265
|
+
cookie?: never;
|
|
6266
|
+
};
|
|
6267
|
+
requestBody?: never;
|
|
6268
|
+
responses: {
|
|
6269
|
+
200: {
|
|
6270
|
+
headers: {
|
|
6271
|
+
[name: string]: unknown;
|
|
6272
|
+
};
|
|
6273
|
+
content: {
|
|
6274
|
+
'application/json': {
|
|
6275
|
+
code: string;
|
|
6276
|
+
message: string;
|
|
6277
|
+
data: components['schemas']['commerce-trade.dto.checkoutPaymentMethods'];
|
|
6278
|
+
};
|
|
6279
|
+
};
|
|
6280
|
+
};
|
|
6281
|
+
};
|
|
6282
|
+
authToken: true;
|
|
6283
|
+
};
|
|
6089
6284
|
CommerceTradeCheckout_create: {
|
|
6090
6285
|
parameters: {
|
|
6091
6286
|
query?: never;
|
|
@@ -6273,7 +6468,7 @@ export interface operations {
|
|
|
6273
6468
|
};
|
|
6274
6469
|
authToken: true;
|
|
6275
6470
|
};
|
|
6276
|
-
|
|
6471
|
+
CommerceTradeOrder_executeRefund: {
|
|
6277
6472
|
parameters: {
|
|
6278
6473
|
query?: never;
|
|
6279
6474
|
header?: never;
|
|
@@ -6282,11 +6477,7 @@ export interface operations {
|
|
|
6282
6477
|
};
|
|
6283
6478
|
cookie?: never;
|
|
6284
6479
|
};
|
|
6285
|
-
requestBody
|
|
6286
|
-
content: {
|
|
6287
|
-
'application/json': components['schemas']['commerce-trade.dto.refundOutcomeCreate'];
|
|
6288
|
-
};
|
|
6289
|
-
};
|
|
6480
|
+
requestBody?: never;
|
|
6290
6481
|
responses: {
|
|
6291
6482
|
200: {
|
|
6292
6483
|
headers: {
|
|
@@ -7854,6 +8045,36 @@ export interface operations {
|
|
|
7854
8045
|
};
|
|
7855
8046
|
authToken: true;
|
|
7856
8047
|
};
|
|
8048
|
+
PayMockPayment_completeRefund: {
|
|
8049
|
+
parameters: {
|
|
8050
|
+
query?: never;
|
|
8051
|
+
header?: never;
|
|
8052
|
+
path: {
|
|
8053
|
+
id: number | string;
|
|
8054
|
+
};
|
|
8055
|
+
cookie?: never;
|
|
8056
|
+
};
|
|
8057
|
+
requestBody: {
|
|
8058
|
+
content: {
|
|
8059
|
+
'application/json': components['schemas']['pay-mock.dto.mockRefundComplete'];
|
|
8060
|
+
};
|
|
8061
|
+
};
|
|
8062
|
+
responses: {
|
|
8063
|
+
200: {
|
|
8064
|
+
headers: {
|
|
8065
|
+
[name: string]: unknown;
|
|
8066
|
+
};
|
|
8067
|
+
content: {
|
|
8068
|
+
'application/json': {
|
|
8069
|
+
code: string;
|
|
8070
|
+
message: string;
|
|
8071
|
+
data: components['schemas']['pay-mock.dto.mockRefundReceipt'];
|
|
8072
|
+
};
|
|
8073
|
+
};
|
|
8074
|
+
};
|
|
8075
|
+
};
|
|
8076
|
+
authToken: true;
|
|
8077
|
+
};
|
|
7857
8078
|
Paypal_getRecord: {
|
|
7858
8079
|
parameters: {
|
|
7859
8080
|
query?: never;
|
|
@@ -9,6 +9,7 @@ export default function (): ZovaOpenapiConfigModule {
|
|
|
9
9
|
'CommerceTradeCart_updateItem',
|
|
10
10
|
'CommerceTradeCart_deleteItem',
|
|
11
11
|
'CommerceTradeCart_clear',
|
|
12
|
+
'CommerceTradeCheckout_paymentMethods',
|
|
12
13
|
'CommerceTradeCheckout_create',
|
|
13
14
|
'CommerceTradeOrder_select',
|
|
14
15
|
'CommerceTradeOrder_view',
|
|
@@ -6,6 +6,15 @@ import type { components, paths } from './openapi/index.js';
|
|
|
6
6
|
|
|
7
7
|
import { OpenApiBaseURL } from './openapi/index.js';
|
|
8
8
|
|
|
9
|
+
/** CommerceTradeCheckout_paymentMethods */
|
|
10
|
+
export const ApiApiCommerceTradeCheckoutpaymentMethodsPath =
|
|
11
|
+
'/api/commerce/trade/checkout/payment-methods';
|
|
12
|
+
export type ApiApiCommerceTradeCheckoutpaymentMethodsPath =
|
|
13
|
+
'/api/commerce/trade/checkout/payment-methods';
|
|
14
|
+
export type ApiApiCommerceTradeCheckoutpaymentMethodsMethod = 'get';
|
|
15
|
+
export type ApiApiCommerceTradeCheckoutpaymentMethodsResponseBody =
|
|
16
|
+
paths[ApiApiCommerceTradeCheckoutpaymentMethodsPath][ApiApiCommerceTradeCheckoutpaymentMethodsMethod]['responses']['200']['content']['application/json']['data'];
|
|
17
|
+
|
|
9
18
|
/** CommerceTradeCheckout_create */
|
|
10
19
|
export const ApiApiCommerceTradeCheckoutcreatePath = '/api/commerce/trade/checkout';
|
|
11
20
|
export type ApiApiCommerceTradeCheckoutcreatePath = '/api/commerce/trade/checkout';
|
|
@@ -17,6 +26,13 @@ export type ApiApiCommerceTradeCheckoutcreateResponseBody =
|
|
|
17
26
|
|
|
18
27
|
@Api()
|
|
19
28
|
export class ApiCommerceTradeCheckout extends BeanApiBase {
|
|
29
|
+
paymentMethods(options?: IApiActionOptions) {
|
|
30
|
+
return this.$fetch.get<any, ApiApiCommerceTradeCheckoutpaymentMethodsResponseBody>(
|
|
31
|
+
ApiApiCommerceTradeCheckoutpaymentMethodsPath,
|
|
32
|
+
this.$configPrepare(OpenApiBaseURL(this.sys), options, true),
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
|
|
20
36
|
create(body: ApiApiCommerceTradeCheckoutcreateRequestBody, options?: IApiActionOptions) {
|
|
21
37
|
return this.$fetch.post<any, ApiApiCommerceTradeCheckoutcreateResponseBody>(
|
|
22
38
|
ApiApiCommerceTradeCheckoutcreatePath,
|
|
@@ -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 =
|