[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 class Stripe_ApplicationFee extends Stripe_ApiResource 4 { 5 /** 6 * This is a special case because the application fee endpoint has an 7 * underscore in it. The parent `className` function strips underscores. 8 * 9 * @return string The name of the class. 10 */ 11 public static function className($class) 12 { 13 return 'application_fee'; 14 } 15 16 /** 17 * @param string $id The ID of the application fee to retrieve. 18 * @param string|null $apiKey 19 * 20 * @return Stripe_ApplicationFee 21 */ 22 public static function retrieve($id, $apiKey=null) 23 { 24 $class = get_class(); 25 return self::_scopedRetrieve($class, $id, $apiKey); 26 } 27 28 /** 29 * @param string|null $params 30 * @param string|null $apiKey 31 * 32 * @return array An array of application fees. 33 */ 34 public static function all($params=null, $apiKey=null) 35 { 36 $class = get_class(); 37 return self::_scopedAll($class, $params, $apiKey); 38 } 39 40 /** 41 * @param string|null $params 42 * 43 * @return Stripe_ApplicationFee The refunded application fee. 44 */ 45 public function refund($params=null) 46 { 47 $requestor = new Stripe_ApiRequestor($this->_apiKey); 48 $url = $this->instanceUrl() . '/refund'; 49 list($response, $apiKey) = $requestor->request('post', $url, $params); 50 $this->refreshFrom($response, $apiKey); 51 return $this; 52 } 53 }
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 |