@@ 134-142 (lines=9) @@ | ||
131 | * |
|
132 | * @return \Bookeo\Interfaces\QueryInterface |
|
133 | */ |
|
134 | public function update(Customer $customer): QueryInterface |
|
135 | { |
|
136 | // Set HTTP params |
|
137 | $this->type = 'put'; |
|
138 | $this->endpoint = '/customers/' . $this->customer_id . '?' . $this->getQuery(); |
|
139 | $this->params = $customer; |
|
140 | ||
141 | return $this; |
|
142 | } |
|
143 | ||
144 | /** |
|
145 | * Delete a customer |
|
@@ 171-180 (lines=10) @@ | ||
168 | * |
|
169 | * @return \Bookeo\Interfaces\QueryInterface |
|
170 | */ |
|
171 | public function authenticate(string $password): QueryInterface |
|
172 | { |
|
173 | $this->appendToQuery('password', $password); |
|
174 | ||
175 | // Set HTTP params |
|
176 | $this->type = 'get'; |
|
177 | $this->endpoint = '/customers/' . $this->customer_id . '/authenticate?' . $this->getQuery(); |
|
178 | ||
179 | return $this; |
|
180 | } |
|
181 | ||
182 | /** |
|
183 | * @param string|null $beginDate if specified, only bookings on or after this date will be included |