PPPStripeDispute

Class Dispute.

Defined (1)

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

/includes/api/stripe-php/lib/Dispute.php  
  1. class Dispute extends ApiResource 
  2. /** 
  3. * @param string $id The ID of the dispute to retrieve. 
  4. * @param array|string|null $options 
  5. * @return Dispute 
  6. */ 
  7. public static function retrieve($id, $options = null) 
  8. return self::_retrieve($id, $options); 
  9.  
  10. /** 
  11. * @param array|null $params 
  12. * @param array|string|null $options 
  13. * @return array An array of Disputes. 
  14. */ 
  15. public static function all($params = null, $options = null) 
  16. return self::_all($params, $options); 
  17.  
  18. /** 
  19. * @param string $id The ID of the dispute to update. 
  20. * @param array|null $params 
  21. * @param array|string|null $options 
  22. * @return Dispute The updated dispute. 
  23. */ 
  24. public static function update($id, $params = null, $options = null) 
  25. return self::_update($id, $params, $options); 
  26.  
  27. /** 
  28. * @param array|string|null $options 
  29. * @return Dispute The saved charge. 
  30. */ 
  31. public function save($options = null) 
  32. return $this->_save($options); 
  33.  
  34. /** 
  35. * @param array|string|null $options 
  36. * @return Dispute The closed dispute. 
  37. */ 
  38. public function close($options = null) 
  39. $url = $this->instanceUrl() . '/close'; 
  40. list($response, $opts) = $this->_request('post', $url, null, $options); 
  41. $this->refreshFrom($response, $opts); 
  42. return $this;