Completed
Push — master ( a010d0...acbc61 )
by Florian
04:56
created

Payone_Api_Request_Genericpayment::getBirthday()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * For PayPal ECS the request type genericpayment ist mandatory 
4
 * 
5
 * NOTICE OF LICENSE
6
 *
7
 * This source file is subject to the GNU General Public License (GPL 3)
8
 * that is bundled with this package in the file LICENSE.txt
9
 *
10
 * DISCLAIMER
11
 *
12
 * Do not edit or add to this file if you wish to upgrade Payone to newer
13
 * versions in the future. If you wish to customize Payone for your
14
 * needs please refer to http://www.payone.de for more information.
15
16
 * @category        Payone
17
 * @package         Payone_Api
18
 * @subpackage      Request
19
 * @author          Ronny Schröder
20
 * @license         <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
 */
22
class Payone_Api_Request_Genericpayment extends Payone_Api_Request_Abstract {
23
    
24
    /**
25
     * Sub account ID
26
     *
27
     * @var int
28
     */
29
    protected $aid = NULL;
30
31
    /**
32
     * @var string
33
     */
34
    protected $clearingtype = NULL;
35
36
    /**
37
     * Total amount (in smallest currency unit! e.g. cent)
38
     *
39
     * @var int
40
     */
41
    protected $amount = NULL;
42
43
    /**
44
     * Currency (ISO-4217)
45
     *
46
     * @var string
47
     */
48
    protected $currency = NULL;
49
50
    /**
51
     * dynamic text for debit and creditcard payments
52
     *
53
     * @var string
54
     */
55
    protected $narrative_text = NULL;
56
57
    /**
58
     * @var Payone_Api_Request_Parameter_Authorization_DeliveryData
59
     */
60
    protected $deliveryData = null;
61
    
62
    /**
63
     * @var string
64
     */
65
    protected $financingtype = NULL;
66
67
    /**
68
     * With the first genericpayment the workorderid will be generated from the 
69
     * PAYONE platform and will be sent to you in the response. The ID is unique. 
70
     * The returned workorderid is mandatory for the following requests of 
71
     * PayPal Express Checkout.
72
     * 
73
     * @var string
74
     */
75
    protected $workorderid = NULL;
76
77
    /**
78
     * Wallet provider PPE: PayPal Express
79
     * @var Payone_Api_Request_Parameter_Authorization_PaymentMethod_Wallet 
80
     */
81
    protected $wallet = null;
82
83
    /**
84
     * @var Payone_Api_Request_Parameter_Authorization_PaymentMethod_RatePay
85
     */
86
    protected $ratePay = null;
87
88
    /**
89
     * Mandatory for PayPal ECS:
90
     * 1. action=setexpresscheckout
91
     * 2. action=getexpresscheckoutdetails
92
     * 
93
     * @var Payone_Api_Request_Parameter_Paydata_Paydata 
94
     */
95
    protected $paydata = NULL;
96
    
97
    protected $company = null;
98
    protected $firstname = null;
99
    protected $lastname = null;
100
    protected $street = null;
101
    protected $zip = null;
102
    protected $city = null;
103
    protected $country = null;
104
105
    protected $api_version = null;
106
    protected $birthday = null;
107
    protected $email = null;
108
    protected $ip = null;
109
    protected $language = null;
110
    
111
    /**
112
     * @param array $data
113
     */
114
    public function __construct(array $data = array())
115
    {
116
        $this->request = Payone_Api_Enum_RequestType::GENERICPAYMENT;
117
        parent::__construct($data);
118
    }
119
    
120
121
    /**
122
     * @param int $aid
123
     */
124
    public function setAid($aid) {
125
        $this->aid = $aid;
126
    }
127
128
    /**
129
     * @return int
130
     */
131
    public function getAid() {
132
        return $this->aid;
133
    }
134
135
    /**
136
     * @param int $amount
137
     */
138
    public function setAmount($amount) {
139
        $this->amount = $amount;
140
    }
141
142
    /**
143
     * @return int
144
     */
145
    public function getAmount() {
146
        return $this->amount;
147
    }
148
149
    /**
150
     * @param string $clearingtype
151
     */
152
    public function setClearingtype($clearingtype) {
153
        $this->clearingtype = $clearingtype;
154
    }
155
156
    /**
157
     * @return string
158
     */
159
    public function getClearingtype() {
160
        return $this->clearingtype;
161
    }
162
    
163
    /**
164
     * @param string $financingtype
165
     */
166
    public function setFinancingType($financingtype) {
167
        $this->financingtype = $financingtype;
168
    }
169
170
    /**
171
     * @return string
172
     */
173
    public function getFinancingType() {
174
        return $this->financingtype;
175
    }
176
177
    /**
178
     * @param string $currency
179
     */
180
    public function setCurrency($currency) {
181
        $this->currency = $currency;
182
    }
183
184
    /**
185
     * @return string
186
     */
187
    public function getCurrency() {
188
        return $this->currency;
189
    }
190
191
    /**
192
     * @param string $narrative_text
193
     */
194
    public function setNarrativeText($narrative_text) {
195
        $this->narrative_text = $narrative_text;
196
    }
197
198
    /**
199
     * @return string
200
     */
201
    public function getNarrativeText() {
202
        return $this->narrative_text;
203
    }
204
205
    /**
206
     * @param Payone_Api_Request_Parameter_Authorization_DeliveryData $deliveryData
207
     */
208
    public function setDeliveryData(Payone_Api_Request_Parameter_Authorization_DeliveryData $deliveryData) {
209
        $this->deliveryData = $deliveryData;
210
    }
211
212
    /**
213
     * @return Payone_Api_Request_Parameter_Authorization_DeliveryData
214
     */
215
    public function getDeliveryData() {
216
        return $this->deliveryData;
217
    }
218
219
    /**
220
     * 
221
     * @return string
222
     */
223
    function getWorkorderId() {
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
224
        return $this->workorderid;
225
    }
226
227
    /**
228
     * 
229
     * @param string $workorderid
230
     */
231
    function setWorkorderId($workorderid) {
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
232
        $this->workorderid = $workorderid;
233
    }
234
235
    /**
236
     * @return Payone_Api_Request_Parameter_Authorization_PaymentMethod_RatePay
237
     */
238
    function getRatePay(){
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
239
       return $this->ratePay;
240
    }
241
242
    /**
243
     * @param Payone_Api_Request_Parameter_Authorization_PaymentMethod_RatePay $ratePay
244
     */
245
    function setRatePay(Payone_Api_Request_Parameter_Authorization_PaymentMethod_RatePay $ratePay){
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
246
        $this->ratePay = $ratePay;
247
    }
248
249
    /**
250
     * 
251
     * @return Payone_Api_Request_Parameter_Authorization_PaymentMethod_Wallet
252
     */
253
    function getWallet() {
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
254
        return $this->wallet;
255
    }
256
257
    /**
258
     * 
259
     * @param Payone_Api_Request_Parameter_Authorization_PaymentMethod_Wallet $wallet
260
     */
261
    function setWallet(Payone_Api_Request_Parameter_Authorization_PaymentMethod_Wallet $wallet) {
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
262
        $this->wallet = $wallet;
263
    }
264
265
    /**
266
     * @param Payone_Api_Request_Parameter_Paydata_Paydata $paydata
267
     */
268
    public function setPaydata($paydata) {
269
        $this->paydata = $paydata;
270
    }
271
272
    /**
273
     * 
274
     * @return Payone_Api_Request_Parameter_Paydata_Paydata
275
     */
276
    public function getPaydata() {
277
        return $this->paydata;
278
    }
279
    
280
    public function setCompany($company) {
281
        $this->company = $company;
282
    }
283
    
284
    public function getCompany() {
285
        return $this->company;
286
    }
287
    
288
    public function setFirstname($firstname) {
289
        $this->firstname = $firstname;
290
    }
291
    
292
    public function getFirstname() {
293
        return $this->firstname;
294
    }
295
    
296
    public function setLastname($lastname) {
297
        $this->lastname = $lastname;
298
    }
299
    
300
    public function getLastname() {
301
        return $this->lastname;
302
    }
303
    
304
    public function setStreet($street) {
305
        $this->street = $street;
306
    }
307
    
308
    public function getStreet() {
309
        return $this->street;
310
    }
311
    
312
    public function setZip($zip) {
313
        $this->zip = $zip;
314
    }
315
    
316
    public function getZip() {
317
        return $this->zip;
318
    }
319
    
320
    public function setCity($city) {
321
        $this->city = $city;
322
    }
323
    
324
    public function getCity() {
325
        return $this->city;
326
    }
327
    
328
    public function setCountry($country) {
329
        $this->country = $country;
330
    }
331
    
332
    public function getCountry() {
333
        return $this->country;
334
    }
335
    
336
    public function setApiVersion($api_version)
337
    {
338
        $this->api_version = $api_version;
339
    }
340
    
341
    public function getApiVersion()
342
    {
343
        return $this->api_version;
344
    }
345
    
346
    public function setBirthday($birthday)
347
    {
348
        $this->birthday = $birthday;
349
    }
350
    
351
    public function getBirthday()
352
    {
353
        return $this->birthday;
354
    }
355
    
356
    public function setEmail($email)
357
    {
358
        $this->email = $email;
359
    }
360
    
361
    public function getEmail()
362
    {
363
        return $this->email;
364
    }
365
    
366
    public function setIp($ip)
367
    {
368
        $this->ip = $ip;
369
    }
370
    
371
    public function getIp()
372
    {
373
        return $this->ip;
374
    }
375
    
376
    public function setLanguage($language)
377
    {
378
        $this->language = $language;
379
    }
380
    
381
    public function getLanguage()
382
    {
383
        return $this->language;
384
    }
385
386
}
387