1 <?php
2
3 namespace PayPal\Api;
4
5 use PayPal\Common\PayPalModel;
6
7 /**
8 * Class RelatedResources
9 *
10 * Each one representing a financial transaction (Sale, Authorization, Capture, Refund) related to the payment.
11 *
12 * @package PayPal\Api
13 *
14 * @property \PayPal\Api\Sale sale
15 * @property \PayPal\Api\Authorization authorization
16 * @property \PayPal\Api\Order order
17 * @property \PayPal\Api\Capture capture
18 * @property \PayPal\Api\Refund refund
19 */
20 class RelatedResources extends PayPalModel
21 {
22 /**
23 * Sale transaction
24 *
25 * @param \PayPal\Api\Sale $sale
26 *
27 * @return $this
28 */
29 public function setSale($sale)
30 {
31 $this->sale = $sale;
32 return $this;
33 }
34
35 /**
36 * Sale transaction
37 *
38 * @return \PayPal\Api\Sale
39 */
40 public function getSale()
41 {
42 return $this->sale;
43 }
44
45 /**
46 * Authorization transaction
47 *
48 * @param \PayPal\Api\Authorization $authorization
49 *
50 * @return $this
51 */
52 public function setAuthorization($authorization)
53 {
54 $this->authorization = $authorization;
55 return $this;
56 }
57
58 /**
59 * Authorization transaction
60 *
61 * @return \PayPal\Api\Authorization
62 */
63 public function getAuthorization()
64 {
65 return $this->authorization;
66 }
67
68 /**
69 * Order transaction
70 *
71 * @param \PayPal\Api\Order $order
72 *
73 * @return $this
74 */
75 public function setOrder($order)
76 {
77 $this->order = $order;
78 return $this;
79 }
80
81 /**
82 * Order transaction
83 *
84 * @return \PayPal\Api\Order
85 */
86 public function getOrder()
87 {
88 return $this->order;
89 }
90
91 /**
92 * Capture transaction
93 *
94 * @param \PayPal\Api\Capture $capture
95 *
96 * @return $this
97 */
98 public function setCapture($capture)
99 {
100 $this->capture = $capture;
101 return $this;
102 }
103
104 /**
105 * Capture transaction
106 *
107 * @return \PayPal\Api\Capture
108 */
109 public function getCapture()
110 {
111 return $this->capture;
112 }
113
114 /**
115 * Refund transaction
116 *
117 * @param \PayPal\Api\Refund $refund
118 *
119 * @return $this
120 */
121 public function setRefund($refund)
122 {
123 $this->refund = $refund;
124 return $this;
125 }
126
127 /**
128 * Refund transaction
129 *
130 * @return \PayPal\Api\Refund
131 */
132 public function getRefund()
133 {
134 return $this->refund;
135 }
136
137 }
138