Skip to content

Commit 18f94c3

Browse files
fix merge conflict
2 parents de7b1c7 + 1023684 commit 18f94c3

File tree

6 files changed

+524
-226
lines changed

6 files changed

+524
-226
lines changed

Gemfile.lock

Lines changed: 68 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,67 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
actioncable (7.0.3.1)
5-
actionpack (= 7.0.3.1)
6-
activesupport (= 7.0.3.1)
4+
actioncable (7.0.3)
5+
actionpack (= 7.0.3)
6+
activesupport (= 7.0.3)
77
nio4r (~> 2.0)
88
websocket-driver (>= 0.6.1)
9-
actionmailbox (7.0.3.1)
10-
actionpack (= 7.0.3.1)
11-
activejob (= 7.0.3.1)
12-
activerecord (= 7.0.3.1)
13-
activestorage (= 7.0.3.1)
14-
activesupport (= 7.0.3.1)
9+
actionmailbox (7.0.3)
10+
actionpack (= 7.0.3)
11+
activejob (= 7.0.3)
12+
activerecord (= 7.0.3)
13+
activestorage (= 7.0.3)
14+
activesupport (= 7.0.3)
1515
mail (>= 2.7.1)
1616
net-imap
1717
net-pop
1818
net-smtp
19-
actionmailer (7.0.3.1)
20-
actionpack (= 7.0.3.1)
21-
actionview (= 7.0.3.1)
22-
activejob (= 7.0.3.1)
23-
activesupport (= 7.0.3.1)
19+
actionmailer (7.0.3)
20+
actionpack (= 7.0.3)
21+
actionview (= 7.0.3)
22+
activejob (= 7.0.3)
23+
activesupport (= 7.0.3)
2424
mail (~> 2.5, >= 2.5.4)
2525
net-imap
2626
net-pop
2727
net-smtp
2828
rails-dom-testing (~> 2.0)
29-
actionpack (7.0.3.1)
30-
actionview (= 7.0.3.1)
31-
activesupport (= 7.0.3.1)
29+
actionpack (7.0.3)
30+
actionview (= 7.0.3)
31+
activesupport (= 7.0.3)
3232
rack (~> 2.0, >= 2.2.0)
3333
rack-test (>= 0.6.3)
3434
rails-dom-testing (~> 2.0)
3535
rails-html-sanitizer (~> 1.0, >= 1.2.0)
36-
actiontext (7.0.3.1)
37-
actionpack (= 7.0.3.1)
38-
activerecord (= 7.0.3.1)
39-
activestorage (= 7.0.3.1)
40-
activesupport (= 7.0.3.1)
36+
actiontext (7.0.3)
37+
actionpack (= 7.0.3)
38+
activerecord (= 7.0.3)
39+
activestorage (= 7.0.3)
40+
activesupport (= 7.0.3)
4141
globalid (>= 0.6.0)
4242
nokogiri (>= 1.8.5)
43-
actionview (7.0.3.1)
44-
activesupport (= 7.0.3.1)
43+
actionview (7.0.3)
44+
activesupport (= 7.0.3)
4545
builder (~> 3.1)
4646
erubi (~> 1.4)
4747
rails-dom-testing (~> 2.0)
4848
rails-html-sanitizer (~> 1.1, >= 1.2.0)
49-
activejob (7.0.3.1)
50-
activesupport (= 7.0.3.1)
49+
activejob (7.0.3)
50+
activesupport (= 7.0.3)
5151
globalid (>= 0.3.6)
52-
activemodel (7.0.3.1)
53-
activesupport (= 7.0.3.1)
54-
activerecord (7.0.3.1)
55-
activemodel (= 7.0.3.1)
56-
activesupport (= 7.0.3.1)
57-
activestorage (7.0.3.1)
58-
actionpack (= 7.0.3.1)
59-
activejob (= 7.0.3.1)
60-
activerecord (= 7.0.3.1)
61-
activesupport (= 7.0.3.1)
52+
activemodel (7.0.3)
53+
activesupport (= 7.0.3)
54+
activerecord (7.0.3)
55+
activemodel (= 7.0.3)
56+
activesupport (= 7.0.3)
57+
activestorage (7.0.3)
58+
actionpack (= 7.0.3)
59+
activejob (= 7.0.3)
60+
activerecord (= 7.0.3)
61+
activesupport (= 7.0.3)
6262
marcel (~> 1.0)
6363
mini_mime (>= 1.1.0)
64-
activesupport (7.0.3.1)
64+
activesupport (7.0.3)
6565
concurrent-ruby (~> 1.0, >= 1.0.2)
6666
i18n (>= 1.6, < 2)
6767
minitest (>= 5.1)
@@ -84,7 +84,7 @@ GEM
8484
regexp_parser (~> 1.5)
8585
xpath (~> 3.2)
8686
childprocess (3.0.0)
87-
chromedriver-helper (1.2.0)
87+
chromedriver-helper (2.1.1)
8888
archive-zip (~> 0.10)
8989
nokogiri (~> 1.8)
9090
coderay (1.1.3)
@@ -123,19 +123,19 @@ GEM
123123
json (~> 2.1, >= 2.1.0)
124124
jwt (~> 2.2, >= 2.2.1)
125125
typhoeus (~> 1.0, >= 1.0.1)
126-
erubi (1.11.0)
126+
erubi (1.10.0)
127127
ethon (0.15.0)
128128
ffi (>= 1.15.0)
129129
execjs (2.8.1)
130-
faraday (2.4.0)
130+
faraday (2.3.0)
131131
faraday-net_http (~> 2.0)
132132
ruby2_keywords (>= 0.0.4)
133-
faraday-net_http (2.1.0)
133+
faraday-net_http (2.0.3)
134134
ffi (1.15.5-x64-mingw-ucrt)
135135
globalid (1.0.0)
136136
activesupport (>= 5.0)
137137
hashie (5.0.0)
138-
i18n (1.12.0)
138+
i18n (1.11.0)
139139
concurrent-ruby (~> 1.0)
140140
io-like (0.3.1)
141141
jbuilder (2.11.5)
@@ -152,11 +152,10 @@ GEM
152152
mail (2.7.1)
153153
mini_mime (>= 0.1.1)
154154
marcel (1.0.2)
155-
matrix (0.4.2)
156155
method_source (0.9.2)
157156
mini_mime (1.1.2)
158157
minitest (5.16.2)
159-
msgpack (1.5.4)
158+
msgpack (1.5.3)
160159
multi_xml (0.6.0)
161160
net-imap (0.2.3)
162161
digest
@@ -173,9 +172,9 @@ GEM
173172
net-protocol
174173
timeout
175174
nio4r (2.5.8)
176-
nokogiri (1.13.8-x64-mingw-ucrt)
175+
nokogiri (1.13.6-x64-mingw-ucrt)
177176
racc (~> 1.4)
178-
oauth2 (2.0.6)
177+
oauth2 (2.0.5)
179178
faraday (>= 0.17.3, < 3.0)
180179
jwt (>= 1.0, < 3.0)
181180
multi_xml (~> 0.5)
@@ -204,32 +203,32 @@ GEM
204203
nio4r (~> 2.0)
205204
racc (1.6.0)
206205
rack (2.2.4)
207-
rack-protection (2.2.2)
206+
rack-protection (2.2.0)
208207
rack
209208
rack-test (2.0.2)
210209
rack (>= 1.3)
211-
rails (7.0.3.1)
212-
actioncable (= 7.0.3.1)
213-
actionmailbox (= 7.0.3.1)
214-
actionmailer (= 7.0.3.1)
215-
actionpack (= 7.0.3.1)
216-
actiontext (= 7.0.3.1)
217-
actionview (= 7.0.3.1)
218-
activejob (= 7.0.3.1)
219-
activemodel (= 7.0.3.1)
220-
activerecord (= 7.0.3.1)
221-
activestorage (= 7.0.3.1)
222-
activesupport (= 7.0.3.1)
210+
rails (7.0.3)
211+
actioncable (= 7.0.3)
212+
actionmailbox (= 7.0.3)
213+
actionmailer (= 7.0.3)
214+
actionpack (= 7.0.3)
215+
actiontext (= 7.0.3)
216+
actionview (= 7.0.3)
217+
activejob (= 7.0.3)
218+
activemodel (= 7.0.3)
219+
activerecord (= 7.0.3)
220+
activestorage (= 7.0.3)
221+
activesupport (= 7.0.3)
223222
bundler (>= 1.15.0)
224-
railties (= 7.0.3.1)
223+
railties (= 7.0.3)
225224
rails-dom-testing (2.0.3)
226225
activesupport (>= 4.2.0)
227226
nokogiri (>= 1.6)
228227
rails-html-sanitizer (1.4.3)
229228
loofah (~> 2.3)
230-
railties (7.0.3.1)
231-
actionpack (= 7.0.3.1)
232-
activesupport (= 7.0.3.1)
229+
railties (7.0.3)
230+
actionpack (= 7.0.3)
231+
activesupport (= 7.0.3)
233232
method_source
234233
rake (>= 12.2)
235234
thor (~> 1.0)
@@ -268,16 +267,16 @@ GEM
268267
activesupport (>= 5.2)
269268
sprockets (>= 3.0.0)
270269
sqlite3 (1.4.4)
271-
strscan (3.0.4)
270+
strscan (3.0.3)
272271
thor (1.2.1)
273-
tilt (2.0.11)
272+
tilt (2.0.10)
274273
timeout (0.3.0)
275274
turbolinks (5.2.1)
276275
turbolinks-source (~> 5.2)
277276
turbolinks-source (5.2.0)
278277
typhoeus (1.4.0)
279278
ethon (>= 0.9.0)
280-
tzinfo (2.0.5)
279+
tzinfo (2.0.4)
281280
concurrent-ruby (~> 1.0)
282281
tzinfo-data (1.2022.1)
283282
tzinfo (>= 1.0.0)
@@ -303,7 +302,7 @@ DEPENDENCIES
303302
bootsnap (~> 1.7.3)
304303
byebug (~> 11.1.1)
305304
capybara (~> 3.31.0)
306-
chromedriver-helper (~> 1.2.0)
305+
chromedriver-helper (~> 2.1.1)
307306
coffee-rails (~> 5.0.0)
308307
docusign_admin (~> 1.1.0)
309308
docusign_click (~> 1.0.0)
@@ -312,7 +311,6 @@ DEPENDENCIES
312311
docusign_rooms (~> 1.2.0.rc1)
313312
jbuilder (~> 2.11.5)
314313
listen (~> 3.7.1)
315-
matrix (~> 0.4.2)
316314
omniauth-oauth2 (~> 1.7.1)
317315
omniauth-rails_csrf_protection
318316
pry-nav (~> 0.3.0)
@@ -329,9 +327,10 @@ DEPENDENCIES
329327
uglifier (~> 4.2.0)
330328
wdm (>= 0.1.0)
331329
web-console (~> 4.2.0)
330+
webrick (~> 1.7)
332331

