Class: PagSeguro::PaymentOrders

Inherits:
Object
  • Object
show all
Includes:
Restful
Defined in:
lib/pagseguro/payment_orders.rb

Instance Attribute Summary

Attributes included from Restful

#client

Instance Method Summary collapse

Methods included from Restful

#initialize

Instance Method Details

#fetch(code, params = {}) ⇒ Object



7
8
9
10
# File 'lib/pagseguro/payment_orders.rb', line 7

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