mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
31 lines
901 B
PHP
31 lines
901 B
PHP
<?php
|
|
|
|
namespace App\Classes\Jobs\Commands\V2\YD;
|
|
|
|
use App\Classes\Modules\PackingLists\Processors\V2\FetchByTrakingNoYdPortalV2Processor;
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
use Illuminate\Foundation\Bus\Dispatchable;
|
|
use Illuminate\Queue\InteractsWithQueue;
|
|
use Illuminate\Queue\SerializesModels;
|
|
use Illuminate\Support\Facades\Log;
|
|
|
|
class FetchTrakingInfoYDByTrackingNoV2CommandJob implements ShouldQueue
|
|
{
|
|
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
|
|
|
protected $trackingNo;
|
|
|
|
public function __construct(string $trackingNo)
|
|
{
|
|
$this->trackingNo = $trackingNo;
|
|
}
|
|
|
|
public function handle()
|
|
{
|
|
Log::info('Processing FetchTrakingInfoYDByTrackingNoV2CommandJob');
|
|
$processor = app(FetchByTrakingNoYdPortalV2Processor::class);
|
|
$processor->processTrackingNo($this->trackingNo);
|
|
}
|
|
}
|