@be-link/pos-cli-nodejs 0.0.157 → 0.0.158

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/CHANGELOG.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # 更新日志
2
2
 
3
3
 
4
+ ### [0.0.158](https://github.com/snowmountain-top/pos-cli-nodejs/compare/v0.0.157...v0.0.158) (2024-04-24)
5
+
4
6
  ### [0.0.157](https://github.com/snowmountain-top/pos-cli-nodejs/compare/v0.0.156...v0.0.157) (2024-04-24)
5
7
 
6
8
  ### [0.0.156](https://github.com/snowmountain-top/pos-cli-nodejs/compare/v0.0.114...v0.0.156) (2024-04-24)
@@ -15,6 +15,7 @@ declare class OrderCoreService extends BaseService implements Service.OrderCoreC
15
15
  sendOrderPaidNotification(request: Service.Request.sendOrderPaidNotification): Promise<void>;
16
16
  orderSettled(request: Service.Request.orderSettled): Promise<void>;
17
17
  changeOrderContactInfo(request: Service.Request.changeOrderContactInfo): Promise<void>;
18
+ changeOrderPromotionStatus(request: Service.Request.changeOrderPromotionStatusRequest): Promise<void>;
18
19
  }
19
20
  declare const orderCoreService: OrderCoreService;
20
21
  export default orderCoreService;
@@ -46,6 +46,9 @@ class OrderCoreService extends service_1.default {
46
46
  changeOrderContactInfo(request) {
47
47
  return (0, http_1.callApi)(this.getApiUrl(this.changeOrderContactInfo), request);
48
48
  }
49
+ changeOrderPromotionStatus(request) {
50
+ throw new Error('Method not implemented.');
51
+ }
49
52
  }
50
53
  const orderCoreService = new OrderCoreService();
51
54
  exports.default = orderCoreService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/pos-cli-nodejs",
3
- "version": "0.0.157",
3
+ "version": "0.0.158",
4
4
  "description": "正向订单服务Nodejs客户端",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -38,7 +38,7 @@
38
38
  "axios": "0.27.2",
39
39
  "axios-retry": "^4.0.0",
40
40
  "uuid": "^9.0.1",
41
- "vitality-meta": "1.0.64"
41
+ "vitality-meta": "1.0.74"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "rm -rf ./dist && tsc && cp package.json README.md ./dist/",
@@ -5,8 +5,6 @@ import { IPositiveOrderInvoice } from '../../../types'
5
5
 
6
6
  class OrderCoreService extends BaseService implements Service.OrderCoreController {
7
7
 
8
-
9
-
10
8
  protected prefixUrl: string = '/core'
11
9
  updateOrderInvoice(request: IPositiveOrderInvoice): Promise<string> {
12
10
  return callApi<Service.OrderCoreController['updateOrderInvoice']>(this.getApiUrl(this.updateOrderInvoice), request)
@@ -44,6 +42,9 @@ class OrderCoreService extends BaseService implements Service.OrderCoreControlle
44
42
  changeOrderContactInfo(request: Service.Request.changeOrderContactInfo): Promise<void> {
45
43
  return callApi<Service.OrderCoreController['changeOrderContactInfo']>(this.getApiUrl(this.changeOrderContactInfo), request)
46
44
  }
45
+ changeOrderPromotionStatus(request: Service.Request.changeOrderPromotionStatusRequest): Promise<void> {
46
+ return callApi<Service.OrderCoreController['changeOrderPromotionStatus']>(this.getApiUrl(this.changeOrderPromotionStatus), request)
47
+ }
47
48
  }
48
49
 
49
50
  const orderCoreService = new OrderCoreService()