@be-link/ecommerce-trade-service-node-sdk 0.1.48 → 0.1.50

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.
@@ -3,6 +3,7 @@ import BaseService from '../../BaseService';
3
3
  declare class OrderCoreByInternalService extends BaseService {
4
4
  protected prefixUrl: string;
5
5
  createOrderByVerifyCoupon(request: PosCoreService.ByInternal.Request.ICreateOrderByVerifyCoupon): Promise<PosCoreService.ByInternal.Response.ICreateOrderByVerifyCoupon>;
6
+ stressTestOrderPaid(request: PosCoreService.ByInternal.Request.IStressTestOrderPaid): Promise<void>;
6
7
  }
7
8
  export declare const orderCoreByInternalService: OrderCoreByInternalService;
8
9
  export default orderCoreByInternalService;
@@ -24,12 +24,20 @@ let OrderCoreByInternalService = class OrderCoreByInternalService extends BaseSe
24
24
  createOrderByVerifyCoupon(request) {
25
25
  return (0, http_1.callApi)(this.getApiUrl(this.createOrderByVerifyCoupon), request);
26
26
  }
27
+ stressTestOrderPaid(request) {
28
+ return (0, http_1.callApi)(this.getApiUrl(this.stressTestOrderPaid), request);
29
+ }
27
30
  };
28
31
  __decorate([
29
32
  (0, tsoa_1.OperationId)('核销券创建订单'),
30
33
  (0, tsoa_1.Post)('create-order-by-verify-coupon'),
31
34
  __param(0, (0, tsoa_1.Body)())
32
35
  ], OrderCoreByInternalService.prototype, "createOrderByVerifyCoupon", null);
36
+ __decorate([
37
+ (0, tsoa_1.OperationId)('压测支付回调'),
38
+ (0, tsoa_1.Post)('stress-test-order-paid'),
39
+ __param(0, (0, tsoa_1.Body)())
40
+ ], OrderCoreByInternalService.prototype, "stressTestOrderPaid", null);
33
41
  OrderCoreByInternalService = __decorate([
34
42
  (0, tsoa_1.Route)('pos/core/internal'),
35
43
  (0, tsoa_1.Tags)('PosOrderCore')
@@ -152,6 +152,13 @@ export declare namespace PosCoreService {
152
152
  userId: string;
153
153
  skuId: string;
154
154
  }
155
+ /** 压测支付回调请求参数 */
156
+ interface IStressTestOrderPaid {
157
+ /** 订单ID */
158
+ orderId: string;
159
+ /** 支付金额(分) */
160
+ paidFee: number;
161
+ }
155
162
  }
156
163
  namespace Response {
157
164
  interface ICreateOrderByVerifyCoupon {
@@ -188,5 +195,7 @@ export declare namespace PosCoreService {
188
195
  interface CoreByInternalController {
189
196
  /** 核销券创建订单 */
190
197
  createOrderByVerifyCoupon(request: ByInternal.Request.ICreateOrderByVerifyCoupon, req: any): Promise<ByInternal.Response.ICreateOrderByVerifyCoupon>;
198
+ /** 压测支付回调(内部使用,跳过宝付回调解析) */
199
+ stressTestOrderPaid(request: ByInternal.Request.IStressTestOrderPaid, req: any): Promise<void>;
191
200
  }
192
201
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-trade-service-node-sdk",
3
- "version": "0.1.48",
3
+ "version": "0.1.50",
4
4
  "description": "EcommerceTradeService Node.js SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",