NAME
WebService::Braintree::MerchantAccount
PURPOSE
This class creates, updates, deletes, and finds merchant accounts.
create()
This takes a hashref of parameters and returns the merchant account created.
find()
This takes a merchant_account_id returns the merchant account (if it exists).
all()
This returns all the merchant accounts.
update()
This takes a merchant_account_id and a hashref of parameters. It will update the corresponding merchant account (if found) and returns the updated merchant account.
OBJECT METHODS
In addition to the methods provided by the keys returned from Braintree, this class provides the following methods:
master_merchant_account()
This returns the master merchant account (if it exists). It will be a WebService::Braintree::MerchantAccount object.
individual_details()
This returns the individual details of this merchant account (if they exist). It will be a WebService::Braintree::MerchantAccount::IndividualDetails object.
business_details()
This returns the business details of this merchant account (if they exist). It will be a WebService::Braintree::MerchantAccount::BusinessDetails object.
funding_details()
This returns the funding details of this merchant account (if they exist). It will be a WebService::Braintree::MerchantAccount::FundingDetails object.