1 <?php
2
3 namespace PayPal\Api;
4
5 /**
6 * Class TransactionBase
7 *
8 * A transaction defines the contract of a payment - what is the payment for and who is fulfilling it.
9 *
10 * @package PayPal\Api
11 *
12 * @property \PayPal\Api\RelatedResources related_resources
13 */
14 class TransactionBase extends CartBase
15 {
16 /**
17 * List of financial transactions (Sale, Authorization, Capture, Refund) related to the payment.
18 *
19 *
20 * @param \PayPal\Api\RelatedResources[] $related_resources
21 *
22 * @return $this
23 */
24 public function setRelatedResources($related_resources)
25 {
26 $this->related_resources = $related_resources;
27 return $this;
28 }
29
30 /**
31 * List of financial transactions (Sale, Authorization, Capture, Refund) related to the payment.
32 *
33 * @return \PayPal\Api\RelatedResources[]
34 */
35 public function getRelatedResources()
36 {
37 return $this->related_resources;
38 }
39
40 }
41