[ Index ] |
PHP Cross Reference of Phabricator |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 217 lines (7 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
Account:: (7 methods):
init()
credit()
debit()
hold()
addCard()
addBankAccount()
promoteToMerchant()
init() X-Ref |
No description |
credit($amount,$description = null,$meta = null,$destination = null,$appears_on_statement_as = null) X-Ref |
Credit the account. param: int amount Amount to credit the account in USD pennies. param: string description Optional description of the credit. param: array[string]string meta Optional metadata to associate with the credit. param: mixed destination Optional URI of a funding destination (i.e. \Balanced\BankAccount) associated with this account to credit. If not specified the funding destination most recently added to the account is used. param: string appears_on_statement_as Optional description of the credit as it will appears on the customer's billing statement. return: \Balanced\Credit |
debit($amount,$appears_on_statement_as = null,$description = null,$meta = null,$source = null,$on_behalf_of = null) X-Ref |
Debit the account. param: int amount Amount to debit the account in USD pennies. param: string appears_on_statement_as Optional description of the debit as it will appears on the customer's billing statement. param: string description Optional description of the debit. param: array[string]string meta Optional metadata to associate with the debit. param: mixed Optional funding source (i.e. \Balanced\Card) or URI of a funding source associated with this account to debit. If not specified the funding source most recently added to the account is used. return: \Balanced\Debit |
hold($amount,$description = null,$source_uri = null,$meta = null) X-Ref |
Create a hold (i.e. a guaranteed pending debit) for account funds. You can later capture or void. A hold is associated with a account funding source (i.e. \Balanced\Card). If you don't specify the source then the current primary funding source for the account is used. param: int amount Amount of the hold in USD pennies. param: string Optional description Description of the hold. param: string Optional URI referencing the card to use for the hold. param: array[string]string meta Optional metadata to associate with the hold. return: \Balanced\Hold |
addCard($card) X-Ref |
Creates or associates a created card with the account. The default funding source for the account will be this card. param: mixed card \Balanced\Card or URI referencing a card to associate with the account. Alternatively it can be an associative array describing a card to create and associate with the account. return: \Balanced\Account |
addBankAccount($bank_account) X-Ref |
Creates or associates a created bank account with the account. The new default funding destination for the account will be this bank account. param: mixed bank_account \Balanced\BankAccount or URI for a bank account to associate with the account. Alternatively it can be an associative array describing a bank account to create and associate with the account. return: \Balanced\Account |
promoteToMerchant($merchant) X-Ref |
Promotes a role-less or buyer account to a merchant. param: mixed merchant Associative array describing the merchants identity or a URI referencing a created merchant. return: \Balanced\Account |
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |