Skip to content

Commit

Permalink
v0.3.19 released.
Browse files Browse the repository at this point in the history
- topic `tmall_fuwu_SettleSupplierFcBill` 天猫服务服务商分账消息推送 in
  • Loading branch information
TheNorthMemory committed Feb 23, 2023
1 parent b50a383 commit b09feb3
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ new Tmc('your_app_key', 'your_app_secret', { autoReplyConfirmation: false })
## 支持的TOPICS
<details><summary>共计 83+ 类别,450+ 消息数</summary>
<details><summary>共计 83+ 类别,451+ 消息数</summary>
| 类别 | 消息数 |
| --- | --- |
Expand All @@ -150,7 +150,7 @@ new Tmc('your_app_key', 'your_app_secret', { autoReplyConfirmation: false })
| 导购平台 | 21 |
| 淘宝汽车票 | 4 |
| 服务市场 | 9 |
| 天猫服务 | 16 |
| 天猫服务 | 17 |
| 天猫美妆 | 2 |
| 聚石塔 | 9 |
| 淘宝物流 | 1 |
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tmc.js",
"version": "0.3.18",
"version": "0.3.19",
"description": "Events driven and chained Taobao Message Channel(TMC) for NodeJS",
"author": "James ZHANG",
"license": "MIT",
Expand Down
4 changes: 4 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,8 @@ declare interface TaoTopicsDescriptor {
tmall_fuwu_ServiceStoreRegister(fn: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuServiceStoreRegister) => void): TaoMessageConsumer;
/** {@link IncomingMessage.TmallFuwuSettleAdjustmentStatusUpdate 天猫服务 > 单个结算调整单数据推送} */
tmall_fuwu_SettleAdjustmentStatusUpdate(fn: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuSettleAdjustmentStatusUpdate) => void): TaoMessageConsumer;
/** {@link IncomingMessage.TmallFuwuSettleSupplierFcBill 天猫服务 > 天猫服务服务商分账消息推送} */
tmall_fuwu_SettleSupplierFcBill(fn: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuSettleSupplierFcBill) => void): TaoMessageConsumer;
/** {@link IncomingMessage.TmallFuwuWorkcardContract 天猫服务 > 天猫服务履约合同单} */
tmall_fuwu_WorkcardContract(fn: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuWorkcardContract) => void): TaoMessageConsumer;
/** {@link IncomingMessage.TmallFuwuWorkcardInfo 天猫服务 > 天猫服务任务工单} */
Expand Down Expand Up @@ -1993,6 +1995,8 @@ declare interface TaoEventsListener {
on(topic: 'tmall_fuwu_ServiceStoreRegister', listener: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuServiceStoreRegister) => void): TaoMessageConsumer;
/** {@link IncomingMessage.TmallFuwuSettleAdjustmentStatusUpdate 天猫服务 > 单个结算调整单数据推送} */
on(topic: 'tmall_fuwu_SettleAdjustmentStatusUpdate', listener: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuSettleAdjustmentStatusUpdate) => void): TaoMessageConsumer;
/** {@link IncomingMessage.TmallFuwuSettleSupplierFcBill 天猫服务 > 天猫服务服务商分账消息推送} */
on(topic: 'tmall_fuwu_SettleSupplierFcBill', listener: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuSettleSupplierFcBill) => void): TaoMessageConsumer;
/** {@link IncomingMessage.TmallFuwuWorkcardContract 天猫服务 > 天猫服务履约合同单} */
on(topic: 'tmall_fuwu_WorkcardContract', listener: (this: TaoMessageConsumer, message: IncomingMessage.TmallFuwuWorkcardContract) => void): TaoMessageConsumer;
/** {@link IncomingMessage.TmallFuwuWorkcardInfo 天猫服务 > 天猫服务任务工单} */
Expand Down
4 changes: 4 additions & 0 deletions types/message.in.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,8 @@ declare namespace IncomingMessage {
type TmallFuwuServiceStoreRegister = Message & { content?: MessageContent & { topic?: 'tmall_fuwu_ServiceStoreRegister', content?: string | Tmall.Fuwu.ServiceStoreRegister } };
/** {@link Tmall.Fuwu.SettleAdjustmentStatusUpdate 天猫服务 > 单个结算调整单数据推送} */
type TmallFuwuSettleAdjustmentStatusUpdate = Message & { content?: MessageContent & { topic?: 'tmall_fuwu_SettleAdjustmentStatusUpdate', content?: string | Tmall.Fuwu.SettleAdjustmentStatusUpdate } };
/** {@link Tmall.Fuwu.SettleSupplierFcBill 天猫服务 > 天猫服务服务商分账消息推送} */
type TmallFuwuSettleSupplierFcBill = Message & { content?: MessageContent & { topic?: 'tmall_fuwu_SettleSupplierFcBill', content?: string | Tmall.Fuwu.SettleSupplierFcBill } };
/** {@link Tmall.Fuwu.WorkcardContract 天猫服务 > 天猫服务履约合同单} */
type TmallFuwuWorkcardContract = Message & { content?: MessageContent & { topic?: 'tmall_fuwu_WorkcardContract', content?: string | Tmall.Fuwu.WorkcardContract } };
/** {@link Tmall.Fuwu.WorkcardInfo 天猫服务 > 天猫服务任务工单} */
Expand Down Expand Up @@ -1865,6 +1867,7 @@ declare namespace IncomingMessage {
* - {@link TmallFuwuServiceMonitorMessage 天猫服务 > 服务预警消息}
* - {@link TmallFuwuServiceStoreRegister 天猫服务 > 服务网点注册消息}
* - {@link TmallFuwuSettleAdjustmentStatusUpdate 天猫服务 > 单个结算调整单数据推送}
* - {@link TmallFuwuSettleSupplierFcBill 天猫服务 > 天猫服务服务商分账消息推送}
* - {@link TmallFuwuWorkcardContract 天猫服务 > 天猫服务履约合同单}
* - {@link TmallFuwuWorkcardInfo 天猫服务 > 天猫服务任务工单}
* - {@link TmallFuwuWorkcardStatusUpdate 天猫服务 > 天猫服务任务工单状态变更}
Expand All @@ -1876,6 +1879,7 @@ declare namespace IncomingMessage {
| TmallFuwuServiceMonitorMessage
| TmallFuwuServiceStoreRegister
| TmallFuwuSettleAdjustmentStatusUpdate
| TmallFuwuSettleSupplierFcBill
| TmallFuwuWorkcardContract
| TmallFuwuWorkcardInfo
| TmallFuwuWorkcardStatusUpdate;
Expand Down
12 changes: 12 additions & 0 deletions types/tmall.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,18 @@ declare namespace Tmall.Fuwu {
workcard_id: number;
}

/** 天猫服务服务商分账消息推送 */
interface SettleSupplierFcBill {
/** 分成金额,单位分 */
amount: number;
/** 结算费用项 */
details: string;
/** 平台佣金比例 */
platform_commission_rate: number;
/** 服务工单ID */
workcard_id: number;
}

/** 天猫服务履约合同单 */
interface WorkcardContract {
/** long,id */
Expand Down

0 comments on commit b09feb3

Please sign in to comment.