-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBilling.php
More file actions
61 lines (56 loc) · 1.54 KB
/
Copy pathBilling.php
File metadata and controls
61 lines (56 loc) · 1.54 KB
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
<?php
declare(strict_types=1);
namespace Simpay\Model\Request;
class Billing implements RequestInterface
{
private string $name;
private string $surname;
private string $street;
private string $building;
private string $flat;
private string $city;
private string $region;
private string $postalCode;
private string $country;
private string $company;
public function __construct(
string $name,
string $surname,
string $street,
string $building,
string $flat,
string $city,
string $region,
string $postalCode,
string $country,
string $company
) {
$this->name = $name;
$this->surname = $surname;
$this->street = $street;
$this->building = $building;
$this->flat = $flat;
$this->city = $city;
$this->region = $region;
$this->postalCode = $postalCode;
$this->country = $country;
$this->company = $company;
}
public function toArray(): array
{
return [
'billing' => [
'name' => $this->name,
'surname' => $this->surname,
'street' => $this->street,
'building' => $this->building,
'flat' => $this->flat,
'city' => $this->city,
'region' => $this->region,
'postalCode' => $this->postalCode,
'country' => $this->country,
'company' => $this->company,
],
];
}
}