-
Notifications
You must be signed in to change notification settings - Fork 0
/
OrderDeliverableInterface.php
50 lines (43 loc) · 1.01 KB
/
OrderDeliverableInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
namespace Fiscal\OFD;
/**
* Interface OrderDeliverableInterface.
*
* Apply this interface to your Order class (i.e. model) if you can provide any delivery information.
*/
interface OrderDeliverableInterface
{
public const DELIVERY_TYPE_COURIER = 'courier';
public const DELIVERY_TYPE_PICKUP = 'pickup';
/**
* Delivery type.
*
* @return string|null
*/
public function getDeliveryType(): ?string;
/**
* Delivery order item.
* If delivery amount is greater than 0 it will be add as an additional order item
*
* @return OrderItemInterface|null
*/
public function getDeliveryOrderItem(): ?OrderItemInterface;
/**
* 2-symbol country code.
*
* @return string|null
*/
public function getCountry(): ?string;
/**
* City name.
*
* @return string|null
*/
public function getCity(): ?string;
/**
* Address.
*
* @return string
*/
public function getPostAddress(): ?string;
}