Skip to content

Commit

Permalink
DEVDOCS-11300 - adding codeDepot markers
Browse files Browse the repository at this point in the history
  • Loading branch information
InbarGazit committed Jul 18, 2023
1 parent 4162e57 commit 0513746
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/services/e_sign/eg012_embedded_console_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ def initialize(args)
@args = args
end

# ***DS.snippet.0.start
def worker
# Step 1. Create the NDSE view request object
# Exceptions will be caught by the calling function
#ds-snippet-start:eSign12Step2
view_request = DocuSign_eSign::ConsoleViewRequest.new({
returnUrl: args[:ds_return_url]
})
view_request.envelope_id = args[:envelope_id] if args[:starting_view] == 'envelope' && args[:envelope_id]
# Step 2. Call the API method
envelope_api = create_envelope_api(args)
results = envelope_api.create_console_view args[:account_id], view_request
#ds-snippet-end:eSign12Step2
{ 'redirect_url' => results.url }
end
# ***DS.snippet.0.end
end

0 comments on commit 0513746

Please sign in to comment.