@@ -3,8 +3,8 @@ |
||
3 | 3 | namespace PayumTW\Ecpay\Action\Api; |
4 | 4 | |
5 | 5 | use PayumTW\Ecpay\Api; |
6 | -use Payum\Core\ApiAwareInterface; |
|
7 | 6 | use Payum\Core\Action\ActionInterface; |
7 | +use Payum\Core\ApiAwareInterface; |
|
8 | 8 | use Payum\Core\Exception\UnsupportedApiException; |
9 | 9 | |
10 | 10 | abstract class BaseApiAwareAction implements ActionInterface, ApiAwareInterface |
@@ -2,17 +2,17 @@ |
||
2 | 2 | |
3 | 3 | namespace PayumTW\Ecpay\Action; |
4 | 4 | |
5 | -use Payum\Core\Request\Capture; |
|
6 | -use Payum\Core\GatewayAwareTrait; |
|
7 | -use Payum\Core\GatewayAwareInterface; |
|
8 | -use Payum\Core\Action\ActionInterface; |
|
9 | -use Payum\Core\Bridge\Spl\ArrayObject; |
|
10 | -use Payum\Core\Request\GetHttpRequest; |
|
11 | 5 | use PayumTW\Ecpay\Action\Api\BaseApiAwareAction; |
12 | 6 | use PayumTW\Ecpay\Request\Api\CreateTransaction; |
7 | +use Payum\Core\Action\ActionInterface; |
|
8 | +use Payum\Core\Bridge\Spl\ArrayObject; |
|
13 | 9 | use Payum\Core\Exception\RequestNotSupportedException; |
14 | -use Payum\Core\Security\GenericTokenFactoryAwareTrait; |
|
10 | +use Payum\Core\GatewayAwareInterface; |
|
11 | +use Payum\Core\GatewayAwareTrait; |
|
12 | +use Payum\Core\Request\Capture; |
|
13 | +use Payum\Core\Request\GetHttpRequest; |
|
15 | 14 | use Payum\Core\Security\GenericTokenFactoryAwareInterface; |
15 | +use Payum\Core\Security\GenericTokenFactoryAwareTrait; |
|
16 | 16 | |
17 | 17 | class CaptureLogisticsAction extends BaseApiAwareAction implements ActionInterface, GatewayAwareInterface, GenericTokenFactoryAwareInterface |
18 | 18 | { |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace PayumTW\Ecpay; |
4 | 4 | |
5 | -use Exception; |
|
6 | 5 | use Detection\MobileDetect; |
6 | +use Exception; |
|
7 | 7 | |
8 | 8 | abstract class Api |
9 | 9 | { |
@@ -3,10 +3,10 @@ |
||
3 | 3 | namespace PayumTW\Ecpay; |
4 | 4 | |
5 | 5 | use Http\Message\MessageFactory; |
6 | -use Payum\Core\HttpClientInterface; |
|
7 | 6 | use PayumTW\Ecpay\Bridge\Ecpay\AllInOne; |
8 | 7 | use PayumTW\Ecpay\Bridge\Ecpay\DeviceType; |
9 | 8 | use PayumTW\Ecpay\Bridge\Ecpay\InvoiceState; |
9 | +use Payum\Core\HttpClientInterface; |
|
10 | 10 | |
11 | 11 | class EcpayApi extends Api |
12 | 12 | { |
@@ -3,16 +3,16 @@ |
||
3 | 3 | namespace PayumTW\Ecpay; |
4 | 4 | |
5 | 5 | use Http\Message\MessageFactory; |
6 | -use Payum\Core\HttpClientInterface; |
|
7 | 6 | use PayumTW\Ecpay\Bridge\Ecpay\Device; |
8 | 7 | use PayumTW\Ecpay\Bridge\Ecpay\Distance; |
9 | -use PayumTW\Ecpay\Bridge\Ecpay\Temperature; |
|
10 | -use PayumTW\Ecpay\Bridge\Ecpay\IsCollection; |
|
11 | -use PayumTW\Ecpay\Bridge\Ecpay\LogisticsType; |
|
12 | -use PayumTW\Ecpay\Bridge\Ecpay\Specification; |
|
13 | 8 | use PayumTW\Ecpay\Bridge\Ecpay\EcpayLogistics; |
9 | +use PayumTW\Ecpay\Bridge\Ecpay\IsCollection; |
|
14 | 10 | use PayumTW\Ecpay\Bridge\Ecpay\LogisticsSubType; |
11 | +use PayumTW\Ecpay\Bridge\Ecpay\LogisticsType; |
|
15 | 12 | use PayumTW\Ecpay\Bridge\Ecpay\ScheduledPickupTime; |
13 | +use PayumTW\Ecpay\Bridge\Ecpay\Specification; |
|
14 | +use PayumTW\Ecpay\Bridge\Ecpay\Temperature; |
|
15 | +use Payum\Core\HttpClientInterface; |
|
16 | 16 | |
17 | 17 | class EcpayLogisticsApi extends Api |
18 | 18 | { |