Skip to content

Commit 54bf664

Browse files
committed
https://intensa.atlassian.net/browse/MBM-57
1 parent a04e20a commit 54bf664

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/Helpers/CustomerHelper.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,24 @@ public function merge(
190190
return $this->client->prepareRequest('POST', $operationName, $customersToMerge, '', [], true, $addDeviceUUID);
191191
}
192192

193+
/**
194+
* Выполняет вызов стандартной операции Website.CheckCustomer:
195+
*
196+
* @see https://developers.mindbox.ru/docs/получение-данных-потребителя
197+
*
198+
* @param CustomerRequestDTO $customer Объект, содержащий данные потребителя для запроса.
199+
* @param string $operationName Название операции.
200+
* @param bool $addDeviceUUID Флаг, сообщающий о необходимости передать в запросе DeviceUUID.
201+
*
202+
* @return \Mindbox\Clients\AbstractMindboxClient
203+
*/
204+
public function CheckCustomer(CustomerRequestDTO $customer, $operationName, $addDeviceUUID = true) {
205+
$operation = $this->createOperation();
206+
$operation->setCustomer($customer);
207+
$this->client->setResponseType(MindboxCustomerResponse::class);
208+
return $this->client->prepareRequest('POST', $operationName, $operation, '', [], true, $addDeviceUUID);
209+
}
210+
193211
/**
194212
* Выполняет вызов стандартной операции Website.CheckCustomerIsInLoyalityProgram:
195213
*

0 commit comments

Comments
 (0)