scenarios/refund_create/request.rb in balanced-0.8.2 vs scenarios/refund_create/request.rb in balanced-1.0.beta1
- old
+ new
@@ -1,7 +1,8 @@
<%= boiler_plate %>
-debit = Balanced::Debit.find('<%= request['debit_uri'] %>')
+debit = Balanced::Debit.fetch('<%= request['debit_href'] %>')
debit.refund(
+ :amount => <%= payload['amount'] %>,
:description => '<%= payload['description'] %>',
:meta => {
<%= params_to_hash_for_args.call(payload['meta']).indent(2) %>
}
)