Sha256: 1270f864361df4d36f482f1ce32ece2929952ad32df1fb1916e329535e121f94

Contents?: true

Size: 756 Bytes

Versions: 1

Compression:

Stored size: 756 Bytes

Contents

# frozen_string_literal: true

module Tikkie
  module Api
    module Clients
      # Refund endpoint at Tikkie.
      class Refunds < Base
        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

        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
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tikkie-api-2.0.0 lib/tikkie/api/clients/refunds.rb