Skip to content

Commit 62797ce

Browse files
author
Vasiliev.A
committed
refactoring Operation and Bulk statuses interfaces, remove illogical interfaces and methods
1 parent 6b8e66a commit 62797ce

18 files changed

+133
-473
lines changed

app/code/Magento/AsynchronousOperations/Api/BulkRepositoryInterface.php renamed to app/code/Magento/AsynchronousOperations/Api/BulkStatusInterface.php

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,28 @@
77
namespace Magento\AsynchronousOperations\Api;
88

99
/**
10+
* Interface BulkStatusInterface
11+
* Bulk summary data with list of operations items short data.
12+
*
1013
* @api
11-
* @since 100.3.0
1214
*/
13-
interface BulkRepositoryInterface
15+
interface BulkStatusInterface extends \Magento\Framework\Bulk\BulkStatusInterface
1416
{
15-
1617
/**
18+
* Get Bulk summary data with list of operations items full data.
19+
*
1720
* @param string $bulkUuid
18-
* @return \Magento\AsynchronousOperations\Api\Data\BulkStatus\DetailedInterface
21+
* @return \Magento\AsynchronousOperations\Api\Data\DetailedBulkStatusInterface
1922
* @throws \Magento\Framework\Exception\NoSuchEntityException
20-
* @since 100.3.0
2123
*/
2224
public function getBulkDetailedStatus($bulkUuid);
2325

2426
/**
27+
* Get Bulk summary data with list of operations items short data.
28+
*
2529
* @param string $bulkUuid
26-
* @return \Magento\AsynchronousOperations\Api\Data\BulkStatus\ShortInterface
30+
* @return \Magento\AsynchronousOperations\Api\Data\BulkStatusInterface
2731
* @throws \Magento\Framework\Exception\NoSuchEntityException
28-
* @since 100.3.0
2932
*/
3033
public function getBulkShortStatus($bulkUuid);
3134
}

app/code/Magento/AsynchronousOperations/Api/Data/BulkStatus/DetailedInterface.php

Lines changed: 0 additions & 58 deletions
This file was deleted.

app/code/Magento/AsynchronousOperations/Api/Data/BulkStatus/ShortInterface.php

Lines changed: 0 additions & 58 deletions
This file was deleted.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
7+
namespace Magento\AsynchronousOperations\Api\Data;
8+
9+
/**
10+
* Interface BulkStatusInterface
11+
* Bulk summary data with list of operations items short data.
12+
*
13+
* @api
14+
*/
15+
interface BulkStatusInterface extends BulkSummaryInterface
16+
{
17+
18+
const OPERATIONS_LIST = 'operations_list';
19+
20+
/**
21+
* Retrieve list of operation with statuses (short data).
22+
*
23+
* @return \Magento\AsynchronousOperations\Api\Data\OperationStatusInterface[]
24+
*/
25+
public function getOperationsList();
26+
27+
/**
28+
* Set operations list.
29+
*
30+
* @param \Magento\AsynchronousOperations\Api\Data\OperationStatusInterface[] $operationStatusList
31+
* @return $this
32+
*/
33+
public function setOperationsList($operationStatusList);
34+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
7+
namespace Magento\AsynchronousOperations\Api\Data;
8+
9+
/**
10+
* Interface BulkStatusInterface
11+
* Bulk summary data with list of operations items full data.
12+
*
13+
* @api
14+
*/
15+
interface DetailedBulkStatusInterface extends BulkSummaryInterface
16+
{
17+
18+
const OPERATIONS_LIST = 'operations_list';
19+
20+
/**
21+
* Retrieve operations list.
22+
*
23+
* @return \Magento\AsynchronousOperations\Api\Data\OperationInterface[]
24+
*/
25+
public function getOperationsList();
26+
27+
/**
28+
* Set operations list.
29+
*
30+
* @param \Magento\AsynchronousOperations\Api\Data\OperationInterface[] $operationStatusList
31+
* @return $this
32+
*/
33+
public function setOperationsList($operationStatusList);
34+
}

app/code/Magento/AsynchronousOperations/Api/Data/OperationDetailsInterface.php

Lines changed: 0 additions & 72 deletions
This file was deleted.

app/code/Magento/AsynchronousOperations/Api/Data/OperationStatus/DetailedInterface.php

Lines changed: 0 additions & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)