Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Add email to MatchedAddress.php (#27)
Browse files Browse the repository at this point in the history
* Update: Add email to MatchedAddress.php

* test: Add email to AddressMock.php
  • Loading branch information
NilsDelaguardia authored Sep 11, 2023
1 parent 195d40e commit 402c59a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Address/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ class Address
*/
protected $phone;

/**
* @var string|null
*/
protected $email;

/**
* @var string|null
*/
Expand Down
1 change: 1 addition & 0 deletions src/AddressVerification/MatchedAddress.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public function __construct(array $matchedAddress)
list(
$this->name,
$this->phone,
$this->email,
$this->companyName,
$this->addressLine1,
$this->addressLine2,
Expand Down
1 change: 1 addition & 0 deletions tests/Mocks/Validation/AddressMock.php
Original file line number Diff line number Diff line change
Expand Up @@ -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" => "",
Expand Down

0 comments on commit 402c59a

Please sign in to comment.