333332
RUBY VERSION
334333
ruby 3.1.2p20
335334

336335
BUNDLED WITH
337-
2.3.7
336+
2.3.7
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# frozen_string_literal: true
2+
3+
class ESign::Eg040SetDocumentVisibilityController < EgController
4+
before_action :check_auth
5+
6+
def create
7+
begin
8+
envelope_args = {
9+
signer1_email: param_gsub(params['signer1Email']),
10+
signer1_name: param_gsub(params['signer1Name']),
11+
signer2_email: param_gsub(params['signer2Email']),
12+
signer2_name: param_gsub(params['signer2Name']),
13+
cc_email: param_gsub(params['ccEmail']),
14+
cc_name: param_gsub(params['ccName']),
15+
status: 'sent',
16+
doc_docx: File.join('data', Rails.application.config.doc_docx),
17+
doc_pdf: File.join('data', Rails.application.config.doc_pdf)
18+
}
19+
args = {
20+
account_id: session['ds_account_id'],
21+
base_path: session['ds_base_path'],
22+
access_token: session['ds_access_token'],
23+
envelope_args: envelope_args
24+
}
25+
results = ESign::Eg040SetDocumentVisibilityService.new(args).worker
26+
@title = 'Envelope sent'
27+
@h1 = 'Envelope sent'
28+
@message = "The envelope has been created and sent!<br/>Envelope ID #{results['envelope_id']}."
29+
render 'ds_common/example_done'
30+
rescue DocuSign_eSign::ApiError => e
31+
error = JSON.parse e.response_body
32+
33+
if error['errorCode'] == "ACCOUNT_LACKS_PERMISSIONS"
34+
@error_information = '<p>See <a href="https://developers.docusign.com/docs/esign-rest-api/how-to/set-document-visibility/">How to set document visibility for envelope recipients</a> in
35+
the DocuSign Developer Center for instructions on how to
36+
enable document visibility in your developer account.</p>'
37+
38+
@error_code = error['errorCode']
39+
@error_message = error['error_description'] || error['message']
40+
41+
return render 'ds_common/error'
42+
end
43+
44+
handle_error(e)
45+
end
46+
end
47+
end

0 commit comments

Comments
 (0)