1 | <?php |
||
8 | class ShipmentCharge |
||
9 | { |
||
10 | const TYPE_TRANSPORTATION = '01'; |
||
11 | const TYPE_DUTIES_AND_TAXES = '02'; |
||
12 | |||
13 | const CHARGES_BILL_SHIPPER = 'billShipper'; |
||
14 | const CHARGES_BILL_RECEIVER = 'billReceiver'; |
||
15 | const CHARGES_BILL_THIRD_PARTY = 'billThirdParty'; |
||
16 | const CHARGES_BILL_CONSIGNEE_BILLED = 'billConsigneeBilled'; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | private $type = '01'; |
||
22 | |||
23 | /** |
||
24 | * @var BillShipper |
||
25 | */ |
||
26 | private $billShipper; |
||
27 | |||
28 | /** |
||
29 | * @var BillReceiver |
||
30 | */ |
||
31 | private $billReceiver; |
||
32 | |||
33 | /** |
||
34 | * @var BillThirdParty |
||
35 | */ |
||
36 | private $billThirdParty; |
||
37 | |||
38 | /** |
||
39 | * @var boolean |
||
40 | */ |
||
41 | private $billConsigneeBilled; |
||
42 | |||
43 | /** |
||
44 | * @var boolean |
||
45 | */ |
||
46 | private $splitDutyVATIndicator; |
||
47 | |||
48 | /** |
||
49 | * @param string $type |
||
50 | * |
||
51 | * @return $this |
||
52 | */ |
||
53 | public function setType($type) |
||
59 | |||
60 | /** |
||
61 | * @return string |
||
62 | */ |
||
63 | public function getType() |
||
67 | |||
68 | /** |
||
69 | * @param BillShipper $shipper |
||
70 | * @return $this |
||
71 | */ |
||
72 | public function setBillShipper(BillShipper $shipper) |
||
78 | |||
79 | /** |
||
80 | * @return BillShipper |
||
81 | */ |
||
82 | public function getBillShipper() |
||
86 | |||
87 | /** |
||
88 | * @param BillReceiver $receiver |
||
89 | * @return $this |
||
90 | */ |
||
91 | public function setBillReceiver(BillReceiver $receiver) |
||
97 | |||
98 | /** |
||
99 | * @return BillReceiver |
||
100 | */ |
||
101 | public function getBillReceiver() |
||
105 | |||
106 | /** |
||
107 | * @param BillThirdParty $thirdParty |
||
108 | * @return $this |
||
109 | */ |
||
110 | public function setThirdPartyBilled(BillThirdParty $thirdParty) |
||
116 | |||
117 | /** |
||
118 | * @return BillThirdParty |
||
119 | */ |
||
120 | public function getThirdPartyBilled() |
||
124 | |||
125 | /** |
||
126 | * @param boolean $bool |
||
127 | * @return $this |
||
128 | */ |
||
129 | public function setConsigneeBilled($bool = true) |
||
135 | |||
136 | /** |
||
137 | * @return bool |
||
138 | */ |
||
139 | public function getConsigneeBilled() |
||
143 | |||
144 | /** |
||
145 | * @param bool $indicator |
||
146 | * @return $this |
||
147 | */ |
||
148 | public function setSplitDutyVATIndicator($indicator = true) |
||
154 | |||
155 | /** |
||
156 | * @return boolean |
||
157 | */ |
||
158 | public function getSplitDutyVATIndicator() |
||
162 | } |
||
163 |