Skip to content

Commit 123bc48

Browse files
author
nianiB9
committed
notary example update
1 parent f993536 commit 123bc48

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

app/services/notary/eg004_send_with_third_party_notary_service.rb

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ def initialize(args)
99
@args = args
1010
end
1111

12-
#ds-snippet-start:Notary4Step3
1312
def worker
1413
# Create the envelope request object
14+
#ds-snippet-start:Notary4Step4
1515
envelope_definition = make_envelope args[:envelope_args]
1616
# Call Envelopes::create API method
1717
# Exceptions will be caught by the calling function
@@ -20,12 +20,12 @@ def worker
2020
results = envelope_api.create_envelope args[:account_id], envelope_definition
2121
envelope_id = results.envelope_id
2222
{ 'envelope_id' => envelope_id }
23+
#ds-snippet-end:Notary4Step4
2324
end
24-
#ds-snippet-end:Notary4Step3
2525

2626
private
2727

28-
#ds-snippet-start:Notary4Step2
28+
#ds-snippet-start:Notary4Step3
2929
def make_envelope(envelope_args)
3030
# The envelope has two recipients:
3131
# recipient 1 - notary
@@ -104,7 +104,6 @@ def make_envelope(envelope_args)
104104
)
105105

106106
notary_recipient = DocuSign_eSign::NotaryRecipient.new(
107-
email: '',
108107
name: 'Notary',
109108
recipientId: '1',
110109
routingOrder: '1',
@@ -132,5 +131,5 @@ def make_envelope(envelope_args)
132131
envelope_definition.status = 'sent'
133132
envelope_definition
134133
end
135-
#ds-snippet-end:Notary4Step2
136-
end
134+
#ds-snippet-end:Notary4Step3
135+
end

0 commit comments

Comments
 (0)