Newer
Older
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
51
52
53
54
<?php
namespace QUI\ERP;
use QUI;
use QUI\ERP\Accounting\ArticleList;
use QUI\ERP\Accounting\Calculations;
use QUI\ERP\Address as ErpAddress;
use QUI\ERP\User as ErpUser;
interface ErpEntityInterface
{
/**
* Get the customer of the erp entity
*
* @return ErpUser|null The customer of the order, or null if no customer is set
*/
public function getCustomer(): ?ErpUser;
/**
* Get the currency of the erp entity
*
* @return Currency\Currency
*/
public function getCurrency(): QUI\ERP\Currency\Currency;
/**
* Get the article list of the erp entity
*
* @return ArticleList
*/
public function getArticles(): ArticleList;
/**
* Get the price calculation object of the erp entity
*
* @return Calculations
*/
public function getPriceCalculation(): Calculations;
/**
* Get the delivery address of the erp entity
*
* @return Address|null
*/
public function getDeliveryAddress(): ?ErpAddress;
/**
* Set a customer to the erp entity
*
* @param array|QUI\ERP\User|QUI\Interfaces\Users\User $User
*/
public function setCustomer($User);
}