1
|
|
|
<?php declare(strict_types=1); |
2
|
|
|
|
3
|
|
|
namespace Ticketpark\SaferpayJson\Request\Container; |
4
|
|
|
|
5
|
|
|
use JMS\Serializer\Annotation\SerializedName; |
6
|
|
|
|
7
|
|
|
final class Payment |
8
|
|
|
{ |
9
|
|
|
/** |
10
|
|
|
* @var Amount |
11
|
|
|
* @SerializedName("Amount") |
12
|
|
|
*/ |
13
|
|
|
private $amount; |
14
|
|
|
|
15
|
|
|
/** |
16
|
|
|
* @var string|null |
17
|
|
|
* @SerializedName("OrderId") |
18
|
|
|
*/ |
19
|
|
|
private $orderId; |
20
|
|
|
|
21
|
|
|
/** |
22
|
|
|
* @var string|null |
23
|
|
|
* @SerializedName("PayerNote") |
24
|
|
|
*/ |
25
|
|
|
private $payerNote; |
26
|
|
|
|
27
|
|
|
/** |
28
|
|
|
* @var string|null |
29
|
|
|
* @SerializedName("Description") |
30
|
|
|
*/ |
31
|
|
|
private $description; |
32
|
|
|
|
33
|
|
|
/** |
34
|
|
|
* @var string|null |
35
|
|
|
* @SerializedName("MandateId") |
36
|
|
|
*/ |
37
|
|
|
private $mandateId; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @var Options|null |
41
|
|
|
* @SerializedName("Options") |
42
|
|
|
*/ |
43
|
|
|
private $options; |
44
|
|
|
|
45
|
|
|
/** |
46
|
|
|
* @var Recurring|null |
47
|
|
|
* @SerializedName("Recurring") |
48
|
|
|
*/ |
49
|
|
|
private $recurring; |
50
|
|
|
|
51
|
|
|
/** |
52
|
|
|
* @var Installment|null |
53
|
|
|
* @SerializedName("Installment") |
54
|
|
|
*/ |
55
|
|
|
private $installment; |
56
|
|
|
|
57
|
|
|
public function __construct(Amount $amount) |
58
|
|
|
{ |
59
|
|
|
$this->amount = $amount; |
60
|
|
|
} |
61
|
|
|
|
62
|
|
|
public function getAmount(): Amount |
63
|
|
|
{ |
64
|
|
|
return $this->amount; |
65
|
|
|
} |
66
|
|
|
|
67
|
|
|
public function setAmount(Amount $amount): self |
68
|
|
|
{ |
69
|
|
|
$this->amount = $amount; |
70
|
|
|
|
71
|
|
|
return $this; |
72
|
|
|
} |
73
|
|
|
|
74
|
|
|
public function getOrderId(): ?string |
75
|
|
|
{ |
76
|
|
|
return $this->orderId; |
77
|
|
|
} |
78
|
|
|
|
79
|
|
|
public function setOrderId(string $orderId): self |
80
|
|
|
{ |
81
|
|
|
$this->orderId = $orderId; |
82
|
|
|
|
83
|
|
|
return $this; |
84
|
|
|
} |
85
|
|
|
|
86
|
|
|
public function getPayerNote(): ?string |
87
|
|
|
{ |
88
|
|
|
return $this->payerNote; |
89
|
|
|
} |
90
|
|
|
|
91
|
|
|
public function setPayerNote(string $payerNote): self |
92
|
|
|
{ |
93
|
|
|
$this->payerNote = $payerNote; |
94
|
|
|
|
95
|
|
|
return $this; |
96
|
|
|
} |
97
|
|
|
|
98
|
|
|
public function getDescription(): ?string |
99
|
|
|
{ |
100
|
|
|
return $this->description; |
101
|
|
|
} |
102
|
|
|
|
103
|
|
|
public function setDescription(?string $description): self |
104
|
|
|
{ |
105
|
|
|
$this->description = $description; |
106
|
|
|
|
107
|
|
|
return $this; |
108
|
|
|
} |
109
|
|
|
|
110
|
|
|
public function getMandateId(): ?string |
111
|
|
|
{ |
112
|
|
|
return $this->mandateId; |
113
|
|
|
} |
114
|
|
|
|
115
|
|
|
public function setMandateId(string $mandateId): self |
116
|
|
|
{ |
117
|
|
|
$this->mandateId = $mandateId; |
118
|
|
|
|
119
|
|
|
return $this; |
120
|
|
|
} |
121
|
|
|
|
122
|
|
|
public function getOptions(): ?Options |
123
|
|
|
{ |
124
|
|
|
return $this->options; |
125
|
|
|
} |
126
|
|
|
|
127
|
|
|
public function setOptions(Options $options): self |
128
|
|
|
{ |
129
|
|
|
$this->options = $options; |
130
|
|
|
|
131
|
|
|
return $this; |
132
|
|
|
} |
133
|
|
|
|
134
|
|
|
public function getRecurring(): ?Recurring |
135
|
|
|
{ |
136
|
|
|
return $this->recurring; |
137
|
|
|
} |
138
|
|
|
|
139
|
|
|
public function setRecurring(Recurring $recurring): self |
140
|
|
|
{ |
141
|
|
|
$this->recurring = $recurring; |
142
|
|
|
|
143
|
|
|
return $this; |
144
|
|
|
} |
145
|
|
|
|
146
|
|
|
public function getInstallment(): ?Installment |
147
|
|
|
{ |
148
|
|
|
return $this->installment; |
149
|
|
|
} |
150
|
|
|
|
151
|
|
|
public function setInstallment(Installment $installment): self |
152
|
|
|
{ |
153
|
|
|
$this->installment = $installment; |
154
|
|
|
|
155
|
|
|
return $this; |
156
|
|
|
} |
157
|
|
|
} |
158
|
|
|
|