-
Notifications
You must be signed in to change notification settings - Fork 2
/
BanwireGatewayMethod.php
167 lines (142 loc) · 2.81 KB
/
BanwireGatewayMethod.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<?php
/*
* This file is part of the PaymentSuite package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* Feel free to edit as you please, and have fun.
*
* @author Marc Morera <[email protected]>
*/
namespace PaymentSuite\BanwireGatewayBundle;
use PaymentSuite\PaymentCoreBundle\PaymentMethodInterface;
class BanwireGatewayMethod implements PaymentMethodInterface
{
/**
* Get BanwireGateway method name
*
* @return string Payment name
*/
public function getPaymentName()
{
return 'BanwireGateway';
}
/**
* @var float
*
* BanwireGateway amount
*/
private $amount;
/**
* @var string
*
* BanwireGateway reference
*/
private $reference;
/**
* @var string
*/
private $banwireGatewayTransactionId;
/**
* @var string
*/
private $codeError;
/**
* @var string
*/
private $banwireId;
/**
* @param string codeError
*
* @return $this
*/
public function setCodeError($codeError)
{
$this->codeError= $codeError;
return $this;
}
/**
* @return string
*/
public function getCodeError()
{
return $this->codeError;
}
/**
* @param string $banwireGatewayTransactionId
*
* @return $this
*/
public function setBanwireGatewayTransactionId($banwireGatewayTransactionId)
{
$this->banwireGatewayTransactionId= $banwireGatewayTransactionId;
return $this;
}
/**
* @return string
*/
public function getBanwireGatewayTransactionId()
{
return $this->banwireGatewayTransactionId;
}
/**
* @param string $reference
*
* @return $this
*/
public function setReference($reference)
{
$this->reference = $reference;
return $this;
}
/**
* @return string
*/
public function getReference()
{
return $this->reference;
}
/**
* set amount
*
* @param float $amount Amount
*
* @return BanwireGatewayMethod self Object
*/
public function setAmount($amount)
{
$this->amount = $amount;
return $this;
}
/**
* Get amount
*
* @return float amount
*/
public function getAmount()
{
return $this->amount;
}
/**
* Set banwire gateway id
*
* @param string $banwireId
*
* @return $this
*/
public function setBanwireId($banwireId)
{
$this->banwireId = $banwireId;
return $this;
}
/**
* Get banwire gateway id
*
* @return string
*/
public function getBanwireId()
{
return $this->banwireId;
}
}