Sha256: 10e8d001b42e6f0f3f30719c29b98f99386d0b565b86e20c4ab329a8a28b68ae
Contents?: true
Size: 568 Bytes
Versions: 5
Compression:
Stored size: 568 Bytes
Contents
require 'open-uri' module Mollie module API module Resource class Payments class Refunds < Base @payment_id = nil def resource_object Object::Payment::Refund end def resource_name payment_id = URI::encode(@payment_id) "payments/#{payment_id}/refunds" end def with(payment_or_id) @payment_id = payment_or_id.is_a?(Object::Payment) ? payment_or_id.id : payment_or_id self end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems