@@ 51-60 (lines=10) @@ | ||
48 | * |
|
49 | * @param int $id |
|
50 | */ |
|
51 | private function updateTicket($id) |
|
52 | { |
|
53 | $this->prepareUpdateParameters(); |
|
54 | ||
55 | try { |
|
56 | $this->client->tickets()->update($id, $this->parameters); |
|
57 | } catch (\Exception $e) { |
|
58 | throw CouldNotSendNotification::serviceRespondedWithAnError($e->getMessage()); |
|
59 | } |
|
60 | } |
|
61 | ||
62 | /** |
|
63 | * Send create ticket request. |
|
@@ 67-76 (lines=10) @@ | ||
64 | * |
|
65 | * @param mixed $notifiable |
|
66 | */ |
|
67 | private function createNewTicket($notifiable) |
|
68 | { |
|
69 | $this->prepareCreateParameter($notifiable); |
|
70 | ||
71 | try { |
|
72 | $this->client->tickets()->create($this->parameters); |
|
73 | } catch (\Exception $e) { |
|
74 | throw CouldNotSendNotification::serviceRespondedWithAnError($e->getMessage()); |
|
75 | } |
|
76 | } |
|
77 | ||
78 | /** |
|
79 | * Prepare the parameters before update request send. |