PPPStripeTransferReversal

Class TransferReversal.

Defined (1)

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

/includes/api/stripe-php/lib/TransferReversal.php  
  1. class TransferReversal extends ApiResource 
  2. /** 
  3. * @return string The API URL for this Stripe transfer reversal. 
  4. */ 
  5. public function instanceUrl() 
  6. $id = $this['id']; 
  7. $transfer = $this['transfer']; 
  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. $transfer = Util\Util::utf8($transfer); 
  16.  
  17. $base = Transfer::classUrl(); 
  18. $transferExtn = urlencode($transfer); 
  19. $extn = urlencode($id); 
  20. return "$base/$transferExtn/reversals/$extn"; 
  21.  
  22. /** 
  23. * @param array|string|null $opts 
  24. * @return TransferReversal The saved reversal. 
  25. */ 
  26. public function save($opts = null) 
  27. return $this->_save($opts);