From 4dd939cfb8e6838da263984a0caf7114a3069a73 Mon Sep 17 00:00:00 2001 From: William Nicholas <82404519+wiljnichepa@users.noreply.github.com> Date: Tue, 14 May 2024 15:27:39 -0400 Subject: [PATCH] Update client.py --- emanifest-py/src/emanifest/client.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/emanifest-py/src/emanifest/client.py b/emanifest-py/src/emanifest/client.py index d36cb397..56aad69b 100644 --- a/emanifest-py/src/emanifest/client.py +++ b/emanifest-py/src/emanifest/client.py @@ -941,7 +941,20 @@ def sign_manifest(self, **kwargs) -> RcrainfoResponse: """ endpoint = f"{self.base_url}v1/emanifest/manifest/quicker-sign" return self.__rcra_request("POST", endpoint, **kwargs) + + def get_available_manifests(self, mtn: str) -> RcrainfoResponse: + """ + Returns previous and future signature-related information about manifest and respective sites + + Args: + mtn (str): Manifest tracking number + Returns: + dict: object containing manifest signature details + """ + endpoint = f"{self.base_url}v1/emanifest/manifest/available-to-sign/{mtn}" + return self.__rcra_request("GET", endpoint) + def save_manifest( self, manifest_json: dict, zip_file: bytes = None ) -> RcrainfoResponse: