Skip to content

Commit caf4873

Browse files
Merge branch 'master' into maintenance/may-2024
2 parents 4fdb6a0 + cb1d6bf commit caf4873

File tree

4 files changed

+59
-26
lines changed

4 files changed

+59
-26
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ end
7070

7171
gem 'docusign_admin', '~> 1.3.0'
7272
gem 'docusign_click', '~> 1.4.0'
73-
gem 'docusign_esign', '~> 3.27.0.rc1'
73+
gem 'docusign_esign', '~> 4.0.0.rc1'
7474
gem 'docusign_maestro', '~> 1.0.0.rc1'
7575
gem 'docusign_monitor', '~> 1.2.0'
7676
gem 'docusign_rooms', '~> 1.3.0'

Gemfile.lock

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ GEM
8181
io-like (~> 0.3.0)
8282
ast (2.4.2)
8383
base64 (0.2.0)
84-
bigdecimal (3.1.7)
84+
bigdecimal (3.1.8)
8585
bindex (0.8.1)
8686
bootsnap (1.7.7)
8787
msgpack (~> 1.0)
@@ -121,7 +121,7 @@ GEM
121121
json (~> 2.1, >= 2.1.0)
122122
jwt (~> 2.2, >= 2.2.1)
123123
typhoeus (~> 1.0, >= 1.0.1)
124-
docusign_esign (3.27.0.rc1)
124+
docusign_esign (4.0.0.rc1)
125125
addressable (~> 2.7, >= 2.7.0)
126126
json (~> 2.1, >= 2.1.0)
127127
jwt (~> 2.2, >= 2.2.1)
@@ -155,12 +155,12 @@ GEM
155155
globalid (1.2.1)
156156
activesupport (>= 6.1)
157157
hashie (5.0.0)
158-
i18n (1.14.4)
158+
i18n (1.14.5)
159159
concurrent-ruby (~> 1.0)
160160
io-console (0.7.2)
161161
io-like (0.3.1)
162-
irb (1.12.0)
163-
rdoc
162+
irb (1.13.1)
163+
rdoc (>= 4.0.0)
164164
reline (>= 0.4.2)
165165
jbuilder (2.11.5)
166166
actionview (>= 5.0.0)
@@ -182,15 +182,16 @@ GEM
182182
net-smtp
183183
marcel (1.0.4)
184184
matrix (0.4.2)
185-
method_source (1.0.0)
185+
method_source (1.1.0)
186186
mini_mime (1.1.5)
187187
minitest (5.22.3)
188188
msgpack (1.7.2)
189-
multi_xml (0.6.0)
189+
multi_xml (0.7.1)
190+
bigdecimal (~> 3.1)
190191
mutex_m (0.2.0)
191192
net-http (0.4.1)
192193
uri
193-
net-imap (0.4.10)
194+
net-imap (0.4.11)
194195
date
195196
net-protocol
196197
net-pop (0.1.2)
@@ -199,10 +200,10 @@ GEM
199200
timeout
200201
net-smtp (0.5.0)
201202
net-protocol
202-
nio4r (2.7.1)
203-
nokogiri (1.16.3-x64-mingw-ucrt)
203+
nio4r (2.7.3)
204+
nokogiri (1.16.5-x64-mingw-ucrt)
204205
racc (~> 1.4)
205-
nokogiri (1.16.3-x86_64-linux)
206+
nokogiri (1.16.5-x86_64-linux)
206207
racc (~> 1.4)
207208
oauth2 (2.0.9)
208209
faraday (>= 0.17.3, < 3.0)
@@ -218,11 +219,11 @@ GEM
218219
omniauth-oauth2 (1.8.0)
219220
oauth2 (>= 1.4, < 3)
220221
omniauth (~> 2.0)
221-
omniauth-rails_csrf_protection (1.0.1)
222+
omniauth-rails_csrf_protection (1.0.2)
222223
actionpack (>= 4.2)
223224
omniauth (~> 2.0)
224225
parallel (1.24.0)
225-
parser (3.3.0.5)
226+
parser (3.3.1.0)
226227
ast (~> 2.4.1)
227228
racc
228229
power_assert (2.0.3)
@@ -284,10 +285,10 @@ GEM
284285
rb-fsevent (0.11.2)
285286
rb-inotify (0.10.1)
286287
ffi (~> 1.0)
287-
rdoc (6.6.3.1)
288+
rdoc (6.7.0)
288289
psych (>= 4.0.0)
289-
regexp_parser (2.9.0)
290-
reline (0.5.2)
290+
regexp_parser (2.9.1)
291+
reline (0.5.8)
291292
io-console (~> 0.5)
292293
rexml (3.2.6)
293294
rubocop (1.63.3)
@@ -301,8 +302,8 @@ GEM
301302
rubocop-ast (>= 1.31.1, < 2.0)
302303
ruby-progressbar (~> 1.7)
303304
unicode-display_width (>= 2.4.0, < 3.0)
304-
rubocop-ast (1.31.2)
305-
parser (>= 3.3.0.4)
305+
rubocop-ast (1.31.3)
306+
parser (>= 3.3.1.0)
306307
ruby-progressbar (1.13.0)
307308
rubyzip (2.3.2)
308309
sass-rails (6.0.0)
@@ -369,7 +370,7 @@ GEM
369370
websocket-extensions (0.1.5)
370371
xpath (3.2.0)
371372
nokogiri (~> 1.8)
372-
zeitwerk (2.6.13)
373+
zeitwerk (2.6.14)
373374

374375
PLATFORMS
375376
x64-mingw-ucrt
@@ -383,7 +384,7 @@ DEPENDENCIES
383384
coffee-rails (~> 5.0.0)
384385
docusign_admin (~> 1.3.0)
385386
docusign_click (~> 1.4.0)
386-
docusign_esign (~> 3.27.0.rc1)
387+
docusign_esign (~> 4.0.0.rc1)
387388
docusign_maestro (~> 1.0.0.rc1)
388389
docusign_monitor (~> 1.2.0)
389390
docusign_rooms (~> 1.3.0)

app/services/e_sign/eg011_embedded_sending_service.rb

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,10 @@ def worker
1919

2020
#ds-snippet-start:eSign11Step3
2121
# Create the sender view
22-
view_request = DocuSign_eSign::ReturnUrlRequest.new({ returnUrl: args[:ds_return_url] })
22+
view_request = envelope_view_request(args)
2323
envelope_api = create_envelope_api(args)
2424
results = envelope_api.create_sender_view args[:account_id], envelope_id, view_request
25-
# Switch to the Recipients/Documents view if requested by the user in the form
2625
url = results.url
27-
url = url.sub! 'send=1', 'send=0' if args[:starting_view] == 'recipient'
2826
{ 'envelope_id' => envelope_id, 'redirect_url' => url }
2927
#ds-snippet-end:eSign11Step3
3028
end
@@ -148,6 +146,40 @@ def make_envelope(envelope_args)
148146
envelope_definition
149147
end
150148

149+
#ds-snippet-start:eSign11Step3
150+
def envelope_view_request(args)
151+
DocuSign_eSign::EnvelopeViewRequest.new(
152+
returnUrl: args[:ds_return_url],
153+
viewAccess: 'envelope',
154+
settings: DocuSign_eSign::EnvelopeViewSettings.new(
155+
startingScreen: args[:starting_view],
156+
sendButtonAction: 'send',
157+
showBackButton: 'false',
158+
backButtonAction: 'previousPage',
159+
showHeaderActions: 'false',
160+
showDiscardAction: 'false',
161+
lockToken: '',
162+
recipientSettings: DocuSign_eSign::EnvelopeViewRecipientSettings.new(
163+
showEditRecipients: 'false',
164+
showContactsList: 'false'
165+
),
166+
documentSettings: DocuSign_eSign::EnvelopeViewDocumentSettings.new(
167+
showEditDocuments: 'false',
168+
showEditDocumentVisibility: 'false',
169+
showEditPages: 'false'
170+
),
171+
taggerSettings: DocuSign_eSign::EnvelopeViewTaggerSettings.new(
172+
paletteSections: 'default',
173+
paletteDefault: 'custom'
174+
),
175+
templateSettings: DocuSign_eSign::EnvelopeViewTemplateSettings.new(
176+
showMatchingTemplatesPrompt: 'true'
177+
)
178+
)
179+
)
180+
end
181+
#ds-snippet-end:eSign11Step3
182+
151183
def create_document1(args)
152184
"
153185
<!DOCTYPE html>

app/views/e_sign/eeg011_embedded_sending/get.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
<div class="form-group">
1616
<label for="starting_view"><%= @example["Forms"][form_index]["Inputs"][view_index]["InputName"] %></label>
1717
<select id="starting_view" name="starting_view" class="form-control">
18-
<option value="tagging" selected>Tagging view</option>
19-
<option value="recipient">Recipient &amp; Documents view</option>
18+
<option value="Tagger" selected>Tagging view</option>
19+
<option value="Prepare">Prepare view</option>
2020
</select>
2121
</div>
2222
<div class="form-group">

0 commit comments

Comments
 (0)