Схема
public mixed
importOrders (
$data )
Аргументы
| Аргумент |
Возможный тип |
Описание |
| $data |
— |
— |
Описание
Метод пока еще не документирован.
Исходный код
$this->default_shipped_id = $this->config->get('EBAY_DEF_SHIPPED_ID');
$this->default_paid_id = $this->config->get('EBAY_DEF_PAID_ID');
$this->default_refunded_id = $this->config->get('EBAY_DEF_REFUNDED_ID');
$this->default_pending_id = $this->config->get('EBAY_DEF_IMPORT_ID');
$this->default_part_refunded_id = $this->config->get('EBAY_DEF_PARTIAL_REFUND_ID');
if($this->default_part_refunded_id == null){ $this->default_part_refunded_id = $this->default_paid_id; }
$this->tax = ( $this->config->get('tax') == '' ? '1' : ($this->config->get('tax') /100) + 1 );
$this->tax_type = $this->config->get('ebay_tax_listing');
$data = unserialize($data);
if(isset($data->ordersV2)){
if(!empty($data->ordersV2)){
if(is_array($data->ordersV2)){
foreach($data->ordersV2 as $order){
if(isset($order->smpId) && (int)$order->smpId != 0){
$this->orderHandle($order);
}
}
}else{
if(isset($data->ordersV2->smpId) && (int)$data->ordersV2->smpId != 0){
$this->orderHandle($data->ordersV2);
}
}
}else{
$this->openbay->ebay->log('Order object empty - no orders');
}
}else{
$this->openbay->ebay->log('Data failed to unserialize');
}