Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?PHP
2
/**
3
 * Add a dispute
4
 *
5
 * $Id: AddDispute.php,v 1.2 2004/12/23 15:21:05 schst Exp $
6
 *
7
 * @package Services_Ebay
8
 * @author  Stephan Schmidt <schst@php.net>
9
 * @link    http://developer.ebay.com/DevZone/docs/API_Doc/Functions/AddDispute/AddDisputeLogic.htm
10
 */
11
class Services_Ebay_Call_AddDispute extends Services_Ebay_Call
12
{
13
   /**
14
    * verb of the API call
15
    *
16
    * @var  string
17
    */
18
    protected $verb = 'AddDispute';
19
 
20
   /**
21
    * compatibility level this method was introduced
22
    *
23
    * @var  integer
24
    */
25
    protected $since = 361;
26
 
27
   /**
28
    * parameter map that is used, when scalar parameters are passed
29
    *
30
    * @var  array
31
    */
32
    protected $paramMap = array(
33
                                 'ItemId',
34
                                 'TransactionId',
35
                                 'DisputeReason',
36
                                 'DisputeExplanation'
37
                                );
38
 
39
   /**
40
    * make the API call
41
    *
42
    * @param    object Services_Ebay_Session
43
    * @return   string
44
    */
45
    public function call(Services_Ebay_Session $session)
46
    {
47
        $return = parent::call($session);
48
        if ($return['CallStatus'] === 'Success') {
49
        	return $return['DisputeId'];
50
        }
51
        return false;
52
    }
53
}
54
?>