Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit 7eda9b6

Browse files
committed
refactor(orders): remove shipping address attributes from populate
1 parent 2f01ad9 commit 7eda9b6

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/Resource/Orders.php

-10
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ protected function initialize()
118118
$this->data->amount->subtotals = new stdClass();
119119
$this->data->items = [];
120120
$this->data->receivers = [];
121-
$this->data->shippingAddress = new stdClass();
122121
$this->data->checkoutPreferences = new stdClass();
123122
$this->data->checkoutPreferences->redirectUrls = new stdClass();
124123
$this->data->checkoutPreferences->installments = [];
@@ -167,15 +166,6 @@ protected function populate(stdClass $response)
167166

168167
$this->orders->data->receivers = $this->getIfSet('receivers', $response);
169168

170-
$this->orders->data->shippingAddress->zipCode = $response->shippingAddress->zipCode;
171-
$this->orders->data->shippingAddress->street = $response->shippingAddress->street;
172-
$this->orders->data->shippingAddress->streetNumber = $response->shippingAddress->streetNumber;
173-
$this->orders->data->shippingAddress->complement = $response->shippingAddress->complement;
174-
$this->orders->data->shippingAddress->city = $response->shippingAddress->city;
175-
$this->orders->data->shippingAddress->district = $response->shippingAddress->district;
176-
$this->orders->data->shippingAddress->state = $response->shippingAddress->state;
177-
$this->orders->data->shippingAddress->country = $response->shippingAddress->country;
178-
179169
$this->orders->data->status = $response->status;
180170
$this->orders->data->_links = $response->_links;
181171

0 commit comments

Comments
 (0)