Skip to content

Commit

Permalink
add County
Browse files Browse the repository at this point in the history
  • Loading branch information
booni3 committed Dec 17, 2021
1 parent 63a1536 commit beb48ea
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/DTO/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,30 @@ 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,
'companyName' => $company,
'fullName' => $name,
'email' => $email,
],
'typeCode' => $this->validateTypeCode($typecode)
'typeCode' => $this->validateTypeCode($typeCode)
];
}

Expand Down

0 comments on commit beb48ea

Please sign in to comment.