EkomiRequestPutDialog

Class PutDialog.

Defined (1)

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

/includes/libraries/Ekomi/Request/PutDialog.php  
  1. class PutDialog extends AbstractRequest 
  2. private $orderId; 
  3. private $message; 
  4.  
  5. /** 
  6. * Exclude parameters from SOAP Call 
  7. * @var array 
  8. */ 
  9. protected $soapExcludeItems = array('type'); 
  10.  
  11. public function getName() 
  12. return 'putDialog'; 
  13.  
  14. public function getQuery($type = 'CURL') 
  15. $query = array( 
  16. 'auth' => '',  
  17. 'version' => $this->getVersion(),  
  18. 'type' => $this->getType(),  
  19. 'order_id' => $this->getOrderId(),  
  20. 'message' => $this->getMessage(),  
  21. 'charset' => $this->getCharset() 
  22. ); 
  23.  
  24. if ($type === 'SOAP') { 
  25. return $this->unsetItemsInArray($query); 
  26.  
  27. return $query; 
  28.  
  29. /** 
  30. * @return mixed 
  31. */ 
  32. public function getOrderId() 
  33. return $this->orderId; 
  34.  
  35. /** 
  36. * @param mixed $orderId 
  37. * @return PutDialog 
  38. */ 
  39. public function setOrderId($orderId) 
  40. $this->orderId = $orderId; 
  41. return $this; 
  42.  
  43. /** 
  44. * @return mixed 
  45. */ 
  46. public function getMessage() 
  47. return $this->message; 
  48.  
  49. /** 
  50. * @param mixed $message 
  51. * @return PutDialog 
  52. */ 
  53. public function setMessage($message) 
  54. $this->message = $message; 
  55. return $this; 
  56.