@@ -48,7 +48,6 @@ def get_args():
4848 }
4949 return args
5050
51- # Step 3 start
5251 @classmethod
5352 def worker (cls , args , doc_docx_path , doc_pdf_path ):
5453 """
@@ -58,20 +57,23 @@ def worker(cls, args, doc_docx_path, doc_pdf_path):
5857 envelope_args = args ["envelope_args" ]
5958 # 1. Create the envelope request object
6059 envelope_definition = cls .make_envelope (envelope_args , doc_docx_path , doc_pdf_path )
61-
60+
61+ # Step 2 start
6262 # 2. call Envelopes::create API method
6363 # Exceptions will be caught by the calling function
6464 api_client = create_api_client (base_path = args ["base_path" ], access_token = args ["access_token" ])
65+ # Step 2 end
6566
67+ # Step 4 start
6668 envelope_api = EnvelopesApi (api_client )
6769 results = envelope_api .create_envelope (account_id = args ["account_id" ], envelope_definition = envelope_definition )
68-
70+ # Step 4 end
71+
6972 envelope_id = results .envelope_id
7073
7174 return {"envelope_id" : envelope_id }
72- # Step 3 end
73-
74- # Step 2 start
75+
76+ # Step 3 start
7577 @classmethod
7678 def make_envelope (cls , args , doc_docx_path , doc_pdf_path ):
7779 """
@@ -181,6 +183,7 @@ def make_envelope(cls, args, doc_docx_path, doc_pdf_path):
181183 env .status = args ["status" ]
182184
183185 return env
186+ # Step 3 end
184187
185188 @classmethod
186189 def create_document1 (cls , args ):
@@ -212,4 +215,6 @@ def create_document1(cls, args):
212215 <h3 style="margin-top:3em;">Agreed: <span style="color:white;">**signature_1**/</span></h3>
213216 </body>
214217 </html>
215- """
218+ """
219+
220+ # End
0 commit comments