PPPStripeApplicationFeeRefund

Class ApplicationFeeRefund.

Defined (1)

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

/includes/api/stripe-php/lib/ApplicationFeeRefund.php  
  1. class ApplicationFeeRefund extends ApiResource 
  2. /** 
  3. * @return string The API URL for this Stripe refund. 
  4. */ 
  5. public function instanceUrl() 
  6. $id = $this['id']; 
  7. $fee = $this['fee']; 
  8. if (!$id) { 
  9. throw new Error\InvalidRequest( 
  10. "Could not determine which URL to request: " . 
  11. "class instance has invalid ID: $id",  
  12. null 
  13. ); 
  14. $id = Util\Util::utf8($id); 
  15. $fee = Util\Util::utf8($fee); 
  16.  
  17. $base = ApplicationFee::classUrl(); 
  18. $feeExtn = urlencode($fee); 
  19. $extn = urlencode($id); 
  20. return "$base/$feeExtn/refunds/$extn"; 
  21.  
  22. /** 
  23. * @param array|string|null $opts 
  24. * @return ApplicationFeeRefund The saved refund. 
  25. */ 
  26. public function save($opts = null) 
  27. return $this->_save($opts);