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