mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-24 15:04:32 +00:00
An api requested by WePost for air shipment for inbound notification
This commit is contained in:
@@ -0,0 +1,142 @@
|
||||
<?php
|
||||
|
||||
namespace App\Classes\Modules\WePost\DataTransferObjects;
|
||||
|
||||
use App\Classes\General\Interfaces\DataTransferObject;
|
||||
|
||||
|
||||
class WePostNotificationObject implements DataTransferObject
|
||||
{
|
||||
/** @var string */
|
||||
private string $logisticsOrderCode;
|
||||
|
||||
/** @var string */
|
||||
private string $executeTime;
|
||||
|
||||
/** @var string */
|
||||
private string $timeZone;
|
||||
|
||||
/** @var string */
|
||||
private string $status;
|
||||
|
||||
/** @var array */
|
||||
private array $packageInfo;
|
||||
|
||||
/** @var string */
|
||||
private string $client_id;
|
||||
|
||||
/** @var string */
|
||||
private string $type;
|
||||
|
||||
/** @var int */
|
||||
private int $timestamp;
|
||||
|
||||
/** @var string */
|
||||
private string $sign;
|
||||
|
||||
/**
|
||||
* WePostNotificationObject constructor.
|
||||
* @param string $logisticsOrderCode
|
||||
* @param string $executeTime,
|
||||
* @param string $timeZone,
|
||||
* @param string $status,
|
||||
* @param array $packageInfo,
|
||||
* @param string $client_id,
|
||||
* @param string $type,
|
||||
* @param int $timestamp,
|
||||
* @param string $sign
|
||||
*/
|
||||
public function __construct(
|
||||
string $logisticsOrderCode,
|
||||
string $executeTime,
|
||||
string $timeZone,
|
||||
string $status,
|
||||
array $packageInfo,
|
||||
string $client_id,
|
||||
string $type,
|
||||
int $timestamp,
|
||||
string $sign
|
||||
) {
|
||||
$this->logisticsOrderCode = $logisticsOrderCode;
|
||||
$this->executeTime = $executeTime;
|
||||
$this->timeZone = $timeZone;
|
||||
$this->status = $status;
|
||||
$this->packageInfo = $packageInfo;
|
||||
$this->client_id = $client_id;
|
||||
$this->type = $type;
|
||||
$this->timestamp = $timestamp;
|
||||
$this->sign = $sign;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getLogisticsOrderCode(): string
|
||||
{
|
||||
return $this->logisticsOrderCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getExecuteTime(): string
|
||||
{
|
||||
return $this->executeTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getTimeZone(): string
|
||||
{
|
||||
return $this->timeZone;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getStatus(): string
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function getPackageInfo(): array
|
||||
{
|
||||
return $this->packageInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getClientId(): string
|
||||
{
|
||||
return $this->client_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getType(): string
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getTimestamp(): int
|
||||
{
|
||||
return $this->timestamp;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getSign(): string
|
||||
{
|
||||
return $this->sign;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user