1 | <?php |
||
8 | class ShipmentCharge |
||
9 | { |
||
10 | |||
11 | const TYPE_TRANSPORTATION = '01'; |
||
12 | const TYPE_DUTIES_AND_TAXES = '02'; |
||
13 | |||
14 | const CHARGES_BILL_SHIPPER = 'billShipper'; |
||
15 | const CHARGES_BILL_RECEIVER = 'billReceiver'; |
||
16 | const CHARGES_BILL_THIRD_PARTY = 'billThirdParty'; |
||
17 | const CHARGES_BILL_CONSIGNEE_BILLED = 'billConsigneeBilled'; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $type = '01'; |
||
23 | |||
24 | /** |
||
25 | * @var BillShipper |
||
26 | */ |
||
27 | private $billShipper; |
||
28 | |||
29 | /** |
||
30 | * @var BillReceiver |
||
31 | */ |
||
32 | private $billReceiver; |
||
33 | |||
34 | /** |
||
35 | * @var BillThirdParty |
||
36 | */ |
||
37 | private $billThirdParty; |
||
38 | |||
39 | /** |
||
40 | * @var boolean |
||
41 | */ |
||
42 | private $billConsigneeBilled; |
||
43 | |||
44 | /** |
||
45 | * @var boolean |
||
46 | */ |
||
47 | private $splitDutyVATIndicator; |
||
48 | |||
49 | /** |
||
50 | * @param string $type |
||
51 | * |
||
52 | * @return $this |
||
53 | */ |
||
54 | public function setType($type) { |
||
59 | |||
60 | /** |
||
61 | * @return string |
||
62 | */ |
||
63 | public function getType() { |
||
66 | |||
67 | /** |
||
68 | * @param BillShipper $shipper |
||
69 | * @return $this |
||
70 | */ |
||
71 | public function setBillShipper(BillShipper $shipper) { |
||
76 | |||
77 | /** |
||
78 | * @return BillShipper |
||
79 | */ |
||
80 | public function getBillShipper() { |
||
83 | |||
84 | /** |
||
85 | * @param BillReceiver $receiver |
||
86 | * @return $this |
||
87 | */ |
||
88 | public function setBillReceiver(BillReceiver $receiver) { |
||
93 | |||
94 | /** |
||
95 | * @return BillReceiver |
||
96 | */ |
||
97 | public function getBillReceiver() { |
||
100 | |||
101 | /** |
||
102 | * @param BillThirdParty $thirdParty |
||
103 | * @return $this |
||
104 | */ |
||
105 | public function setThirdPartyBilled(BillThirdParty $thirdParty) { |
||
110 | |||
111 | /** |
||
112 | * @return BillThirdParty |
||
113 | */ |
||
114 | public function getThirdPartyBilled() { |
||
117 | |||
118 | /** |
||
119 | * @param boolean $bool |
||
120 | * @return $this |
||
121 | */ |
||
122 | public function setConsigneeBilled($bool = true) { |
||
127 | |||
128 | /** |
||
129 | * @return bool |
||
130 | */ |
||
131 | public function getConsigneeBilled() { |
||
134 | |||
135 | /** |
||
136 | * @param bool $indicator |
||
137 | * @return $this |
||
138 | */ |
||
139 | public function setSplitDutyVATIndicator($indicator = true) { |
||
144 | |||
145 | /** |
||
146 | * @return boolean |
||
147 | */ |
||
148 | public function getSplitDutyVATIndicator() { |
||
151 | |||
152 | } |
||
153 |