[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

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

(no description)

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

Defines 1 class

Debit:: (2 methods):
  init()
  refund()


Class: Debit  - X-Ref

Represents an account debit transaction.

You create these using Balanced\Account::debit.

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

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

$debit = $account->debit(
100,
'how it appears on the statement',
'a description',
array(
'my_id': '443322'
)
);
</code>
init()   X-Ref
No description

refund($amount = null,$description = null,$meta = null)   X-Ref
Create a refund for this debit. You can create multiple refunds for a
debit but the total amount of the refunds must be less than the debit
amount.

param: int amount Optional amount of the refund in USD pennies. If unspecified then the full debit amount is used.    
param: string description Optional description of the refund.
param: array[string]string meta Optional metadata to associate with the refund.
return: \Balanced\Refund



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