@be-link/pos-cli-nodejs 1.0.252 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/pos-cli-nodejs",
3
- "version": "1.0.252",
3
+ "version": "1.0.254",
4
4
  "description": "正向订单服务Nodejs客户端",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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
+ readOccupiedTourRefundFacts(request: Service.Request.readOccupiedTourRefundFacts): Promise<Service.Response.readOccupiedTourRefundFacts>;
6
7
  /** 仅取得或找回同一逆向单的占用,不执行退款。 */
7
8
  acquireTourRefundOccupancy(request: Service.Request.acquireTourRefundOccupancy): Promise<Service.Response.acquireTourRefundOccupancy>;
8
9
  previewTourAgeQuote(request: Service.Request.previewTourAgeQuote): Promise<Service.Response.previewTourAgeQuote>;
@@ -10,6 +10,9 @@ 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
+ }
13
16
  /** 仅取得或找回同一逆向单的占用,不执行退款。 */
14
17
  acquireTourRefundOccupancy(request) {
15
18
  return (0, http_1.callApi)(this.getApiUrl(this.acquireTourRefundOccupancy), request);
@@ -84,6 +84,9 @@ export interface SeniorConfirmationState {
84
84
  }
85
85
  export declare namespace Service {
86
86
  namespace Request {
87
+ interface readOccupiedTourRefundFacts extends acquireTourRefundOccupancy {
88
+ orderTravelerIds: string[];
89
+ }
87
90
  interface acquireTourRefundOccupancy {
88
91
  positiveOrderId: string;
89
92
  reverseOrderId: string;
@@ -579,6 +582,35 @@ export declare namespace Service {
579
582
  }
580
583
  }
581
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
+ }
582
614
  interface acquireTourRefundOccupancy {
583
615
  status: 'occupied';
584
616
  positiveOrderId: string;
@@ -693,6 +725,7 @@ export declare namespace Service {
693
725
  }[];
694
726
  }
695
727
  interface OrderCoreController {
728
+ readOccupiedTourRefundFacts(request: Request.readOccupiedTourRefundFacts): Promise<Response.readOccupiedTourRefundFacts>;
696
729
  acquireTourRefundOccupancy(request: Request.acquireTourRefundOccupancy): Promise<Response.acquireTourRefundOccupancy>;
697
730
  /** 只读旅游年龄报价预览。 @path /core/preview-tour-age-quote */
698
731
  previewTourAgeQuote(request: Request.previewTourAgeQuote): Promise<Response.previewTourAgeQuote>;