PPPStripeApplicationFee

Class ApplicationFee.

Defined (1)

The class is defined in the following location(s).

/includes/api/stripe-php/lib/ApplicationFee.php  
  1. class ApplicationFee extends ApiResource 
  2. /** 
  3. * This is a special case because the application fee endpoint has an 
  4. * underscore in it. The parent `className` function strips underscores. 
  5. * @return string The name of the class. 
  6. */ 
  7. public static function className() 
  8. return 'application_fee'; 
  9.  
  10. /** 
  11. * @param string $id The ID of the application fee to retrieve. 
  12. * @param array|string|null $opts 
  13. * @return ApplicationFee 
  14. */ 
  15. public static function retrieve($id, $opts = null) 
  16. return self::_retrieve($id, $opts); 
  17.  
  18. /** 
  19. * @param string $id The ID of the application fee to update. 
  20. * @param array|null $params 
  21. * @param array|string|null $options 
  22. * @return ApplicationFee The updated application fee. 
  23. */ 
  24. public static function update($id, $params = null, $options = null) 
  25. return self::_update($id, $params, $options); 
  26.  
  27. /** 
  28. * @param array|null $params 
  29. * @param array|string|null $opts 
  30. * @return Collection of ApplicationFees 
  31. */ 
  32. public static function all($params = null, $opts = null) 
  33. return self::_all($params, $opts); 
  34.  
  35. /** 
  36. * @param array|null $params 
  37. * @param array|string|null $opts 
  38. * @return ApplicationFee The refunded application fee. 
  39. */ 
  40. public function refund($params = null, $opts = null) 
  41. $this->refunds->create($params, $opts); 
  42. $this->refresh(); 
  43. return $this;