@@ -28,6 +28,7 @@ class Client(object):
2828
2929 __family_path__ = "family"
3030 __images_path__ = "published-data/images"
31+ __legal_path__ = "legal"
3132 __number_path__ = "number-service"
3233 __published_data_path__ = "published-data"
3334 __published_data_search_path__ = "published-data/search"
@@ -119,6 +120,39 @@ def image(
119120 """
120121 return self ._image_request (path , range , document_format )
121122
123+ def legal (
124+ self ,
125+ reference_type : str ,
126+ input : Union [Original , Docdb , Epodoc ],
127+ ) -> requests .Response :
128+ """
129+ Retrieval service for legal data.
130+
131+ Args:
132+ reference_type (str): Any of "publication", "application", or "priority".
133+ input (Original, Epodoc, or Docdb): The document number as an Original, Epodoc, or Docdb data object.
134+ Returns:
135+ requests.Response: a requests.Response object.
136+
137+ Examples:
138+ >>> response = client.legal("publication", epo_ops.models.Epodoc("EP1000000"))
139+ >>> response
140+ <Response [200]>
141+ >>> "ops:legal" in response.text
142+ True
143+
144+ Note:
145+ This service provides access to legal status information for patents
146+ as documented in chapter 3.5 of the OPS v3.2 documentation.˜
147+ """
148+
149+ return self ._service_request (
150+ dict (
151+ service = self .__legal_path__ ,
152+ reference_type = reference_type ,
153+ input = input ,
154+ )
155+ )
122156 def number (
123157 self ,
124158 reference_type : str ,
0 commit comments