Skip to content

Commit

Permalink
refactor(orders): remove shipping address attributes from populate
Browse files Browse the repository at this point in the history
  • Loading branch information
bressani committed Dec 12, 2017
1 parent 2f01ad9 commit 7eda9b6
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/Resource/Orders.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ protected function initialize()
$this->data->amount->subtotals = new stdClass();
$this->data->items = [];
$this->data->receivers = [];
$this->data->shippingAddress = new stdClass();
$this->data->checkoutPreferences = new stdClass();
$this->data->checkoutPreferences->redirectUrls = new stdClass();
$this->data->checkoutPreferences->installments = [];
Expand Down Expand Up @@ -167,15 +166,6 @@ protected function populate(stdClass $response)

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

$this->orders->data->shippingAddress->zipCode = $response->shippingAddress->zipCode;
$this->orders->data->shippingAddress->street = $response->shippingAddress->street;
$this->orders->data->shippingAddress->streetNumber = $response->shippingAddress->streetNumber;
$this->orders->data->shippingAddress->complement = $response->shippingAddress->complement;
$this->orders->data->shippingAddress->city = $response->shippingAddress->city;
$this->orders->data->shippingAddress->district = $response->shippingAddress->district;
$this->orders->data->shippingAddress->state = $response->shippingAddress->state;
$this->orders->data->shippingAddress->country = $response->shippingAddress->country;

$this->orders->data->status = $response->status;
$this->orders->data->_links = $response->_links;

Expand Down

0 comments on commit 7eda9b6

Please sign in to comment.