lib/processout/invoice.rb in processout-2.24.0 vs lib/processout/invoice.rb in processout-2.25.0
- old
+ new
@@ -878,10 +878,11 @@
self.prefill(options)
request = Request.new(@client)
path = "/invoices/" + CGI.escape(@id) + "/void"
data = {
- "metadata" => options.fetch(:metadata, nil)
+ "metadata" => options.fetch(:metadata, nil),
+ "amount" => options.fetch(:amount, nil)
}
response = Response.new(request.post(path, data, options))
return_values = Array.new