Skip to content

Commit

Permalink
update dto address- change nip to vat
Browse files Browse the repository at this point in the history
  • Loading branch information
Marek Kedzior committed Jul 12, 2021
1 parent 01b9746 commit 16415c0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/Dtos/AddressDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class AddressDto implements DtoContract, InstantiateFromRequest
private ?string $addressName;
private ?string $addressPhone;
private ?string $addressAddress;
private ?string $addressNip;
private ?string $addressVat;
private ?string $addressZip;
private ?string $addressCity;
private ?string $addressCountry;
Expand All @@ -28,7 +28,7 @@ public function __construct(
$this->addressName = $addressName;
$this->addressPhone = $addressPhone;
$this->addressAddress = $addressAddress;
$this->addressNip = $addressVat; // Vat number - NIP
$this->addressVat = $addressVat; // Vat number - NIP
$this->addressZip = $addressZip;
$this->addressCity = $addressCity;
$this->addressCountry = $addressCountry;
Expand All @@ -40,7 +40,7 @@ public function toArray(): array
'name' => $this->getAddressName(),
'phone' => $this->getAddressPhone(),
'address' => $this->getAddressAddress(),
'nip' => $this->getAddressNip(),
'vat' => $this->getAddressVat(),
'zip' => $this->getAddressZip(),
'city' => $this->getAddressCity(),
'country' => $this->getAddressCountry(),
Expand Down Expand Up @@ -75,9 +75,9 @@ public function getAddressAddress(): ?string
return $this->addressAddress;
}

public function getAddressNip(): ?string
public function getAddressVat(): ?string
{
return $this->addressNip;
return $this->addressVat;
}

public function getAddressZip(): ?string
Expand Down

0 comments on commit 16415c0

Please sign in to comment.