diff --git a/README.md b/README.md index d8138e9..310c6b0 100755 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ -# SDK PHP para API IntegraCommerce +# SDK PHP para API Integracommerce ### Work in progress \ No newline at end of file diff --git a/composer.json b/composer.json index 61e4741..fc8e613 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "prhost/integracommerce-sdk", - "description": "SDK para integracao com IntegraCommerce", + "description": "SDK para integracao com Integracommerce", "type": "library", "minimum-stability": "stable", "license": "MIT", @@ -18,7 +18,7 @@ }, "autoload": { "psr-4": { - "IntegraCommerce\\": "src/" + "Integracommerce\\": "src/" } } } \ No newline at end of file diff --git a/src/Classes/Collection.php b/src/Classes/Collection.php index 6c3d5d8..402e5a6 100644 --- a/src/Classes/Collection.php +++ b/src/Classes/Collection.php @@ -1,6 +1,6 @@ apiClient = IntegraCommerce::$apiClient; + $this->apiClient = Integracommerce::$apiClient; } else { $this->apiClient = $apiClient; } diff --git a/src/Classes/IntegraCommerce.php b/src/Classes/IntegraCommerce.php index c21a06b..d3dbdf2 100755 --- a/src/Classes/IntegraCommerce.php +++ b/src/Classes/IntegraCommerce.php @@ -1,14 +1,14 @@ request('PUT', 'Order', [ 'json' => $order->toArray() diff --git a/src/Endpoints/Price.php b/src/Endpoints/Price.php index fd09823..7a59920 100755 --- a/src/Endpoints/Price.php +++ b/src/Endpoints/Price.php @@ -1,10 +1,10 @@ setActive($product->Active); foreach ($product->Categories as $category) { - $categoryModel = new \IntegraCommerce\Model\Category(); + $categoryModel = new \Integracommerce\Model\Category(); $categoryModel->setId($category->Id); $categoryModel->setName($category->Name); $categoryModel->setParentId((int)$category->ParentId); diff --git a/src/Model/Sku.php b/src/Model/Sku.php index baabbbf..2c5df45 100755 --- a/src/Model/Sku.php +++ b/src/Model/Sku.php @@ -1,10 +1,10 @@