Sha256: 3f29b4bb71b105a53f46d950a252bc7823f2b26cf13e1dfa36f21dda4493c9ff

Contents?: true

Size: 258 Bytes

Versions: 4

Compression:

Stored size: 258 Bytes

Contents

# frozen_string_literal: true

module PagSeguro
  class PaymentOrders
    include Restful

    def fetch(code, params = {})
      response = get("/pre-approvals/#{code}/payment-orders", params, {})
      response.paymentOrders.values || {}
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pagseguro_next-1.0.6 lib/pagseguro/payment_orders.rb
pagseguro_next-1.0.5 lib/pagseguro/payment_orders.rb
pagseguro_next-1.0.4 lib/pagseguro/payment_orders.rb
pagseguro_next-1.0.3 lib/pagseguro/payment_orders.rb