Skip to content

Commit

Permalink
mudando namespace porque qurbrou no autoload do composer
Browse files Browse the repository at this point in the history
  • Loading branch information
Kallef Alexandre committed Feb 8, 2019
1 parent 1b3110a commit d65a243
Show file tree
Hide file tree
Showing 38 changed files with 112 additions and 112 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# SDK PHP para API IntegraCommerce
# SDK PHP para API Integracommerce

### Work in progress
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -18,7 +18,7 @@
},
"autoload": {
"psr-4": {
"IntegraCommerce\\": "src/"
"Integracommerce\\": "src/"
}
}
}
2 changes: 1 addition & 1 deletion src/Classes/Collection.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace IntegraCommerce\Classes;
namespace Integracommerce\Classes;


class Collection extends \Illuminate\Support\Collection
Expand Down
12 changes: 6 additions & 6 deletions src/Classes/EndpointBase.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace IntegraCommerce\Classes;
namespace Integracommerce\Classes;


use IntegraCommerce\Client\ApiClient;
use IntegraCommerce\Client\Response;
use Integracommerce\Client\ApiClient;
use Integracommerce\Client\Response;

abstract class EndpointBase
{
Expand All @@ -16,10 +16,10 @@ abstract class EndpointBase
public function __construct($apiClient = null)
{
if (null === $apiClient) {
if (IntegraCommerce::$apiClient === null) {
IntegraCommerce::init();
if (Integracommerce::$apiClient === null) {
Integracommerce::init();
} else
$this->apiClient = IntegraCommerce::$apiClient;
$this->apiClient = Integracommerce::$apiClient;
} else {
$this->apiClient = $apiClient;
}
Expand Down
8 changes: 4 additions & 4 deletions src/Classes/IntegraCommerce.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php

namespace IntegraCommerce\Classes;
namespace Integracommerce\Classes;

use IntegraCommerce\Client\ApiClient;
use IntegraCommerce\Client\Response;
use Integracommerce\Client\ApiClient;
use Integracommerce\Client\Response;
use GuzzleHttp\HandlerStack;
use GuzzleHttp\Middleware;
use Psr\Http\Message\ResponseInterface;

class IntegraCommerce
class Integracommerce
{
/**
* Username for HTTP basic authentication
Expand Down
2 changes: 1 addition & 1 deletion src/Classes/ModelBase.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace IntegraCommerce\Classes;
namespace Integracommerce\Classes;


abstract class ModelBase
Expand Down
2 changes: 1 addition & 1 deletion src/Client/ApiClient.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace IntegraCommerce\Client;
namespace Integracommerce\Client;

use GuzzleHttp\Client;
use GuzzleHttp\Exception\ClientException;
Expand Down
2 changes: 1 addition & 1 deletion src/Client/ApiException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace IntegraCommerce\Client;
namespace Integracommerce\Client;

use \Exception;

Expand Down
2 changes: 1 addition & 1 deletion src/Client/Response.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace IntegraCommerce\Client;
namespace Integracommerce\Client;


class Response extends \GuzzleHttp\Psr7\Response
Expand Down
6 changes: 3 additions & 3 deletions src/Endpoints/Attribute.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace IntegraCommerce\Endpoints;
namespace Integracommerce\Endpoints;

use IntegraCommerce\Classes\EndpointBase;
use \IntegraCommerce\Model\Attributes as AttributesModel;
use Integracommerce\Classes\EndpointBase;
use \Integracommerce\Model\Attributes as AttributesModel;

class Attribute extends EndpointBase
{
Expand Down
10 changes: 5 additions & 5 deletions src/Endpoints/Category.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace IntegraCommerce\Endpoints;
namespace Integracommerce\Endpoints;

use IntegraCommerce\Classes\EndpointBase;
use IntegraCommerce\Model\Categories;
use \IntegraCommerce\Model\Category as CategoryModel;
use \IntegraCommerce\Model\Categories as CategoriesModel;
use Integracommerce\Classes\EndpointBase;
use Integracommerce\Model\Categories;
use \Integracommerce\Model\Category as CategoryModel;
use \Integracommerce\Model\Categories as CategoriesModel;

class Category extends EndpointBase
{
Expand Down
6 changes: 3 additions & 3 deletions src/Endpoints/EndPointLimit.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace IntegraCommerce\Endpoints;
namespace Integracommerce\Endpoints;

use IntegraCommerce\Classes\EndpointBase;
use \IntegraCommerce\Model\EndPointLimit as EndPointLimitModel;
use Integracommerce\Classes\EndpointBase;
use \Integracommerce\Model\EndPointLimit as EndPointLimitModel;

class EndPointLimit extends EndpointBase
{
Expand Down
6 changes: 3 additions & 3 deletions src/Endpoints/Marketplace.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace IntegraCommerce\Endpoints;
namespace Integracommerce\Endpoints;

use IntegraCommerce\Classes\EndpointBase;
use \IntegraCommerce\Model\Marketplaces as MarketplacesModel;
use Integracommerce\Classes\EndpointBase;
use \Integracommerce\Model\Marketplaces as MarketplacesModel;

class Marketplace extends EndpointBase
{
Expand Down
6 changes: 3 additions & 3 deletions src/Endpoints/MarketplaceStructure.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace IntegraCommerce\Endpoints;
namespace Integracommerce\Endpoints;

use IntegraCommerce\Classes\EndpointBase;
use \IntegraCommerce\Model\MarketplaceStructure as MarketplaceStructureModel;
use Integracommerce\Classes\EndpointBase;
use \Integracommerce\Model\MarketplaceStructure as MarketplaceStructureModel;

class MarketplaceStructure extends EndpointBase
{
Expand Down
12 changes: 6 additions & 6 deletions src/Endpoints/Order.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace IntegraCommerce\Endpoints;
namespace Integracommerce\Endpoints;

use IntegraCommerce\Classes\EndpointBase;
use IntegraCommerce\Model\Orders;
use \IntegraCommerce\Model\Order as OrderModel;
use \IntegraCommerce\Model\Orders as OrdersModel;
use Integracommerce\Classes\EndpointBase;
use Integracommerce\Model\Orders;
use \Integracommerce\Model\Order as OrderModel;
use \Integracommerce\Model\Orders as OrdersModel;

class Order extends EndpointBase
{
Expand Down Expand Up @@ -57,7 +57,7 @@ public function getOrders(int $page = 1, int $perPage = 100, $status = null): Or
return new OrdersModel($response);
}

public function updateOrder(\IntegraCommerce\Model\Order $order)
public function updateOrder(\Integracommerce\Model\Order $order)
{
$this->request('PUT', 'Order', [
'json' => $order->toArray()
Expand Down
8 changes: 4 additions & 4 deletions src/Endpoints/Price.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace IntegraCommerce\Endpoints;
namespace Integracommerce\Endpoints;

use IntegraCommerce\Classes\Collection;
use IntegraCommerce\Classes\EndpointBase;
use \IntegraCommerce\Model\Prices as PricesModel;
use Integracommerce\Classes\Collection;
use Integracommerce\Classes\EndpointBase;
use \Integracommerce\Model\Prices as PricesModel;

class Price extends EndpointBase
{
Expand Down
8 changes: 4 additions & 4 deletions src/Endpoints/Product.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace IntegraCommerce\Endpoints;
namespace Integracommerce\Endpoints;

use IntegraCommerce\Classes\EndpointBase;
use IntegraCommerce\Client\Response;
use \IntegraCommerce\Model\Product as ProductModel;
use Integracommerce\Classes\EndpointBase;
use Integracommerce\Client\Response;
use \Integracommerce\Model\Product as ProductModel;

class Product extends EndpointBase
{
Expand Down
8 changes: 4 additions & 4 deletions src/Endpoints/Sku.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace IntegraCommerce\Endpoints;
namespace Integracommerce\Endpoints;

use IntegraCommerce\Classes\EndpointBase;
use IntegraCommerce\Client\Response;
use \IntegraCommerce\Model\Sku as SkuModel;
use Integracommerce\Classes\EndpointBase;
use Integracommerce\Client\Response;
use \Integracommerce\Model\Sku as SkuModel;

class Sku extends EndpointBase
{
Expand Down
8 changes: 4 additions & 4 deletions src/Endpoints/Stock.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace IntegraCommerce\Endpoints;
namespace Integracommerce\Endpoints;

use IntegraCommerce\Classes\Collection;
use IntegraCommerce\Classes\EndpointBase;
use \IntegraCommerce\Model\Stocks as StockModel;
use Integracommerce\Classes\Collection;
use Integracommerce\Classes\EndpointBase;
use \Integracommerce\Model\Stocks as StockModel;

class Stock extends EndpointBase
{
Expand Down
2 changes: 1 addition & 1 deletion src/Helper/General.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace IntegraCommerce\Helper;
namespace Integracommerce\Helper;


class General
Expand Down
6 changes: 3 additions & 3 deletions src/Model/Attribute.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php


namespace IntegraCommerce\Model;
namespace Integracommerce\Model;

use IntegraCommerce\Classes\Collection;
use IntegraCommerce\Classes\ModelBase;
use Integracommerce\Classes\Collection;
use Integracommerce\Classes\ModelBase;

class Attribute extends ModelBase
{
Expand Down
8 changes: 4 additions & 4 deletions src/Model/Attributes.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php


namespace IntegraCommerce\Model;
namespace Integracommerce\Model;

use IntegraCommerce\Classes\Collection;
use IntegraCommerce\Classes\ModelBase;
use IntegraCommerce\Traits\Paginable;
use Integracommerce\Classes\Collection;
use Integracommerce\Classes\ModelBase;
use Integracommerce\Traits\Paginable;

class Attributes extends ModelBase
{
Expand Down
8 changes: 4 additions & 4 deletions src/Model/Categories.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php


namespace IntegraCommerce\Model;
namespace Integracommerce\Model;

use IntegraCommerce\Classes\Collection;
use IntegraCommerce\Classes\ModelBase;
use IntegraCommerce\Traits\Paginable;
use Integracommerce\Classes\Collection;
use Integracommerce\Classes\ModelBase;
use Integracommerce\Traits\Paginable;

class Categories extends ModelBase
{
Expand Down
4 changes: 2 additions & 2 deletions src/Model/Category.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php


namespace IntegraCommerce\Model;
namespace Integracommerce\Model;

use IntegraCommerce\Classes\ModelBase;
use Integracommerce\Classes\ModelBase;

class Category extends ModelBase
{
Expand Down
6 changes: 3 additions & 3 deletions src/Model/EndPointLimit.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php


namespace IntegraCommerce\Model;
namespace Integracommerce\Model;

use IntegraCommerce\Classes\Collection;
use IntegraCommerce\Classes\ModelBase;
use Integracommerce\Classes\Collection;
use Integracommerce\Classes\ModelBase;

class EndPointLimit extends ModelBase
{
Expand Down
4 changes: 2 additions & 2 deletions src/Model/Marketplace.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php


namespace IntegraCommerce\Model;
namespace Integracommerce\Model;

use IntegraCommerce\Classes\ModelBase;
use Integracommerce\Classes\ModelBase;

class Marketplace extends ModelBase
{
Expand Down
6 changes: 3 additions & 3 deletions src/Model/MarketplaceStructure.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php


namespace IntegraCommerce\Model;
namespace Integracommerce\Model;

use IntegraCommerce\Classes\Collection;
use IntegraCommerce\Classes\ModelBase;
use Integracommerce\Classes\Collection;
use Integracommerce\Classes\ModelBase;

class MarketplaceStructure extends ModelBase
{
Expand Down
8 changes: 4 additions & 4 deletions src/Model/Marketplaces.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php


namespace IntegraCommerce\Model;
namespace Integracommerce\Model;

use IntegraCommerce\Classes\Collection;
use IntegraCommerce\Classes\ModelBase;
use IntegraCommerce\Traits\Paginable;
use Integracommerce\Classes\Collection;
use Integracommerce\Classes\ModelBase;
use Integracommerce\Traits\Paginable;

class Marketplaces extends ModelBase
{
Expand Down
Loading

0 comments on commit d65a243

Please sign in to comment.