module Square::Connect::Connections::Payments
Public Instance Methods
payment(payment_id, params = nil)
click to toggle source
# File lib/square/connect/connections/payments.rb, line 17 def payment(payment_id, params = nil) access_token_required! Payment.new( payment_id, merchant_id: identifier, access_token: access_token ).fetch end
payments(params = nil)
click to toggle source
# File lib/square/connect/connections/payments.rb, line 5 def payments(params = nil) access_token_required! payments = handle_response do access_token.get endpoint_for(identifier, :payments), params end payments.collect do |payment| Payment.new payment.merge( access_token: access_token ) end end