Sha256: 3b716f3b6978bbafe4d402b7da25274b75e141490085525c49046caf4e316c67

Contents?: true

Size: 480 Bytes

Versions: 6

Compression:

Stored size: 480 Bytes

Contents

module BillForward
  class Refund < MutableEntity
    @resource_path = BillForward::ResourcePath.new("refunds", "refund")

    class << self
      def get_by_invoice_id(id, query_params = {}, custom_client = nil)
        raise ArgumentError.new("id cannot be nil") if id.nil?

        endpoint = sprintf('invoice/%s',
                           ERB::Util.url_encode(id)
        )

        self.request_many('get', endpoint, query_params, custom_client)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bill_forward-2.2016.241 lib/bill_forward/entities/refund.rb
bill_forward-2.2016.227 lib/bill_forward/entities/refund.rb
bill_forward-2.2016.222 lib/bill_forward/entities/refund.rb
bill_forward-2.2016.209 lib/bill_forward/entities/refund.rb
bill_forward-1.2016.117 lib/bill_forward/entities/refund.rb
bill_forward-1.2016.101 lib/bill_forward/entities/refund.rb