- Added AssociateProductIncoOutput and SyncProductIncoOutput classes to handle action results. - Updated AssociateProductInco and SyncProductInco actions to return structured output instead of raw models. - Enhanced error handling for API interactions in both actions. - Refactored ProductIncosController to utilize new output structures for better response management. - Introduced new enums for status handling in actions and queries. - Added tests for new output handling and error scenarios in Associate and Sync actions.
13 lines
180 B
PHP
13 lines
180 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Enums;
|
|
|
|
enum ProductIncoSyncStatus
|
|
{
|
|
case SUCCESS;
|
|
case NOT_ASSOCIATED;
|
|
case NOT_FOUND_ON_ARCADIA;
|
|
case API_ERROR;
|
|
}
|