1
|
|
|
<?php |
2
|
|
|
/** |
3
|
|
|
* Copyright (c) 2013-2014 eBay Enterprise, Inc. |
4
|
|
|
* |
5
|
|
|
* NOTICE OF LICENSE |
6
|
|
|
* |
7
|
|
|
* This source file is subject to the Open Software License (OSL 3.0) |
8
|
|
|
* that is bundled with this package in the file LICENSE.md. |
9
|
|
|
* It is also available through the world-wide-web at this URL: |
10
|
|
|
* http://opensource.org/licenses/osl-3.0.php |
11
|
|
|
* |
12
|
|
|
* @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
13
|
|
|
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
14
|
|
|
*/ |
15
|
|
|
|
16
|
|
|
namespace eBayEnterprise\RetailOrderManagement\Payload\Payment; |
17
|
|
|
|
18
|
|
|
trait TPaymentInfo |
19
|
|
|
{ |
20
|
|
|
/** @var string * */ |
21
|
|
|
protected $paymentStatus; |
22
|
|
|
/** @var string * */ |
23
|
|
|
protected $pendingReason; |
24
|
|
|
/** @var string * */ |
25
|
|
|
protected $reasonCode; |
26
|
|
|
|
27
|
|
|
/** |
28
|
|
|
* This value is passed through from the Order Management System. It is returned from a PayPal Get. |
29
|
|
|
* (However, this field is in the XSD for more than just Get.) |
30
|
|
|
* |
31
|
|
|
* @return string |
32
|
|
|
*/ |
33
|
|
|
public function getPaymentStatus() |
34
|
|
|
{ |
35
|
|
|
return $this->paymentStatus; |
36
|
|
|
} |
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* @param string |
40
|
|
|
* @return self |
41
|
|
|
*/ |
42
|
|
|
public function setPaymentStatus($status) |
43
|
|
|
{ |
44
|
|
|
$this->paymentStatus = $status; |
45
|
|
|
return $this; |
46
|
|
|
} |
47
|
|
|
|
48
|
|
|
/** |
49
|
|
|
* This value is passed through from the Order Management System. It is returned from a PayPal Get. |
50
|
|
|
* (However, this field is in the XSD for more than just Get.) |
51
|
|
|
* |
52
|
|
|
* @return string |
53
|
|
|
*/ |
54
|
|
|
public function getPendingReason() |
55
|
|
|
{ |
56
|
|
|
return $this->pendingReason; |
57
|
|
|
} |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* @param string |
61
|
|
|
* @return self |
62
|
|
|
*/ |
63
|
|
|
public function setPendingReason($reason) |
64
|
|
|
{ |
65
|
|
|
$this->pendingReason = $reason; |
66
|
|
|
return $this; |
67
|
|
|
} |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* This value is passed through from the Order Management System. It is returned from a PayPal Get. |
71
|
|
|
* (However, this field is in the XSD for more than just Get.) |
72
|
|
|
* |
73
|
|
|
* @return string |
74
|
|
|
*/ |
75
|
|
|
public function getReasonCode() |
76
|
|
|
{ |
77
|
|
|
return $this->reasonCode; |
78
|
|
|
} |
79
|
|
|
|
80
|
|
|
/** |
81
|
|
|
* @param string |
82
|
|
|
* @return self |
83
|
|
|
*/ |
84
|
|
|
public function setReasonCode($code) |
85
|
|
|
{ |
86
|
|
|
$this->reasonCode = $code; |
87
|
|
|
return $this; |
88
|
|
|
} |
89
|
|
|
} |
90
|
|
|
|