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
|
|
|
|
8
|
|
|
final class Payer |
9
|
|
|
{ |
10
|
|
|
/** |
11
|
|
|
* @var string|null |
12
|
|
|
* @SerializedName("Id") |
13
|
|
|
*/ |
14
|
|
|
private $id; |
15
|
|
|
|
16
|
|
|
/** |
17
|
|
|
* @var string|null |
18
|
|
|
* @SerializedName("IpAddress") |
19
|
|
|
*/ |
20
|
|
|
private $ipAddress; |
21
|
|
|
/** |
22
|
|
|
* @var string|null |
23
|
|
|
* @SerializedName("LanguageCode") |
24
|
|
|
*/ |
25
|
|
|
private $languageCode; |
26
|
|
|
|
27
|
|
|
/** |
28
|
|
|
* @var Address|null |
29
|
|
|
* @SerializedName("DeliveryAddress") |
30
|
|
|
* @Type("Ticketpark\SaferpayJson\Request\Container\Address") |
31
|
|
|
*/ |
32
|
|
|
private $deliveryAddress; |
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* @var Address|null |
36
|
|
|
* @SerializedName("BillingAddress") |
37
|
|
|
* @Type("Ticketpark\SaferpayJson\Request\Container\Address") |
38
|
|
|
*/ |
39
|
|
|
private $billingAddress; |
40
|
|
|
|
41
|
|
|
public function getId(): ?string |
42
|
|
|
{ |
43
|
|
|
return $this->id; |
44
|
|
|
} |
45
|
|
|
|
46
|
|
|
public function setId(?string $id): self |
47
|
|
|
{ |
48
|
|
|
$this->id = $id; |
49
|
|
|
|
50
|
|
|
return $this; |
51
|
|
|
} |
52
|
|
|
|
53
|
|
|
public function getIpAddress(): ?string |
54
|
|
|
{ |
55
|
|
|
return $this->ipAddress; |
56
|
|
|
} |
57
|
|
|
|
58
|
|
|
public function setIpAddress(?string $ipAddress): self |
59
|
|
|
{ |
60
|
|
|
$this->ipAddress = $ipAddress; |
61
|
|
|
|
62
|
|
|
return $this; |
63
|
|
|
} |
64
|
|
|
|
65
|
|
|
public function getLanguageCode(): ?string |
66
|
|
|
{ |
67
|
|
|
return $this->languageCode; |
68
|
|
|
} |
69
|
|
|
|
70
|
|
|
public function setLanguageCode(?string $languageCode): self |
71
|
|
|
{ |
72
|
|
|
$this->languageCode = $languageCode; |
73
|
|
|
|
74
|
|
|
return $this; |
75
|
|
|
} |
76
|
|
|
|
77
|
|
|
public function getDeliveryAddress(): ?Address |
78
|
|
|
{ |
79
|
|
|
return $this->deliveryAddress; |
80
|
|
|
} |
81
|
|
|
|
82
|
|
|
public function setDeliveryAddress(?Address $deliveryAddress): self |
83
|
|
|
{ |
84
|
|
|
$this->deliveryAddress = $deliveryAddress; |
85
|
|
|
|
86
|
|
|
return $this; |
87
|
|
|
} |
88
|
|
|
|
89
|
|
|
public function getBillingAddress(): ?Address |
90
|
|
|
{ |
91
|
|
|
return $this->billingAddress; |
92
|
|
|
} |
93
|
|
|
|
94
|
|
|
public function setBillingAddress(?Address $billingAddress): self |
95
|
|
|
{ |
96
|
|
|
$this->billingAddress = $billingAddress; |
97
|
|
|
|
98
|
|
|
return $this; |
99
|
|
|
} |
100
|
|
|
} |
101
|
|
|
|