Module: Moyasar::Actions::Refund::ClassMethods
- Defined in:
- lib/moyasar/actions/refund.rb
Instance Method Summary collapse
Instance Method Details
#perform_refund(id, attrs = {}) ⇒ Object
15 16 17 18 |
# File 'lib/moyasar/actions/refund.rb', line 15 def perform_refund(id, attrs = {}) response = request(:post, refund_url(id), params: attrs) new(response.body) end |
#refund(id, attrs = {}) ⇒ Object
11 12 13 |
# File 'lib/moyasar/actions/refund.rb', line 11 def refund(id, attrs = {}) perform_refund(id, attrs) end |