lib/stripe/util.rb in stripe-13.1.1 vs lib/stripe/util.rb in stripe-13.1.2
- old
+ new
@@ -257,10 +257,10 @@
result = []
value.each_with_index do |elem, i|
if elem.is_a?(Hash)
result += flatten_params(elem, api_mode, "#{calculated_key}[#{i}]")
elsif elem.is_a?(Array)
- result += flatten_params_array(elem, calculated_key, api_mode)
+ result += flatten_params_array(elem, api_mode, calculated_key)
else
result << if api_mode == :v2
[calculated_key, elem]
else
["#{calculated_key}[#{i}]", elem]