1 | <?php |
||
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) |
||
47 | |||
48 | public function getOrderId(): string |
||
52 | |||
53 | public function getOrderStatus(): string |
||
57 | |||
58 | public function setOrderStatusDetails(?string $orderStatusDetails): FacadeOrderDetailsResponse |
||
64 | |||
65 | public function getOrderStatusDetails(): ?string |
||
69 | |||
70 | public function getOrderCreationDate(): int |
||
74 | } |
||
75 |