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
134
135
136
|
# File 'lib/afconwave.rb', line 134
def create(payment_id:, amount:, reason: nil)
@client.request(method: 'POST', path: '/refunds', data: { paymentId: payment_id, amount: amount, reason: reason })
end
|
#list ⇒ Object
137
|
# File 'lib/afconwave.rb', line 137
def list; @client.request(method: 'GET', path: '/refunds'); end
|