Skip to content

Commit b4760dc

Browse files
committed
latest SDK and other changes
1 parent 676c91b commit b4760dc

File tree

3 files changed

+18
-25
lines changed

3 files changed

+18
-25
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ gem 'docusign_click', '~> 1.4.0'
7373
gem 'docusign_esign', '~> 3.25.0'
7474
gem 'docusign_monitor', '~> 1.2.0'
7575
gem 'docusign_rooms', '~> 1.3.0'
76-
gem 'docusign_webforms', '~> 1.0.2.rc12'
76+
gem 'docusign_webforms', '~> 1.0.0'
7777
gem 'omniauth-oauth2', '~> 1.8.0'
7878
gem 'omniauth-rails_csrf_protection'
7979

Gemfile.lock

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ GEM
124124
json (~> 2.1, >= 2.1.0)
125125
jwt (~> 2.2, >= 2.2.1)
126126
typhoeus (~> 1.0, >= 1.0.1)
127-
docusign_webforms (1.0.2.rc12)
127+
docusign_webforms (1.0.0)
128128
addressable (~> 2.7, >= 2.7.0)
129129
json (~> 2.1, >= 2.1.0)
130130
jwt (~> 2.2, >= 2.2.1)
@@ -138,7 +138,6 @@ GEM
138138
ruby2_keywords (>= 0.0.4)
139139
faraday-net_http (3.0.2)
140140
ffi (1.15.5)
141-
ffi (1.15.5-x64-mingw-ucrt)
142141
globalid (1.1.0)
143142
activesupport (>= 5.0)
144143
hashie (5.0.0)
@@ -178,9 +177,7 @@ GEM
178177
net-smtp (0.3.3)
179178
net-protocol
180179
nio4r (2.5.9)
181-
nokogiri (1.15.4-x64-mingw-ucrt)
182-
racc (~> 1.4)
183-
nokogiri (1.15.4-x86_64-linux)
180+
nokogiri (1.15.4-x86_64-darwin)
184181
racc (~> 1.4)
185182
oauth2 (2.0.9)
186183
faraday (>= 0.17.3, < 3.0)
@@ -298,8 +295,7 @@ GEM
298295
actionpack (>= 5.2)
299296
activesupport (>= 5.2)
300297
sprockets (>= 3.0.0)
301-
sqlite3 (1.6.4-x64-mingw-ucrt)
302-
sqlite3 (1.6.4-x86_64-linux)
298+
sqlite3 (1.6.4-x86_64-darwin)
303299
test-unit (3.6.1)
304300
power_assert
305301
thor (1.2.2)
@@ -332,8 +328,7 @@ GEM
332328
zeitwerk (2.6.11)
333329

334330
PLATFORMS
335-
x64-mingw-ucrt
336-
x86_64-linux
331+
x86_64-darwin-21
337332

338333
DEPENDENCIES
339334
bootsnap (~> 1.7.3)
@@ -346,7 +341,7 @@ DEPENDENCIES
346341
docusign_esign (~> 3.25.0)
347342
docusign_monitor (~> 1.2.0)
348343
docusign_rooms (~> 1.3.0)
349-
docusign_webforms (~> 1.0.2.rc12)
344+
docusign_webforms (~> 1.0.0)
350345
jbuilder (~> 2.11.5)
351346
listen (~> 3.8.0)
352347
matrix (~> 0.4.2)

app/services/webforms/eg001_create_instance_service.rb

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ def create_web_form_template
2929

3030
def list_web_forms
3131
configuration = DocuSign_WebForms::Configuration.new
32-
configuration.host = Rails.configuration.webforms_host
3332

3433
api_client = DocuSign_WebForms::ApiClient.new(configuration)
3534
api_client.set_default_header('Authorization', "Bearer #{args[:access_token]}")
@@ -44,7 +43,6 @@ def list_web_forms
4443

4544
def create_web_form_instance(form_id)
4645
configuration = DocuSign_WebForms::Configuration.new
47-
configuration.host = Rails.configuration.webforms_host
4846

4947
api_client = DocuSign_WebForms::ApiClient.new(configuration)
5048
api_client.set_default_header('Authorization', "Bearer #{args[:access_token]}")
@@ -58,10 +56,10 @@ def create_web_form_instance(form_id)
5856
'JobTitle' => 'Programmer Writer'
5957
}
6058
web_form_req_object = DocuSign_WebForms::CreateInstanceRequestBody.new({
61-
'clientUserId' => args[:client_user_id],
62-
'formValues' => web_form_values,
63-
'expirationOffset' => '3600'
64-
})
59+
'clientUserId' => args[:client_user_id],
60+
'formValues' => web_form_values,
61+
'expirationOffset' => '3600'
62+
})
6563
webforms_api.create_instance(args[:account_id], form_id, web_form_req_object)
6664
end
6765

@@ -74,18 +72,18 @@ def make_web_forms_template
7472

7573
# Create the document model
7674
document = DocuSign_eSign::Document.new({
77-
# Create the DocuSign document object
78-
'documentBase64' => base64_file_content,
79-
'name' => 'World_Wide_Web_Form', # Can be different from actual file name
80-
'fileExtension' => 'pdf', # Many different document types are accepted
81-
'documentId' => '1' # A label used to reference the doc
82-
})
75+
# Create the DocuSign document object
76+
'documentBase64' => base64_file_content,
77+
'name' => 'World_Wide_Web_Form', # Can be different from actual file name
78+
'fileExtension' => 'pdf', # Many different document types are accepted
79+
'documentId' => '1' # A label used to reference the doc
80+
})
8381

8482
# Create the signer recipient model
8583
# Since these are role definitions, no name/email:
8684
signer = DocuSign_eSign::Signer.new({
87-
'roleName' => 'signer', 'recipientId' => '1', 'routingOrder' => '1'
88-
})
85+
'roleName' => 'signer', 'recipientId' => '1', 'routingOrder' => '1'
86+
})
8987
# Create fields using absolute positioning
9088
# Create a sign_here tab (field on the document)
9189
sign_here = DocuSign_eSign::SignHere.new(

0 commit comments

Comments
 (0)