From d65a243d8999932c32b46a01273d03c838a4b3da Mon Sep 17 00:00:00 2001 From: Kallef Alexandre Date: Fri, 8 Feb 2019 11:50:43 -0200 Subject: [PATCH] mudando namespace porque qurbrou no autoload do composer --- README.md | 2 +- composer.json | 4 ++-- src/Classes/Collection.php | 2 +- src/Classes/EndpointBase.php | 12 ++++++------ src/Classes/IntegraCommerce.php | 8 ++++---- src/Classes/ModelBase.php | 2 +- src/Client/ApiClient.php | 2 +- src/Client/ApiException.php | 2 +- src/Client/Response.php | 2 +- src/Endpoints/Attribute.php | 6 +++--- src/Endpoints/Category.php | 10 +++++----- src/Endpoints/EndPointLimit.php | 6 +++--- src/Endpoints/Marketplace.php | 6 +++--- src/Endpoints/MarketplaceStructure.php | 6 +++--- src/Endpoints/Order.php | 12 ++++++------ src/Endpoints/Price.php | 8 ++++---- src/Endpoints/Product.php | 8 ++++---- src/Endpoints/Sku.php | 8 ++++---- src/Endpoints/Stock.php | 8 ++++---- src/Helper/General.php | 2 +- src/Model/Attribute.php | 6 +++--- src/Model/Attributes.php | 8 ++++---- src/Model/Categories.php | 8 ++++---- src/Model/Category.php | 4 ++-- src/Model/EndPointLimit.php | 6 +++--- src/Model/Marketplace.php | 4 ++-- src/Model/MarketplaceStructure.php | 6 +++--- src/Model/Marketplaces.php | 8 ++++---- src/Model/Order.php | 8 ++++---- src/Model/OrderPayment.php | 4 ++-- src/Model/OrderProduct.php | 6 +++--- src/Model/Orders.php | 8 ++++---- src/Model/Prices.php | 6 +++--- src/Model/Product.php | 8 ++++---- src/Model/Sku.php | 6 +++--- src/Model/SkuPrice.php | 4 ++-- src/Model/Stocks.php | 6 +++--- src/Traits/Paginable.php | 2 +- 38 files changed, 112 insertions(+), 112 deletions(-) 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 @@