Adapter/PlentymarketsAdapter/ResponseParser/Order/OrderResponseParser.php
private function getBillingAddressData(array $entry)
    {
        $billingAddress = array_filter($entry['addresses'], function (array $address) {
            return $address['pivot']['typeId'] === 1;
        });

        if (empty($billingAddress)) {
            return [];
        }

        return array_shift($billingAddress);
    }
private function getBillingAddressData(array $entry)
    {
        $billingAddress = array_filter($entry['addresses'], function (array $address) {
            return $address['pivot']['typeId'] === 1;
        });

        if (empty($billingAddress)) {
            return [];
        }

        return array_shift($billingAddress);
    }
@param array $entry

@return array