@@ -26,19 +26,19 @@ def create_or_update_orders(orders)
2626
2727 # Public: Create or update a refund.
2828 #
29- # order_id - Required. The String id of the order.
30- # amount - Required. The amount of the refund.
31- # options - Optional. A Hash of refund properties
32- # upstream_id - The unique id of refund in the order management system.
33- # note - A note about the refund.
34- # processed_at - The String time at which the refund was processed in
35- # ISO-8601 format.
29+ # options - Required. A Hash of refund properties
30+ # amount - Required. The amount of the refund.
31+ # provider - Required. The provider for the Order being refunded.
32+ # order_upstream_id - Required. The upstream_id for the Order being refunded.
33+ # upstream_id - The unique id of refund in the order management system.
34+ # note - A note about the refund.
35+ # processed_at - The String time at which the refund was processed in
36+ # ISO-8601 format.
3637 #
3738 # Returns a Drip::Response.
3839 # See https://developer.drip.com/#create-or-update-a-refund
39- def create_or_update_refund ( order_id , amount , options )
40- data = options . merge ( amount : amount )
41- post "#{ account_id } /orders/#{ order_id } /refunds" , generate_resource ( "refunds" , data )
40+ def create_or_update_refund ( options )
41+ post "#{ account_id } /refunds" , generate_resource ( "refunds" , options )
4242 end
4343 end
4444 end
0 commit comments