1
|
|
|
<?php declare(strict_types=1); |
2
|
|
|
|
3
|
|
|
namespace Ticketpark\SaferpayJson\Request\Container; |
4
|
|
|
|
5
|
|
|
use JMS\Serializer\Annotation\SerializedName; |
6
|
|
|
use JMS\Serializer\Annotation\Type; |
7
|
|
|
use Ticketpark\SaferpayJson\Request\Container\BankAccount; |
8
|
|
|
use Ticketpark\SaferpayJson\Request\Container\Brand; |
9
|
|
|
use Ticketpark\SaferpayJson\Request\Container\Card; |
10
|
|
|
|
11
|
|
|
final class PaymentMeans |
12
|
|
|
{ |
13
|
|
|
/** |
14
|
|
|
* @var Brand|null |
15
|
|
|
* @SerializedName("Brand") |
16
|
|
|
* @Type("Ticketpark\SaferpayJson\Request\Container\Brand") |
17
|
|
|
*/ |
18
|
|
|
private $brand; |
19
|
|
|
|
20
|
|
|
/** |
21
|
|
|
* @var string|null |
22
|
|
|
* @SerializedName("DisplayText") |
23
|
|
|
*/ |
24
|
|
|
private $displayText; |
25
|
|
|
|
26
|
|
|
/** |
27
|
|
|
* @var string|null |
28
|
|
|
* @SerializedName("Wallet") |
29
|
|
|
*/ |
30
|
|
|
private $wallet; |
31
|
|
|
|
32
|
|
|
/** |
33
|
|
|
* @var Card|null |
34
|
|
|
* @SerializedName("Card") |
35
|
|
|
* @Type("Ticketpark\SaferpayJson\Request\Container\Card") |
36
|
|
|
*/ |
37
|
|
|
private $card; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @var BankAccount|null |
41
|
|
|
* @SerializedName("BankAccount") |
42
|
|
|
* @Type("Ticketpark\SaferpayJson\Request\Container\BankAccount") |
43
|
|
|
*/ |
44
|
|
|
private $bankAccount; |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* @var Twint|null |
48
|
|
|
* @SerializedName("Twint") |
49
|
|
|
* @Type("Ticketpark\SaferpayJson\Request\Container\Twint") |
50
|
|
|
*/ |
51
|
|
|
private $twint; |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* @var SaferpayFields|null |
55
|
|
|
* @SerializedName("SaferpayFields") |
56
|
|
|
* @Type("Ticketpark\SaferpayJson\Request\Container\SaferpayFields") |
57
|
|
|
*/ |
58
|
|
|
private $saferpayFields; |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* @var Alias|null |
62
|
|
|
* @SerializedName("Alias") |
63
|
|
|
* @Type("Ticketpark\SaferpayJson\Request\Container\Alias") |
64
|
|
|
*/ |
65
|
|
|
private $alias; |
66
|
|
|
|
67
|
|
|
public function getBrand(): ?Brand |
68
|
|
|
{ |
69
|
|
|
return $this->brand; |
70
|
|
|
} |
71
|
|
|
|
72
|
|
|
public function setBrand(?Brand $brand): self |
73
|
|
|
{ |
74
|
|
|
$this->brand = $brand; |
75
|
|
|
|
76
|
|
|
return $this; |
77
|
|
|
} |
78
|
|
|
|
79
|
|
|
public function getDisplayText(): ?string |
80
|
|
|
{ |
81
|
|
|
return $this->displayText; |
82
|
|
|
} |
83
|
|
|
|
84
|
|
|
public function setDisplayText(?string $displayText): self |
85
|
|
|
{ |
86
|
|
|
$this->displayText = $displayText; |
87
|
|
|
|
88
|
|
|
return $this; |
89
|
|
|
} |
90
|
|
|
|
91
|
|
|
public function getWallet(): ?string |
92
|
|
|
{ |
93
|
|
|
return $this->wallet; |
94
|
|
|
} |
95
|
|
|
|
96
|
|
|
public function setWallet(?string $wallet): self |
97
|
|
|
{ |
98
|
|
|
$this->wallet = $wallet; |
99
|
|
|
|
100
|
|
|
return $this; |
101
|
|
|
} |
102
|
|
|
|
103
|
|
|
public function getCard(): ?Card |
104
|
|
|
{ |
105
|
|
|
return $this->card; |
106
|
|
|
} |
107
|
|
|
|
108
|
|
|
public function setCard(?Card $card): self |
109
|
|
|
{ |
110
|
|
|
$this->card = $card; |
111
|
|
|
|
112
|
|
|
return $this; |
113
|
|
|
} |
114
|
|
|
|
115
|
|
|
public function getBankAccount(): ?BankAccount |
116
|
|
|
{ |
117
|
|
|
return $this->bankAccount; |
118
|
|
|
} |
119
|
|
|
|
120
|
|
|
public function setBankAccount(?BankAccount $bankAccount): self |
121
|
|
|
{ |
122
|
|
|
$this->bankAccount = $bankAccount; |
123
|
|
|
|
124
|
|
|
return $this; |
125
|
|
|
} |
126
|
|
|
|
127
|
|
|
public function getTwint(): ?Twint |
128
|
|
|
{ |
129
|
|
|
return $this->twint; |
130
|
|
|
} |
131
|
|
|
|
132
|
|
|
public function setTwint(?Twint $twint): self |
133
|
|
|
{ |
134
|
|
|
$this->twint = $twint; |
135
|
|
|
|
136
|
|
|
return $this; |
137
|
|
|
} |
138
|
|
|
|
139
|
|
|
public function getSaferpayFields(): ?SaferpayFields |
140
|
|
|
{ |
141
|
|
|
return $this->saferpayFields; |
142
|
|
|
} |
143
|
|
|
|
144
|
|
|
public function setSaferpayFields(?SaferpayFields $saferpayFields): self |
145
|
|
|
{ |
146
|
|
|
$this->saferpayFields = $saferpayFields; |
147
|
|
|
|
148
|
|
|
return $this; |
149
|
|
|
} |
150
|
|
|
|
151
|
|
|
public function getAlias(): ?Alias |
152
|
|
|
{ |
153
|
|
|
return $this->alias; |
154
|
|
|
} |
155
|
|
|
|
156
|
|
|
public function setAlias(?Alias $alias): self |
157
|
|
|
{ |
158
|
|
|
$this->alias = $alias; |
159
|
|
|
|
160
|
|
|
return $this; |
161
|
|
|
} |
162
|
|
|
} |
163
|
|
|
|