Sha256: 73f403e71d2d81753d5f52a62e7afccbe4a5674b4d6bd4385071dd7cccfea6d6

Contents?: true

Size: 518 Bytes

Versions: 10

Compression:

Stored size: 518 Bytes

Contents

require 'open-uri'

module Mollie
  module API
    module Resource
      class Payments
        class Refunds < Base
          @payment_id = nil

          def getResourceObject
            Mollie::API::Object::Payment::Refund
          end

          def getResourceName
            payment_id = URI::encode(@payment_id)
            "payments/#{payment_id}/refunds"
          end

          def with(payment)
            @payment_id = payment.id
            self
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mollie-api-ruby-1.4.2 lib/Mollie/API/Resource/Payments/Refunds.rb
mollie-api-ruby-1.4.1 lib/Mollie/API/Resource/Payments/Refunds.rb
mollie-api-ruby-1.4.0 lib/Mollie/API/Resource/Payments/Refunds.rb
mollie-api-ruby-1.3.0 lib/Mollie/API/Resource/Payments/Refunds.rb
mollie-api-ruby-1.2.2 lib/Mollie/API/Resource/Payments/Refunds.rb
mollie-api-ruby-1.2.1 lib/Mollie/API/Resource/Payments/Refunds.rb
mollie-api-ruby-1.2.0 lib/Mollie/API/Resource/Payments/Refunds.rb
mollie-api-ruby-1.1.5 lib/Mollie/API/Resource/Payments/Refunds.rb
mollie-api-ruby-1.1.4 lib/Mollie/API/Resource/Payments/Refunds.rb
mollie-api-ruby-1.1.3 lib/Mollie/API/Resource/Payments/Refunds.rb