1 <?php
2
3 namespace PayPal\Api;
4
5 /**
6 * Class Transaction
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 */
13 class Transaction extends TransactionBase
14 {
15 /**
16 * Additional transactions for complex payment scenarios.
17 *
18 *
19 * @param self $transactions
20 *
21 * @return $this
22 */
23 public function setTransactions($transactions)
24 {
25 $this->transactions = $transactions;
26 return $this;
27 }
28
29 /**
30 * Additional transactions for complex payment scenarios.
31 *
32 * @return self[]
33 */
34 public function getTransactions()
35 {
36 return $this->transactions;
37 }
38
39 /**
40 * Identifier to the purchase unit corresponding to this sale transaction
41 *
42 * @param string $purchase_unit_reference_id
43 * @deprecated Use #setReferenceId instead
44 * @return $this
45 */
46 public function setPurchaseUnitReferenceId($purchase_unit_reference_id)
47 {
48 $this->purchase_unit_reference_id = $purchase_unit_reference_id;
49 return $this;
50 }
51
52 /**
53 * Identifier to the purchase unit corresponding to this sale transaction
54 *
55 * @deprecated Use #getReferenceId instead
56 * @return string
57 */
58 public function getPurchaseUnitReferenceId()
59 {
60 return $this->purchase_unit_reference_id;
61 }
62
63 }
64