[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/externals/balanced-php/src/Balanced/ -> Credit.php (summary)

(no description)

File Size: 75 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Credit:: (2 methods):
  init()
  bankAccount()


Class: Credit  - X-Ref

Represents an account credit transaction.

You create these using Balanced\Account::credit.

<code>
$marketplace = \Balanced\Marketplace::mine();

$account = $marketplace
->accounts
->query()
->filter(Account::f->email_address->eq('[email protected]'))
->one();

$credit = $account->credit(
100,
'how it '
array(
'my_id': '112233'
)
);
</code>
init()   X-Ref
No description

bankAccount($amount,$bank_account,$description = null)   X-Ref
Credit an unstored bank account.

param: int amount Amount to credit in USD pennies.
param: string description Optional description of the credit.
param: mixed bank_account Associative array describing a bank account to credit. The bank account will *not* be stored.
return: \Balanced\Credit



Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1