@be-link/pos-cli-nodejs 1.0.250 → 1.0.252
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/package.json
CHANGED
|
@@ -3,6 +3,8 @@ import BaseService from '../service';
|
|
|
3
3
|
import { IPositiveOrderInvoice } from '../../../types';
|
|
4
4
|
declare class OrderCoreService extends BaseService implements Service.OrderCoreController {
|
|
5
5
|
protected prefixUrl: string;
|
|
6
|
+
/** 仅取得或找回同一逆向单的占用,不执行退款。 */
|
|
7
|
+
acquireTourRefundOccupancy(request: Service.Request.acquireTourRefundOccupancy): Promise<Service.Response.acquireTourRefundOccupancy>;
|
|
6
8
|
previewTourAgeQuote(request: Service.Request.previewTourAgeQuote): Promise<Service.Response.previewTourAgeQuote>;
|
|
7
9
|
getSeniorConfirmation(request: Service.Request.getSeniorConfirmation): Promise<SeniorConfirmationState>;
|
|
8
10
|
saveSeniorHealthDraft(request: Service.Request.saveSeniorHealthDraft): Promise<void>;
|
|
@@ -10,6 +10,10 @@ class OrderCoreService extends service_1.default {
|
|
|
10
10
|
super(...arguments);
|
|
11
11
|
this.prefixUrl = '/core';
|
|
12
12
|
}
|
|
13
|
+
/** 仅取得或找回同一逆向单的占用,不执行退款。 */
|
|
14
|
+
acquireTourRefundOccupancy(request) {
|
|
15
|
+
return (0, http_1.callApi)(this.getApiUrl(this.acquireTourRefundOccupancy), request);
|
|
16
|
+
}
|
|
13
17
|
previewTourAgeQuote(request) {
|
|
14
18
|
return (0, http_1.callApi)(this.getApiUrl(this.previewTourAgeQuote), request);
|
|
15
19
|
}
|
|
@@ -84,6 +84,11 @@ export interface SeniorConfirmationState {
|
|
|
84
84
|
}
|
|
85
85
|
export declare namespace Service {
|
|
86
86
|
namespace Request {
|
|
87
|
+
interface acquireTourRefundOccupancy {
|
|
88
|
+
positiveOrderId: string;
|
|
89
|
+
reverseOrderId: string;
|
|
90
|
+
expectedFeeRevision: number;
|
|
91
|
+
}
|
|
87
92
|
interface previewTourAgeQuote {
|
|
88
93
|
/** BFF 从可信身份绑定,不接受客户端提供的买家身份。 */
|
|
89
94
|
buyerUnionId: string;
|
|
@@ -574,6 +579,12 @@ export declare namespace Service {
|
|
|
574
579
|
}
|
|
575
580
|
}
|
|
576
581
|
namespace Response {
|
|
582
|
+
interface acquireTourRefundOccupancy {
|
|
583
|
+
status: 'occupied';
|
|
584
|
+
positiveOrderId: string;
|
|
585
|
+
reverseOrderId: string;
|
|
586
|
+
feeRevision: number;
|
|
587
|
+
}
|
|
577
588
|
type previewTourAgeQuote = {
|
|
578
589
|
mode: 'legacy';
|
|
579
590
|
} | {
|
|
@@ -682,6 +693,7 @@ export declare namespace Service {
|
|
|
682
693
|
}[];
|
|
683
694
|
}
|
|
684
695
|
interface OrderCoreController {
|
|
696
|
+
acquireTourRefundOccupancy(request: Request.acquireTourRefundOccupancy): Promise<Response.acquireTourRefundOccupancy>;
|
|
685
697
|
/** 只读旅游年龄报价预览。 @path /core/preview-tour-age-quote */
|
|
686
698
|
previewTourAgeQuote(request: Request.previewTourAgeQuote): Promise<Response.previewTourAgeQuote>;
|
|
687
699
|
getSeniorConfirmation(request: Request.getSeniorConfirmation): Promise<SeniorConfirmationState>;
|