lib/hello_sign/client.rb in hellosign-ruby-sdk-3.2.15 vs lib/hello_sign/client.rb in hellosign-ruby-sdk-3.3.0

- old
+ new

@@ -285,20 +285,23 @@ def prepare_templates(opts) prepare opts, :template_ids end - def prepare_cc_roles(opts) - prepare opts, :merge_fields - end - def prepare_signer_roles(opts) prepare opts, :signer_roles end def prepare_custom_fields(opts) if (opts[:custom_fields] and opts[:custom_fields].is_a? Array) opts[:custom_fields] = MultiJson.dump(opts[:custom_fields]) + end + #ignore if it's already a string, or not present + end + + def prepare_merge_fields(opts) + if (opts[:merge_fields] and opts[:merge_fields].is_a? Array) + opts[:merge_fields] = MultiJson.dump(opts[:merge_fields]) end #ignore if it's already a string, or not present end def prepare(opts, key)