Class: Tikkie::Api::Clients::Refunds
- Defined in:
- lib/tikkie/api/clients/refunds.rb
Overview
Refund endpoint at Tikkie.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #create(payment_request_token, payment_token, attributes = {}, options = {}) ⇒ Object
- #get(payment_request_token, payment_token, refund_token, options = {}) ⇒ Object
Methods inherited from Base
Constructor Details
This class inherits a constructor from Tikkie::Api::Clients::Base
Instance Method Details
#create(payment_request_token, payment_token, attributes = {}, options = {}) ⇒ Object
13 14 15 16 |
# File 'lib/tikkie/api/clients/refunds.rb', line 13 def create(payment_request_token, payment_token, attributes = {}, = {}) payment = Tikkie::Api::Resources::Refund.new(config, .merge(payment_request_token: payment_request_token, payment_token: payment_token)) payment.save(attributes) end |
#get(payment_request_token, payment_token, refund_token, options = {}) ⇒ Object
8 9 10 11 |
# File 'lib/tikkie/api/clients/refunds.rb', line 8 def get(payment_request_token, payment_token, refund_token, = {}) payment = Tikkie::Api::Resources::Refund.new(config, .merge(payment_request_token: payment_request_token, payment_token: payment_token, refund_token: refund_token)) payment.load end |