lib/clicksign/api/documents_signers.rb in clicksign-api-1.1.6.alpha vs lib/clicksign/api/documents_signers.rb in clicksign-api-1.1.7.alpha
- old
+ new
@@ -15,12 +15,14 @@
body(params),
token
)
end
- def batch_create(token:, batch:)
- batch.map do |params|
- create(token: token, params: params)
+ def batch_create(token:, params:)
+ params = params.transform_keys(&:to_sym)
+
+ params[:batch].map do |single_params|
+ create(token: token, params: single_params)
end
end
def body(params)
params = params.transform_keys(&:to_sym)