From 14865768408f0425ff92e378f7edd39b67fec430 Mon Sep 17 00:00:00 2001 From: phillipcodes <57101430+phillipcodes@users.noreply.github.com> Date: Mon, 23 Mar 2020 08:01:28 +0100 Subject: [PATCH] Update CustomerAddress.php --- .../Webkul/API/Http/Resources/Customer/CustomerAddress.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/Webkul/API/Http/Resources/Customer/CustomerAddress.php b/packages/Webkul/API/Http/Resources/Customer/CustomerAddress.php index 111cdb31c..6538496c0 100644 --- a/packages/Webkul/API/Http/Resources/Customer/CustomerAddress.php +++ b/packages/Webkul/API/Http/Resources/Customer/CustomerAddress.php @@ -16,6 +16,9 @@ class CustomerAddress extends JsonResource { return [ 'id' => $this->id, + 'first_name' => $this->first_name, + 'last_name' => $this->last_name, + 'company_name' => $this->company_name, 'address1' => explode(PHP_EOL, $this->address1), 'country' => $this->country, 'country_name' => core()->country_name($this->country), @@ -27,4 +30,4 @@ class CustomerAddress extends JsonResource 'updated_at' => $this->updated_at, ]; } -} \ No newline at end of file +}