1 | <?php |
||
5 | class Venture extends Base implements VentureInterface |
||
6 | { |
||
7 | /** |
||
8 | * @return \Iris\Interfaces\IrisPartner |
||
9 | */ |
||
10 | 8 | public function getPartnerService() |
|
14 | |||
15 | /** |
||
16 | * @return \Iris\Interfaces\IrisVenture |
||
17 | */ |
||
18 | 2 | public function getVentureService() |
|
22 | |||
23 | /** |
||
24 | * @return \Iris\Interfaces\Customer |
||
25 | */ |
||
26 | 2 | public function getCustomerService() |
|
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | 2 | public function createOrder(array $orderData, $originCode) |
|
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | 2 | public function confirmPaymentOrder($orderNumber, $originCode) |
|
76 | |||
77 | /** |
||
78 | * {@inheritdoc} |
||
79 | */ |
||
80 | 1 | public function findOrderByOrderNumber($orderNumber, $originCode) |
|
84 | |||
85 | /** |
||
86 | * {@inheritdoc} |
||
87 | */ |
||
88 | 2 | public function cancelOrder($orderNumber, $originCode) |
|
100 | |||
101 | /** |
||
102 | * {@inheritdoc} |
||
103 | */ |
||
104 | 1 | public function createProductsOnPartner(\Iris\Transfer\Catalog\ConfigCollection $products, $partnerCode) |
|
108 | |||
109 | /** |
||
110 | * {@inheritdoc} |
||
111 | */ |
||
112 | 1 | public function updateProductsOnPartner(\Iris\Transfer\Catalog\ConfigCollection $products) |
|
116 | |||
117 | /** |
||
118 | * {@inheritdoc} |
||
119 | */ |
||
120 | 1 | public function updateStockOnPartner($skuSimple, $stock) |
|
124 | |||
125 | /** |
||
126 | * {@inheritdoc} |
||
127 | */ |
||
128 | 1 | public function updatePriceOnPartner( |
|
143 | |||
144 | /** |
||
145 | * {@inheritdoc} |
||
146 | */ |
||
147 | 1 | public function isPartnerItem(\Iris\Transfer\Sales\Order\Item $item) |
|
148 | { |
||
149 | 1 | $irisPartner = $this->getPartnerService()->findBySalesOrderId($item->getFkSalesOrder()); |
|
150 | 1 | return ($irisPartner instanceof \Iris\Transfer\Partner); |
|
151 | } |
||
152 | |||
153 | /** |
||
154 | * {@inheritdoc} |
||
155 | */ |
||
156 | 1 | public function setStatusToShippedOnPartner(\Iris\Transfer\Tracking\ShippedCollection $items) |
|
160 | |||
161 | /** |
||
162 | * {@inheritdoc} |
||
163 | */ |
||
164 | 1 | public function setStatusToDeliveredOnPartner(\Iris\Transfer\Tracking\DeliveredCollection $items) |
|
168 | |||
169 | /** |
||
170 | * NOTE: Not implemented yet! |
||
171 | * |
||
172 | * {@inheritdoc} |
||
173 | */ |
||
174 | 1 | public function setStatusToCanceledOnPartner(\Iris\Transfer\Tracking\CanceledCollection $items) |
|
178 | |||
179 | /** |
||
180 | * {@inheritdoc} |
||
181 | */ |
||
182 | 1 | public function setStatusToFailedDeliveryOnPartner(\Iris\Transfer\Tracking\FailedDeliveryCollection $items) |
|
186 | |||
187 | /** |
||
188 | * {@inheritdoc} |
||
189 | */ |
||
190 | 1 | public function getName() |
|
194 | } |
||
195 |