Skip to content

Commit

Permalink
DEVDOCS-10234 adding codeDepot markers
Browse files Browse the repository at this point in the history
  • Loading branch information
raileendr committed Aug 30, 2023
1 parent d2144a7 commit 4157a0b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/services/e_sign/eg009_use_template_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,21 @@ def initialize(args)
@args = args
end

# ***DS.snippet.0.start
#ds-snippet-start:eSign9Step3
def worker
envelope_args = args[:envelope_args]
# 1. Create the envelope request object
# Create the envelope request object
envelope_definition = make_envelope(envelope_args)
# 2. Call Envelopes::create API method
# Call Envelopes::create API method
# Exceptions will be caught by the calling function
envelope_api = create_envelope_api(args)
results = envelope_api.create_envelope args[:account_id], envelope_definition
envelope_id = results.envelope_id
{ envelope_id: envelope_id }
end
#ds-snippet-end:eSign9Step3

#ds-snippet-start:eSign9Step2
def make_envelope(args)
# Create the envelope definition with the template_id
envelope_definition = DocuSign_eSign::EnvelopeDefinition.new({
Expand Down Expand Up @@ -65,5 +67,5 @@ def make_envelope(args)
envelope_definition.template_roles = [signer, cc]
envelope_definition
end
# ***DS.snippet.0.end
#ds-snippet-end:eSign9Step2
end

0 comments on commit 4157a0b

Please sign in to comment.