diff --git a/CHANGELOG.md b/CHANGELOG.md index 999f35a..b46f7a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Entire bulk order module for feature parity with JS SDK * Pylint config and pylint command to the CI environment * Added new methods `video` and `video_thumbnail` that return a video and video thumbnail related to a given mode, video name and customization - [ripe-white/#996](https://github.com/ripe-tech/ripe-white/issues/996) +* General order chat methods - [ripe-core/#4702](https://github.com/ripe-tech/ripe-core/issues/4702) ### Changed diff --git a/src/ripe/order.py b/src/ripe/order.py index 6e1f1cb..01c44d3 100644 --- a/src/ripe/order.py +++ b/src/ripe/order.py @@ -82,6 +82,26 @@ def log_order(self, number): contents = self.get(url) return contents + def chat_order(self, number): + url = self.base_url + "orders/%d/chat" % number + contents = self.get(url) + return contents + + def chat_lines_order(self, number, *args, **kwargs): + url = self.base_url + "orders/%d/chat/lines" % number + contents = self.get(url, **kwargs) + return contents + + def chat_lines_count_order(self, number): + url = self.base_url + "orders/%d/chat/lines/count" % number + contents = self.get(url) + return contents + + def chat_create_line_order(self, number, content): + url = self.base_url + "orders/%d/chat/lines/count" % number + contents = self.post(url, data_j = content) + return contents + def states_order(self, number): url = self.base_url + "orders/%d/states" % number contents = self.get(url)