Class: AfconWave::Resource::Refunds
- Inherits:
-
Base
- Object
- Base
- AfconWave::Resource::Refunds
show all
- Defined in:
- lib/afconwave.rb
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#create(payment_id:, amount:, reason: nil) ⇒ Object
141
142
143
|
# File 'lib/afconwave.rb', line 141
def create(payment_id:, amount:, reason: nil)
@client.request(method: 'POST', path: '/refunds', data: { paymentId: payment_id, amount: amount, reason: reason })
end
|
#list ⇒ Object
144
|
# File 'lib/afconwave.rb', line 144
def list; @client.request(method: 'GET', path: '/refunds'); end
|