File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed
Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,16 @@ def initialize(args)
99 end
1010
1111 def worker
12- # 1. Create the envelope request object
12+ # Create the envelope request object
1313 envelope_definition = make_envelope args [ :envelope_args ]
14- # 2. Call Envelopes::create API method
14+ # Call Envelopes::create API method
1515 # Exceptions will be caught by the calling function
1616 envelope_api = create_envelope_api ( args )
1717
18+ # Step 3 start
1819 results = envelope_api . create_envelope args [ :account_id ] , envelope_definition
20+ # Step 3 end
21+
1922 envelope_id = results . envelope_id
2023 { 'envelope_id' => envelope_id }
2124 end
@@ -26,6 +29,7 @@ def make_envelope(envelope_args)
2629 # document (PDF) has tag /sn1/
2730 # The envelope has one recipient
2831
32+ # Step 2 start
2933 # Create the envelope definition
3034 envelope_definition = DocuSign_eSign ::EnvelopeDefinition . new
3135
@@ -100,6 +104,7 @@ def make_envelope(envelope_args)
100104 # Request that the envelope be sent by setting status to "sent".
101105 # To request that the envelope be created as a draft, set status to "created"
102106 envelope_definition . status = envelope_args [ :status ]
107+ # Step 2 end
103108 envelope_definition
104109 end
105110end
Original file line number Diff line number Diff line change @@ -9,21 +9,23 @@ def initialize(args)
99 end
1010
1111 def worker
12- # 1. Create the envelope request object
12+ # Create the envelope request object
1313 envelope_definition = make_envelope args [ :envelope_args ]
14- # 2. Call Envelopes::create API method
14+ # Call Envelopes::create API method
1515 # Exceptions will be caught by the calling function
1616 envelope_api = create_envelope_api ( args )
1717
18+ # Step 3 start
1819 results = envelope_api . create_envelope args [ :account_id ] , envelope_definition
20+ # Step 3 end
1921 envelope_id = results . envelope_id
2022 { 'envelope_id' => envelope_id }
2123 end
2224
2325 private
2426
2527 def make_envelope ( envelope_args )
26-
28+ # Step 2 start
2729 # Create the envelope definition
2830 envelope_definition = DocuSign_eSign ::EnvelopeDefinition . new
2931
@@ -123,6 +125,7 @@ def make_envelope(envelope_args)
123125 # Request that the envelope be sent by setting status to "sent".
124126 # To request that the envelope be created as a draft, set status to "created"
125127 envelope_definition . status = envelope_args [ :status ]
128+ # Step 2 end
126129 envelope_definition
127130 end
128131end
You can’t perform that action at this time.
0 commit comments