@@ -631,7 +631,7 @@ public function getOrderStatuses( $store_id=null )
631631
632632 }
633633
634- public function getOrderList ( $ store_id =null , $ sort_by =null , $ sort_direct =null , $ limit =null , $ created_from =null )
634+ public function getOrderList ( $ store_id =null , $ sort_by =null , $ sort_direct =null , $ limit =10 , $ created_from =null )
635635 {
636636 $ this ->setApiKey ();
637637
@@ -644,6 +644,7 @@ public function getOrderList( $store_id=null , $sort_by=null, $sort_direct=null,
644644 null ,
645645 null ,
646646 null ,
647+ null ,
647648 $ limit ,
648649 null ,
649650 $ sort_by ,
@@ -664,6 +665,7 @@ public function getOrderList( $store_id=null , $sort_by=null, $sort_direct=null,
664665 null ,
665666 null ,
666667 null ,
668+ null ,
667669 null
668670 );
669671
@@ -696,7 +698,19 @@ public function getOrderListPage( $store_id=null, $page_cursor=null )
696698
697699 $ this ->order ->getConfig ()->setApiKey ('store_key ' , $ store_id );
698700
699- $ result = $ this ->order ->orderList ( null , null , null , null , null , $ page_cursor , null , null , 'force_all ' );
701+ $ result = $ this ->order ->orderList (
702+ null ,
703+ null ,
704+ null ,
705+ null ,
706+ null ,
707+ null ,
708+ $ page_cursor ,
709+ null ,
710+ null ,
711+ 'force_all ' ,
712+ null
713+ );
700714
701715 $ this ->logApiCall ( 'order.list.json ' , $ result ->getReturnCode (), $ this ->order ->getConfig (), null , null , null , $ result ->getReturnMessage () ,['page_cursor ' => $ page_cursor ] );
702716
@@ -830,7 +844,7 @@ public function getProductList($store_id=null, $ids=null, $sort_by=null, $sort_d
830844 null ,
831845 null ,
832846 $ limit ,
833- 'id,name,description,price,categories_ids,images,u_sku,type,create_at,modify_at ' ,
847+ 'id,name,description,price,categories_ids,images,u_sku,type,create_at,modify_at,quantity ' ,
834848 null ,
835849 null ,
836850 $ created_from ,
@@ -883,7 +897,7 @@ public function getProductListPage( $store_id=null, $page_cursor=null )
883897 $ page_cursor ,
884898 null ,
885899 null ,
886- 'id,name,description,price,categories_ids,images,u_sku,type,create_at,modify_at ' ,
900+ 'id,name,description,price,categories_ids,images,u_sku,type,create_at,modify_at,quantity ' ,
887901 null ,
888902 null ,
889903 null ,
@@ -1392,14 +1406,18 @@ private function logApiCall( $action=null, $code=null, $config = null, $store_id
13921406 // for Unittest do not log
13931407 if ( $ this ->isTest ) return ;
13941408
1395- $ p = (is_object ($ config )) ? ['api_key ' => $ config ->getApiKey ('api_key ' ), 'store_key ' => $ config ->getApiKey ('store_key ' ), ' msg ' => $ msg ] : [];
1409+ $ p = (is_object ($ config )) ? ['api_key ' => $ config ->getApiKey ('api_key ' ), 'store_key ' => $ config ->getApiKey ('store_key ' ) ] : [];
13961410
13971411 if ( is_array ($ params ) ){
13981412 foreach ($ params as $ k =>$ v ){
13991413 $ p [ $ k ] = $ v ;
14001414 }
14011415 }
14021416
1417+ if ( $ msg ){
1418+ $ p ['msg ' ] = $ msg ;
1419+ }
1420+
14031421 $ log = Logger::create ([
14041422 'action ' => $ action ,
14051423 'code ' => $ code ,
0 commit comments