@@ -8,22 +8,22 @@ def initialize(args)
88 @args = args
99 end
1010
11- # ***DS.snippet.0. start
11+ # Step 3 start
1212 def worker
1313 ds_return_url = "#{ args [ :ds_ping_url ] } /ds_common-return"
1414
15- # Step 1. Create the envelope definition
15+ # Create the envelope definition
1616 envelope = make_envelope ( args )
1717
18- # Step 2. Call DocuSign to create the envelope
18+ # Call DocuSign to create the envelope
1919 envelope_api = create_envelope_api ( args )
2020
2121 results = envelope_api . create_envelope args [ :account_id ] , envelope
2222 envelope_id = results . envelope_id
2323 # Save for future use within the example launcher
2424 # session[:envelope_id] = envelope_id
2525
26- # Step 3. Create the recipient view for the embedded signing
26+ # Create the recipient view for the embedded signing
2727 view_request = make_recipient_view_request ( args , ds_return_url )
2828
2929 # Call the CreateRecipientView API
@@ -71,7 +71,9 @@ def make_recipient_view_request(args, ds_return_url)
7171
7272 view_request
7373 end
74+ # Step 3 end
7475
76+ # Step 2 start
7577 def make_envelope ( args )
7678 envelope_definition = DocuSign_eSign ::EnvelopeDefinition . new
7779 envelope_definition . email_subject = 'Example Signing Document'
@@ -125,5 +127,5 @@ def get_html_content(args)
125127 . gsub ( "/l2q/" , "<input data-ds-type=\" number\" />" )
126128
127129 end
128- # ***DS.snippet.0. end
130+ # Step 2 end
129131end
0 commit comments