NAME

WebService::Braintree::Address

PURPOSE

This class creates, updates, deletes, and finds addresses.

CLASS METHODS

create()

This takes a hashref of parameters and returns the address created.

find()

This takes a customer_id and an address_id and returns the address (if it exists).

update()

This takes a customer_id, an address_id, and a hashref of parameters. It will update the corresponding address (if found) and returns the updated address.

delete()

This takes a customer_id and an address_id and deletes the corresponding address (if found).

OBJECT METHODS

In addition to the methods provided by the keys returned from Braintree, this class provides the following methods:

full_name()

This returns the full name of this address. This is the first_name and the last_name concatenated with a space.

TODO

Need to document the keys and values that are returned
Need to document the required and optional input parameters
Need to document the possible errors/exceptions