1 | <?php |
||
5 | class ShipmentCharge |
||
6 | { |
||
7 | const SHIPMENT_CHARGE_TYPE_TRANSPORTATION = '01'; |
||
8 | const SHIPMENT_CHARGE_TYPE_DUTIES = '02'; |
||
9 | |||
10 | const TYPE_BILL_SHIPPER = 'billShipper'; |
||
11 | const TYPE_BILL_RECEIVER = 'billReceiver'; |
||
12 | const TYPE_BILL_THIRD_PARTY = 'billThirdParty'; |
||
13 | const TYPE_CONSIGNEE_BILLED = 'consigneeBilled'; |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | private $type; |
||
19 | |||
20 | /** |
||
21 | * @var BillShipper |
||
22 | */ |
||
23 | private $billShipper; |
||
24 | |||
25 | /** |
||
26 | * @var BillReceiver |
||
27 | * TODO not implemented yet |
||
28 | */ |
||
29 | private $billReceiver; |
||
30 | |||
31 | /** |
||
32 | * @var BillThirdParty |
||
33 | */ |
||
34 | private $billThirdParty; |
||
35 | |||
36 | /** |
||
37 | * @var bool |
||
38 | */ |
||
39 | private $consigneeBilled; |
||
40 | |||
41 | public function __construct($attributes = null) |
||
50 | |||
51 | /** |
||
52 | * @return BillShipper |
||
53 | */ |
||
54 | public function getBillShipper() |
||
58 | |||
59 | /** |
||
60 | * @param BillShipper $billShipper |
||
61 | * @return ShipmentCharge |
||
62 | */ |
||
63 | public function setBillShipper(BillShipper $billShipper) |
||
69 | |||
70 | /** |
||
71 | * @return BillReceiver |
||
72 | */ |
||
73 | public function getBillReceiver() |
||
77 | |||
78 | /** |
||
79 | * @param BillReceiver $billReceiver |
||
80 | * @return ShipmentCharge |
||
81 | */ |
||
82 | public function setBillReceiver(BillReceiver $billReceiver= null) |
||
88 | |||
89 | /** |
||
90 | * @return BillThirdParty |
||
91 | */ |
||
92 | public function getBillThirdParty() |
||
96 | |||
97 | /** |
||
98 | * @param BillThirdParty $billThirdParty |
||
99 | * @return ShipmentCharge |
||
100 | */ |
||
101 | public function setBillThirdParty(BillThirdParty $billThirdParty = null) |
||
107 | |||
108 | /** |
||
109 | * @return bool |
||
110 | */ |
||
111 | public function getConsigneeBilled() |
||
115 | |||
116 | /** |
||
117 | * @param bool $consigneeBilled |
||
118 | * @return ShipmentCharge |
||
119 | */ |
||
120 | public function setConsigneeBilled($consigneeBilled) |
||
126 | |||
127 | /** |
||
128 | * @return string |
||
129 | */ |
||
130 | public function getType() |
||
134 | |||
135 | /** |
||
136 | * @param string $type |
||
137 | * @return ShipmentCharge |
||
138 | */ |
||
139 | public function setType($type) |
||
145 | } |
||
146 |