diff --git a/src/DTO/Address.php b/src/DTO/Address.php index 3abfe3e..c6af7df 100644 --- a/src/DTO/Address.php +++ b/src/DTO/Address.php @@ -16,20 +16,22 @@ public function __construct( string $address3, string $city, string $postcode, - string $countrycode, - string $typecode, + string $countryCode, + string $typeCode, string $company = '-', string $phone = '-', - string $email = 'a@b.com' + string $email = 'a@b.com', + string $countyName = '' ) { $this->customer = [ 'postalAddress' => [ 'cityName' => $city, - 'countryCode' => strtoupper($countrycode), + 'countryCode' => strtoupper($countryCode), 'postalCode' => $postcode, 'addressLine1' => $address1, 'addressLine2' => $address2, 'addressLine3' => $address3, + 'countyName' => $countyName, ], 'contactInformation' => [ 'phone' => $phone, @@ -37,7 +39,7 @@ public function __construct( 'fullName' => $name, 'email' => $email, ], - 'typeCode' => $this->validateTypeCode($typecode) + 'typeCode' => $this->validateTypeCode($typeCode) ]; }