diff --git a/src/Mailgun/Api/Domain.php b/src/Mailgun/Api/Domain.php index 6a69f9f..d145e3d 100644 --- a/src/Mailgun/Api/Domain.php +++ b/src/Mailgun/Api/Domain.php @@ -10,16 +10,16 @@ namespace Mailgun\Api; use Mailgun\Assert; -use Mailgun\Resource\Api\Domain\ConnectionResponse; -use Mailgun\Resource\Api\Domain\CreateCredentialResponse; -use Mailgun\Resource\Api\Domain\CreateResponse; -use Mailgun\Resource\Api\Domain\CredentialResponse; -use Mailgun\Resource\Api\Domain\DeleteCredentialResponse; -use Mailgun\Resource\Api\Domain\DeleteResponse; -use Mailgun\Resource\Api\Domain\IndexResponse; -use Mailgun\Resource\Api\Domain\ShowResponse; -use Mailgun\Resource\Api\Domain\UpdateConnectionResponse; -use Mailgun\Resource\Api\Domain\UpdateCredentialResponse; +use Mailgun\Model\Domain\ConnectionResponse; +use Mailgun\Model\Domain\CreateCredentialResponse; +use Mailgun\Model\Domain\CreateResponse; +use Mailgun\Model\Domain\CredentialResponse; +use Mailgun\Model\Domain\DeleteCredentialResponse; +use Mailgun\Model\Domain\DeleteResponse; +use Mailgun\Model\Domain\IndexResponse; +use Mailgun\Model\Domain\ShowResponse; +use Mailgun\Model\Domain\UpdateConnectionResponse; +use Mailgun\Model\Domain\UpdateCredentialResponse; use Psr\Http\Message\ResponseInterface; /** diff --git a/src/Mailgun/Api/Event.php b/src/Mailgun/Api/Event.php index 32add8a..da80265 100644 --- a/src/Mailgun/Api/Event.php +++ b/src/Mailgun/Api/Event.php @@ -10,7 +10,7 @@ namespace Mailgun\Api; use Mailgun\Assert; -use Mailgun\Resource\Api\Event\EventResponse; +use Mailgun\Model\Event\EventResponse; /** * {@link https://documentation.mailgun.com/api-events.html}. diff --git a/src/Mailgun/Api/HttpApi.php b/src/Mailgun/Api/HttpApi.php index c1f61b0..ce31090 100644 --- a/src/Mailgun/Api/HttpApi.php +++ b/src/Mailgun/Api/HttpApi.php @@ -15,7 +15,7 @@ use Mailgun\Deserializer\ResponseDeserializer; use Mailgun\Exception\HttpClientException; use Mailgun\Exception\HttpServerException; use Mailgun\RequestBuilder; -use Mailgun\Resource\Api\ErrorResponse; +use Mailgun\Model\ErrorResponse; use Psr\Http\Message\ResponseInterface; /** diff --git a/src/Mailgun/Api/Message.php b/src/Mailgun/Api/Message.php index b6910c4..d5b9c22 100644 --- a/src/Mailgun/Api/Message.php +++ b/src/Mailgun/Api/Message.php @@ -11,8 +11,8 @@ namespace Mailgun\Api; use Mailgun\Assert; use Mailgun\Exception\InvalidArgumentException; -use Mailgun\Resource\Api\Message\SendResponse; -use Mailgun\Resource\Api\Message\ShowResponse; +use Mailgun\Model\Message\SendResponse; +use Mailgun\Model\Message\ShowResponse; /** * @author Tobias Nyholm diff --git a/src/Mailgun/Api/Pagination.php b/src/Mailgun/Api/Pagination.php index e6672bb..a80b8c7 100644 --- a/src/Mailgun/Api/Pagination.php +++ b/src/Mailgun/Api/Pagination.php @@ -10,7 +10,7 @@ namespace Mailgun\Api; use Mailgun\Assert; -use Mailgun\Resource\Api\PagingProvider; +use Mailgun\Model\PagingProvider; use Psr\Http\Message\ResponseInterface; /** diff --git a/src/Mailgun/Api/Routes.php b/src/Mailgun/Api/Routes.php index 7ec79fa..9c52798 100644 --- a/src/Mailgun/Api/Routes.php +++ b/src/Mailgun/Api/Routes.php @@ -10,11 +10,11 @@ namespace Mailgun\Api; use Mailgun\Assert; -use Mailgun\Resource\Api\Routes\Response\CreateResponse; -use Mailgun\Resource\Api\Routes\Response\DeleteResponse; -use Mailgun\Resource\Api\Routes\Response\IndexResponse; -use Mailgun\Resource\Api\Routes\Response\ShowResponse; -use Mailgun\Resource\Api\Routes\Response\UpdateResponse; +use Mailgun\Model\Routes\Response\CreateResponse; +use Mailgun\Model\Routes\Response\DeleteResponse; +use Mailgun\Model\Routes\Response\IndexResponse; +use Mailgun\Model\Routes\Response\ShowResponse; +use Mailgun\Model\Routes\Response\UpdateResponse; /** * {@link https://documentation.mailgun.com/api-routes.html}. diff --git a/src/Mailgun/Api/Stats.php b/src/Mailgun/Api/Stats.php index c4e933c..c336007 100644 --- a/src/Mailgun/Api/Stats.php +++ b/src/Mailgun/Api/Stats.php @@ -10,8 +10,8 @@ namespace Mailgun\Api; use Mailgun\Assert; -use Mailgun\Resource\Api\Stats\AllResponse; -use Mailgun\Resource\Api\Stats\TotalResponse; +use Mailgun\Model\Stats\AllResponse; +use Mailgun\Model\Stats\TotalResponse; /** * {@link https://documentation.mailgun.com/api-stats.html}. diff --git a/src/Mailgun/Api/Suppressions/Bounce.php b/src/Mailgun/Api/Suppressions/Bounce.php index 1185720..205041b 100644 --- a/src/Mailgun/Api/Suppressions/Bounce.php +++ b/src/Mailgun/Api/Suppressions/Bounce.php @@ -10,10 +10,10 @@ namespace Mailgun\Api; use Mailgun\Assert; -use Mailgun\Resource\Api\Suppressions\Bounce\CreateResponse; -use Mailgun\Resource\Api\Suppressions\Bounce\DeleteResponse; -use Mailgun\Resource\Api\Suppressions\Bounce\IndexResponse; -use Mailgun\Resource\Api\Suppressions\Bounce\ShowResponse; +use Mailgun\Model\Suppressions\Bounce\CreateResponse; +use Mailgun\Model\Suppressions\Bounce\DeleteResponse; +use Mailgun\Model\Suppressions\Bounce\IndexResponse; +use Mailgun\Model\Suppressions\Bounce\ShowResponse; /** * @see https://documentation.mailgun.com/api-suppressions.html#bounces diff --git a/src/Mailgun/Api/Suppressions/Complaint.php b/src/Mailgun/Api/Suppressions/Complaint.php index 847a931..283cfad 100644 --- a/src/Mailgun/Api/Suppressions/Complaint.php +++ b/src/Mailgun/Api/Suppressions/Complaint.php @@ -10,10 +10,10 @@ namespace Mailgun\Api; use Mailgun\Assert; -use Mailgun\Resource\Api\Suppressions\Complaint\CreateResponse; -use Mailgun\Resource\Api\Suppressions\Complaint\DeleteResponse; -use Mailgun\Resource\Api\Suppressions\Complaint\IndexResponse; -use Mailgun\Resource\Api\Suppressions\Complaint\ShowResponse; +use Mailgun\Model\Suppressions\Complaint\CreateResponse; +use Mailgun\Model\Suppressions\Complaint\DeleteResponse; +use Mailgun\Model\Suppressions\Complaint\IndexResponse; +use Mailgun\Model\Suppressions\Complaint\ShowResponse; /** * @see https://documentation.mailgun.com/api-suppressions.html#complaints diff --git a/src/Mailgun/Api/Suppressions/Unsubscribe.php b/src/Mailgun/Api/Suppressions/Unsubscribe.php index 3b9c170..01775fc 100644 --- a/src/Mailgun/Api/Suppressions/Unsubscribe.php +++ b/src/Mailgun/Api/Suppressions/Unsubscribe.php @@ -10,10 +10,10 @@ namespace Mailgun\Api; use Mailgun\Assert; -use Mailgun\Resource\Api\Suppressions\Unsubscribe\CreateResponse; -use Mailgun\Resource\Api\Suppressions\Unsubscribe\DeleteResponse; -use Mailgun\Resource\Api\Suppressions\Unsubscribe\IndexResponse; -use Mailgun\Resource\Api\Suppressions\Unsubscribe\ShowResponse; +use Mailgun\Model\Suppressions\Unsubscribe\CreateResponse; +use Mailgun\Model\Suppressions\Unsubscribe\DeleteResponse; +use Mailgun\Model\Suppressions\Unsubscribe\IndexResponse; +use Mailgun\Model\Suppressions\Unsubscribe\ShowResponse; /** * @see https://documentation.mailgun.com/api-suppressions.html#unsubscribes diff --git a/src/Mailgun/Api/Tag.php b/src/Mailgun/Api/Tag.php index 8fe399a..984568e 100644 --- a/src/Mailgun/Api/Tag.php +++ b/src/Mailgun/Api/Tag.php @@ -10,11 +10,11 @@ namespace Mailgun\Api; use Mailgun\Assert; -use Mailgun\Resource\Api\Tag\DeleteResponse; -use Mailgun\Resource\Api\Tag\IndexResponse; -use Mailgun\Resource\Api\Tag\ShowResponse; -use Mailgun\Resource\Api\Tag\StatisticsResponse; -use Mailgun\Resource\Api\Tag\UpdateResponse; +use Mailgun\Model\Tag\DeleteResponse; +use Mailgun\Model\Tag\IndexResponse; +use Mailgun\Model\Tag\ShowResponse; +use Mailgun\Model\Tag\StatisticsResponse; +use Mailgun\Model\Tag\UpdateResponse; use Psr\Http\Message\ResponseInterface; /** diff --git a/src/Mailgun/Api/Webhook.php b/src/Mailgun/Api/Webhook.php index 7e1ad09..41545c4 100644 --- a/src/Mailgun/Api/Webhook.php +++ b/src/Mailgun/Api/Webhook.php @@ -10,11 +10,11 @@ namespace Mailgun\Api; use Mailgun\Assert; -use Mailgun\Resource\Api\Webhook\CreateResponse; -use Mailgun\Resource\Api\Webhook\DeleteResponse; -use Mailgun\Resource\Api\Webhook\IndexResponse; -use Mailgun\Resource\Api\Webhook\ShowResponse; -use Mailgun\Resource\Api\Webhook\UpdateResponse; +use Mailgun\Model\Webhook\CreateResponse; +use Mailgun\Model\Webhook\DeleteResponse; +use Mailgun\Model\Webhook\IndexResponse; +use Mailgun\Model\Webhook\ShowResponse; +use Mailgun\Model\Webhook\UpdateResponse; /** * @author Tobias Nyholm diff --git a/src/Mailgun/Deserializer/ModelDeserializer.php b/src/Mailgun/Deserializer/ModelDeserializer.php index a10a906..82b2d34 100644 --- a/src/Mailgun/Deserializer/ModelDeserializer.php +++ b/src/Mailgun/Deserializer/ModelDeserializer.php @@ -10,7 +10,7 @@ namespace Mailgun\Deserializer; use Mailgun\Exception\DeserializeException; -use Mailgun\Resource\ApiResponse; +use Mailgun\Model\ApiResponse; use Psr\Http\Message\ResponseInterface; /** diff --git a/src/Mailgun/Resource/ApiResponse.php b/src/Mailgun/Model/ApiResponse.php similarity index 94% rename from src/Mailgun/Resource/ApiResponse.php rename to src/Mailgun/Model/ApiResponse.php index 1a23dc2..b176214 100644 --- a/src/Mailgun/Resource/ApiResponse.php +++ b/src/Mailgun/Model/ApiResponse.php @@ -7,7 +7,7 @@ * of the MIT license. See the LICENSE file for details. */ -namespace Mailgun\Resource; +namespace Mailgun\Model; /** * @author Tobias Nyholm diff --git a/src/Mailgun/Resource/Api/Domain/ConnectionResponse.php b/src/Mailgun/Model/Domain/ConnectionResponse.php similarity index 95% rename from src/Mailgun/Resource/Api/Domain/ConnectionResponse.php rename to src/Mailgun/Model/Domain/ConnectionResponse.php index cab23c6..a145d73 100644 --- a/src/Mailgun/Resource/Api/Domain/ConnectionResponse.php +++ b/src/Mailgun/Model/Domain/ConnectionResponse.php @@ -7,9 +7,9 @@ * 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 diff --git a/src/Mailgun/Resource/Api/Domain/CreateCredentialResponse.php b/src/Mailgun/Model/Domain/CreateCredentialResponse.php similarity index 91% rename from src/Mailgun/Resource/Api/Domain/CreateCredentialResponse.php rename to src/Mailgun/Model/Domain/CreateCredentialResponse.php index c6fd240..1e6afe6 100644 --- a/src/Mailgun/Resource/Api/Domain/CreateCredentialResponse.php +++ b/src/Mailgun/Model/Domain/CreateCredentialResponse.php @@ -7,9 +7,9 @@ * 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 diff --git a/src/Mailgun/Resource/Api/Domain/CreateResponse.php b/src/Mailgun/Model/Domain/CreateResponse.php similarity index 96% rename from src/Mailgun/Resource/Api/Domain/CreateResponse.php rename to src/Mailgun/Model/Domain/CreateResponse.php index 1df480a..7fa1f4d 100644 --- a/src/Mailgun/Resource/Api/Domain/CreateResponse.php +++ b/src/Mailgun/Model/Domain/CreateResponse.php @@ -7,9 +7,9 @@ * 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 diff --git a/src/Mailgun/Resource/Api/Domain/CredentialResponse.php b/src/Mailgun/Model/Domain/CredentialResponse.php similarity index 95% rename from src/Mailgun/Resource/Api/Domain/CredentialResponse.php rename to src/Mailgun/Model/Domain/CredentialResponse.php index 853e39e..5706572 100644 --- a/src/Mailgun/Resource/Api/Domain/CredentialResponse.php +++ b/src/Mailgun/Model/Domain/CredentialResponse.php @@ -7,9 +7,9 @@ * 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 diff --git a/src/Mailgun/Resource/Api/Domain/CredentialResponseItem.php b/src/Mailgun/Model/Domain/CredentialResponseItem.php similarity index 97% rename from src/Mailgun/Resource/Api/Domain/CredentialResponseItem.php rename to src/Mailgun/Model/Domain/CredentialResponseItem.php index 58f3908..c19a85a 100644 --- a/src/Mailgun/Resource/Api/Domain/CredentialResponseItem.php +++ b/src/Mailgun/Model/Domain/CredentialResponseItem.php @@ -7,7 +7,7 @@ * of the MIT license. See the LICENSE file for details. */ -namespace Mailgun\Resource\Api\Domain; +namespace Mailgun\Model\Domain; /** * @author Sean Johnson diff --git a/src/Mailgun/Resource/Api/Domain/DeleteCredentialResponse.php b/src/Mailgun/Model/Domain/DeleteCredentialResponse.php similarity index 95% rename from src/Mailgun/Resource/Api/Domain/DeleteCredentialResponse.php rename to src/Mailgun/Model/Domain/DeleteCredentialResponse.php index 91723b0..2cd8625 100644 --- a/src/Mailgun/Resource/Api/Domain/DeleteCredentialResponse.php +++ b/src/Mailgun/Model/Domain/DeleteCredentialResponse.php @@ -7,9 +7,9 @@ * 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 diff --git a/src/Mailgun/Resource/Api/Domain/DeleteResponse.php b/src/Mailgun/Model/Domain/DeleteResponse.php similarity index 93% rename from src/Mailgun/Resource/Api/Domain/DeleteResponse.php rename to src/Mailgun/Model/Domain/DeleteResponse.php index 391c90d..e48fc61 100644 --- a/src/Mailgun/Resource/Api/Domain/DeleteResponse.php +++ b/src/Mailgun/Model/Domain/DeleteResponse.php @@ -7,9 +7,9 @@ * 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 diff --git a/src/Mailgun/Resource/Api/Domain/DnsRecord.php b/src/Mailgun/Model/Domain/DnsRecord.php similarity index 98% rename from src/Mailgun/Resource/Api/Domain/DnsRecord.php rename to src/Mailgun/Model/Domain/DnsRecord.php index b4324bb..6d90f7a 100644 --- a/src/Mailgun/Resource/Api/Domain/DnsRecord.php +++ b/src/Mailgun/Model/Domain/DnsRecord.php @@ -7,7 +7,7 @@ * 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. diff --git a/src/Mailgun/Resource/Api/Domain/Domain.php b/src/Mailgun/Model/Domain/Domain.php similarity index 98% rename from src/Mailgun/Resource/Api/Domain/Domain.php rename to src/Mailgun/Model/Domain/Domain.php index d696e75..2182b39 100644 --- a/src/Mailgun/Resource/Api/Domain/Domain.php +++ b/src/Mailgun/Model/Domain/Domain.php @@ -7,7 +7,7 @@ * 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. diff --git a/src/Mailgun/Resource/Api/Domain/IndexResponse.php b/src/Mailgun/Model/Domain/IndexResponse.php similarity index 94% rename from src/Mailgun/Resource/Api/Domain/IndexResponse.php rename to src/Mailgun/Model/Domain/IndexResponse.php index d2f6997..abd2cdc 100644 --- a/src/Mailgun/Resource/Api/Domain/IndexResponse.php +++ b/src/Mailgun/Model/Domain/IndexResponse.php @@ -7,9 +7,9 @@ * 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 diff --git a/src/Mailgun/Resource/Api/Domain/ShowResponse.php b/src/Mailgun/Model/Domain/ShowResponse.php similarity index 96% rename from src/Mailgun/Resource/Api/Domain/ShowResponse.php rename to src/Mailgun/Model/Domain/ShowResponse.php index b74dbf3..52e5c98 100644 --- a/src/Mailgun/Resource/Api/Domain/ShowResponse.php +++ b/src/Mailgun/Model/Domain/ShowResponse.php @@ -7,9 +7,9 @@ * 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 diff --git a/src/Mailgun/Resource/Api/Domain/UpdateConnectionResponse.php b/src/Mailgun/Model/Domain/UpdateConnectionResponse.php similarity index 95% rename from src/Mailgun/Resource/Api/Domain/UpdateConnectionResponse.php rename to src/Mailgun/Model/Domain/UpdateConnectionResponse.php index 55b9710..49f4fc6 100644 --- a/src/Mailgun/Resource/Api/Domain/UpdateConnectionResponse.php +++ b/src/Mailgun/Model/Domain/UpdateConnectionResponse.php @@ -7,9 +7,9 @@ * 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 diff --git a/src/Mailgun/Resource/Api/Domain/UpdateCredentialResponse.php b/src/Mailgun/Model/Domain/UpdateCredentialResponse.php similarity index 91% rename from src/Mailgun/Resource/Api/Domain/UpdateCredentialResponse.php rename to src/Mailgun/Model/Domain/UpdateCredentialResponse.php index 297882f..8053a1b 100644 --- a/src/Mailgun/Resource/Api/Domain/UpdateCredentialResponse.php +++ b/src/Mailgun/Model/Domain/UpdateCredentialResponse.php @@ -7,9 +7,9 @@ * 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 diff --git a/src/Mailgun/Resource/Api/ErrorResponse.php b/src/Mailgun/Model/ErrorResponse.php similarity index 93% rename from src/Mailgun/Resource/Api/ErrorResponse.php rename to src/Mailgun/Model/ErrorResponse.php index 301cacb..1373bfd 100644 --- a/src/Mailgun/Resource/Api/ErrorResponse.php +++ b/src/Mailgun/Model/ErrorResponse.php @@ -7,9 +7,7 @@ * of the MIT license. See the LICENSE file for details. */ -namespace Mailgun\Resource\Api; - -use Mailgun\Resource\ApiResponse; +namespace Mailgun\Model; final class ErrorResponse implements ApiResponse { diff --git a/src/Mailgun/Resource/Api/Event/Event.php b/src/Mailgun/Model/Event/Event.php similarity index 99% rename from src/Mailgun/Resource/Api/Event/Event.php rename to src/Mailgun/Model/Event/Event.php index badb123..71fcdcd 100644 --- a/src/Mailgun/Resource/Api/Event/Event.php +++ b/src/Mailgun/Model/Event/Event.php @@ -7,7 +7,7 @@ * of the MIT license. See the LICENSE file for details. */ -namespace Mailgun\Resource\Api\Event; +namespace Mailgun\Model\Event; /** * @author Tobias Nyholm diff --git a/src/Mailgun/Resource/Api/Event/EventResponse.php b/src/Mailgun/Model/Event/EventResponse.php similarity index 86% rename from src/Mailgun/Resource/Api/Event/EventResponse.php rename to src/Mailgun/Model/Event/EventResponse.php index 43053a1..6cb9d5b 100644 --- a/src/Mailgun/Resource/Api/Event/EventResponse.php +++ b/src/Mailgun/Model/Event/EventResponse.php @@ -7,11 +7,11 @@ * 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\Resource\Api\PaginationResponse; -use Mailgun\Resource\ApiResponse; +use Mailgun\Model\PagingProvider; +use Mailgun\Model\PaginationResponse; +use Mailgun\Model\ApiResponse; /** * @author Tobias Nyholm diff --git a/src/Mailgun/Resource/Api/Message/SendResponse.php b/src/Mailgun/Model/Message/SendResponse.php similarity index 94% rename from src/Mailgun/Resource/Api/Message/SendResponse.php rename to src/Mailgun/Model/Message/SendResponse.php index 3f2a702..2295804 100644 --- a/src/Mailgun/Resource/Api/Message/SendResponse.php +++ b/src/Mailgun/Model/Message/SendResponse.php @@ -7,9 +7,9 @@ * 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 diff --git a/src/Mailgun/Resource/Api/Message/ShowResponse.php b/src/Mailgun/Model/Message/ShowResponse.php similarity index 98% rename from src/Mailgun/Resource/Api/Message/ShowResponse.php rename to src/Mailgun/Model/Message/ShowResponse.php index 0ce4a5e..49bb06f 100644 --- a/src/Mailgun/Resource/Api/Message/ShowResponse.php +++ b/src/Mailgun/Model/Message/ShowResponse.php @@ -7,9 +7,9 @@ * 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 diff --git a/src/Mailgun/Resource/Api/PaginationResponse.php b/src/Mailgun/Model/PaginationResponse.php similarity index 97% rename from src/Mailgun/Resource/Api/PaginationResponse.php rename to src/Mailgun/Model/PaginationResponse.php index 813e9db..3d2895f 100644 --- a/src/Mailgun/Resource/Api/PaginationResponse.php +++ b/src/Mailgun/Model/PaginationResponse.php @@ -7,7 +7,7 @@ * of the MIT license. See the LICENSE file for details. */ -namespace Mailgun\Resource\Api; +namespace Mailgun\Model; /** * @author Tobias Nyholm diff --git a/src/Mailgun/Resource/Api/PagingProvider.php b/src/Mailgun/Model/PagingProvider.php similarity index 95% rename from src/Mailgun/Resource/Api/PagingProvider.php rename to src/Mailgun/Model/PagingProvider.php index fe85cfd..560a74d 100644 --- a/src/Mailgun/Resource/Api/PagingProvider.php +++ b/src/Mailgun/Model/PagingProvider.php @@ -7,7 +7,7 @@ * of the MIT license. See the LICENSE file for details. */ -namespace Mailgun\Resource\Api; +namespace Mailgun\Model; /** * @author Sean Johnson diff --git a/src/Mailgun/Resource/Api/Routes/Action.php b/src/Mailgun/Model/Routes/Action.php similarity index 96% rename from src/Mailgun/Resource/Api/Routes/Action.php rename to src/Mailgun/Model/Routes/Action.php index 92ac073..6e6f754 100644 --- a/src/Mailgun/Resource/Api/Routes/Action.php +++ b/src/Mailgun/Model/Routes/Action.php @@ -7,7 +7,7 @@ * of the MIT license. See the LICENSE file for details. */ -namespace Mailgun\Resource\Api\Routes; +namespace Mailgun\Model\Routes; /** * @author David Garcia diff --git a/src/Mailgun/Resource/Api/Routes/Response/CreateResponse.php b/src/Mailgun/Model/Routes/Response/CreateResponse.php similarity index 90% rename from src/Mailgun/Resource/Api/Routes/Response/CreateResponse.php rename to src/Mailgun/Model/Routes/Response/CreateResponse.php index 4c8212d..30c8989 100644 --- a/src/Mailgun/Resource/Api/Routes/Response/CreateResponse.php +++ b/src/Mailgun/Model/Routes/Response/CreateResponse.php @@ -7,10 +7,10 @@ * 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\Resource\ApiResponse; +use Mailgun\Model\Routes\Route; +use Mailgun\Model\ApiResponse; /** * @author David Garcia diff --git a/src/Mailgun/Resource/Api/Routes/Response/DeleteResponse.php b/src/Mailgun/Model/Routes/Response/DeleteResponse.php similarity index 93% rename from src/Mailgun/Resource/Api/Routes/Response/DeleteResponse.php rename to src/Mailgun/Model/Routes/Response/DeleteResponse.php index fb806ff..6351a66 100644 --- a/src/Mailgun/Resource/Api/Routes/Response/DeleteResponse.php +++ b/src/Mailgun/Model/Routes/Response/DeleteResponse.php @@ -7,9 +7,9 @@ * 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 diff --git a/src/Mailgun/Resource/Api/Routes/Response/IndexResponse.php b/src/Mailgun/Model/Routes/Response/IndexResponse.php similarity index 91% rename from src/Mailgun/Resource/Api/Routes/Response/IndexResponse.php rename to src/Mailgun/Model/Routes/Response/IndexResponse.php index 9ae92f7..87be148 100644 --- a/src/Mailgun/Resource/Api/Routes/Response/IndexResponse.php +++ b/src/Mailgun/Model/Routes/Response/IndexResponse.php @@ -7,10 +7,10 @@ * 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\Resource\ApiResponse; +use Mailgun\Model\Routes\Route; +use Mailgun\Model\ApiResponse; /** * @author David Garcia diff --git a/src/Mailgun/Resource/Api/Routes/Response/ShowResponse.php b/src/Mailgun/Model/Routes/Response/ShowResponse.php similarity index 87% rename from src/Mailgun/Resource/Api/Routes/Response/ShowResponse.php rename to src/Mailgun/Model/Routes/Response/ShowResponse.php index 4110252..379ea07 100644 --- a/src/Mailgun/Resource/Api/Routes/Response/ShowResponse.php +++ b/src/Mailgun/Model/Routes/Response/ShowResponse.php @@ -7,10 +7,10 @@ * 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\Resource\ApiResponse; +use Mailgun\Model\Routes\Route; +use Mailgun\Model\ApiResponse; /** * @author David Garcia diff --git a/src/Mailgun/Resource/Api/Routes/Response/UpdateResponse.php b/src/Mailgun/Model/Routes/Response/UpdateResponse.php similarity index 90% rename from src/Mailgun/Resource/Api/Routes/Response/UpdateResponse.php rename to src/Mailgun/Model/Routes/Response/UpdateResponse.php index 39f7506..27a969b 100644 --- a/src/Mailgun/Resource/Api/Routes/Response/UpdateResponse.php +++ b/src/Mailgun/Model/Routes/Response/UpdateResponse.php @@ -7,9 +7,9 @@ * 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 diff --git a/src/Mailgun/Resource/Api/Routes/Route.php b/src/Mailgun/Model/Routes/Route.php similarity index 98% rename from src/Mailgun/Resource/Api/Routes/Route.php rename to src/Mailgun/Model/Routes/Route.php index 6f181de..e442ac9 100644 --- a/src/Mailgun/Resource/Api/Routes/Route.php +++ b/src/Mailgun/Model/Routes/Route.php @@ -7,7 +7,7 @@ * of the MIT license. See the LICENSE file for details. */ -namespace Mailgun\Resource\Api\Routes; +namespace Mailgun\Model\Routes; /** * @author David Garcia diff --git a/src/Mailgun/Resource/Api/Stats/AllResponse.php b/src/Mailgun/Model/Stats/AllResponse.php similarity index 95% rename from src/Mailgun/Resource/Api/Stats/AllResponse.php rename to src/Mailgun/Model/Stats/AllResponse.php index 7549229..215f074 100644 --- a/src/Mailgun/Resource/Api/Stats/AllResponse.php +++ b/src/Mailgun/Model/Stats/AllResponse.php @@ -7,9 +7,9 @@ * 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 diff --git a/src/Mailgun/Resource/Api/Stats/AllResponseItem.php b/src/Mailgun/Model/Stats/AllResponseItem.php similarity index 98% rename from src/Mailgun/Resource/Api/Stats/AllResponseItem.php rename to src/Mailgun/Model/Stats/AllResponseItem.php index 8233f4c..d5d6dc4 100644 --- a/src/Mailgun/Resource/Api/Stats/AllResponseItem.php +++ b/src/Mailgun/Model/Stats/AllResponseItem.php @@ -7,7 +7,7 @@ * of the MIT license. See the LICENSE file for details. */ -namespace Mailgun\Resource\Api\Stats; +namespace Mailgun\Model\Stats; /** * @author Tobias Nyholm diff --git a/src/Mailgun/Resource/Api/Stats/TotalResponse.php b/src/Mailgun/Model/Stats/TotalResponse.php similarity index 96% rename from src/Mailgun/Resource/Api/Stats/TotalResponse.php rename to src/Mailgun/Model/Stats/TotalResponse.php index 63d355c..3d4caff 100644 --- a/src/Mailgun/Resource/Api/Stats/TotalResponse.php +++ b/src/Mailgun/Model/Stats/TotalResponse.php @@ -7,9 +7,9 @@ * 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 diff --git a/src/Mailgun/Resource/Api/Stats/TotalResponseItem.php b/src/Mailgun/Model/Stats/TotalResponseItem.php similarity index 97% rename from src/Mailgun/Resource/Api/Stats/TotalResponseItem.php rename to src/Mailgun/Model/Stats/TotalResponseItem.php index c925803..785d7d8 100644 --- a/src/Mailgun/Resource/Api/Stats/TotalResponseItem.php +++ b/src/Mailgun/Model/Stats/TotalResponseItem.php @@ -7,7 +7,7 @@ * of the MIT license. See the LICENSE file for details. */ -namespace Mailgun\Resource\Api\Stats; +namespace Mailgun\Model\Stats; /** * @author Tobias Nyholm diff --git a/src/Mailgun/Resource/Api/Suppressions/BaseResponse.php b/src/Mailgun/Model/Suppressions/BaseResponse.php similarity index 93% rename from src/Mailgun/Resource/Api/Suppressions/BaseResponse.php rename to src/Mailgun/Model/Suppressions/BaseResponse.php index cede881..7902932 100644 --- a/src/Mailgun/Resource/Api/Suppressions/BaseResponse.php +++ b/src/Mailgun/Model/Suppressions/BaseResponse.php @@ -7,9 +7,9 @@ * 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. diff --git a/src/Mailgun/Resource/Api/Suppressions/Bounce/CreateResponse.php b/src/Mailgun/Model/Suppressions/Bounce/CreateResponse.php similarity index 72% rename from src/Mailgun/Resource/Api/Suppressions/Bounce/CreateResponse.php rename to src/Mailgun/Model/Suppressions/Bounce/CreateResponse.php index d921c3d..4b80b3b 100644 --- a/src/Mailgun/Resource/Api/Suppressions/Bounce/CreateResponse.php +++ b/src/Mailgun/Model/Suppressions/Bounce/CreateResponse.php @@ -7,9 +7,9 @@ * 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 diff --git a/src/Mailgun/Resource/Api/Suppressions/Bounce/DeleteResponse.php b/src/Mailgun/Model/Suppressions/Bounce/DeleteResponse.php similarity index 73% rename from src/Mailgun/Resource/Api/Suppressions/Bounce/DeleteResponse.php rename to src/Mailgun/Model/Suppressions/Bounce/DeleteResponse.php index 85fa2a4..df93cab 100644 --- a/src/Mailgun/Resource/Api/Suppressions/Bounce/DeleteResponse.php +++ b/src/Mailgun/Model/Suppressions/Bounce/DeleteResponse.php @@ -7,9 +7,9 @@ * 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 diff --git a/src/Mailgun/Resource/Api/Suppressions/Bounce/IndexResponse.php b/src/Mailgun/Model/Suppressions/Bounce/IndexResponse.php similarity index 86% rename from src/Mailgun/Resource/Api/Suppressions/Bounce/IndexResponse.php rename to src/Mailgun/Model/Suppressions/Bounce/IndexResponse.php index 2c8470b..9c8f65c 100644 --- a/src/Mailgun/Resource/Api/Suppressions/Bounce/IndexResponse.php +++ b/src/Mailgun/Model/Suppressions/Bounce/IndexResponse.php @@ -7,11 +7,11 @@ * 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\Resource\Api\PaginationResponse; -use Mailgun\Resource\Api\PagingProvider; +use Mailgun\Model\ApiResponse; +use Mailgun\Model\PaginationResponse; +use Mailgun\Model\PagingProvider; /** * @author Sean Johnson diff --git a/src/Mailgun/Resource/Api/Suppressions/Bounce/ShowResponse.php b/src/Mailgun/Model/Suppressions/Bounce/ShowResponse.php similarity index 96% rename from src/Mailgun/Resource/Api/Suppressions/Bounce/ShowResponse.php rename to src/Mailgun/Model/Suppressions/Bounce/ShowResponse.php index 3e08e65..6f57865 100644 --- a/src/Mailgun/Resource/Api/Suppressions/Bounce/ShowResponse.php +++ b/src/Mailgun/Model/Suppressions/Bounce/ShowResponse.php @@ -7,9 +7,9 @@ * 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 diff --git a/src/Mailgun/Resource/Api/Suppressions/Complaint/CreateResponse.php b/src/Mailgun/Model/Suppressions/Complaint/CreateResponse.php similarity index 72% rename from src/Mailgun/Resource/Api/Suppressions/Complaint/CreateResponse.php rename to src/Mailgun/Model/Suppressions/Complaint/CreateResponse.php index d685626..d390638 100644 --- a/src/Mailgun/Resource/Api/Suppressions/Complaint/CreateResponse.php +++ b/src/Mailgun/Model/Suppressions/Complaint/CreateResponse.php @@ -7,9 +7,9 @@ * 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 diff --git a/src/Mailgun/Resource/Api/Suppressions/Complaint/DeleteResponse.php b/src/Mailgun/Model/Suppressions/Complaint/DeleteResponse.php similarity index 72% rename from src/Mailgun/Resource/Api/Suppressions/Complaint/DeleteResponse.php rename to src/Mailgun/Model/Suppressions/Complaint/DeleteResponse.php index 0834df3..eb950fe 100644 --- a/src/Mailgun/Resource/Api/Suppressions/Complaint/DeleteResponse.php +++ b/src/Mailgun/Model/Suppressions/Complaint/DeleteResponse.php @@ -7,9 +7,9 @@ * 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 diff --git a/src/Mailgun/Resource/Api/Suppressions/Complaint/IndexResponse.php b/src/Mailgun/Model/Suppressions/Complaint/IndexResponse.php similarity index 86% rename from src/Mailgun/Resource/Api/Suppressions/Complaint/IndexResponse.php rename to src/Mailgun/Model/Suppressions/Complaint/IndexResponse.php index 4afe1ef..39ec88c 100644 --- a/src/Mailgun/Resource/Api/Suppressions/Complaint/IndexResponse.php +++ b/src/Mailgun/Model/Suppressions/Complaint/IndexResponse.php @@ -7,11 +7,11 @@ * 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\Resource\Api\PaginationResponse; -use Mailgun\Resource\Api\PagingProvider; +use Mailgun\Model\ApiResponse; +use Mailgun\Model\PaginationResponse; +use Mailgun\Model\PagingProvider; /** * @author Sean Johnson diff --git a/src/Mailgun/Resource/Api/Suppressions/Complaint/ShowResponse.php b/src/Mailgun/Model/Suppressions/Complaint/ShowResponse.php similarity index 93% rename from src/Mailgun/Resource/Api/Suppressions/Complaint/ShowResponse.php rename to src/Mailgun/Model/Suppressions/Complaint/ShowResponse.php index 37a7b5c..291c133 100644 --- a/src/Mailgun/Resource/Api/Suppressions/Complaint/ShowResponse.php +++ b/src/Mailgun/Model/Suppressions/Complaint/ShowResponse.php @@ -7,9 +7,9 @@ * 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 diff --git a/src/Mailgun/Resource/Api/Suppressions/Unsubscribe/CreateResponse.php b/src/Mailgun/Model/Suppressions/Unsubscribe/CreateResponse.php similarity index 71% rename from src/Mailgun/Resource/Api/Suppressions/Unsubscribe/CreateResponse.php rename to src/Mailgun/Model/Suppressions/Unsubscribe/CreateResponse.php index 04e63d0..05c6438 100644 --- a/src/Mailgun/Resource/Api/Suppressions/Unsubscribe/CreateResponse.php +++ b/src/Mailgun/Model/Suppressions/Unsubscribe/CreateResponse.php @@ -7,9 +7,9 @@ * 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 diff --git a/src/Mailgun/Resource/Api/Suppressions/Unsubscribe/DeleteResponse.php b/src/Mailgun/Model/Suppressions/Unsubscribe/DeleteResponse.php similarity index 71% rename from src/Mailgun/Resource/Api/Suppressions/Unsubscribe/DeleteResponse.php rename to src/Mailgun/Model/Suppressions/Unsubscribe/DeleteResponse.php index 401de2b..76b0e65 100644 --- a/src/Mailgun/Resource/Api/Suppressions/Unsubscribe/DeleteResponse.php +++ b/src/Mailgun/Model/Suppressions/Unsubscribe/DeleteResponse.php @@ -7,9 +7,9 @@ * 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 diff --git a/src/Mailgun/Resource/Api/Suppressions/Unsubscribe/IndexResponse.php b/src/Mailgun/Model/Suppressions/Unsubscribe/IndexResponse.php similarity index 86% rename from src/Mailgun/Resource/Api/Suppressions/Unsubscribe/IndexResponse.php rename to src/Mailgun/Model/Suppressions/Unsubscribe/IndexResponse.php index bd8d5c1..aeccd7e 100644 --- a/src/Mailgun/Resource/Api/Suppressions/Unsubscribe/IndexResponse.php +++ b/src/Mailgun/Model/Suppressions/Unsubscribe/IndexResponse.php @@ -7,11 +7,11 @@ * 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\Resource\Api\PaginationResponse; -use Mailgun\Resource\Api\PagingProvider; +use Mailgun\Model\ApiResponse; +use Mailgun\Model\PaginationResponse; +use Mailgun\Model\PagingProvider; /** * @author Sean Johnson diff --git a/src/Mailgun/Resource/Api/Suppressions/Unsubscribe/ShowResponse.php b/src/Mailgun/Model/Suppressions/Unsubscribe/ShowResponse.php similarity index 94% rename from src/Mailgun/Resource/Api/Suppressions/Unsubscribe/ShowResponse.php rename to src/Mailgun/Model/Suppressions/Unsubscribe/ShowResponse.php index 4d29a19..3073667 100644 --- a/src/Mailgun/Resource/Api/Suppressions/Unsubscribe/ShowResponse.php +++ b/src/Mailgun/Model/Suppressions/Unsubscribe/ShowResponse.php @@ -7,9 +7,9 @@ * 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 diff --git a/src/Mailgun/Resource/Api/Tag/DeleteResponse.php b/src/Mailgun/Model/Tag/DeleteResponse.php similarity index 91% rename from src/Mailgun/Resource/Api/Tag/DeleteResponse.php rename to src/Mailgun/Model/Tag/DeleteResponse.php index 1c5d051..84f7a23 100644 --- a/src/Mailgun/Resource/Api/Tag/DeleteResponse.php +++ b/src/Mailgun/Model/Tag/DeleteResponse.php @@ -7,9 +7,9 @@ * 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 diff --git a/src/Mailgun/Resource/Api/Tag/IndexResponse.php b/src/Mailgun/Model/Tag/IndexResponse.php similarity index 86% rename from src/Mailgun/Resource/Api/Tag/IndexResponse.php rename to src/Mailgun/Model/Tag/IndexResponse.php index bc23d59..feec846 100644 --- a/src/Mailgun/Resource/Api/Tag/IndexResponse.php +++ b/src/Mailgun/Model/Tag/IndexResponse.php @@ -7,11 +7,11 @@ * 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\Resource\Api\PagingProvider; -use Mailgun\Resource\ApiResponse; +use Mailgun\Model\PaginationResponse; +use Mailgun\Model\PagingProvider; +use Mailgun\Model\ApiResponse; /** * @author Tobias Nyholm diff --git a/src/Mailgun/Resource/Api/Tag/ShowResponse.php b/src/Mailgun/Model/Tag/ShowResponse.php similarity index 81% rename from src/Mailgun/Resource/Api/Tag/ShowResponse.php rename to src/Mailgun/Model/Tag/ShowResponse.php index ce595d7..1c1d8e3 100644 --- a/src/Mailgun/Resource/Api/Tag/ShowResponse.php +++ b/src/Mailgun/Model/Tag/ShowResponse.php @@ -7,9 +7,9 @@ * 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 diff --git a/src/Mailgun/Resource/Api/Tag/StatisticsResponse.php b/src/Mailgun/Model/Tag/StatisticsResponse.php similarity index 96% rename from src/Mailgun/Resource/Api/Tag/StatisticsResponse.php rename to src/Mailgun/Model/Tag/StatisticsResponse.php index b62e1a0..1716a6f 100644 --- a/src/Mailgun/Resource/Api/Tag/StatisticsResponse.php +++ b/src/Mailgun/Model/Tag/StatisticsResponse.php @@ -7,9 +7,9 @@ * 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 diff --git a/src/Mailgun/Resource/Api/Tag/Tag.php b/src/Mailgun/Model/Tag/Tag.php similarity index 97% rename from src/Mailgun/Resource/Api/Tag/Tag.php rename to src/Mailgun/Model/Tag/Tag.php index 5539658..dabd6a7 100644 --- a/src/Mailgun/Resource/Api/Tag/Tag.php +++ b/src/Mailgun/Model/Tag/Tag.php @@ -7,7 +7,7 @@ * of the MIT license. See the LICENSE file for details. */ -namespace Mailgun\Resource\Api\Tag; +namespace Mailgun\Model\Tag; class Tag { diff --git a/src/Mailgun/Resource/Api/Tag/UpdateResponse.php b/src/Mailgun/Model/Tag/UpdateResponse.php similarity index 91% rename from src/Mailgun/Resource/Api/Tag/UpdateResponse.php rename to src/Mailgun/Model/Tag/UpdateResponse.php index c98f8ba..4f4d2bd 100644 --- a/src/Mailgun/Resource/Api/Tag/UpdateResponse.php +++ b/src/Mailgun/Model/Tag/UpdateResponse.php @@ -7,9 +7,9 @@ * 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 diff --git a/src/Mailgun/Resource/Api/Webhook/BaseResponse.php b/src/Mailgun/Model/Webhook/BaseResponse.php similarity index 94% rename from src/Mailgun/Resource/Api/Webhook/BaseResponse.php rename to src/Mailgun/Model/Webhook/BaseResponse.php index f13e628..6cd0fe6 100644 --- a/src/Mailgun/Resource/Api/Webhook/BaseResponse.php +++ b/src/Mailgun/Model/Webhook/BaseResponse.php @@ -7,9 +7,9 @@ * 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. diff --git a/src/Mailgun/Resource/Api/Webhook/CreateResponse.php b/src/Mailgun/Model/Webhook/CreateResponse.php similarity index 87% rename from src/Mailgun/Resource/Api/Webhook/CreateResponse.php rename to src/Mailgun/Model/Webhook/CreateResponse.php index f389740..43d93c0 100644 --- a/src/Mailgun/Resource/Api/Webhook/CreateResponse.php +++ b/src/Mailgun/Model/Webhook/CreateResponse.php @@ -7,7 +7,7 @@ * of the MIT license. See the LICENSE file for details. */ -namespace Mailgun\Resource\Api\Webhook; +namespace Mailgun\Model\Webhook; /** * @author Tobias Nyholm diff --git a/src/Mailgun/Resource/Api/Webhook/DeleteResponse.php b/src/Mailgun/Model/Webhook/DeleteResponse.php similarity index 87% rename from src/Mailgun/Resource/Api/Webhook/DeleteResponse.php rename to src/Mailgun/Model/Webhook/DeleteResponse.php index 4bcc414..8f0c094 100644 --- a/src/Mailgun/Resource/Api/Webhook/DeleteResponse.php +++ b/src/Mailgun/Model/Webhook/DeleteResponse.php @@ -7,7 +7,7 @@ * of the MIT license. See the LICENSE file for details. */ -namespace Mailgun\Resource\Api\Webhook; +namespace Mailgun\Model\Webhook; /** * @author Tobias Nyholm diff --git a/src/Mailgun/Resource/Api/Webhook/IndexResponse.php b/src/Mailgun/Model/Webhook/IndexResponse.php similarity index 98% rename from src/Mailgun/Resource/Api/Webhook/IndexResponse.php rename to src/Mailgun/Model/Webhook/IndexResponse.php index 05c4460..6ed276c 100644 --- a/src/Mailgun/Resource/Api/Webhook/IndexResponse.php +++ b/src/Mailgun/Model/Webhook/IndexResponse.php @@ -7,9 +7,9 @@ * 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 diff --git a/src/Mailgun/Resource/Api/Webhook/ShowResponse.php b/src/Mailgun/Model/Webhook/ShowResponse.php similarity index 92% rename from src/Mailgun/Resource/Api/Webhook/ShowResponse.php rename to src/Mailgun/Model/Webhook/ShowResponse.php index bbd22ee..10a64c1 100644 --- a/src/Mailgun/Resource/Api/Webhook/ShowResponse.php +++ b/src/Mailgun/Model/Webhook/ShowResponse.php @@ -7,9 +7,9 @@ * 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 diff --git a/src/Mailgun/Resource/Api/Webhook/UpdateResponse.php b/src/Mailgun/Model/Webhook/UpdateResponse.php similarity index 87% rename from src/Mailgun/Resource/Api/Webhook/UpdateResponse.php rename to src/Mailgun/Model/Webhook/UpdateResponse.php index 207267f..7ab0c3f 100644 --- a/src/Mailgun/Resource/Api/Webhook/UpdateResponse.php +++ b/src/Mailgun/Model/Webhook/UpdateResponse.php @@ -7,7 +7,7 @@ * of the MIT license. See the LICENSE file for details. */ -namespace Mailgun\Resource\Api\Webhook; +namespace Mailgun\Model\Webhook; /** * @author Tobias Nyholm diff --git a/tests/Integration/DomainApiTest.php b/tests/Integration/DomainApiTest.php index e577ca1..ccdc857 100644 --- a/tests/Integration/DomainApiTest.php +++ b/tests/Integration/DomainApiTest.php @@ -10,16 +10,16 @@ namespace Mailgun\Tests\Integration; use Mailgun\Api\Domain; -use Mailgun\Resource\Api\ErrorResponse; -use Mailgun\Resource\Api\Domain\CreateCredentialResponse; -use Mailgun\Resource\Api\Domain\DeleteCredentialResponse; -use Mailgun\Resource\Api\Domain\DeleteResponse; -use Mailgun\Resource\Api\Domain\Domain as DomainObject; -use Mailgun\Resource\Api\Domain\CredentialResponseItem; -use Mailgun\Resource\Api\Domain\CredentialResponse; -use Mailgun\Resource\Api\Domain\ConnectionResponse; -use Mailgun\Resource\Api\Domain\UpdateConnectionResponse; -use Mailgun\Resource\Api\Domain\UpdateCredentialResponse; +use Mailgun\Model\ErrorResponse; +use Mailgun\Model\Domain\CreateCredentialResponse; +use Mailgun\Model\Domain\DeleteCredentialResponse; +use Mailgun\Model\Domain\DeleteResponse; +use Mailgun\Model\Domain\Domain as DomainObject; +use Mailgun\Model\Domain\CredentialResponseItem; +use Mailgun\Model\Domain\CredentialResponse; +use Mailgun\Model\Domain\ConnectionResponse; +use Mailgun\Model\Domain\UpdateConnectionResponse; +use Mailgun\Model\Domain\UpdateCredentialResponse; use Mailgun\Tests\Api\TestCase; /**