1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace zaporylie\Vipps\Model\Payment; |
4
|
|
|
|
5
|
|
|
use JMS\Serializer\Annotation as Serializer; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* Class RequestInitiatePayment |
9
|
|
|
* |
10
|
|
|
* @package Vipps\Model\Payment |
11
|
|
|
*/ |
12
|
|
|
class RequestInitiatePayment |
13
|
|
|
{ |
14
|
|
|
|
15
|
|
|
/** |
16
|
|
|
* @var \zaporylie\Vipps\Model\Payment\MerchantInfo |
17
|
|
|
* @Serializer\Type("zaporylie\Vipps\Model\Payment\MerchantInfo") |
18
|
|
|
*/ |
19
|
|
|
protected $merchantInfo; |
20
|
|
|
|
21
|
|
|
/** |
22
|
|
|
* @var \zaporylie\Vipps\Model\Payment\CustomerInfo |
23
|
|
|
* @Serializer\Type("zaporylie\Vipps\Model\Payment\CustomerInfo") |
24
|
|
|
*/ |
25
|
|
|
protected $customerInfo; |
26
|
|
|
|
27
|
|
|
/** |
28
|
|
|
* @var \zaporylie\Vipps\Model\Payment\Transaction |
29
|
|
|
* @Serializer\Type("zaporylie\Vipps\Model\Payment\Transaction") |
30
|
|
|
*/ |
31
|
|
|
protected $transaction; |
32
|
|
|
|
33
|
|
|
/** |
34
|
|
|
* Gets merchantInfo value. |
35
|
|
|
* |
36
|
|
|
* @return \zaporylie\Vipps\Model\Payment\MerchantInfo |
37
|
|
|
*/ |
38
|
|
|
public function getMerchantInfo() |
39
|
|
|
{ |
40
|
|
|
return $this->merchantInfo; |
41
|
|
|
} |
42
|
|
|
|
43
|
|
|
/** |
44
|
|
|
* Sets merchantInfo variable. |
45
|
|
|
* |
46
|
|
|
* @param \zaporylie\Vipps\Model\Payment\MerchantInfo $merchantInfo |
47
|
|
|
* |
48
|
|
|
* @return $this |
49
|
|
|
*/ |
50
|
|
|
public function setMerchantInfo(MerchantInfo $merchantInfo) |
51
|
|
|
{ |
52
|
|
|
$this->merchantInfo = $merchantInfo; |
53
|
|
|
return $this; |
54
|
|
|
} |
55
|
|
|
|
56
|
|
|
/** |
57
|
|
|
* Gets customerInfo value. |
58
|
|
|
* |
59
|
|
|
* @return \zaporylie\Vipps\Model\Payment\CustomerInfo |
60
|
|
|
*/ |
61
|
|
|
public function getCustomerInfo() |
62
|
|
|
{ |
63
|
|
|
return $this->customerInfo; |
64
|
|
|
} |
65
|
|
|
|
66
|
|
|
/** |
67
|
|
|
* Sets customerInfo variable. |
68
|
|
|
* |
69
|
|
|
* @param \zaporylie\Vipps\Model\Payment\CustomerInfo $customerInfo |
70
|
|
|
* |
71
|
|
|
* @return $this |
72
|
|
|
*/ |
73
|
|
|
public function setCustomerInfo(CustomerInfo $customerInfo) |
74
|
|
|
{ |
75
|
|
|
$this->customerInfo = $customerInfo; |
76
|
|
|
return $this; |
77
|
|
|
} |
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* Gets transaction value. |
81
|
|
|
* |
82
|
|
|
* @return \zaporylie\Vipps\Model\Payment\Transaction |
83
|
|
|
*/ |
84
|
|
|
public function getTransaction() |
85
|
|
|
{ |
86
|
|
|
return $this->transaction; |
87
|
|
|
} |
88
|
|
|
|
89
|
|
|
/** |
90
|
|
|
* Sets transaction variable. |
91
|
|
|
* |
92
|
|
|
* @param \zaporylie\Vipps\Model\Payment\Transaction $transaction |
93
|
|
|
* |
94
|
|
|
* @return $this |
95
|
|
|
*/ |
96
|
|
|
public function setTransaction(Transaction $transaction) |
97
|
|
|
{ |
98
|
|
|
$this->transaction = $transaction; |
99
|
|
|
return $this; |
100
|
|
|
} |
101
|
|
|
} |
102
|
|
|
|