Module: EPayCo::Client::Customer
- Included in:
- EPayCo::Client
- Defined in:
- lib/epayco/client/customer.rb
Overview
Defines methods related to Customers
Instance Method Summary collapse
-
#customer_all(params = {}) ⇒ Array
Returns all the Customers registered.
-
#customer_create(options = {}) ⇒ Hashie::Mash
Creates a new customer.
Instance Method Details
#customer_all(params = {}) ⇒ Array
Returns all the Customers registered
28 29 30 31 32 |
# File 'lib/epayco/client/customer.rb', line 28 def customer_all(params={}) path = "/payment/v1/customers/#{public_key}" = { return_object: true } get(path, params, ) end |
#customer_create(options = {}) ⇒ Hashie::Mash
Creates a new customer
51 52 53 54 55 |
# File 'lib/epayco/client/customer.rb', line 51 def customer_create(={}) path = "/payment/v1/customer/create" = { return_object: 'data' } post(path, .merge(public_key: public_key), ) end |