@be-link/pos-cli-nodejs 1.0.248 → 1.0.250
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,7 @@ 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
|
+
previewTourAgeQuote(request: Service.Request.previewTourAgeQuote): Promise<Service.Response.previewTourAgeQuote>;
|
|
6
7
|
getSeniorConfirmation(request: Service.Request.getSeniorConfirmation): Promise<SeniorConfirmationState>;
|
|
7
8
|
saveSeniorHealthDraft(request: Service.Request.saveSeniorHealthDraft): Promise<void>;
|
|
8
9
|
markSeniorConfirmationRead(request: Service.Request.markSeniorConfirmationRead): Promise<{
|
|
@@ -10,6 +10,9 @@ class OrderCoreService extends service_1.default {
|
|
|
10
10
|
super(...arguments);
|
|
11
11
|
this.prefixUrl = '/core';
|
|
12
12
|
}
|
|
13
|
+
previewTourAgeQuote(request) {
|
|
14
|
+
return (0, http_1.callApi)(this.getApiUrl(this.previewTourAgeQuote), request);
|
|
15
|
+
}
|
|
13
16
|
getSeniorConfirmation(request) {
|
|
14
17
|
return (0, http_1.callApi)(this.getApiUrl(this.getSeniorConfirmation), request);
|
|
15
18
|
}
|
|
@@ -84,6 +84,18 @@ export interface SeniorConfirmationState {
|
|
|
84
84
|
}
|
|
85
85
|
export declare namespace Service {
|
|
86
86
|
namespace Request {
|
|
87
|
+
interface previewTourAgeQuote {
|
|
88
|
+
/** BFF 从可信身份绑定,不接受客户端提供的买家身份。 */
|
|
89
|
+
buyerUnionId: string;
|
|
90
|
+
itemId: string;
|
|
91
|
+
skuId: string;
|
|
92
|
+
quantity: number;
|
|
93
|
+
touristIds: string[];
|
|
94
|
+
isItemCouponCanBeUse: boolean;
|
|
95
|
+
isOrderCouponCanBeUse: boolean;
|
|
96
|
+
isMemberPriceCanBeUse: boolean;
|
|
97
|
+
useCreditCoin: boolean;
|
|
98
|
+
}
|
|
87
99
|
interface getSeniorConfirmation {
|
|
88
100
|
orderId: string;
|
|
89
101
|
unionId: string;
|
|
@@ -562,6 +574,27 @@ export declare namespace Service {
|
|
|
562
574
|
}
|
|
563
575
|
}
|
|
564
576
|
namespace Response {
|
|
577
|
+
type previewTourAgeQuote = {
|
|
578
|
+
mode: 'legacy';
|
|
579
|
+
} | {
|
|
580
|
+
mode: 'ageQuote';
|
|
581
|
+
quote: {
|
|
582
|
+
travelers: Array<{
|
|
583
|
+
id: string;
|
|
584
|
+
age: number;
|
|
585
|
+
bandCode: string;
|
|
586
|
+
baseFareCent: number;
|
|
587
|
+
ageFeeCent: number;
|
|
588
|
+
}>;
|
|
589
|
+
baseTotalCent: number;
|
|
590
|
+
ageFeeTotalCent: number;
|
|
591
|
+
beforeDiscountCent: number;
|
|
592
|
+
discountCent: number;
|
|
593
|
+
coinDeductionCent: number;
|
|
594
|
+
payableCent: number;
|
|
595
|
+
quoteFingerprint: string;
|
|
596
|
+
};
|
|
597
|
+
};
|
|
565
598
|
interface orderCreate {
|
|
566
599
|
/** 订单Id */
|
|
567
600
|
tradeOrderId: string;
|
|
@@ -649,6 +682,8 @@ export declare namespace Service {
|
|
|
649
682
|
}[];
|
|
650
683
|
}
|
|
651
684
|
interface OrderCoreController {
|
|
685
|
+
/** 只读旅游年龄报价预览。 @path /core/preview-tour-age-quote */
|
|
686
|
+
previewTourAgeQuote(request: Request.previewTourAgeQuote): Promise<Response.previewTourAgeQuote>;
|
|
652
687
|
getSeniorConfirmation(request: Request.getSeniorConfirmation): Promise<SeniorConfirmationState>;
|
|
653
688
|
saveSeniorHealthDraft(request: Request.saveSeniorHealthDraft): Promise<void>;
|
|
654
689
|
markSeniorConfirmationRead(request: Request.markSeniorConfirmationRead): Promise<{
|