class Komoju::Payments
Payment resource
Public Class Methods
new(client)
click to toggle source
# File lib/komoju/client.rb, line 160 def initialize(client) @client = client end
Public Instance Methods
cancel(payments_id)
click to toggle source
Cancel a payment
@param payments_id: A unique indentifier for the payment
# File lib/komoju/client.rb, line 211 def cancel(payments_id) @client.payments.cancel(payments_id) end
capture(payments_id)
click to toggle source
Capture a payment
@param payments_id: A unique indentifier for the payment
# File lib/komoju/client.rb, line 196 def capture(payments_id) @client.payments.capture(payments_id) end
create(body = {})
click to toggle source
Create a payment
@param body: the object to pass as the request payload
# File lib/komoju/client.rb, line 181 def create(body = {}) @client.payments.create(body) end
list(body = {})
click to toggle source
List payments
@param body: the object to pass as the request payload
# File lib/komoju/client.rb, line 167 def list(body = {}) @client.payments.list(body) end
refund(payments_id, body = {})
click to toggle source
Refund a payment
@param payments_id: A unique indentifier for the payment @param body: the object to pass as the request payload
# File lib/komoju/client.rb, line 204 def refund(payments_id, body = {}) @client.payments.refund(payments_id, body) end
show(payments_id)
click to toggle source
Show a payment
@param payments_id: A unique indentifier for the payment
# File lib/komoju/client.rb, line 174 def show(payments_id) @client.payments.show(payments_id) end
update(payments_id, body = {})
click to toggle source
Update a payment
@param payments_id: A unique indentifier for the payment @param body: the object to pass as the request payload
# File lib/komoju/client.rb, line 189 def update(payments_id, body = {}) @client.payments.update(payments_id, body) end