Skip to content

Commit

Permalink
feat: Added cliente.getOrder function
Browse files Browse the repository at this point in the history
  • Loading branch information
icleitoncosta committed Nov 15, 2023
1 parent 9a7f52f commit 76cd217
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/api/layers/retriever.layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -580,4 +580,18 @@ export class RetrieverLayer extends SenderLayer {
WPP.group.getGroupSizeLimit()
);
}

/**
* Get info of your sended order
*
* @example
* ```javascript
* const orderInfo = await client.getOrder('<orderId>');
* ```
* @category Order
* @return Your order
*/
public async getOrder(msgId: string) {
return evaluateAndReturn(this.page, (msgId) => WPP.order.get(msgId), msgId);
}
}

0 comments on commit 76cd217

Please sign in to comment.