1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* |
4
|
|
|
* This file has been created by developers from BitBag. |
5
|
|
|
* Feel free to contact us once you face any issues or want to start |
6
|
|
|
* another great project. |
7
|
|
|
* You can find more information about us on https://bitbag.shop and write us |
8
|
|
|
* an email on [email protected]. |
9
|
|
|
*/ |
10
|
|
|
|
11
|
|
|
declare(strict_types=1); |
12
|
|
|
|
13
|
|
|
namespace BitBag\SyliusMolliePlugin\Entity; |
14
|
|
|
|
15
|
|
|
use BitBag\SyliusMolliePlugin\Payments\Methods\AbstractMethod; |
16
|
|
|
use Sylius\Component\Resource\Model\ResourceInterface; |
17
|
|
|
|
18
|
|
|
class MollieGatewayConfig extends AbstractMethod implements ResourceInterface, MollieGatewayConfigInterface |
19
|
|
|
{ |
20
|
|
|
/** @var int */ |
21
|
|
|
private $id; |
22
|
|
|
|
23
|
|
|
/** @var string */ |
24
|
|
|
private $methodId; |
25
|
|
|
|
26
|
|
|
/** @var GatewayConfigInterface */ |
27
|
|
|
private $gateway; |
28
|
|
|
|
29
|
|
|
/** @var PaymentSurchargeFeeInterface */ |
30
|
|
|
private $paymentSurchargeFee; |
31
|
|
|
|
32
|
|
|
/** @var MollieMethodImageInterface */ |
33
|
|
|
private $customizeMethodImage; |
34
|
|
|
|
35
|
|
|
/** @var array */ |
36
|
|
|
private $countryLevelAllowed; |
37
|
|
|
|
38
|
|
|
/** @var array */ |
39
|
|
|
private $countryLevelExcluded; |
40
|
|
|
|
41
|
|
|
/** @var int */ |
42
|
|
|
private $orderExpiration = 28; |
43
|
|
|
|
44
|
|
|
/** @var string */ |
45
|
|
|
private $paymentDescription; |
46
|
|
|
|
47
|
|
|
/** @var string|null */ |
48
|
|
|
private $countryRestriction; |
49
|
|
|
|
50
|
|
|
public function getId(): int |
51
|
|
|
{ |
52
|
|
|
return $this->id; |
53
|
|
|
} |
54
|
|
|
|
55
|
|
|
public function getMethodId(): ?string |
56
|
|
|
{ |
57
|
|
|
return $this->methodId; |
58
|
|
|
} |
59
|
|
|
|
60
|
|
|
public function setMethodId(?string $methodId): void |
61
|
|
|
{ |
62
|
|
|
$this->methodId = $methodId; |
63
|
|
|
} |
64
|
|
|
|
65
|
|
|
public function getGateway(): GatewayConfigInterface |
66
|
|
|
{ |
67
|
|
|
return $this->gateway; |
68
|
|
|
} |
69
|
|
|
|
70
|
|
|
public function setGateway(GatewayConfigInterface $gateway): void |
71
|
|
|
{ |
72
|
|
|
$this->gateway = $gateway; |
73
|
|
|
} |
74
|
|
|
|
75
|
|
|
public function getPaymentSurchargeFee(): ?PaymentSurchargeFeeInterface |
76
|
|
|
{ |
77
|
|
|
return $this->paymentSurchargeFee; |
78
|
|
|
} |
79
|
|
|
|
80
|
|
|
public function setPaymentSurchargeFee(?PaymentSurchargeFeeInterface $paymentSurchargeFee): void |
81
|
|
|
{ |
82
|
|
|
$this->paymentSurchargeFee = $paymentSurchargeFee; |
83
|
|
|
} |
84
|
|
|
|
85
|
|
|
public function getCustomizeMethodImage(): ?MollieMethodImageInterface |
86
|
|
|
{ |
87
|
|
|
return $this->customizeMethodImage; |
88
|
|
|
} |
89
|
|
|
|
90
|
|
|
public function setCustomizeMethodImage(?MollieMethodImageInterface $customizeMethodImage): void |
91
|
|
|
{ |
92
|
|
|
$this->customizeMethodImage = $customizeMethodImage; |
93
|
|
|
} |
94
|
|
|
|
95
|
|
|
public function getCountryLevelAllowed(): ?array |
96
|
|
|
{ |
97
|
|
|
return $this->countryLevelAllowed; |
98
|
|
|
} |
99
|
|
|
|
100
|
|
|
public function setCountryLevelAllowed(?array $countryLevelAllowed): void |
101
|
|
|
{ |
102
|
|
|
$this->countryLevelAllowed = $countryLevelAllowed; |
103
|
|
|
} |
104
|
|
|
|
105
|
|
|
public function getCountryLevelExcluded(): ?array |
106
|
|
|
{ |
107
|
|
|
return $this->countryLevelExcluded; |
108
|
|
|
} |
109
|
|
|
|
110
|
|
|
public function setCountryLevelExcluded(?array $countryLevelExcluded): void |
111
|
|
|
{ |
112
|
|
|
$this->countryLevelExcluded = $countryLevelExcluded; |
113
|
|
|
} |
114
|
|
|
|
115
|
|
|
public function getOrderExpiration(): ?int |
116
|
|
|
{ |
117
|
|
|
return $this->orderExpiration; |
118
|
|
|
} |
119
|
|
|
|
120
|
|
|
public function setOrderExpiration(?int $orderExpiration): void |
121
|
|
|
{ |
122
|
|
|
$this->orderExpiration = $orderExpiration; |
123
|
|
|
} |
124
|
|
|
|
125
|
|
|
public function getPaymentDescription(): ?string |
126
|
|
|
{ |
127
|
|
|
return $this->paymentDescription; |
128
|
|
|
} |
129
|
|
|
|
130
|
|
|
public function setPaymentDescription(?string $paymentDescription): void |
131
|
|
|
{ |
132
|
|
|
$this->paymentDescription = $paymentDescription; |
133
|
|
|
} |
134
|
|
|
|
135
|
|
|
public function getCountryRestriction(): ?string |
136
|
|
|
{ |
137
|
|
|
return $this->countryRestriction; |
138
|
|
|
} |
139
|
|
|
|
140
|
|
|
public function setCountryRestriction(?string $countryRestriction): void |
141
|
|
|
{ |
142
|
|
|
$this->countryRestriction = $countryRestriction; |
143
|
|
|
} |
144
|
|
|
} |
145
|
|
|
|