[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 namespace Balanced; 4 5 use Balanced\Resource; 6 use \RESTful\URISpec; 7 8 /** 9 * Represents a refund of an account debit transaction. 10 * 11 * You create these via Balanced\Debit::refund. 12 * 13 * <code> 14 * $marketplace = \Balanced\Marketplace::mine(); 15 * 16 * $account = $marketplace 17 * ->accounts 18 * ->query() 19 * ->filter(Account::f->email_address->eq('[email protected]')) 20 * ->one(); 21 * 22 * $debit = $account->debit( 23 * 100, 24 * 'how it appears on the statement', 25 * 'a description', 26 * array( 27 * 'my_id': '443322' 28 * ) 29 * ); 30 * 31 * $debit->refund( 32 * 99, 33 * 'some description', 34 * array( 35 * 'my_id': '123123' 36 * ) 37 * ); 38 * </code> 39 */ 40 class Refund extends Resource 41 { 42 protected static $_uri_spec = null; 43 44 public static function init() 45 { 46 self::$_uri_spec = new URISpec('refunds', 'id'); 47 self::$_registry->add(get_called_class()); 48 } 49 } 50
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |