@be-link/pos-cli-nodejs 1.0.248 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/pos-cli-nodejs",
3
- "version": "1.0.248",
3
+ "version": "1.0.252",
4
4
  "description": "正向订单服务Nodejs客户端",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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
+ /** 仅取得或找回同一逆向单的占用,不执行退款。 */
7
+ acquireTourRefundOccupancy(request: Service.Request.acquireTourRefundOccupancy): Promise<Service.Response.acquireTourRefundOccupancy>;
8
+ previewTourAgeQuote(request: Service.Request.previewTourAgeQuote): Promise<Service.Response.previewTourAgeQuote>;
6
9
  getSeniorConfirmation(request: Service.Request.getSeniorConfirmation): Promise<SeniorConfirmationState>;
7
10
  saveSeniorHealthDraft(request: Service.Request.saveSeniorHealthDraft): Promise<void>;
8
11
  markSeniorConfirmationRead(request: Service.Request.markSeniorConfirmationRead): Promise<{
@@ -10,6 +10,13 @@ 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
+ }
17
+ previewTourAgeQuote(request) {
18
+ return (0, http_1.callApi)(this.getApiUrl(this.previewTourAgeQuote), request);
19
+ }
13
20
  getSeniorConfirmation(request) {
14
21
  return (0, http_1.callApi)(this.getApiUrl(this.getSeniorConfirmation), request);
15
22
  }
@@ -84,6 +84,23 @@ 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
+ }
92
+ interface previewTourAgeQuote {
93
+ /** BFF 从可信身份绑定,不接受客户端提供的买家身份。 */
94
+ buyerUnionId: string;
95
+ itemId: string;
96
+ skuId: string;
97
+ quantity: number;
98
+ touristIds: string[];
99
+ isItemCouponCanBeUse: boolean;
100
+ isOrderCouponCanBeUse: boolean;
101
+ isMemberPriceCanBeUse: boolean;
102
+ useCreditCoin: boolean;
103
+ }
87
104
  interface getSeniorConfirmation {
88
105
  orderId: string;
89
106
  unionId: string;
@@ -562,6 +579,33 @@ export declare namespace Service {
562
579
  }
563
580
  }
564
581
  namespace Response {
582
+ interface acquireTourRefundOccupancy {
583
+ status: 'occupied';
584
+ positiveOrderId: string;
585
+ reverseOrderId: string;
586
+ feeRevision: number;
587
+ }
588
+ type previewTourAgeQuote = {
589
+ mode: 'legacy';
590
+ } | {
591
+ mode: 'ageQuote';
592
+ quote: {
593
+ travelers: Array<{
594
+ id: string;
595
+ age: number;
596
+ bandCode: string;
597
+ baseFareCent: number;
598
+ ageFeeCent: number;
599
+ }>;
600
+ baseTotalCent: number;
601
+ ageFeeTotalCent: number;
602
+ beforeDiscountCent: number;
603
+ discountCent: number;
604
+ coinDeductionCent: number;
605
+ payableCent: number;
606
+ quoteFingerprint: string;
607
+ };
608
+ };
565
609
  interface orderCreate {
566
610
  /** 订单Id */
567
611
  tradeOrderId: string;
@@ -649,6 +693,9 @@ export declare namespace Service {
649
693
  }[];
650
694
  }
651
695
  interface OrderCoreController {
696
+ acquireTourRefundOccupancy(request: Request.acquireTourRefundOccupancy): Promise<Response.acquireTourRefundOccupancy>;
697
+ /** 只读旅游年龄报价预览。 @path /core/preview-tour-age-quote */
698
+ previewTourAgeQuote(request: Request.previewTourAgeQuote): Promise<Response.previewTourAgeQuote>;
652
699
  getSeniorConfirmation(request: Request.getSeniorConfirmation): Promise<SeniorConfirmationState>;
653
700
  saveSeniorHealthDraft(request: Request.saveSeniorHealthDraft): Promise<void>;
654
701
  markSeniorConfirmationRead(request: Request.markSeniorConfirmationRead): Promise<{