1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
declare(strict_types=1); |
4
|
|
|
|
5
|
|
|
namespace Lamoda\IsmpClient\V3\Dto; |
6
|
|
|
|
7
|
|
|
final class FacadeOrderDetailsResponse |
8
|
|
|
{ |
9
|
|
|
public const ORDER_STATUS_NEW = 'NEW'; |
10
|
|
|
public const ORDER_STATUS_READY_FOR_EXTERNAL_PROCESSING = 'READY_FOR_EXTERNAL_PROCESSING'; |
11
|
|
|
public const ORDER_STATUS_EXTERNAL_PROCESSING = 'EXTERNAL_PROCESSING'; |
12
|
|
|
public const ORDER_STATUS_READY_TO_PROCESS = 'READY_TO_PROCESS'; |
13
|
|
|
public const ORDER_STATUS_VALIDATING = 'VALIDATING'; |
14
|
|
|
public const ORDER_STATUS_READY_TO_VALIDATE = 'READY_TO_VALIDATE'; |
15
|
|
|
public const ORDER_STATUS_PROCESSED = 'PROCESSED'; |
16
|
|
|
public const ORDER_STATUS_PROCESSING = 'PROCESSING'; |
17
|
|
|
public const ORDER_STATUS_PRODUCTION = 'PRODUCTION'; |
18
|
|
|
public const ORDER_STATUS_MK_PARTLY_EMITTED = 'MK_PARTLY_EMITTED'; |
19
|
|
|
public const ORDER_STATUS_MK_EMITTED = 'MK_EMITTED'; |
20
|
|
|
public const ORDER_STATUS_VALIDATION_FAILED = 'VALIDATION_FAILED'; |
21
|
|
|
public const ORDER_STATUS_ERROR = 'ERROR'; |
22
|
|
|
public const ORDER_STATUS_COMPLETED = 'COMPLETED'; |
23
|
|
|
|
24
|
|
|
/** |
25
|
|
|
* @var string |
26
|
|
|
*/ |
27
|
|
|
private $orderId; |
28
|
|
|
/** |
29
|
|
|
* @var string |
30
|
|
|
*/ |
31
|
|
|
private $orderStatus; |
32
|
|
|
/** |
33
|
|
|
* @var string|null |
34
|
|
|
*/ |
35
|
|
|
private $orderStatusDetails; |
36
|
|
|
/** |
37
|
|
|
* @var int |
38
|
|
|
*/ |
39
|
|
|
private $orderCreationDate; |
40
|
|
|
|
41
|
|
|
public function __construct(string $orderId, string $orderStatus, int $orderCreationDate) |
42
|
|
|
{ |
43
|
|
|
$this->orderId = $orderId; |
44
|
|
|
$this->orderStatus = $orderStatus; |
45
|
|
|
$this->orderCreationDate = $orderCreationDate; |
46
|
|
|
} |
47
|
|
|
|
48
|
|
|
public function getOrderId(): string |
49
|
|
|
{ |
50
|
|
|
return $this->orderId; |
51
|
|
|
} |
52
|
|
|
|
53
|
|
|
public function getOrderStatus(): string |
54
|
|
|
{ |
55
|
|
|
return $this->orderStatus; |
56
|
|
|
} |
57
|
|
|
|
58
|
|
|
public function setOrderStatusDetails(?string $orderStatusDetails): FacadeOrderDetailsResponse |
59
|
|
|
{ |
60
|
|
|
$this->orderStatusDetails = $orderStatusDetails; |
61
|
|
|
|
62
|
|
|
return $this; |
63
|
|
|
} |
64
|
|
|
|
65
|
|
|
public function getOrderStatusDetails(): ?string |
66
|
|
|
{ |
67
|
|
|
return $this->orderStatusDetails; |
68
|
|
|
} |
69
|
|
|
|
70
|
|
|
public function getOrderCreationDate(): int |
71
|
|
|
{ |
72
|
|
|
return $this->orderCreationDate; |
73
|
|
|
} |
74
|
|
|
} |
75
|
|
|
|