d8420aa02545ad0874bacb024fc9aa07b50990a6
[WP-Plugins/glm-member-db-registrations.git] /
1 <?php
2 namespace PayPal\Api;
3
4 use PayPal\Common\PPModel;
5
6 class Transaction extends PPModel {
7         /**
8          * Amount being collected.
9          * @param PayPal\Api\Amount $amount
10          */
11         public function setAmount($amount) {
12                 $this->amount = $amount;
13                 return $this;
14         }
15
16         /**
17          * Amount being collected.
18          * @return PayPal\Api\Amount
19          */
20         public function getAmount() {
21                 return $this->amount;
22         }
23
24
25         /**
26          * Recepient of the funds in this transaction.
27          * @param PayPal\Api\Payee $payee
28          */
29         public function setPayee($payee) {
30                 $this->payee = $payee;
31                 return $this;
32         }
33
34         /**
35          * Recepient of the funds in this transaction.
36          * @return PayPal\Api\Payee
37          */
38         public function getPayee() {
39                 return $this->payee;
40         }
41
42
43         /**
44          * Description of what is being paid for.
45          * @param string $description
46          */
47         public function setDescription($description) {
48                 $this->description = $description;
49                 return $this;
50         }
51
52         /**
53          * Description of what is being paid for.
54          * @return string
55          */
56         public function getDescription() {
57                 return $this->description;
58         }
59
60
61         /**
62          * List of items being paid for.
63          * @param PayPal\Api\ItemList $item_list
64          */
65         public function setItemList($item_list) {
66                 $this->item_list = $item_list;
67                 return $this;
68         }
69
70         /**
71          * List of items being paid for.
72          * @return PayPal\Api\ItemList
73          */
74         public function getItemList() {
75                 return $this->item_list;
76         }
77
78         /**
79          * List of items being paid for.
80          * @param PayPal\Api\ItemList $item_list
81          * @deprecated. Instead use setItemList
82          */
83         public function setItem_list($item_list) {
84                 $this->item_list = $item_list;
85                 return $this;
86         }
87         /**
88          * List of items being paid for.
89          * @return PayPal\Api\ItemList
90          * @deprecated. Instead use getItemList
91          */
92         public function getItem_list() {
93                 return $this->item_list;
94         }
95
96         /**
97          * List of financial transactions (Sale, Authorization, Capture, Refund) related to the payment.
98          * @array
99          * @param PayPal\Api\RelatedResources $related_resources
100          */
101         public function setRelatedResources($related_resources) {
102                 $this->related_resources = $related_resources;
103                 return $this;
104         }
105
106         /**
107          * List of financial transactions (Sale, Authorization, Capture, Refund) related to the payment.
108          * @return PayPal\Api\RelatedResources
109          */
110         public function getRelatedResources() {
111                 return $this->related_resources;
112         }
113
114         /**
115          * List of financial transactions (Sale, Authorization, Capture, Refund) related to the payment.
116          * @array
117          * @param PayPal\Api\RelatedResources $related_resources
118          * @deprecated. Instead use setRelatedResources
119          */
120         public function setRelated_resources($related_resources) {
121                 $this->related_resources = $related_resources;
122                 return $this;
123         }
124         /**
125          * List of financial transactions (Sale, Authorization, Capture, Refund) related to the payment.
126          * @return PayPal\Api\RelatedResources
127          * @deprecated. Instead use getRelatedResources
128          */
129         public function getRelated_resources() {
130                 return $this->related_resources;
131         }
132
133         /**
134          * Additional transactions for complex payment (Parallel and Chained) scenarios.
135          * @array
136          * @param PayPal\Api\self $transactions
137          */
138         public function setTransactions($transactions) {
139                 $this->transactions = $transactions;
140                 return $this;
141         }
142
143         /**
144          * Additional transactions for complex payment (Parallel and Chained) scenarios.
145          * @return PayPal\Api\self
146          */
147         public function getTransactions() {
148                 return $this->transactions;
149         }
150
151
152 }