docusign_rest 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 71249938a90feb8178a7dd61134b5ee1b3d1ab83
4
- data.tar.gz: 173984a21617f347f5fa8ef046c55d3a689be127
3
+ metadata.gz: f16e50ec15163d9dcfbee778019a50cd6308cfa7
4
+ data.tar.gz: cef8f32061d280fc718b0dc93affe26e02bab88f
5
5
  SHA512:
6
- metadata.gz: 07c63cffce18f06d55878ee755abeb202451ab6f05c1207cae961eadd6f49db97a5356b191fb71efcc351e74791d31242bc2a1d72b1554a42305f6684d6f1974
7
- data.tar.gz: e2597d4609c965ab8a90f97ac640d186a2640b70f7dd7b7a891d321c54c2740f5a1169ee21e0b388bd61c0888b4be7e2e5d02ef094302399e4cf6afa9f858b33
6
+ metadata.gz: 5ae87ea7870076bc09c4c9191244e99f7ff985e49f3e68ce5fcd812e02dea810920d2d8621164ec56a1245ad06b819ab810488e03d5531d3b7902d4a1357eae8
7
+ data.tar.gz: 81ff6f470519cf100441a4418ef66edfa528aa1282e540598628fe80e78ed8e7dba45546e6f82ef131071b3ab824d55d29700f26a0a270dc083297c51a4dbb03
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.4.4 Nov 8 2018
4
+ * Allow email_settings in create_envelope_from_document (Kevin Coleman)
5
+
3
6
  ## v0.4.3 Oct 27 2018
4
7
  * Implement Docusign::Client#get_users_list (Hendrik Kleinwaechter)
5
8
 
@@ -739,6 +739,9 @@ module DocusignRest
739
739
  # email[subject] - (Optional) short subject line for the email
740
740
  # email[body] - (Optional) custom text that will be injected into the
741
741
  # DocuSign generated email
742
+ # email_settings[bcc_emails] - (Optional) array of emails to BCC.
743
+ # email_settings[reply_to_email] - (Optional) override the default reply to email for the account.
744
+ # email_settings[reply_to_name] - (Optional) override the default reply to name for the account.
742
745
  # signers - A hash of users who should receive the document and need
743
746
  # to sign it. More info about the options available for
744
747
  # this method are documented above it's method definition.
@@ -772,6 +775,7 @@ module DocusignRest
772
775
  post_hash = {
773
776
  emailBlurb: "#{options[:email][:body] if options[:email]}",
774
777
  emailSubject: "#{options[:email][:subject] if options[:email]}",
778
+ emailSettings: get_email_settings(options[:email_settings]),
775
779
  documents: get_documents(ios),
776
780
  recipients: {
777
781
  signers: get_signers(options[:signers]),
@@ -2067,5 +2071,14 @@ module DocusignRest
2067
2071
  receiveInResponse: true,
2068
2072
  }
2069
2073
  end
2074
+
2075
+ def get_email_settings(input)
2076
+ return {} unless input
2077
+ {
2078
+ bccEmailAddresses: input[:bcc_email_addresses],
2079
+ replyEmailAddressOverride: input[:reply_to_email],
2080
+ replyEmailNameOverride: input[:reply_to_name]
2081
+ }
2082
+ end
2070
2083
  end
2071
2084
  end
@@ -1,3 +1,3 @@
1
1
  module DocusignRest
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  end
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.4.3
4
+ version: 0.4.4
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: 2018-10-27 00:00:00.000000000 Z
12
+ date: 2018-11-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multipart-post