@be-link/pos-cli-nodejs 1.0.250 → 1.0.254
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,9 @@ 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
|
+
readOccupiedTourRefundFacts(request: Service.Request.readOccupiedTourRefundFacts): Promise<Service.Response.readOccupiedTourRefundFacts>;
|
|
7
|
+
/** 仅取得或找回同一逆向单的占用,不执行退款。 */
|
|
8
|
+
acquireTourRefundOccupancy(request: Service.Request.acquireTourRefundOccupancy): Promise<Service.Response.acquireTourRefundOccupancy>;
|
|
6
9
|
previewTourAgeQuote(request: Service.Request.previewTourAgeQuote): Promise<Service.Response.previewTourAgeQuote>;
|
|
7
10
|
getSeniorConfirmation(request: Service.Request.getSeniorConfirmation): Promise<SeniorConfirmationState>;
|
|
8
11
|
saveSeniorHealthDraft(request: Service.Request.saveSeniorHealthDraft): Promise<void>;
|
|
@@ -10,6 +10,13 @@ class OrderCoreService extends service_1.default {
|
|
|
10
10
|
super(...arguments);
|
|
11
11
|
this.prefixUrl = '/core';
|
|
12
12
|
}
|
|
13
|
+
readOccupiedTourRefundFacts(request) {
|
|
14
|
+
return (0, http_1.callApi)(this.getApiUrl(this.readOccupiedTourRefundFacts), request);
|
|
15
|
+
}
|
|
16
|
+
/** 仅取得或找回同一逆向单的占用,不执行退款。 */
|
|
17
|
+
acquireTourRefundOccupancy(request) {
|
|
18
|
+
return (0, http_1.callApi)(this.getApiUrl(this.acquireTourRefundOccupancy), request);
|
|
19
|
+
}
|
|
13
20
|
previewTourAgeQuote(request) {
|
|
14
21
|
return (0, http_1.callApi)(this.getApiUrl(this.previewTourAgeQuote), request);
|
|
15
22
|
}
|
|
@@ -84,6 +84,14 @@ export interface SeniorConfirmationState {
|
|
|
84
84
|
}
|
|
85
85
|
export declare namespace Service {
|
|
86
86
|
namespace Request {
|
|
87
|
+
interface readOccupiedTourRefundFacts extends acquireTourRefundOccupancy {
|
|
88
|
+
orderTravelerIds: string[];
|
|
89
|
+
}
|
|
90
|
+
interface acquireTourRefundOccupancy {
|
|
91
|
+
positiveOrderId: string;
|
|
92
|
+
reverseOrderId: string;
|
|
93
|
+
expectedFeeRevision: number;
|
|
94
|
+
}
|
|
87
95
|
interface previewTourAgeQuote {
|
|
88
96
|
/** BFF 从可信身份绑定,不接受客户端提供的买家身份。 */
|
|
89
97
|
buyerUnionId: string;
|
|
@@ -574,6 +582,41 @@ export declare namespace Service {
|
|
|
574
582
|
}
|
|
575
583
|
}
|
|
576
584
|
namespace Response {
|
|
585
|
+
interface readOccupiedTourRefundFacts {
|
|
586
|
+
positiveOrderId: string;
|
|
587
|
+
reverseOrderId: string;
|
|
588
|
+
feeRevision: number;
|
|
589
|
+
exiting: {
|
|
590
|
+
orderTravelerId: string;
|
|
591
|
+
skuId: string;
|
|
592
|
+
}[];
|
|
593
|
+
exitingGrossCent: number;
|
|
594
|
+
remainingGrossCent: number;
|
|
595
|
+
remainingQuantity: number;
|
|
596
|
+
discountBeforeCent: number;
|
|
597
|
+
originalPromotion: {
|
|
598
|
+
kind: 'none';
|
|
599
|
+
} | {
|
|
600
|
+
kind: 'orderFixed';
|
|
601
|
+
couponId: string;
|
|
602
|
+
minimumSpendCent: number;
|
|
603
|
+
reductionCent: number;
|
|
604
|
+
} | {
|
|
605
|
+
kind: 'singleSkuFee';
|
|
606
|
+
couponId: string;
|
|
607
|
+
unitReductionCent: number;
|
|
608
|
+
} | {
|
|
609
|
+
kind: 'memberUnits';
|
|
610
|
+
activeQuantity: number;
|
|
611
|
+
unitReductionCent: number;
|
|
612
|
+
};
|
|
613
|
+
}
|
|
614
|
+
interface acquireTourRefundOccupancy {
|
|
615
|
+
status: 'occupied';
|
|
616
|
+
positiveOrderId: string;
|
|
617
|
+
reverseOrderId: string;
|
|
618
|
+
feeRevision: number;
|
|
619
|
+
}
|
|
577
620
|
type previewTourAgeQuote = {
|
|
578
621
|
mode: 'legacy';
|
|
579
622
|
} | {
|
|
@@ -682,6 +725,8 @@ export declare namespace Service {
|
|
|
682
725
|
}[];
|
|
683
726
|
}
|
|
684
727
|
interface OrderCoreController {
|
|
728
|
+
readOccupiedTourRefundFacts(request: Request.readOccupiedTourRefundFacts): Promise<Response.readOccupiedTourRefundFacts>;
|
|
729
|
+
acquireTourRefundOccupancy(request: Request.acquireTourRefundOccupancy): Promise<Response.acquireTourRefundOccupancy>;
|
|
685
730
|
/** 只读旅游年龄报价预览。 @path /core/preview-tour-age-quote */
|
|
686
731
|
previewTourAgeQuote(request: Request.previewTourAgeQuote): Promise<Response.previewTourAgeQuote>;
|
|
687
732
|
getSeniorConfirmation(request: Request.getSeniorConfirmation): Promise<SeniorConfirmationState>;
|