class Tikkie::Api::Clients::Refunds
Refund endpoint at Tikkie
.
Public Instance Methods
create(payment_request_token, payment_token, attributes = {}, options = {})
click to toggle source
# File lib/tikkie/api/clients/refunds.rb, line 13 def create(payment_request_token, payment_token, attributes = {}, options = {}) payment = Tikkie::Api::Resources::Refund.new(config, options.merge(payment_request_token: payment_request_token, payment_token: payment_token)) payment.save(attributes) end
get(payment_request_token, payment_token, refund_token, options = {})
click to toggle source
# File lib/tikkie/api/clients/refunds.rb, line 8 def get(payment_request_token, payment_token, refund_token, options = {}) payment = Tikkie::Api::Resources::Refund.new(config, options.merge(payment_request_token: payment_request_token, payment_token: payment_token, refund_token: refund_token)) payment.load end