Renamed namespace from Resource\Api to Model (#293)

* Renamed namespace from Resource\Api to Model

* Moved Resources\ApiResponse to Models namespace

Signed-off-by: Michal Hanajík <michal.hanajik@outlook.com>

* Fix of code style
This commit is contained in:
Michal Hanajík 2017-02-23 19:56:30 +00:00 committed by Tobias Nyholm
parent da873dad04
commit 74929b6518
71 changed files with 166 additions and 168 deletions

View File

@ -10,16 +10,16 @@
namespace Mailgun\Api; namespace Mailgun\Api;
use Mailgun\Assert; use Mailgun\Assert;
use Mailgun\Resource\Api\Domain\ConnectionResponse; use Mailgun\Model\Domain\ConnectionResponse;
use Mailgun\Resource\Api\Domain\CreateCredentialResponse; use Mailgun\Model\Domain\CreateCredentialResponse;
use Mailgun\Resource\Api\Domain\CreateResponse; use Mailgun\Model\Domain\CreateResponse;
use Mailgun\Resource\Api\Domain\CredentialResponse; use Mailgun\Model\Domain\CredentialResponse;
use Mailgun\Resource\Api\Domain\DeleteCredentialResponse; use Mailgun\Model\Domain\DeleteCredentialResponse;
use Mailgun\Resource\Api\Domain\DeleteResponse; use Mailgun\Model\Domain\DeleteResponse;
use Mailgun\Resource\Api\Domain\IndexResponse; use Mailgun\Model\Domain\IndexResponse;
use Mailgun\Resource\Api\Domain\ShowResponse; use Mailgun\Model\Domain\ShowResponse;
use Mailgun\Resource\Api\Domain\UpdateConnectionResponse; use Mailgun\Model\Domain\UpdateConnectionResponse;
use Mailgun\Resource\Api\Domain\UpdateCredentialResponse; use Mailgun\Model\Domain\UpdateCredentialResponse;
use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ResponseInterface;
/** /**

View File

@ -10,7 +10,7 @@
namespace Mailgun\Api; namespace Mailgun\Api;
use Mailgun\Assert; use Mailgun\Assert;
use Mailgun\Resource\Api\Event\EventResponse; use Mailgun\Model\Event\EventResponse;
/** /**
* {@link https://documentation.mailgun.com/api-events.html}. * {@link https://documentation.mailgun.com/api-events.html}.

View File

@ -15,7 +15,7 @@ use Mailgun\Deserializer\ResponseDeserializer;
use Mailgun\Exception\HttpClientException; use Mailgun\Exception\HttpClientException;
use Mailgun\Exception\HttpServerException; use Mailgun\Exception\HttpServerException;
use Mailgun\RequestBuilder; use Mailgun\RequestBuilder;
use Mailgun\Resource\Api\ErrorResponse; use Mailgun\Model\ErrorResponse;
use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ResponseInterface;
/** /**

View File

@ -11,8 +11,8 @@ namespace Mailgun\Api;
use Mailgun\Assert; use Mailgun\Assert;
use Mailgun\Exception\InvalidArgumentException; use Mailgun\Exception\InvalidArgumentException;
use Mailgun\Resource\Api\Message\SendResponse; use Mailgun\Model\Message\SendResponse;
use Mailgun\Resource\Api\Message\ShowResponse; use Mailgun\Model\Message\ShowResponse;
/** /**
* @author Tobias Nyholm <tobias.nyholm@gmail.com> * @author Tobias Nyholm <tobias.nyholm@gmail.com>

View File

@ -10,7 +10,7 @@
namespace Mailgun\Api; namespace Mailgun\Api;
use Mailgun\Assert; use Mailgun\Assert;
use Mailgun\Resource\Api\PagingProvider; use Mailgun\Model\PagingProvider;
use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ResponseInterface;
/** /**

View File

@ -10,11 +10,11 @@
namespace Mailgun\Api; namespace Mailgun\Api;
use Mailgun\Assert; use Mailgun\Assert;
use Mailgun\Resource\Api\Routes\Response\CreateResponse; use Mailgun\Model\Routes\Response\CreateResponse;
use Mailgun\Resource\Api\Routes\Response\DeleteResponse; use Mailgun\Model\Routes\Response\DeleteResponse;
use Mailgun\Resource\Api\Routes\Response\IndexResponse; use Mailgun\Model\Routes\Response\IndexResponse;
use Mailgun\Resource\Api\Routes\Response\ShowResponse; use Mailgun\Model\Routes\Response\ShowResponse;
use Mailgun\Resource\Api\Routes\Response\UpdateResponse; use Mailgun\Model\Routes\Response\UpdateResponse;
/** /**
* {@link https://documentation.mailgun.com/api-routes.html}. * {@link https://documentation.mailgun.com/api-routes.html}.

View File

@ -10,8 +10,8 @@
namespace Mailgun\Api; namespace Mailgun\Api;
use Mailgun\Assert; use Mailgun\Assert;
use Mailgun\Resource\Api\Stats\AllResponse; use Mailgun\Model\Stats\AllResponse;
use Mailgun\Resource\Api\Stats\TotalResponse; use Mailgun\Model\Stats\TotalResponse;
/** /**
* {@link https://documentation.mailgun.com/api-stats.html}. * {@link https://documentation.mailgun.com/api-stats.html}.

View File

@ -10,10 +10,10 @@
namespace Mailgun\Api; namespace Mailgun\Api;
use Mailgun\Assert; use Mailgun\Assert;
use Mailgun\Resource\Api\Suppressions\Bounce\CreateResponse; use Mailgun\Model\Suppressions\Bounce\CreateResponse;
use Mailgun\Resource\Api\Suppressions\Bounce\DeleteResponse; use Mailgun\Model\Suppressions\Bounce\DeleteResponse;
use Mailgun\Resource\Api\Suppressions\Bounce\IndexResponse; use Mailgun\Model\Suppressions\Bounce\IndexResponse;
use Mailgun\Resource\Api\Suppressions\Bounce\ShowResponse; use Mailgun\Model\Suppressions\Bounce\ShowResponse;
/** /**
* @see https://documentation.mailgun.com/api-suppressions.html#bounces * @see https://documentation.mailgun.com/api-suppressions.html#bounces

View File

@ -10,10 +10,10 @@
namespace Mailgun\Api; namespace Mailgun\Api;
use Mailgun\Assert; use Mailgun\Assert;
use Mailgun\Resource\Api\Suppressions\Complaint\CreateResponse; use Mailgun\Model\Suppressions\Complaint\CreateResponse;
use Mailgun\Resource\Api\Suppressions\Complaint\DeleteResponse; use Mailgun\Model\Suppressions\Complaint\DeleteResponse;
use Mailgun\Resource\Api\Suppressions\Complaint\IndexResponse; use Mailgun\Model\Suppressions\Complaint\IndexResponse;
use Mailgun\Resource\Api\Suppressions\Complaint\ShowResponse; use Mailgun\Model\Suppressions\Complaint\ShowResponse;
/** /**
* @see https://documentation.mailgun.com/api-suppressions.html#complaints * @see https://documentation.mailgun.com/api-suppressions.html#complaints

View File

@ -10,10 +10,10 @@
namespace Mailgun\Api; namespace Mailgun\Api;
use Mailgun\Assert; use Mailgun\Assert;
use Mailgun\Resource\Api\Suppressions\Unsubscribe\CreateResponse; use Mailgun\Model\Suppressions\Unsubscribe\CreateResponse;
use Mailgun\Resource\Api\Suppressions\Unsubscribe\DeleteResponse; use Mailgun\Model\Suppressions\Unsubscribe\DeleteResponse;
use Mailgun\Resource\Api\Suppressions\Unsubscribe\IndexResponse; use Mailgun\Model\Suppressions\Unsubscribe\IndexResponse;
use Mailgun\Resource\Api\Suppressions\Unsubscribe\ShowResponse; use Mailgun\Model\Suppressions\Unsubscribe\ShowResponse;
/** /**
* @see https://documentation.mailgun.com/api-suppressions.html#unsubscribes * @see https://documentation.mailgun.com/api-suppressions.html#unsubscribes

View File

@ -10,11 +10,11 @@
namespace Mailgun\Api; namespace Mailgun\Api;
use Mailgun\Assert; use Mailgun\Assert;
use Mailgun\Resource\Api\Tag\DeleteResponse; use Mailgun\Model\Tag\DeleteResponse;
use Mailgun\Resource\Api\Tag\IndexResponse; use Mailgun\Model\Tag\IndexResponse;
use Mailgun\Resource\Api\Tag\ShowResponse; use Mailgun\Model\Tag\ShowResponse;
use Mailgun\Resource\Api\Tag\StatisticsResponse; use Mailgun\Model\Tag\StatisticsResponse;
use Mailgun\Resource\Api\Tag\UpdateResponse; use Mailgun\Model\Tag\UpdateResponse;
use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ResponseInterface;
/** /**

View File

@ -10,11 +10,11 @@
namespace Mailgun\Api; namespace Mailgun\Api;
use Mailgun\Assert; use Mailgun\Assert;
use Mailgun\Resource\Api\Webhook\CreateResponse; use Mailgun\Model\Webhook\CreateResponse;
use Mailgun\Resource\Api\Webhook\DeleteResponse; use Mailgun\Model\Webhook\DeleteResponse;
use Mailgun\Resource\Api\Webhook\IndexResponse; use Mailgun\Model\Webhook\IndexResponse;
use Mailgun\Resource\Api\Webhook\ShowResponse; use Mailgun\Model\Webhook\ShowResponse;
use Mailgun\Resource\Api\Webhook\UpdateResponse; use Mailgun\Model\Webhook\UpdateResponse;
/** /**
* @author Tobias Nyholm <tobias.nyholm@gmail.com> * @author Tobias Nyholm <tobias.nyholm@gmail.com>

View File

@ -10,7 +10,7 @@
namespace Mailgun\Deserializer; namespace Mailgun\Deserializer;
use Mailgun\Exception\DeserializeException; use Mailgun\Exception\DeserializeException;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ResponseInterface;
/** /**

View File

@ -7,7 +7,7 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource; namespace Mailgun\Model;
/** /**
* @author Tobias Nyholm <tobias.nyholm@gmail.com> * @author Tobias Nyholm <tobias.nyholm@gmail.com>

View File

@ -7,9 +7,9 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Domain; namespace Mailgun\Model\Domain;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
/** /**
* @author Sean Johnson <sean@mailgun.com> * @author Sean Johnson <sean@mailgun.com>

View File

@ -7,9 +7,9 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Domain; namespace Mailgun\Model\Domain;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
/** /**
* @author Tobias Nyholm <tobias.nyholm@gmail.com> * @author Tobias Nyholm <tobias.nyholm@gmail.com>

View File

@ -7,9 +7,9 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Domain; namespace Mailgun\Model\Domain;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
/** /**
* @author Tobias Nyholm <tobias.nyholm@gmail.com> * @author Tobias Nyholm <tobias.nyholm@gmail.com>

View File

@ -7,9 +7,9 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Domain; namespace Mailgun\Model\Domain;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
/** /**
* @author Sean Johnson <sean@mailgun.com> * @author Sean Johnson <sean@mailgun.com>

View File

@ -7,7 +7,7 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Domain; namespace Mailgun\Model\Domain;
/** /**
* @author Sean Johnson <sean@mailgun.com> * @author Sean Johnson <sean@mailgun.com>

View File

@ -7,9 +7,9 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Domain; namespace Mailgun\Model\Domain;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
/** /**
* @author Tobias Nyholm <tobias.nyholm@gmail.com> * @author Tobias Nyholm <tobias.nyholm@gmail.com>

View File

@ -7,9 +7,9 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Domain; namespace Mailgun\Model\Domain;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
/** /**
* @author Tobias Nyholm <tobias.nyholm@gmail.com> * @author Tobias Nyholm <tobias.nyholm@gmail.com>

View File

@ -7,7 +7,7 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Domain; namespace Mailgun\Model\Domain;
/** /**
* Represents a single DNS record for a domain. * Represents a single DNS record for a domain.

View File

@ -7,7 +7,7 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Domain; namespace Mailgun\Model\Domain;
/** /**
* Represents domain information in its simplest form. * Represents domain information in its simplest form.

View File

@ -7,9 +7,9 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Domain; namespace Mailgun\Model\Domain;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
/** /**
* @author Sean Johnson <sean@mailgun.com> * @author Sean Johnson <sean@mailgun.com>

View File

@ -7,9 +7,9 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Domain; namespace Mailgun\Model\Domain;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
/** /**
* @author Sean Johnson <sean@mailgun.com> * @author Sean Johnson <sean@mailgun.com>

View File

@ -7,9 +7,9 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Domain; namespace Mailgun\Model\Domain;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
/** /**
* @author Sean Johnson <sean@mailgun.com> * @author Sean Johnson <sean@mailgun.com>

View File

@ -7,9 +7,9 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Domain; namespace Mailgun\Model\Domain;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
/** /**
* @author Tobias Nyholm <tobias.nyholm@gmail.com> * @author Tobias Nyholm <tobias.nyholm@gmail.com>

View File

@ -7,9 +7,7 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api; namespace Mailgun\Model;
use Mailgun\Resource\ApiResponse;
final class ErrorResponse implements ApiResponse final class ErrorResponse implements ApiResponse
{ {

View File

@ -7,7 +7,7 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Event; namespace Mailgun\Model\Event;
/** /**
* @author Tobias Nyholm <tobias.nyholm@gmail.com> * @author Tobias Nyholm <tobias.nyholm@gmail.com>

View File

@ -7,11 +7,11 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Event; namespace Mailgun\Model\Event;
use Mailgun\Resource\Api\PagingProvider; use Mailgun\Model\PagingProvider;
use Mailgun\Resource\Api\PaginationResponse; use Mailgun\Model\PaginationResponse;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
/** /**
* @author Tobias Nyholm <tobias.nyholm@gmail.com> * @author Tobias Nyholm <tobias.nyholm@gmail.com>

View File

@ -7,9 +7,9 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Message; namespace Mailgun\Model\Message;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
/** /**
* @author Tobias Nyholm <tobias.nyholm@gmail.com> * @author Tobias Nyholm <tobias.nyholm@gmail.com>

View File

@ -7,9 +7,9 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Message; namespace Mailgun\Model\Message;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
/** /**
* @author Tobias Nyholm <tobias.nyholm@gmail.com> * @author Tobias Nyholm <tobias.nyholm@gmail.com>

View File

@ -7,7 +7,7 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api; namespace Mailgun\Model;
/** /**
* @author Tobias Nyholm <tobias.nyholm@gmail.com> * @author Tobias Nyholm <tobias.nyholm@gmail.com>

View File

@ -7,7 +7,7 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api; namespace Mailgun\Model;
/** /**
* @author Sean Johnson <sean@mailgun.com> * @author Sean Johnson <sean@mailgun.com>

View File

@ -7,7 +7,7 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Routes; namespace Mailgun\Model\Routes;
/** /**
* @author David Garcia <me@davidgarcia.cat> * @author David Garcia <me@davidgarcia.cat>

View File

@ -7,10 +7,10 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Routes\Response; namespace Mailgun\Model\Routes\Response;
use Mailgun\Resource\Api\Routes\Route; use Mailgun\Model\Routes\Route;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
/** /**
* @author David Garcia <me@davidgarcia.cat> * @author David Garcia <me@davidgarcia.cat>

View File

@ -7,9 +7,9 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Routes\Response; namespace Mailgun\Model\Routes\Response;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
/** /**
* @author David Garcia <me@davidgarcia.cat> * @author David Garcia <me@davidgarcia.cat>

View File

@ -7,10 +7,10 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Routes\Response; namespace Mailgun\Model\Routes\Response;
use Mailgun\Resource\Api\Routes\Route; use Mailgun\Model\Routes\Route;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
/** /**
* @author David Garcia <me@davidgarcia.cat> * @author David Garcia <me@davidgarcia.cat>

View File

@ -7,10 +7,10 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Routes\Response; namespace Mailgun\Model\Routes\Response;
use Mailgun\Resource\Api\Routes\Route; use Mailgun\Model\Routes\Route;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
/** /**
* @author David Garcia <me@davidgarcia.cat> * @author David Garcia <me@davidgarcia.cat>

View File

@ -7,9 +7,9 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Routes\Response; namespace Mailgun\Model\Routes\Response;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
/** /**
* @author David Garcia <me@davidgarcia.cat> * @author David Garcia <me@davidgarcia.cat>

View File

@ -7,7 +7,7 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Routes; namespace Mailgun\Model\Routes;
/** /**
* @author David Garcia <me@davidgarcia.cat> * @author David Garcia <me@davidgarcia.cat>

View File

@ -7,9 +7,9 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Stats; namespace Mailgun\Model\Stats;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
/** /**
* @author Tobias Nyholm <tobias.nyholm@gmail.com> * @author Tobias Nyholm <tobias.nyholm@gmail.com>

View File

@ -7,7 +7,7 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Stats; namespace Mailgun\Model\Stats;
/** /**
* @author Tobias Nyholm <tobias.nyholm@gmail.com> * @author Tobias Nyholm <tobias.nyholm@gmail.com>

View File

@ -7,9 +7,9 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Stats; namespace Mailgun\Model\Stats;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
/** /**
* @author Tobias Nyholm <tobias.nyholm@gmail.com> * @author Tobias Nyholm <tobias.nyholm@gmail.com>

View File

@ -7,7 +7,7 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Stats; namespace Mailgun\Model\Stats;
/** /**
* @author Tobias Nyholm <tobias.nyholm@gmail.com> * @author Tobias Nyholm <tobias.nyholm@gmail.com>

View File

@ -7,9 +7,9 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Suppressions; namespace Mailgun\Model\Suppressions;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
/** /**
* Serves only as an abstract base for suppressions API code. * Serves only as an abstract base for suppressions API code.

View File

@ -7,9 +7,9 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Suppressions\Bounce; namespace Mailgun\Model\Suppressions\Bounce;
use Mailgun\Resource\Api\Suppressions\BaseResponse; use Mailgun\Model\Suppressions\BaseResponse;
/** /**
* @author Sean Johnson <sean@mailgun.com> * @author Sean Johnson <sean@mailgun.com>

View File

@ -7,9 +7,9 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Suppression\Bounce; namespace Mailgun\Model\Suppression\Bounce;
use Mailgun\Resource\Api\Suppressions\BaseResponse; use Mailgun\Model\Suppressions\BaseResponse;
/** /**
* @author Sean Johnson <sean@mailgun.com> * @author Sean Johnson <sean@mailgun.com>

View File

@ -7,11 +7,11 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Suppressions\Bounce; namespace Mailgun\Model\Suppressions\Bounce;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
use Mailgun\Resource\Api\PaginationResponse; use Mailgun\Model\PaginationResponse;
use Mailgun\Resource\Api\PagingProvider; use Mailgun\Model\PagingProvider;
/** /**
* @author Sean Johnson <sean@mailgun.com> * @author Sean Johnson <sean@mailgun.com>

View File

@ -7,9 +7,9 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Suppressions\Bounce; namespace Mailgun\Model\Suppressions\Bounce;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
/** /**
* @author Sean Johnson <sean@mailgun.com> * @author Sean Johnson <sean@mailgun.com>

View File

@ -7,9 +7,9 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Suppressions\Complaint; namespace Mailgun\Model\Suppressions\Complaint;
use Mailgun\Resource\Api\Suppressions\BaseResponse; use Mailgun\Model\Suppressions\BaseResponse;
/** /**
* @author Sean Johnson <sean@mailgun.com> * @author Sean Johnson <sean@mailgun.com>

View File

@ -7,9 +7,9 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Suppressions\Complaint; namespace Mailgun\Model\Suppressions\Complaint;
use Mailgun\Resource\Api\Suppressions\BaseResponse; use Mailgun\Model\Suppressions\BaseResponse;
/** /**
* @author Sean Johnson <sean@mailgun.com> * @author Sean Johnson <sean@mailgun.com>

View File

@ -7,11 +7,11 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Suppressions\Complaint; namespace Mailgun\Model\Suppressions\Complaint;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
use Mailgun\Resource\Api\PaginationResponse; use Mailgun\Model\PaginationResponse;
use Mailgun\Resource\Api\PagingProvider; use Mailgun\Model\PagingProvider;
/** /**
* @author Sean Johnson <sean@mailgun.com> * @author Sean Johnson <sean@mailgun.com>

View File

@ -7,9 +7,9 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Suppressions\Complaint; namespace Mailgun\Model\Suppressions\Complaint;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
/** /**
* @author Sean Johnson <sean@mailgun.com> * @author Sean Johnson <sean@mailgun.com>

View File

@ -7,9 +7,9 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Suppressions\Unsubscribe; namespace Mailgun\Model\Suppressions\Unsubscribe;
use Mailgun\Resource\Api\Suppressions\BaseResponse; use Mailgun\Model\Suppressions\BaseResponse;
/** /**
* @author Sean Johnson <sean@mailgun.com> * @author Sean Johnson <sean@mailgun.com>

View File

@ -7,9 +7,9 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Suppressions\Unsubscribe; namespace Mailgun\Model\Suppressions\Unsubscribe;
use Mailgun\Resource\Api\Suppressions\BaseResponse; use Mailgun\Model\Suppressions\BaseResponse;
/** /**
* @author Sean Johnson <sean@mailgun.com> * @author Sean Johnson <sean@mailgun.com>

View File

@ -7,11 +7,11 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Suppressions\Unsubscribe; namespace Mailgun\Model\Suppressions\Unsubscribe;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
use Mailgun\Resource\Api\PaginationResponse; use Mailgun\Model\PaginationResponse;
use Mailgun\Resource\Api\PagingProvider; use Mailgun\Model\PagingProvider;
/** /**
* @author Sean Johnson <sean@mailgun.com> * @author Sean Johnson <sean@mailgun.com>

View File

@ -7,9 +7,9 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Suppressions\Unsubscribe; namespace Mailgun\Model\Suppressions\Unsubscribe;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
/** /**
* @author Sean Johnson <sean@mailgun.com> * @author Sean Johnson <sean@mailgun.com>

View File

@ -7,9 +7,9 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Tag; namespace Mailgun\Model\Tag;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
/** /**
* @author Tobias Nyholm <tobias.nyholm@gmail.com> * @author Tobias Nyholm <tobias.nyholm@gmail.com>

View File

@ -7,11 +7,11 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Tag; namespace Mailgun\Model\Tag;
use Mailgun\Resource\Api\PaginationResponse; use Mailgun\Model\PaginationResponse;
use Mailgun\Resource\Api\PagingProvider; use Mailgun\Model\PagingProvider;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
/** /**
* @author Tobias Nyholm <tobias.nyholm@gmail.com> * @author Tobias Nyholm <tobias.nyholm@gmail.com>

View File

@ -7,9 +7,9 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Tag; namespace Mailgun\Model\Tag;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
/** /**
* @author Tobias Nyholm <tobias.nyholm@gmail.com> * @author Tobias Nyholm <tobias.nyholm@gmail.com>

View File

@ -7,9 +7,9 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Tag; namespace Mailgun\Model\Tag;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
/** /**
* @author Tobias Nyholm <tobias.nyholm@gmail.com> * @author Tobias Nyholm <tobias.nyholm@gmail.com>

View File

@ -7,7 +7,7 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Tag; namespace Mailgun\Model\Tag;
class Tag class Tag
{ {

View File

@ -7,9 +7,9 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Tag; namespace Mailgun\Model\Tag;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
/** /**
* @author Tobias Nyholm <tobias.nyholm@gmail.com> * @author Tobias Nyholm <tobias.nyholm@gmail.com>

View File

@ -7,9 +7,9 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Webhook; namespace Mailgun\Model\Webhook;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
/** /**
* This is only mean to be the base response for Webhook API. * This is only mean to be the base response for Webhook API.

View File

@ -7,7 +7,7 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Webhook; namespace Mailgun\Model\Webhook;
/** /**
* @author Tobias Nyholm <tobias.nyholm@gmail.com> * @author Tobias Nyholm <tobias.nyholm@gmail.com>

View File

@ -7,7 +7,7 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Webhook; namespace Mailgun\Model\Webhook;
/** /**
* @author Tobias Nyholm <tobias.nyholm@gmail.com> * @author Tobias Nyholm <tobias.nyholm@gmail.com>

View File

@ -7,9 +7,9 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Webhook; namespace Mailgun\Model\Webhook;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
/** /**
* @author Tobias Nyholm <tobias.nyholm@gmail.com> * @author Tobias Nyholm <tobias.nyholm@gmail.com>

View File

@ -7,9 +7,9 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Webhook; namespace Mailgun\Model\Webhook;
use Mailgun\Resource\ApiResponse; use Mailgun\Model\ApiResponse;
/** /**
* @author Tobias Nyholm <tobias.nyholm@gmail.com> * @author Tobias Nyholm <tobias.nyholm@gmail.com>

View File

@ -7,7 +7,7 @@
* of the MIT license. See the LICENSE file for details. * of the MIT license. See the LICENSE file for details.
*/ */
namespace Mailgun\Resource\Api\Webhook; namespace Mailgun\Model\Webhook;
/** /**
* @author Tobias Nyholm <tobias.nyholm@gmail.com> * @author Tobias Nyholm <tobias.nyholm@gmail.com>

View File

@ -10,16 +10,16 @@
namespace Mailgun\Tests\Integration; namespace Mailgun\Tests\Integration;
use Mailgun\Api\Domain; use Mailgun\Api\Domain;
use Mailgun\Resource\Api\ErrorResponse; use Mailgun\Model\ErrorResponse;
use Mailgun\Resource\Api\Domain\CreateCredentialResponse; use Mailgun\Model\Domain\CreateCredentialResponse;
use Mailgun\Resource\Api\Domain\DeleteCredentialResponse; use Mailgun\Model\Domain\DeleteCredentialResponse;
use Mailgun\Resource\Api\Domain\DeleteResponse; use Mailgun\Model\Domain\DeleteResponse;
use Mailgun\Resource\Api\Domain\Domain as DomainObject; use Mailgun\Model\Domain\Domain as DomainObject;
use Mailgun\Resource\Api\Domain\CredentialResponseItem; use Mailgun\Model\Domain\CredentialResponseItem;
use Mailgun\Resource\Api\Domain\CredentialResponse; use Mailgun\Model\Domain\CredentialResponse;
use Mailgun\Resource\Api\Domain\ConnectionResponse; use Mailgun\Model\Domain\ConnectionResponse;
use Mailgun\Resource\Api\Domain\UpdateConnectionResponse; use Mailgun\Model\Domain\UpdateConnectionResponse;
use Mailgun\Resource\Api\Domain\UpdateCredentialResponse; use Mailgun\Model\Domain\UpdateCredentialResponse;
use Mailgun\Tests\Api\TestCase; use Mailgun\Tests\Api\TestCase;
/** /**