@be-link/ecommerce-plan-allocation-service-node-sdk 0.0.17 → 0.0.18
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.
|
@@ -11,7 +11,7 @@ declare class LogisticsService extends BaseService implements Service.LogisticsC
|
|
|
11
11
|
getStoreStockInOrderLogisticsList(request: Service.Request.GetStoreStockInOrderLogisticsList): Promise<Service.Response.GetStoreStockInOrderLogisticsList>;
|
|
12
12
|
getProductList(request: Service.Request.GetProductList): Promise<Service.Response.GetProductList>;
|
|
13
13
|
subscribeWayBill(request: Service.Request.SubscribeWayBill): Promise<void>;
|
|
14
|
-
|
|
14
|
+
webhookCallback(request: Service.Request.LogisticsWebhookCallback): Promise<Service.Response.LogisticsWebhookCallbackResponse>;
|
|
15
15
|
}
|
|
16
16
|
export declare const logisticsService: LogisticsService;
|
|
17
17
|
export default logisticsService;
|
|
@@ -48,8 +48,8 @@ let LogisticsService = class LogisticsService extends BaseService_1.default {
|
|
|
48
48
|
subscribeWayBill(request) {
|
|
49
49
|
return (0, http_1.callApi)(this.getApiUrl(this.subscribeWayBill), request);
|
|
50
50
|
}
|
|
51
|
-
|
|
52
|
-
return (0, http_1.callApi)(this.getApiUrl(this.
|
|
51
|
+
webhookCallback(request) {
|
|
52
|
+
return (0, http_1.callApi)(this.getApiUrl(this.webhookCallback), request);
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
55
|
__decorate([
|
|
@@ -101,7 +101,7 @@ __decorate([
|
|
|
101
101
|
(0, tsoa_1.OperationId)('物流状态回调'),
|
|
102
102
|
(0, tsoa_1.Post)('webhook-callback'),
|
|
103
103
|
__param(0, (0, tsoa_1.Body)())
|
|
104
|
-
], LogisticsService.prototype, "
|
|
104
|
+
], LogisticsService.prototype, "webhookCallback", null);
|
|
105
105
|
LogisticsService = __decorate([
|
|
106
106
|
(0, tsoa_1.Route)('logistics'),
|
|
107
107
|
(0, tsoa_1.Tags)('Logistics')
|
|
@@ -201,8 +201,8 @@ export declare namespace Service {
|
|
|
201
201
|
interface LogisticsWebhookCallback {
|
|
202
202
|
/** 业务内容 JSON 字符串(需要解析为 ExpressDeliveryPushBody) */
|
|
203
203
|
param: string;
|
|
204
|
-
/** 签名值(sign
|
|
205
|
-
sign
|
|
204
|
+
/** 签名值(sign),用于验证消息合法性(可选,未配置 salt 时不会推送) */
|
|
205
|
+
sign?: string;
|
|
206
206
|
/** 其他扩展字段(如 timestamp/salt 等) */
|
|
207
207
|
[extra: string]: unknown;
|
|
208
208
|
}
|
|
@@ -273,10 +273,12 @@ export declare namespace Service {
|
|
|
273
273
|
/** 物流信息列表 */
|
|
274
274
|
data: LogisticsInfo[];
|
|
275
275
|
}
|
|
276
|
-
/**
|
|
276
|
+
/** 物流状态回调响应(快递100要求的格式) */
|
|
277
277
|
interface LogisticsWebhookCallbackResponse {
|
|
278
|
-
/**
|
|
279
|
-
|
|
278
|
+
/** 是否成功 */
|
|
279
|
+
result: boolean;
|
|
280
|
+
/** 返回码,"200" 表示成功 */
|
|
281
|
+
returnCode: string;
|
|
280
282
|
/** 响应消息 */
|
|
281
283
|
message: string;
|
|
282
284
|
}
|
|
@@ -301,6 +303,6 @@ export declare namespace Service {
|
|
|
301
303
|
/** 测试订阅运单号 */
|
|
302
304
|
subscribeWayBill(request: Request.SubscribeWayBill, req?: FastifyRequest): Promise<void>;
|
|
303
305
|
/** 物流状态回调(Webhook) */
|
|
304
|
-
|
|
306
|
+
webhookCallback(request: Request.LogisticsWebhookCallback, req?: FastifyRequest): Promise<Response.LogisticsWebhookCallbackResponse>;
|
|
305
307
|
}
|
|
306
308
|
}
|