From 402c59a1c5b8a15545f0590cc43a81d1d1986823 Mon Sep 17 00:00:00 2001 From: NilsDelaguardia <69813293+NilsDelaguardia@users.noreply.github.com> Date: Mon, 11 Sep 2023 17:27:10 -0400 Subject: [PATCH] Add email to MatchedAddress.php (#27) * Update: Add email to MatchedAddress.php * test: Add email to AddressMock.php --- src/Address/Address.php | 5 +++++ src/AddressVerification/MatchedAddress.php | 1 + tests/Mocks/Validation/AddressMock.php | 1 + 3 files changed, 7 insertions(+) diff --git a/src/Address/Address.php b/src/Address/Address.php index 45ae72e..dc8d2c5 100644 --- a/src/Address/Address.php +++ b/src/Address/Address.php @@ -28,6 +28,11 @@ class Address */ protected $phone; + /** + * @var string|null + */ + protected $email; + /** * @var string|null */ diff --git a/src/AddressVerification/MatchedAddress.php b/src/AddressVerification/MatchedAddress.php index b2b13a2..25b9b80 100644 --- a/src/AddressVerification/MatchedAddress.php +++ b/src/AddressVerification/MatchedAddress.php @@ -25,6 +25,7 @@ public function __construct(array $matchedAddress) list( $this->name, $this->phone, + $this->email, $this->companyName, $this->addressLine1, $this->addressLine2, diff --git a/tests/Mocks/Validation/AddressMock.php b/tests/Mocks/Validation/AddressMock.php index d262823..b83096b 100644 --- a/tests/Mocks/Validation/AddressMock.php +++ b/tests/Mocks/Validation/AddressMock.php @@ -33,6 +33,7 @@ public function mockValidationSuccess(): ShipEngine "matched_address" => [ "name" => null, "phone" => null, + "email" => null, "company_name" => null, "address_line1" => "525 S WINCHESTER BLVD", "address_line2" => "",