EkomiRequestAssignClientOrder

Class AssignClientOrder.

Defined (1)

The class is defined in the following location(s).

/includes/libraries/Ekomi/Request/AssignClientOrder.php  
  1. class AssignClientOrder extends AbstractRequest{ 
  2. private $orderId; 
  3. private $clientId; 
  4.  
  5. /** 
  6. * This parameter is currently bugged and does not work. 
  7. * @var string 
  8. */ 
  9. private $unlink = 'false'; 
  10.  
  11. /** 
  12. * Exclude parameters from SOAP Call 
  13. * @var array 
  14. */ 
  15. protected $soapExcludeItems = array('type'); 
  16.  
  17. public function getName() { 
  18. return 'assignClientOrder'; 
  19.  
  20. public function getQuery($type='CURL') { 
  21. $query = array( 
  22. 'auth' => '',  
  23. 'version' => $this->getVersion(),  
  24. 'type' => $this->getType(),  
  25. 'order_id' => $this->getOrderId(),  
  26. 'client_id' => $this->getClientId(),  
  27. 'unlink' => $this->getUnlink(),  
  28. 'charset' => $this->getCharset() 
  29. ); 
  30.  
  31. if($type==='SOAP') { 
  32. return $this->unsetItemsInArray($query); 
  33.  
  34. return $query; 
  35.  
  36. /** 
  37. * @return mixed 
  38. */ 
  39. public function getOrderId() 
  40. return $this->orderId; 
  41.  
  42. /** 
  43. * @param mixed $orderId 
  44. * @return AssignClientOrder 
  45. */ 
  46. public function setOrderId($orderId) 
  47. $this->orderId = $orderId; 
  48. return $this; 
  49.  
  50. /** 
  51. * @return mixed 
  52. */ 
  53. public function getClientId() 
  54. return $this->clientId; 
  55.  
  56. /** 
  57. * @param mixed $clientId 
  58. * @return AssignClientOrder 
  59. */ 
  60. public function setClientId($clientId) 
  61. $this->clientId = $clientId; 
  62. return $this; 
  63.  
  64. /** 
  65. * @return string 
  66. */ 
  67. public function getUnlink() 
  68. return $this->unlink; 
  69.  
  70. /** 
  71. * @param string $unlink 
  72. * @return AssignClientOrder 
  73. */ 
  74. public function setUnlink($unlink) 
  75. $this->unlink = $unlink; 
  76. return $this;