docusign_rest 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/docusign_rest/client.rb +33 -6
- data/lib/docusign_rest/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80b5cee131865c6529d98f42b9cbe3bc3cf66c79
|
4
|
+
data.tar.gz: 0250b6f1d66f8ec783146ed47e592d12242286e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97e4449e5b12a008b5bf363f44d26e49aebd19ae50886364e320551a04cf30b22f821c46af720b62149eac179562c335b479a0fb8aabe34acb56eaccf6377bc5
|
7
|
+
data.tar.gz: bd695d6d4be8b538529f11d40025c9af71ec16dab22cad12ea6ba4eb6606620c10ffe8a56c007a48cb765f1467e24028a4225af00528134fc545660c4a0b89bf
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## v0.3.6 Jan 31 2018
|
4
|
+
|
5
|
+
* Add support for radio button groups in DocusignRest::Client#create_envelope_from_composite_template (Tom Copeland)
|
6
|
+
* Implement DocusignRest::Client#get_document_tabs (Tom Copeland)
|
7
|
+
|
3
8
|
## v0.3.5 Dec 12 2017
|
4
9
|
|
5
10
|
* Implement DocusignRest::Client#send_envelope (Derek Harrington)
|
data/lib/docusign_rest/client.rb
CHANGED
@@ -273,6 +273,15 @@ module DocusignRest
|
|
273
273
|
end
|
274
274
|
end
|
275
275
|
|
276
|
+
def get_radio_signer_tabs(tabs)
|
277
|
+
Array(tabs).map do |tab|
|
278
|
+
{
|
279
|
+
'documentId' => tab[:document_id],
|
280
|
+
'groupName' => tab[:group_name],
|
281
|
+
'radios' => tab[:radios],
|
282
|
+
}
|
283
|
+
end
|
284
|
+
end
|
276
285
|
|
277
286
|
# TODO (2014-02-03) jonk => document
|
278
287
|
def get_event_notification(event_notification)
|
@@ -663,12 +672,13 @@ module DocusignRest
|
|
663
672
|
clientUserId: signer[:client_id] || signer[:email],
|
664
673
|
requireSignOnPaper: signer[:require_sign_on_paper] || false,
|
665
674
|
tabs: {
|
666
|
-
textTabs:
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
675
|
+
textTabs: get_signer_tabs(signer[:text_tabs]),
|
676
|
+
radioGroupTabs: get_radio_signer_tabs(signer[:radio_group_tabs]),
|
677
|
+
checkboxTabs: get_signer_tabs(signer[:checkbox_tabs]),
|
678
|
+
numberTabs: get_signer_tabs(signer[:number_tabs]),
|
679
|
+
fullNameTabs: get_signer_tabs(signer[:fullname_tabs]),
|
680
|
+
dateTabs: get_signer_tabs(signer[:date_tabs]),
|
681
|
+
signHereTabs: get_sign_here_tabs(signer[:sign_here_tabs])
|
672
682
|
}
|
673
683
|
}
|
674
684
|
signers_array << signers_hash
|
@@ -968,6 +978,23 @@ module DocusignRest
|
|
968
978
|
JSON.parse(response.body)
|
969
979
|
end
|
970
980
|
|
981
|
+
# Public fetches custom fields for a document
|
982
|
+
#
|
983
|
+
# options[:envelope_id] - ID of the envelope which you want to send
|
984
|
+
# options[:document_id] - ID of the envelope which you want to send
|
985
|
+
#
|
986
|
+
# Returns the custom fields Hash.
|
987
|
+
def get_document_tabs(options)
|
988
|
+
content_type = { 'Content-Type' => 'application/json' }
|
989
|
+
uri = build_uri("/accounts/#{acct_id}/envelopes/#{options[:envelope_id]}/documents/#{options[:document_id]}/tabs")
|
990
|
+
|
991
|
+
http = initialize_net_http_ssl(uri)
|
992
|
+
request = Net::HTTP::Get.new(uri.request_uri, headers(content_type))
|
993
|
+
response = http.request(request)
|
994
|
+
generate_log(request, response, uri)
|
995
|
+
JSON.parse(response.body)
|
996
|
+
end
|
997
|
+
|
971
998
|
# Public marks an envelope as sent
|
972
999
|
#
|
973
1000
|
# envelope_id - ID of the envelope which you want to send
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docusign_rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Kinney
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-01-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multipart-post
|