Class: CentrumFaktur::API::Payment

Inherits:
Base
  • Object
show all
Defined in:
lib/centrum_faktur/api/payment.rb

Instance Attribute Summary

Attributes inherited from Base

#client

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from CentrumFaktur::API::Base

Instance Method Details

#create(payment_uri, params) ⇒ Object



10
11
12
13
# File 'lib/centrum_faktur/api/payment.rb', line 10

def create(payment_uri, params)
  request = connection.post(payment_uri, params)
  request.handle_response
end

#list(comment_uri = "/api/1.0/payments/", options = {}) ⇒ Object



5
6
7
8
# File 'lib/centrum_faktur/api/payment.rb', line 5

def list(comment_uri = "/api/1.0/payments/", options = {})
  request = connection.get(comment_uri, options)
  request.handle_response
end