NAME
WebService::Braintree::Customer
PURPOSE
This class creates, updates, deletes, and finds customers.
create()
This takes a hashref of parameters and returns a response with the customer()
set.
find()
This takes a token and returns a response with the customer()
set (if found).
update()
This takes a customer_id and a hashref of parameters. It will update the corresponding credit card (if found) and return a response with the customer()
set.
delete()
This takes a customer_id. It will delete the corresponding customer (if found) and return a response with the customer()
set.
search()
This takes a subref which is used to set the search parameters and returns a collection of the matching customers.
Please see Searching for more information on the subref and how it works.
Please see WebService::Braintree::CustomerSearch for more information on what specfic fields you can set for this method.
all()
This returns a collection of all customers.
transactions()
This takes a customer_id. It returns a collection of all customers for that customer.
credit()
This takes a customer_id and an optional hashref of parameters. This delegates to "credit" in WebService::Braintree::Transaction, setting the customer_id
appropriately.
sale()
This takes a customer_id and an optional hashref of parameters. This delegates to "sale" in WebService::Braintree::Transaction, setting the customer_id
appropriately.